VSDStylesCollector.h Source File documentation

VSDStylesCollector.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 VSDSTYLESCOLLECTOR_H
11 #define VSDSTYLESCOLLECTOR_H
12
13 #include <map>
14 #include <vector>
15 #include <list>
16 #include "VSDCollector.h"
17 #include "VSDParser.h"
18 #include "libvisio_utils.h"
19 #include "VSDStyles.h"
20
21 namespace libvisio
22 {
23
24 class VSDStylesCollector : public VSDCollector
25 {
26 public:
27 VSDStylesCollector(
28 std::vector<std::map<unsigned, XForm> > &groupXFormsSequence,
29 std::vector<std::map<unsigned, unsigned> > &groupMembershipsSequence,
30 std::vector<std::list<unsigned> > &documentPageShapeOrders
31 );
32 ~VSDStylesCollector() override {}
33
34 void collectDocumentTheme(const VSDXTheme * /* theme */) override {}
35 void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc) override;
36 void collectForeignData(unsigned level, const librevenge::RVNGBinaryData &binaryData) override;
37 void collectOLEList(unsigned id, unsigned level) override
38 {
39 collectUnhandledChunk(id, level);
40 }
41 void collectOLEData(unsigned id, unsigned level, const librevenge::RVNGBinaryData &oleData) override;
42 void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop) override;
43 void collectLine(unsigned level, const boost::optional<double> &strokeWidth, const boost::optional<Colour> &c, const boost::optional<unsigned char> &linePattern,
44 const boost::optional<unsigned char> &startMarker, const boost::optional<unsigned char> &endMarker,
45 const boost::optional<unsigned char> &lineCap, const boost::optional<double> &rounding,
46 const boost::optional<long> &qsLineColour, const boost::optional<long> &qsLineMatrix) override;
47 void collectFillAndShadow(unsigned level, const boost::optional<Colour> &colourFG, const boost::optional<Colour> &colourBG,
48 const boost::optional<unsigned char> &fillPattern, const boost::optional<double> &fillFGTransparency,
49 const boost::optional<double> &fillBGTransparency, const boost::optional<unsigned char> &shadowPattern,
50 const boost::optional<Colour> &shfgc, const boost::optional<double> &shadowOffsetX, const boost::optional<double> &shadowOffsetY,
51 const boost::optional<long> &qsFc, const boost::optional<long> &qsSc, const boost::optional<long> &qsLm) override;
52 void collectFillAndShadow(unsigned level, const boost::optional<Colour> &colourFG, const boost::optional<Colour> &colourBG,
53 const boost::optional<unsigned char> &fillPattern, const boost::optional<double> &fillFGTransparency,
54 const boost::optional<double> &fillBGTransparency, const boost::optional<unsigned char> &shadowPattern,
55 const boost::optional<Colour> &shfgc) override;
56 void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow) override;
57 void collectMoveTo(unsigned id, unsigned level, double x, double y) override;
58 void collectLineTo(unsigned id, unsigned level, double x, double y) override;
59 void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow) override;
60 void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, unsigned char xType, unsigned char yType, unsigned degree,
61 const std::vector<std::pair<double, double> > &ctrlPnts, const std::vector<double> &kntVec, const std::vector<double> &weights) override;
62 void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, unsigned dataID) override;
63 void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, const NURBSData &data) override;
64 void collectPolylineTo(unsigned id, unsigned level, double x, double y, unsigned char xType, unsigned char yType, const std::vector<std::pair<double, double> > &points) override;
65 void collectPolylineTo(unsigned id, unsigned level, double x, double y, unsigned dataID) override;
66 void collectPolylineTo(unsigned id, unsigned level, double x, double y, const PolylineData &data) override;
67 void collectShapeData(unsigned id, unsigned level, unsigned char xType, unsigned char yType, unsigned degree, double lastKnot,
68 std::vector<std::pair<double, double> > controlPoints, std::vector<double> knotVector, std::vector<double> weights) override;
69 void collectShapeData(unsigned id, unsigned level, unsigned char xType, unsigned char yType, std::vector<std::pair<double, double> > points) override;
70 void collectXFormData(unsigned level, const XForm &xform) override;
71 void collectTxtXForm(unsigned level, const XForm &txtxform) override;
72 void collectShapesOrder(unsigned id, unsigned level, const std::vector<unsigned> &shapeIds) override;
73 void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height) override;
74 void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale) override;
75 void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName) override;
76 void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle) override;
77 void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree) override;
78 void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot) override;
79 void collectSplineEnd() override;
80 void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2) override;
81 void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override;
82 void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override;
83 void collectRelLineTo(unsigned id, unsigned level, double x, double y) override;
84 void collectRelMoveTo(unsigned id, unsigned level, double x, double y) override;
85 void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b) override;
86 void collectUnhandledChunk(unsigned id, unsigned level) override;
87
88 void collectText(unsigned level, const librevenge::RVNGBinaryData &textStream, TextFormat format) override;
89 void collectCharIX(unsigned id, unsigned level, unsigned charCount, const boost::optional<VSDName> &font,
90 const boost::optional<Colour> &fontColour, const boost::optional<double> &fontSize, const boost::optional<bool> &bold,
91 const boost::optional<bool> &italic, const boost::optional<bool> &underline, const boost::optional<bool> &doubleunderline,
92 const boost::optional<bool> &strikeout, const boost::optional<bool> &doublestrikeout, const boost::optional<bool> &allcaps,
93 const boost::optional<bool> &initcaps, const boost::optional<bool> &smallcaps, const boost::optional<bool> &superscript,
94 const boost::optional<bool> &subscript, const boost::optional<double> &scaleWidth) override;
95 void collectDefaultCharStyle(unsigned charCount, const boost::optional<VSDName> &font, const boost::optional<Colour> &fontColour,
96 const boost::optional<double> &fontSize, const boost::optional<bool> &bold, const boost::optional<bool> &italic,
97 const boost::optional<bool> &underline, const boost::optional<bool> &doubleunderline, const boost::optional<bool> &strikeout,
98 const boost::optional<bool> &doublestrikeout, const boost::optional<bool> &allcaps, const boost::optional<bool> &initcaps,
99 const boost::optional<bool> &smallcaps, const boost::optional<bool> &superscript, const boost::optional<bool> &subscript,
100 const boost::optional<double> &scaleWidth) override;
101 void collectParaIX(unsigned id, unsigned level, unsigned charCount, const boost::optional<double> &indFirst,
102 const boost::optional<double> &indLeft, const boost::optional<double> &indRight, const boost::optional<double> &spLine,
103 const boost::optional<double> &spBefore, const boost::optional<double> &spAfter, const boost::optional<unsigned char> &align,
104 const boost::optional<unsigned char> &bullet, const boost::optional<VSDName> &bulletStr, const boost::optional<VSDName> &bulletFont,
105 const boost::optional<double> &bulletFontSize, const boost::optional<double> &textPosAfterBullet,
106 const boost::optional<unsigned> &flags) override;
107 void collectDefaultParaStyle(unsigned charCount, const boost::optional<double> &indFirst, const boost::optional<double> &indLeft,
108 const boost::optional<double> &indRight, const boost::optional<double> &spLine, const boost::optional<double> &spBefore,
109 const boost::optional<double> &spAfter, const boost::optional<unsigned char> &align,
110 const boost::optional<unsigned char> &bullet, const boost::optional<VSDName> &bulletStr,
111 const boost::optional<VSDName> &bulletFont, const boost::optional<double> &bulletFontSize,
112 const boost::optional<double> &textPosAfterBullet, const boost::optional<unsigned> &flags) override;
113 void collectTextBlock(unsigned level, const boost::optional<double> &leftMargin, const boost::optional<double> &rightMargin,
114 const boost::optional<double> &topMargin, const boost::optional<double> &bottomMargin,
115 const boost::optional<unsigned char> &verticalAlign, const boost::optional<bool> &isBgFilled,
116 const boost::optional<Colour> &bgColour, const boost::optional<double> &defaultTabStop,
117 const boost::optional<unsigned char> &textDirection) override;
118 void collectNameList(unsigned id, unsigned level) override
119 {
120 collectUnhandledChunk(id, level);
121 }
122 void collectName(unsigned id, unsigned level, const librevenge::RVNGBinaryData &name, TextFormat format) override;
123 void collectPageSheet(unsigned id, unsigned level) override;
124 void collectMisc(unsigned level, const VSDMisc &misc) override;
125 void collectLayer(unsigned id, unsigned level, const VSDLayer &layer) override;
126 void collectLayerMem(unsigned level, const VSDName &layerMem) override;
127 void collectTabsDataList(unsigned level, const std::map<unsigned, VSDTabSet> &tabSets) override;
128
129 // Style collectors
130 void collectStyleSheet(unsigned id, unsigned level,unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle) override;
131 void collectLineStyle(unsigned level, const boost::optional<double> &strokeWidth, const boost::optional<Colour> &c, const boost::optional<unsigned char> &linePattern,
132 const boost::optional<unsigned char> &startMarker, const boost::optional<unsigned char> &endMarker,
133 const boost::optional<unsigned char> &lineCap, const boost::optional<double> &rounding,
134 const boost::optional<long> &qsLineColour, const boost::optional<long> &qsLineMatrix) override;
135 void collectFillStyle(unsigned level, const boost::optional<Colour> &colourFG, const boost::optional<Colour> &colourBG,
136 const boost::optional<unsigned char> &fillPattern, const boost::optional<double> &fillFGTransparency,
137 const boost::optional<double> &fillBGTransparency, const boost::optional<unsigned char> &shadowPattern,
138 const boost::optional<Colour> &shfgc, const boost::optional<double> &shadowOffsetX, const boost::optional<double> &shadowOffsetY,
139 const boost::optional<long> &qsFillColour, const boost::optional<long> &qsShadowColour,
140 const boost::optional<long> &qsFillMatrix) override;
141 void collectFillStyle(unsigned level, const boost::optional<Colour> &colourFG, const boost::optional<Colour> &colourBG,
142 const boost::optional<unsigned char> &fillPattern, const boost::optional<double> &fillFGTransparency,
143 const boost::optional<double> &fillBGTransparency, const boost::optional<unsigned char> &shadowPattern,
144 const boost::optional<Colour> &shfgc) override;
145 void collectCharIXStyle(unsigned id, unsigned level, unsigned charCount, const boost::optional<VSDName> &font,
146 const boost::optional<Colour> &fontColour, const boost::optional<double> &fontSize, const boost::optional<bool> &bold,
147 const boost::optional<bool> &italic, const boost::optional<bool> &underline, const boost::optional<bool> &doubleunderline,
148 const boost::optional<bool> &strikeout, const boost::optional<bool> &doublestrikeout, const boost::optional<bool> &allcaps,
149 const boost::optional<bool> &initcaps, const boost::optional<bool> &smallcaps, const boost::optional<bool> &superscript,
150 const boost::optional<bool> &subscript, const boost::optional<double> &scaleWidth) override;
151 void collectParaIXStyle(unsigned id, unsigned level, unsigned charCount, const boost::optional<double> &indFirst,
152 const boost::optional<double> &indLeft, const boost::optional<double> &indRight, const boost::optional<double> &spLine,
153 const boost::optional<double> &spBefore, const boost::optional<double> &spAfter, const boost::optional<unsigned char> &align,
154 const boost::optional<unsigned char> &bullet, const boost::optional<VSDName> &bulletStr,
155 const boost::optional<VSDName> &bulletFont, const boost::optional<double> &bulletFontSize,
156 const boost::optional<double> &textPosAfterBullet, const boost::optional<unsigned> &flags) override;
157 void collectTextBlockStyle(unsigned level, const boost::optional<double> &leftMargin, const boost::optional<double> &rightMargin,
158 const boost::optional<double> &topMargin, const boost::optional<double> &bottomMargin,
159 const boost::optional<unsigned char> &verticalAlign, const boost::optional<bool> &isBgFilled,
160 const boost::optional<Colour> &bgColour, const boost::optional<double> &defaultTabStop,
161 const boost::optional<unsigned char> &textDirection) override;
162
163 // Field list
164 void collectFieldList(unsigned id, unsigned level) override;
165 void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId) override;
166 void collectNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId) override;
167
168 void collectMetaData(const librevenge::RVNGPropertyList &) override { }
169
170 // Temporary hack
171 void startPage(unsigned pageID) override;
172 void endPage() override;
173 void endPages() override {}
174
175 const VSDStyles &getStyleSheets() const
176 {
177 return m_styles;
178 }
179
180
181 private:
182 VSDStylesCollector(const VSDStylesCollector &);
183 VSDStylesCollector &operator=(const VSDStylesCollector &);
184
185 void _handleLevelChange(unsigned level);
186 void _flushShapeList();
187
188 unsigned m_currentLevel;
189 bool m_isShapeStarted;
190
191 double m_shadowOffsetX;
192 double m_shadowOffsetY;
193
194 unsigned m_currentShapeId;
195 std::map<unsigned, XForm> m_groupXForms;
196 std::map<unsigned, unsigned> m_groupMemberships;
197 std::vector<std::map<unsigned, XForm> > &m_groupXFormsSequence;
198 std::vector<std::map<unsigned, unsigned> > &m_groupMembershipsSequence;
199 std::list<unsigned> m_pageShapeOrder;
200 std::vector<std::list<unsigned> > &m_documentPageShapeOrders;
201 std::map<unsigned, std::list<unsigned> > m_groupShapeOrder;
202 std::list<unsigned> m_shapeList;
203
204 unsigned m_currentStyleSheet;
205 VSDStyles m_styles;
206
207 unsigned m_currentShapeLevel;
208 };
209
210 }
211
212 #endif /* VSDSTYLESCOLLECTOR_H */
213 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libvisio::VSDStylesCollector::collectInfiniteLine
void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2) override
Definition: VSDStylesCollector.cpp:154
libvisio::VSDStylesCollector::collectDefaultParaStyle
void collectDefaultParaStyle(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 char > &bullet, const boost::optional< VSDName > &bulletStr, const boost::optional< VSDName > &bulletFont, const boost::optional< double > &bulletFontSize, const boost::optional< double > &textPosAfterBullet, const boost::optional< unsigned > &flags) override
Definition: VSDStylesCollector.cpp:283
libvisio::VSDStylesCollector::m_shadowOffsetY
double m_shadowOffsetY
Definition: VSDStylesCollector.h:192
libvisio::VSDStylesCollector::collectMetaData
void collectMetaData(const librevenge::RVNGPropertyList &) override
Definition: VSDStylesCollector.h:168
libvisio::VSDStylesCollector::_handleLevelChange
void _handleLevelChange(unsigned level)
Definition: VSDStylesCollector.cpp:448
libvisio::VSDStylesCollector
Definition: VSDStylesCollector.h:25
libvisio::VSDStylesCollector::collectSplineEnd
void collectSplineEnd() override
Definition: VSDStylesCollector.cpp:150
libvisio::VSDStylesCollector::VSDStylesCollector
VSDStylesCollector(std::vector< std::map< unsigned, XForm > > &groupXFormsSequence, std::vector< std::map< unsigned, unsigned > > &groupMembershipsSequence, std::vector< std::list< unsigned > > &documentPageShapeOrders)
Definition: VSDStylesCollector.cpp:15
libvisio::VSDStylesCollector::collectFieldList
void collectFieldList(unsigned id, unsigned level) override
Definition: VSDStylesCollector.cpp:401
libvisio::VSDStylesCollector::collectMisc
void collectMisc(unsigned level, const VSDMisc &misc) override
Definition: VSDStylesCollector.cpp:246
libvisio::VSDStylesCollector::collectForeignDataType
void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height) override
Definition: VSDStylesCollector.cpp:218
libvisio::XForm
Definition: VSDTypes.h:23
libvisio::VSDStylesCollector::collectDocumentTheme
void collectDocumentTheme(const VSDXTheme *) override
Definition: VSDStylesCollector.h:34
VSDStylesCollector.h
libvisio::VSDCollector
Definition: VSDCollector.h:21
libvisio::VSDStylesCollector::collectParaIX
void collectParaIX(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 char > &bullet, const boost::optional< VSDName > &bulletStr, const boost::optional< VSDName > &bulletFont, const boost::optional< double > &bulletFontSize, const boost::optional< double > &textPosAfterBullet, const boost::optional< unsigned > &flags) override
Definition: VSDStylesCollector.cpp:271
libvisio::VSDStylesCollector::m_shadowOffsetX
double m_shadowOffsetX
Definition: VSDStylesCollector.h:191
libvisio::VSDStylesCollector::collectSplineStart
void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree) override
Definition: VSDStylesCollector.cpp:139
libvisio::VSDStylesCollector::collectFillStyle
void collectFillStyle(unsigned level, const boost::optional< Colour > &colourFG, const boost::optional< Colour > &colourBG, const boost::optional< unsigned char > &fillPattern, const boost::optional< double > &fillFGTransparency, const boost::optional< double > &fillBGTransparency, const boost::optional< unsigned char > &shadowPattern, const boost::optional< Colour > &shfgc, const boost::optional< double > &shadowOffsetX, const boost::optional< double > &shadowOffsetY, const boost::optional< long > &qsFillColour, const boost::optional< long > &qsShadowColour, const boost::optional< long > &qsFillMatrix) override
Definition: VSDStylesCollector.cpp:350
libvisio::VSDStylesCollector::collectTabsDataList
void collectTabsDataList(unsigned level, const std::map< unsigned, VSDTabSet > &tabSets) override
Definition: VSDStylesCollector.cpp:303
libvisio::VSDStylesCollector::m_groupMembershipsSequence
std::vector< std::map< unsigned, unsigned > > & m_groupMembershipsSequence
Definition: VSDStylesCollector.h:198
libvisio::VSDStylesCollector::collectMoveTo
void collectMoveTo(unsigned id, unsigned level, double x, double y) override
Definition: VSDStylesCollector.cpp:88
libvisio::VSDStylesCollector::collectCharIX
void collectCharIX(unsigned id, unsigned level, unsigned charCount, const boost::optional< VSDName > &font, const boost::optional< Colour > &fontColour, const boost::optional< double > &fontSize, const boost::optional< bool > &bold, const boost::optional< bool > &italic, const boost::optional< bool > &underline, const boost::optional< bool > &doubleunderline, const boost::optional< bool > &strikeout, const boost::optional< bool > &doublestrikeout, const boost::optional< bool > &allcaps, const boost::optional< bool > &initcaps, const boost::optional< bool > &smallcaps, const boost::optional< bool > &superscript, const boost::optional< bool > &subscript, const boost::optional< double > &scaleWidth) override
Definition: VSDStylesCollector.cpp:293
libvisio::VSDStylesCollector::collectParaIXStyle
void collectParaIXStyle(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 char > &bullet, const boost::optional< VSDName > &bulletStr, const boost::optional< VSDName > &bulletFont, const boost::optional< double > &bulletFontSize, const boost::optional< double > &textPosAfterBullet, const boost::optional< unsigned > &flags) override
Definition: VSDStylesCollector.cpp:380
libvisio::VSDStylesCollector::m_groupShapeOrder
std::map< unsigned, std::list< unsigned > > m_groupShapeOrder
Definition: VSDStylesCollector.h:201
libvisio::VSDStylesCollector::_flushShapeList
void _flushShapeList()
Definition: VSDStylesCollector.cpp:458
libvisio::VSDStylesCollector::collectTextBlockStyle
void collectTextBlockStyle(unsigned level, const boost::optional< double > &leftMargin, const boost::optional< double > &rightMargin, const boost::optional< double > &topMargin, const boost::optional< double > &bottomMargin, const boost::optional< unsigned char > &verticalAlign, const boost::optional< bool > &isBgFilled, const boost::optional< Colour > &bgColour, const boost::optional< double > &defaultTabStop, const boost::optional< unsigned char > &textDirection) override
Definition: VSDStylesCollector.cpp:392
libvisio::VSDStylesCollector::m_isShapeStarted
bool m_isShapeStarted
Definition: VSDStylesCollector.h:189
libvisio::VSDStylesCollector::collectEllipse
void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop) override
Definition: VSDStylesCollector.cpp:50
libvisio::VSDStylesCollector::collectTextBlock
void collectTextBlock(unsigned level, const boost::optional< double > &leftMargin, const boost::optional< double > &rightMargin, const boost::optional< double > &topMargin, const boost::optional< double > &bottomMargin, const boost::optional< unsigned char > &verticalAlign, const boost::optional< bool > &isBgFilled, const boost::optional< Colour > &bgColour, const boost::optional< double > &defaultTabStop, const boost::optional< unsigned char > &textDirection) override
Definition: VSDStylesCollector.cpp:317
libvisio::VSDStylesCollector::collectTxtXForm
void collectTxtXForm(unsigned level, const XForm &txtxform) override
Definition: VSDStylesCollector.cpp:204
libvisio::VSDStylesCollector::collectShapeData
void collectShapeData(unsigned id, unsigned level, unsigned char xType, unsigned char yType, unsigned degree, double lastKnot, std::vector< std::pair< double, double > > controlPoints, std::vector< double > knotVector, std::vector< double > weights) override
Definition: VSDStylesCollector.cpp:184
libvisio::VSDStylesCollector::m_currentShapeLevel
unsigned m_currentShapeLevel
Definition: VSDStylesCollector.h:207
libvisio::VSDStylesCollector::collectStyleSheet
void collectStyleSheet(unsigned id, unsigned level, unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle) override
Definition: VSDStylesCollector.cpp:336
libvisio::VSDStylesCollector::m_pageShapeOrder
std::list< unsigned > m_pageShapeOrder
Definition: VSDStylesCollector.h:199
libvisio::VSDStylesCollector::collectXFormData
void collectXFormData(unsigned level, const XForm &xform) override
Definition: VSDStylesCollector.cpp:197
libvisio::VSDStylesCollector::m_documentPageShapeOrders
std::vector< std::list< unsigned > > & m_documentPageShapeOrders
Definition: VSDStylesCollector.h:200
libvisio::VSDStylesCollector::VSDStylesCollector
VSDStylesCollector(const VSDStylesCollector &)
libvisio::VSDStylesCollector::collectOLEList
void collectOLEList(unsigned id, unsigned level) override
Definition: VSDStylesCollector.h:37
libvisio::VSDStylesCollector::collectLineStyle
void collectLineStyle(unsigned level, const boost::optional< double > &strokeWidth, const boost::optional< Colour > &c, const boost::optional< unsigned char > &linePattern, const boost::optional< unsigned char > &startMarker, const boost::optional< unsigned char > &endMarker, const boost::optional< unsigned char > &lineCap, const boost::optional< double > &rounding, const boost::optional< long > &qsLineColour, const boost::optional< long > &qsLineMatrix) override
Definition: VSDStylesCollector.cpp:341
libvisio::VSDStylesCollector::collectRelQuadBezTo
void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b) override
Definition: VSDStylesCollector.cpp:179
VSDStyles.h
libvisio::VSDStylesCollector::collectDefaultCharStyle
void collectDefaultCharStyle(unsigned charCount, const boost::optional< VSDName > &font, const boost::optional< Colour > &fontColour, const boost::optional< double > &fontSize, const boost::optional< bool > &bold, const boost::optional< bool > &italic, const boost::optional< bool > &underline, const boost::optional< bool > &doubleunderline, const boost::optional< bool > &strikeout, const boost::optional< bool > &doublestrikeout, const boost::optional< bool > &allcaps, const boost::optional< bool > &initcaps, const boost::optional< bool > &smallcaps, const boost::optional< bool > &superscript, const boost::optional< bool > &subscript, const boost::optional< double > &scaleWidth) override
Definition: VSDStylesCollector.cpp:308
VSDCollector.h
libvisio::VSDStylesCollector::collectLayer
void collectLayer(unsigned id, unsigned level, const VSDLayer &layer) override
Definition: VSDStylesCollector.cpp:256
libvisio::VSDStylesCollector::collectArcTo
void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow) override
Definition: VSDStylesCollector.cpp:98
libvisio::VSDStylesCollector::collectPolylineTo
void collectPolylineTo(unsigned id, unsigned level, double x, double y, unsigned char xType, unsigned char yType, const std::vector< std::pair< double, double > > &points) override
Definition: VSDStylesCollector.cpp:122
libvisio::VSDStylesCollector::m_styles
VSDStyles m_styles
Definition: VSDStylesCollector.h:205
libvisio::VSDStylesCollector::m_groupXFormsSequence
std::vector< std::map< unsigned, XForm > > & m_groupXFormsSequence
Definition: VSDStylesCollector.h:197
libvisio::VSDStylesCollector::m_currentLevel
unsigned m_currentLevel
Definition: VSDStylesCollector.h:188
libvisio::VSDStylesCollector::collectOLEData
void collectOLEData(unsigned id, unsigned level, const librevenge::RVNGBinaryData &oleData) override
Definition: VSDStylesCollector.cpp:45
libvisio::VSDStylesCollector::collectLayerMem
void collectLayerMem(unsigned level, const VSDName &layerMem) override
Definition: VSDStylesCollector.cpp:251
libvisio::VSDStylesCollector::collectLine
void collectLine(unsigned level, const boost::optional< double > &strokeWidth, const boost::optional< Colour > &c, const boost::optional< unsigned char > &linePattern, const boost::optional< unsigned char > &startMarker, const boost::optional< unsigned char > &endMarker, const boost::optional< unsigned char > &lineCap, const boost::optional< double > &rounding, const boost::optional< long > &qsLineColour, const boost::optional< long > &qsLineMatrix) override
Definition: VSDStylesCollector.cpp:56
libvisio::VSDStylesCollector::collectFillAndShadow
void collectFillAndShadow(unsigned level, const boost::optional< Colour > &colourFG, const boost::optional< Colour > &colourBG, const boost::optional< unsigned char > &fillPattern, const boost::optional< double > &fillFGTransparency, const boost::optional< double > &fillBGTransparency, const boost::optional< unsigned char > &shadowPattern, const boost::optional< Colour > &shfgc, const boost::optional< double > &shadowOffsetX, const boost::optional< double > &shadowOffsetY, const boost::optional< long > &qsFc, const boost::optional< long > &qsSc, const boost::optional< long > &qsLm) override
Definition: VSDStylesCollector.cpp:65
libvisio::VSDStylesCollector::collectNURBSTo
void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, unsigned char xType, unsigned char yType, unsigned degree, const std::vector< std::pair< double, double > > &ctrlPnts, const std::vector< double > &kntVec, const std::vector< double > &weights) override
Definition: VSDStylesCollector.cpp:103
libvisio::VSDStylesCollector::endPage
void endPage() override
Definition: VSDStylesCollector.cpp:424
libvisio::VSDStylesCollector::m_shapeList
std::list< unsigned > m_shapeList
Definition: VSDStylesCollector.h:202
libvisio::VSDStylesCollector::collectPageProps
void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale) override
Definition: VSDStylesCollector.cpp:224
libvisio::PolylineData
Definition: VSDTypes.h:115
libvisio::VSDLayer
Definition: VSDLayerList.h:22
libvisio::VSDStylesCollector::collectName
void collectName(unsigned id, unsigned level, const librevenge::RVNGBinaryData &name, TextFormat format) override
Definition: VSDStylesCollector.cpp:325
libvisio::VSDStyles
Definition: VSDStyles.h:495
libvisio::VSDMisc
Definition: VSDTypes.h:204
libvisio::VSDStylesCollector::collectRelMoveTo
void collectRelMoveTo(unsigned id, unsigned level, double x, double y) override
Definition: VSDStylesCollector.cpp:174
libvisio::VSDStylesCollector::collectNumericField
void collectNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId) override
Definition: VSDStylesCollector.cpp:411
libvisio::TextFormat
TextFormat
Definition: VSDTypes.h:150
libvisio::VSDStylesCollector::collectShape
void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle) override
Definition: VSDStylesCollector.cpp:235
libvisio::VSDXTheme
Definition: VSDXTheme.h:77
libvisio::VSDStylesCollector::startPage
void startPage(unsigned pageID) override
Definition: VSDStylesCollector.cpp:416
libvisio::VSDStylesCollector::m_groupXForms
std::map< unsigned, XForm > m_groupXForms
Definition: VSDStylesCollector.h:195
libvisio::VSDStylesCollector::collectRelEllipticalArcTo
void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override
Definition: VSDStylesCollector.cpp:164
libvisio::VSDStylesCollector::collectLineTo
void collectLineTo(unsigned id, unsigned level, double x, double y) override
Definition: VSDStylesCollector.cpp:93
libvisio::VSDStylesCollector::operator=
VSDStylesCollector & operator=(const VSDStylesCollector &)
libvisio::VSDStylesCollector::endPages
void endPages() override
Definition: VSDStylesCollector.h:173
libvisio::VSDStylesCollector::collectTextField
void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId) override
Definition: VSDStylesCollector.cpp:406
libvisio::VSDStylesCollector::collectPage
void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName) override
Definition: VSDStylesCollector.cpp:230
libvisio::VSDName
Definition: VSDTypes.h:171
libvisio::VSDStylesCollector::collectRelCubBezTo
void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override
Definition: VSDStylesCollector.cpp:159
MINUS_ONE
#define MINUS_ONE
Definition: VSDTypes.h:18
libvisio::VSDStylesCollector::collectNameList
void collectNameList(unsigned id, unsigned level) override
Definition: VSDStylesCollector.h:118
libvisio::VSDStylesCollector::collectCharIXStyle
void collectCharIXStyle(unsigned id, unsigned level, unsigned charCount, const boost::optional< VSDName > &font, const boost::optional< Colour > &fontColour, const boost::optional< double > &fontSize, const boost::optional< bool > &bold, const boost::optional< bool > &italic, const boost::optional< bool > &underline, const boost::optional< bool > &doubleunderline, const boost::optional< bool > &strikeout, const boost::optional< bool > &doublestrikeout, const boost::optional< bool > &allcaps, const boost::optional< bool > &initcaps, const boost::optional< bool > &smallcaps, const boost::optional< bool > &superscript, const boost::optional< bool > &subscript, const boost::optional< double > &scaleWidth) override
Definition: VSDStylesCollector.cpp:368
libvisio_utils.h
libvisio::VSDStylesCollector::collectRelLineTo
void collectRelLineTo(unsigned id, unsigned level, double x, double y) override
Definition: VSDStylesCollector.cpp:169
libvisio::VSDStylesCollector::getStyleSheets
const VSDStyles & getStyleSheets() const
Definition: VSDStylesCollector.h:175
libvisio::VSDStylesCollector::~VSDStylesCollector
~VSDStylesCollector() override
Definition: VSDStylesCollector.h:32
libvisio::NURBSData
Definition: VSDTypes.h:94
libvisio::VSDStylesCollector::m_groupMemberships
std::map< unsigned, unsigned > m_groupMemberships
Definition: VSDStylesCollector.h:196
libvisio::VSDStylesCollector::collectGeometry
void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow) override
Definition: VSDStylesCollector.cpp:83
libvisio::VSDStylesCollector::collectText
void collectText(unsigned level, const librevenge::RVNGBinaryData &textStream, TextFormat format) override
Definition: VSDStylesCollector.cpp:266
libvisio::VSDStylesCollector::collectForeignData
void collectForeignData(unsigned level, const librevenge::RVNGBinaryData &binaryData) override
Definition: VSDStylesCollector.cpp:40
libvisio::VSDStylesCollector::collectSplineKnot
void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot) override
Definition: VSDStylesCollector.cpp:145
libvisio::VSDStylesCollector::collectUnhandledChunk
void collectUnhandledChunk(unsigned id, unsigned level) override
Definition: VSDStylesCollector.cpp:261
libvisio::VSDStylesCollector::collectShapesOrder
void collectShapesOrder(unsigned id, unsigned level, const std::vector< unsigned > &shapeIds) override
Definition: VSDStylesCollector.cpp:209
libvisio
Definition: libvisio_utils.h:49
libvisio::VSDStylesCollector::m_currentStyleSheet
unsigned m_currentStyleSheet
Definition: VSDStylesCollector.h:204
libvisio::VSDStylesCollector::collectPageSheet
void collectPageSheet(unsigned id, unsigned level) override
Definition: VSDStylesCollector.cpp:330
libvisio::VSDStylesCollector::collectEllipticalArcTo
void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc) override
Definition: VSDStylesCollector.cpp:34
libvisio::VSDStylesCollector::m_currentShapeId
unsigned m_currentShapeId
Definition: VSDStylesCollector.h:194
VSDParser.h