Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __VSDSTENCILS_H__
00011 #define __VSDSTENCILS_H__
00012
00013 #include <map>
00014 #include <vector>
00015 #include "VSDStyles.h"
00016 #include "VSDGeometryList.h"
00017 #include "VSDFieldList.h"
00018 #include "VSDTypes.h"
00019 #include "VSDParagraphList.h"
00020 #include "VSDCharacterList.h"
00021 #include "VSDShapeList.h"
00022
00023 namespace libvisio
00024 {
00025
00026 class VSDShape
00027 {
00028 public:
00029 VSDShape();
00030 VSDShape(const VSDShape &shape);
00031 ~VSDShape();
00032 VSDShape &operator=(const VSDShape &shape);
00033 void clear();
00034
00035 std::map<unsigned, VSDGeometryList> m_geometries;
00036 VSDShapeList m_shapeList;
00037 VSDFieldList m_fields;
00038 ForeignData *m_foreign;
00039 unsigned m_parent, m_masterPage, m_masterShape, m_shapeId;
00040 unsigned m_lineStyleId, m_fillStyleId, m_textStyleId;
00041 VSDOptionalLineStyle m_lineStyle;
00042 VSDOptionalFillStyle m_fillStyle;
00043 VSDOptionalTextBlockStyle m_textBlockStyle;
00044 VSDOptionalCharStyle m_charStyle;
00045 VSDOptionalThemeReference m_themeRef;
00046 VSDCharacterList m_charList;
00047 VSDOptionalParaStyle m_paraStyle;
00048 VSDParagraphList m_paraList;
00049 librevenge::RVNGBinaryData m_text;
00050 std::map< unsigned, VSDName > m_names;
00051 TextFormat m_textFormat;
00052 std::map<unsigned, NURBSData> m_nurbsData;
00053 std::map<unsigned, PolylineData> m_polylineData;
00054 XForm m_xform;
00055 XForm *m_txtxform;
00056 XForm1D *m_xform1d;
00057 VSDMisc m_misc;
00058 };
00059
00060 class VSDStencil
00061 {
00062 public:
00063 VSDStencil();
00064 VSDStencil(const VSDStencil &stencil);
00065 ~VSDStencil();
00066 VSDStencil &operator=(const VSDStencil &stencil);
00067 void addStencilShape(unsigned id, const VSDShape &shape);
00068 void setFirstShape(unsigned id);
00069 const VSDShape *getStencilShape(unsigned id) const;
00070 std::map<unsigned, VSDShape> m_shapes;
00071 double m_shadowOffsetX;
00072 double m_shadowOffsetY;
00073 unsigned m_firstShapeId;
00074 };
00075
00076 class VSDStencils
00077 {
00078 public:
00079 VSDStencils();
00080 ~VSDStencils();
00081 void addStencil(unsigned idx, const VSDStencil &stencil);
00082 const VSDStencil *getStencil(unsigned idx) const;
00083 const VSDShape *getStencilShape(unsigned pageId, unsigned shapeId) const;
00084 unsigned count() const
00085 {
00086 return m_stencils.size();
00087 }
00088 private:
00089 std::map<unsigned, VSDStencil> m_stencils;
00090 };
00091
00092
00093 }
00094
00095 #endif // __VSDSTENCILS_H__
00096