VSDParagraphList.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

VSDParagraphList.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libvisio project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef __VSDPARAGRAPHLIST_H__
11 #define __VSDPARAGRAPHLIST_H__
12
13 #include <vector>
14 #include <map>
15 #include "VSDStyles.h"
16
17 namespace libvisio
18 {
19
20 class VSDParagraphListElement;
21 class VSDCollector;
22
23 class VSDParagraphList
24 {
25 public:
26 VSDParagraphList();
27 VSDParagraphList(const VSDParagraphList &paraList);
28 ~VSDParagraphList();
29 VSDParagraphList &operator=(const VSDParagraphList &paraList);
30 void addParaIX(unsigned id, unsigned level, unsigned charCount, const boost::optional<double> &indFirst,
31 const boost::optional<double> &indLeft, const boost::optional<double> &indRight, const boost::optional<double> &spLine,
32 const boost::optional<double> &spBefore, const boost::optional<double> &spAfter, const boost::optional<unsigned char> &align,
33 const boost::optional<unsigned> &flags);
34 void addParaIX(unsigned id, unsigned level, const VSDOptionalParaStyle &style);
35 unsigned getCharCount(unsigned id) const;
36 void setCharCount(unsigned id, unsigned charCount);
37 void resetCharCount();
38 unsigned getLevel() const;
39
40 void setElementsOrder(const std::vector<unsigned> &m_elementsOrder);
41 void handle(VSDCollector *collector) const;
42 void clear();
43 bool empty() const
44 {
45 return (m_elements.empty());
46 }
47 private:
48 std::map<unsigned, VSDParagraphListElement *> m_elements;
49 std::vector<unsigned> m_elementsOrder;
50 };
51
52 } // namespace libvisio
53
54 #endif // __VSDPARAGRAPHLIST_H__
55 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libvisio::VSDParagraphList::m_elementsOrder
std::vector< unsigned > m_elementsOrder
Definition: VSDParagraphList.h:49
libvisio::VSDParagraphList::~VSDParagraphList
~VSDParagraphList()
Definition: VSDParagraphList.cpp:92
libvisio::VSDParagraphList::getLevel
unsigned getLevel() const
Definition: VSDParagraphList.cpp:148
libvisio::VSDParagraphList::empty
bool empty() const
Definition: VSDParagraphList.h:43
libvisio::VSDParagraphList::setElementsOrder
void setElementsOrder(const std::vector< unsigned > &m_elementsOrder)
Definition: VSDParagraphList.cpp:155
libvisio::VSDCollector
Definition: VSDCollector.h:20
libvisio::VSDParagraphList::clear
void clear()
Definition: VSDParagraphList.cpp:184
libvisio::VSDParagraphList::m_elements
std::map< unsigned, VSDParagraphListElement * > m_elements
Definition: VSDParagraphList.h:48
libvisio::VSDOptionalParaStyle
Definition: VSDStyles.h:315
libvisio::VSDParagraphList
Definition: VSDParagraphList.h:23
libvisio::VSDParagraphList::getCharCount
unsigned getCharCount(unsigned id) const
Definition: VSDParagraphList.cpp:125
libvisio::VSDParagraphList::resetCharCount
void resetCharCount()
Definition: VSDParagraphList.cpp:141
libvisio::VSDParagraphList::handle
void handle(VSDCollector *collector) const
Definition: VSDParagraphList.cpp:162
libvisio::VSDParagraphList::operator=
VSDParagraphList & operator=(const VSDParagraphList &paraList)
Definition: VSDParagraphList.cpp:82
VSDStyles.h
libvisio
Definition: libvisio_utils.h:70
libvisio::VSDParagraphList::setCharCount
void setCharCount(unsigned id, unsigned charCount)
Definition: VSDParagraphList.cpp:134
libvisio::VSDParagraphList::addParaIX
void addParaIX(unsigned id, unsigned level, unsigned charCount, const boost::optional< double > &indFirst, const boost::optional< double > &indLeft, const boost::optional< double > &indRight, const boost::optional< double > &spLine, const boost::optional< double > &spBefore, const boost::optional< double > &spAfter, const boost::optional< unsigned char > &align, const boost::optional< unsigned > &flags)
Definition: VSDParagraphList.cpp:97
libvisio::VSDParagraphList::VSDParagraphList
VSDParagraphList()
Definition: VSDParagraphList.cpp:67