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 __VSDXCHARACTERLIST_H__
00032 #define __VSDXCHARACTERLIST_H__
00033
00034 #include <vector>
00035 #include <map>
00036
00037 namespace libvisio
00038 {
00039
00040 class VSDXCharacterListElement;
00041 class VSDXCollector;
00042
00043 class VSDXCharacterList
00044 {
00045 public:
00046 VSDXCharacterList();
00047 VSDXCharacterList(const VSDXCharacterList &charList);
00048 ~VSDXCharacterList();
00049 VSDXCharacterList &operator=(const VSDXCharacterList &charList);
00050 void addCharIX(unsigned id, unsigned level, unsigned charCount, unsigned short fontID, Colour fontColour, unsigned langId, double fontSize,
00051 bool bold, bool italic, bool underline, bool doubleunderline, bool strikeout, bool doublestrikeout,
00052 bool allcaps, bool initcaps, bool smallcaps, bool superscript, bool subscript, WPXString fontFace);
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, VSDXCharacterListElement *> m_elements;
00062 std::vector<unsigned> m_elementsOrder;
00063 };
00064
00065 }
00066
00067 #endif // __VSDXCHARACTERLIST_H__
00068