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 __VSDXPARAGRAPHLIST_H__
00032 #define __VSDXPARAGRAPHLIST_H__
00033
00034 #include <vector>
00035 #include <map>
00036
00037 namespace libvisio
00038 {
00039
00040 class VSDXParagraphListElement;
00041 class VSDXCollector;
00042
00043 class VSDXParagraphList
00044 {
00045 public:
00046 VSDXParagraphList();
00047 VSDXParagraphList(const VSDXParagraphList ¶List);
00048 ~VSDXParagraphList();
00049 VSDXParagraphList &operator=(const VSDXParagraphList ¶List);
00050 void addParaIX(unsigned id, unsigned level, unsigned charCount, double indFirst, double indLeft, double indRight,
00051 double spLine, double spBefore, double spAfter, unsigned char align, unsigned flags);
00052
00053 void setElementsOrder(const std::vector<unsigned> &m_elementsOrder);
00054 void handle(VSDXCollector *collector);
00055 void clear();
00056 bool empty() const
00057 {
00058 return (!m_elements.size());
00059 }
00060 private:
00061 std::map<unsigned, VSDXParagraphListElement *> m_elements;
00062 std::vector<unsigned> m_elementsOrder;
00063 };
00064
00065 }
00066
00067 #endif // __VSDXPARAGRAPHLIST_H__
00068