Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef __VSDPARAGRAPHLIST_H__
00032 #define __VSDPARAGRAPHLIST_H__
00033
00034 #include <vector>
00035 #include <map>
00036 #include "VSDStyles.h"
00037
00038 namespace libvisio
00039 {
00040
00041 class VSDParagraphListElement;
00042 class VSDCollector;
00043
00044 class VSDParagraphList
00045 {
00046 public:
00047 VSDParagraphList();
00048 VSDParagraphList(const VSDParagraphList ¶List);
00049 ~VSDParagraphList();
00050 VSDParagraphList &operator=(const VSDParagraphList ¶List);
00051 void addParaIX(unsigned id, unsigned level, unsigned charCount, const boost::optional<double> &indFirst,
00052 const boost::optional<double> &indLeft, const boost::optional<double> &indRight, const boost::optional<double> &spLine,
00053 const boost::optional<double> &spBefore, const boost::optional<double> &spAfter, const boost::optional<unsigned char> &align,
00054 const boost::optional<unsigned> &flags);
00055 void addParaIX(unsigned id, unsigned level, const VSDOptionalParaStyle &style);
00056 unsigned getCharCount(unsigned id) const;
00057 void setCharCount(unsigned id, unsigned charCount);
00058 void resetCharCount();
00059 unsigned getLevel() const;
00060
00061 void setElementsOrder(const std::vector<unsigned> &m_elementsOrder);
00062 void handle(VSDCollector *collector) const;
00063 void clear();
00064 bool empty() const
00065 {
00066 return (m_elements.empty());
00067 }
00068 private:
00069 std::map<unsigned, VSDParagraphListElement *> m_elements;
00070 std::vector<unsigned> m_elementsOrder;
00071 };
00072
00073 }
00074
00075 #endif // __VSDPARAGRAPHLIST_H__
00076