VSDContentCollector.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 VSDCONTENTCOLLECTOR_H
11#define VSDCONTENTCOLLECTOR_H
12
13#include <locale.h>
14#include <sstream>
15#include <string>
16#include <cmath>
17#include <map>
18#include <memory>
19#include <list>
20#include <vector>
21#include "libvisio_utils.h"
22#include "VSDCollector.h"
23#include "VSDParser.h"
24#include "VSDOutputElementList.h"
25#include "VSDStyles.h"
26#include "VSDPages.h"
27
28 namespace libvisio
29{
30
31 class VSDContentCollector : public VSDCollector
32{
33 public:
34 VSDContentCollector(
35 librevenge::RVNGDrawingInterface *painter,
36 std::vector<std::map<unsigned, XForm> > &groupXFormsSequence,
37 std::vector<std::map<unsigned, unsigned> > &groupMembershipsSequence,
38 std::vector<std::list<unsigned> > &documentPageShapeOrders,
39 VSDStyles &styles, VSDStencils &stencils, const std::optional<unsigned> &varColInd,
40 const std::optional<unsigned> &varStyInd
41 );
42
43 void collectDocumentTheme(const VSDXTheme *theme) override;
44 void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc) override;
45 void collectForeignData(unsigned level, const librevenge::RVNGBinaryData &binaryData) override;
46 void collectOLEList(unsigned id, unsigned level) override;
47 void collectOLEData(unsigned id, unsigned level, const librevenge::RVNGBinaryData &oleData) override;
48 void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop) override;
49 void collectLine(unsigned level, const std::optional<double> &strokeWidth, const std::optional<Colour> &c, const std::optional<unsigned char> &linePattern,
50 const std::optional<unsigned char> &startMarker, const std::optional<unsigned char> &endMarker,
51 const std::optional<unsigned char> &lineCap, const std::optional<double> &rounding,
52 const std::optional<long> &qsLineColour, const std::optional<long> &qsLineMatrix) override;
53 void collectFillAndShadow(unsigned level, const std::optional<Colour> &colourFG, const std::optional<Colour> &colourBG,
54 const std::optional<unsigned char> &fillPattern, const std::optional<double> &fillFGTransparency,
55 const std::optional<double> &fillBGTransparency, const std::optional<unsigned char> &shadowPattern,
56 const std::optional<Colour> &shfgc, const std::optional<double> &shadowOffsetX, const std::optional<double> &shadowOffsetY,
57 const std::optional<long> &qsFc, const std::optional<long> &qsSc, const std::optional<long> &qsLm) override;
58 void collectFillAndShadow(unsigned level, const std::optional<Colour> &colourFG, const std::optional<Colour> &colourBG,
59 const std::optional<unsigned char> &fillPattern, const std::optional<double> &fillFGTransparency,
60 const std::optional<double> &fillBGTransparency, const std::optional<unsigned char> &shadowPattern,
61 const std::optional<Colour> &shfgc) override;
62 void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow) override;
63 void collectMoveTo(unsigned id, unsigned level, double x, double y) override;
64 void collectLineTo(unsigned id, unsigned level, double x, double y) override;
65 void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow) override;
66 void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, unsigned char xType, unsigned char yType, unsigned degree,
67 const std::vector<std::pair<double, double> > &ctrlPnts, const std::vector<double> &kntVec, const std::vector<double> &weights) override;
68 void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, unsigned dataID) override;
69 void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, const NURBSData &data) override;
70 void collectPolylineTo(unsigned id, unsigned level, double x, double y, unsigned char xType, unsigned char yType,
71 const std::vector<std::pair<double, double> > &points) override;
72 void collectPolylineTo(unsigned id, unsigned level, double x, double y, unsigned dataID) override;
73 void collectPolylineTo(unsigned id, unsigned level, double x, double y, const PolylineData &data) override;
74 void collectShapeData(unsigned id, unsigned level, unsigned char xType, unsigned char yType, unsigned degree, double lastKnot,
75 std::vector<std::pair<double, double> > controlPoints, std::vector<double> knotVector, std::vector<double> weights) override;
76 void collectShapeData(unsigned id, unsigned level, unsigned char xType, unsigned char yType, std::vector<std::pair<double, double> > points) override;
77 void collectXFormData(unsigned level, const XForm &xform) override;
78 void collectTxtXForm(unsigned level, const XForm &txtxform) override;
79 void collectShapesOrder(unsigned id, unsigned level, const std::vector<unsigned> &shapeIds) override;
80 void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height) override;
81 void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale,
82 unsigned char drawingScaleUnit, const std::optional<unsigned> variationColorIndex, const std::optional<unsigned> variationStyleIndex) override;
83 void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName) override;
84 void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle, const VSDName &aShapeType) override;
85 void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree) override;
86 void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot) override;
87 void collectSplineEnd() override;
88 void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2) override;
89 void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override;
90 void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override;
91 void collectRelLineTo(unsigned id, unsigned level, double x, double y) override;
92 void collectRelMoveTo(unsigned id, unsigned level, double x, double y) override;
93 void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b) override;
94
95 void collectUnhandledChunk(unsigned id, unsigned level) override;
96
97 void collectText(unsigned level, const librevenge::RVNGBinaryData &textStream, TextFormat format) override;
98 void collectCharIX(unsigned id, unsigned level, unsigned charCount, const std::optional<VSDName> &font,
99 const std::optional<Colour> &fontColour, const std::optional<double> &fontSize, const std::optional<bool> &bold,
100 const std::optional<bool> &italic, const std::optional<bool> &underline, const std::optional<bool> &doubleunderline,
101 const std::optional<bool> &strikeout, const std::optional<bool> &doublestrikeout, const std::optional<bool> &allcaps,
102 const std::optional<bool> &initcaps, const std::optional<bool> &smallcaps, const std::optional<bool> &superscript,
103 const std::optional<bool> &subscript, const std::optional<double> &scaleWidth) override;
104 void collectDefaultCharStyle(unsigned charCount, const std::optional<VSDName> &font, const std::optional<Colour> &fontColour,
105 const std::optional<double> &fontSize, const std::optional<bool> &bold, const std::optional<bool> &italic,
106 const std::optional<bool> &underline, const std::optional<bool> &doubleunderline, const std::optional<bool> &strikeout,
107 const std::optional<bool> &doublestrikeout, const std::optional<bool> &allcaps, const std::optional<bool> &initcaps,
108 const std::optional<bool> &smallcaps, const std::optional<bool> &superscript, const std::optional<bool> &subscript,
109 const std::optional<double> &scaleWidth) override;
110 void collectParaIX(unsigned id, unsigned level, unsigned charCount, const std::optional<double> &indFirst,
111 const std::optional<double> &indLeft, const std::optional<double> &indRight, const std::optional<double> &spLine,
112 const std::optional<double> &spBefore, const std::optional<double> &spAfter, const std::optional<unsigned char> &align,
113 const std::optional<unsigned char> &bullet, const std::optional<VSDName> &bulletStr, const std::optional<VSDName> &bulletFont,
114 const std::optional<double> &bulletFontSize, const std::optional<double> &textPosAfterBullet,
115 const std::optional<unsigned> &flags) override;
116 void collectDefaultParaStyle(unsigned charCount, const std::optional<double> &indFirst, const std::optional<double> &indLeft,
117 const std::optional<double> &indRight, const std::optional<double> &spLine, const std::optional<double> &spBefore,
118 const std::optional<double> &spAfter, const std::optional<unsigned char> &align,
119 const std::optional<unsigned char> &bullet, const std::optional<VSDName> &bulletStr,
120 const std::optional<VSDName> &bulletFont, const std::optional<double> &bulletFontSize,
121 const std::optional<double> &textPosAfterBullet, const std::optional<unsigned> &flags) override;
122 void collectTextBlock(unsigned level, const std::optional<double> &leftMargin, const std::optional<double> &rightMargin,
123 const std::optional<double> &topMargin, const std::optional<double> &bottomMargin,
124 const std::optional<unsigned char> &verticalAlign, const std::optional<bool> &isBgFilled,
125 const std::optional<Colour> &bgColour, const std::optional<double> &defaultTabStop,
126 const std::optional<unsigned char> &textDirection) override;
127 void collectNameList(unsigned id, unsigned level) override;
128 void collectName(unsigned id, unsigned level, const librevenge::RVNGBinaryData &name, TextFormat format) override;
129 void collectPageSheet(unsigned id, unsigned level) override;
130 void collectMisc(unsigned level, const VSDMisc &misc) override;
131 void collectLayer(unsigned id, unsigned level, const VSDLayer &layer) override;
132 void collectLayerMem(unsigned level, const VSDName &layerMem) override;
133 void collectTabsDataList(unsigned level, const std::map<unsigned, VSDTabSet> &tabSets) override;
134
135 // Style collectors
136 void collectStyleSheet(unsigned id, unsigned level, unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle) override;
137 void collectLineStyle(unsigned level, const std::optional<double> &strokeWidth, const std::optional<Colour> &c, const std::optional<unsigned char> &linePattern,
138 const std::optional<unsigned char> &startMarker, const std::optional<unsigned char> &endMarker,
139 const std::optional<unsigned char> &lineCap, const std::optional<double> &rounding,
140 const std::optional<long> &qsLineColour, const std::optional<long> &qsLineMatrix) override;
141 void collectFillStyle(unsigned level, const std::optional<Colour> &colourFG, const std::optional<Colour> &colourBG,
142 const std::optional<unsigned char> &fillPattern, const std::optional<double> &fillFGTransparency,
143 const std::optional<double> &fillBGTransparency, const std::optional<unsigned char> &shadowPattern,
144 const std::optional<Colour> &shfgc, const std::optional<double> &shadowOffsetX, const std::optional<double> &shadowOffsetY,
145 const std::optional<long> &qsFillColour, const std::optional<long> &qsShadowColour,
146 const std::optional<long> &qsFillMatrix) override;
147 void collectFillStyle(unsigned level, const std::optional<Colour> &colourFG, const std::optional<Colour> &colourBG,
148 const std::optional<unsigned char> &fillPattern, const std::optional<double> &fillFGTransparency,
149 const std::optional<double> &fillBGTransparency, const std::optional<unsigned char> &shadowPattern,
150 const std::optional<Colour> &shfgc) override;
151 void collectCharIXStyle(unsigned id, unsigned level, unsigned charCount, const std::optional<VSDName> &font,
152 const std::optional<Colour> &fontColour, const std::optional<double> &fontSize, const std::optional<bool> &bold,
153 const std::optional<bool> &italic, const std::optional<bool> &underline, const std::optional<bool> &doubleunderline,
154 const std::optional<bool> &strikeout, const std::optional<bool> &doublestrikeout, const std::optional<bool> &allcaps,
155 const std::optional<bool> &initcaps, const std::optional<bool> &smallcaps, const std::optional<bool> &superscript,
156 const std::optional<bool> &subscript, const std::optional<double> &scaleWidth) override;
157 void collectParaIXStyle(unsigned id, unsigned level, unsigned charCount, const std::optional<double> &indFirst,
158 const std::optional<double> &indLeft, const std::optional<double> &indRight, const std::optional<double> &spLine,
159 const std::optional<double> &spBefore, const std::optional<double> &spAfter, const std::optional<unsigned char> &align,
160 const std::optional<unsigned char> &bullet, const std::optional<VSDName> &bulletStr,
161 const std::optional<VSDName> &bulletFont, const std::optional<double> &bulletFontSize,
162 const std::optional<double> &textPosAfterBullet, const std::optional<unsigned> &flags) override;
163 void collectTextBlockStyle(unsigned level, const std::optional<double> &leftMargin, const std::optional<double> &rightMargin,
164 const std::optional<double> &topMargin, const std::optional<double> &bottomMargin,
165 const std::optional<unsigned char> &verticalAlign, const std::optional<bool> &isBgFilled,
166 const std::optional<Colour> &bgColour, const std::optional<double> &defaultTabStop,
167 const std::optional<unsigned char> &textDirection) override;
168
169 void collectMetaData(const librevenge::RVNGPropertyList &metaData) override;
170
171
172 // Field list
173 void collectFieldList(unsigned id, unsigned level) override;
174 void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId) override;
175 void collectNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId) override;
176
177 void startPage(unsigned pageId) override;
178 void endPage() override;
179 void endPages() override;
180
181
182 private:
183 VSDContentCollector(const VSDContentCollector &);
184 VSDContentCollector &operator=(const VSDContentCollector &);
185 librevenge::RVNGDrawingInterface *m_painter;
186
187 void applyXForm(double &x, double &y, const XForm &xform);
188
189 void transformPoint(double &x, double &y, XForm *txtxform = nullptr);
190 void transformAngle(double &angle, XForm *txtxform = nullptr);
191 void transformFlips(bool &flipX, bool &flipY);
192
193 double _NURBSBasis(unsigned knot, unsigned degree, double point, const std::vector<double> &knotVector);
194
195 void _flushShape();
196 void _flushCurrentPath(unsigned id);
197 void _flushText();
198 void _flushCurrentForeignData();
199 void _flushCurrentPage();
200
201 void _handleLevelChange(unsigned level);
202 bool _isDefaultShapeFormat();
203
204 void _handleForeignData(const librevenge::RVNGBinaryData &data);
205
206 void _lineProperties(const VSDLineStyle &style, librevenge::RVNGPropertyList &styleProps);
207 void _fillAndShadowProperties(const VSDFillStyle &style, librevenge::RVNGPropertyList &styleProps);
208
209 void _applyLinePattern();
210 const char *_linePropertiesMarkerViewbox(unsigned marker);
211 const char *_linePropertiesMarkerPath(unsigned marker);
212 double _linePropertiesMarkerScale(unsigned marker);
213
214 void appendCharacters(librevenge::RVNGString &text, const std::vector<unsigned char> &characters, TextFormat format);
215 void appendCharacters(librevenge::RVNGString &text, const std::vector<unsigned char> &characters);
216 void _convertDataToString(librevenge::RVNGString &result, const librevenge::RVNGBinaryData &data, TextFormat format);
217 bool parseFormatId(const char *formatString, unsigned short &result);
218 void _appendField(librevenge::RVNGString &text);
219
220 // NURBS processing functions
221 bool _isUniform(const std::vector<double> &weights) const;
222 void _generatePolylineFromNURBS(unsigned degree, const std::vector<std::pair<double, double> > &controlPoints,
223 const std::vector<double> &knotVector, const std::vector<double> &weights);
224 void _generateBezierSegmentsFromNURBS(unsigned degree, const std::vector<std::pair<double, double> > &controlPoints,
225 const std::vector<double> &knotVector);
226 void _outputCubicBezierSegment(const std::vector<std::pair<double, double> > &points);
227 void _outputQuadraticBezierSegment(const std::vector<std::pair<double, double> > &points);
228 void _outputLinearBezierSegment(const std::vector<std::pair<double, double> > &points);
229 void _appendVisibleAndPrintable(librevenge::RVNGPropertyList &propList);
230 void _bulletFromParaFormat(VSDBullet &bullet, const VSDParaStyle &paraStyle);
231 void _listLevelFromBullet(librevenge::RVNGPropertyList &propList, const VSDBullet &bullet);
232 void _fillParagraphProperties(librevenge::RVNGPropertyList &propList, const VSDParaStyle &style);
233 void _fillTabSet(librevenge::RVNGPropertyList &propList, const VSDTabSet &tabSet);
234 void _fillCharProperties(librevenge::RVNGPropertyList &propList, const VSDCharStyle &style);
235 void _convertToPath(const std::vector<librevenge::RVNGPropertyList> &segmentVector,
236 librevenge::RVNGPropertyListVector &path, double rounding);
237
238 bool m_isPageStarted;
239 double m_pageWidth;
240 double m_pageHeight;
241 double m_shadowOffsetX;
242 double m_shadowOffsetY;
243 double m_scale;
244 unsigned char m_defaultDrawingUnit;
245 double m_x;
246 double m_y;
247 double m_originalX;
248 double m_originalY;
249 XForm m_xform;
250 std::unique_ptr<XForm> m_txtxform;
251 VSDMisc m_misc;
252 std::vector<librevenge::RVNGPropertyList> m_currentFillGeometry;
253 std::vector<librevenge::RVNGPropertyList> m_currentLineGeometry;
254 std::map<unsigned, XForm> *m_groupXForms;
255 librevenge::RVNGBinaryData m_currentForeignData;
256 librevenge::RVNGBinaryData m_currentOLEData;
257 librevenge::RVNGPropertyList m_currentForeignProps;
258 unsigned m_currentShapeId;
259 unsigned m_parentShapeId;
260 unsigned m_foreignType;
261 unsigned m_foreignFormat;
262 double m_foreignOffsetX;
263 double m_foreignOffsetY;
264 double m_foreignWidth;
265 double m_foreignHeight;
266 bool m_noLine;
267 bool m_noFill;
268 bool m_noShow;
269 std::map<unsigned short, VSDFont> m_fonts;
270 unsigned m_currentLevel;
271 bool m_isShapeStarted;
272 std::vector<std::map<unsigned, XForm> > &m_groupXFormsSequence;
273 std::vector<std::map<unsigned, unsigned> > &m_groupMembershipsSequence;
274 std::vector<std::map<unsigned, unsigned> >::iterator m_groupMemberships;
275 unsigned m_currentPageNumber;
276 VSDOutputElementList *m_shapeOutputDrawing, *m_shapeOutputText;
277 std::map<unsigned, VSDOutputElementList> m_pageOutputDrawing;
278 std::map<unsigned, VSDOutputElementList> m_pageOutputText;
279 std::vector<std::list<unsigned> > &m_documentPageShapeOrders;
280 std::vector<std::list<unsigned> >::iterator m_pageShapeOrder;
281 bool m_isFirstGeometry;
282
283 std::map<unsigned, NURBSData> m_NURBSData;
284 std::map<unsigned, PolylineData> m_polylineData;
285 libvisio::VSDName m_currentText;
286 std::map<unsigned, librevenge::RVNGString> m_names, m_stencilNames;
287 std::vector<librevenge::RVNGString> m_fields;
288 VSDFieldList m_stencilFields;
289 unsigned m_fieldIndex;
290 std::vector<VSDCharStyle> m_charFormats;
291 std::vector<VSDParaStyle> m_paraFormats;
292
293 VSDLineStyle m_lineStyle;
294 VSDFillStyle m_fillStyle;
295 VSDTextBlockStyle m_textBlockStyle;
296
297 VSDCharStyle m_defaultCharStyle;
298 VSDParaStyle m_defaultParaStyle;
299
300 unsigned m_currentStyleSheet;
301 VSDStyles m_styles;
302
303 std::optional<unsigned> m_variationColorIndex;
304 std::optional<unsigned> m_variationStyleIndex;
305
306 VSDStencils m_stencils;
307 const VSDShape *m_stencilShape;
308 bool m_isStencilStarted;
309
310 unsigned m_currentGeometryCount;
311
312 unsigned m_backgroundPageID;
313 unsigned m_currentPageID;
314 VSDPage m_currentPage;
315 VSDPages m_pages;
316
317 VSDLayerList m_layerList;
318
319 std::vector<std::pair<double, double> > m_splineControlPoints;
320 std::vector<double> m_splineKnotVector;
321 double m_splineX, m_splineY;
322 double m_splineLastKnot;
323 unsigned m_splineDegree;
324 unsigned m_splineLevel;
325 unsigned m_currentShapeLevel;
326 bool m_isBackgroundPage;
327
328 VSDLayerList m_currentLayerList;
329 std::vector<unsigned> m_currentLayerMem;
330 std::vector<VSDTabSet> m_tabSets;
331
332 const VSDXTheme *m_documentTheme;
333 librevenge::RVNGString m_currentShapeType;
334};
335
336} // namespace libvisio
337
338#endif /* VSDCONTENTCOLLECTOR_H */
339/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
VSDCollector.h
VSDOutputElementList.h
VSDPages.h
VSDParser.h
VSDStyles.h
libvisio::VSDCollector::VSDCollector
VSDCollector()
Definition VSDCollector.h:23
libvisio::VSDContentCollector::_flushText
void _flushText()
Definition VSDContentCollector.cpp:669
libvisio::VSDContentCollector::_generatePolylineFromNURBS
void _generatePolylineFromNURBS(unsigned degree, const std::vector< std::pair< double, double > > &controlPoints, const std::vector< double > &knotVector, const std::vector< double > &weights)
Definition VSDContentCollector.cpp:2131
libvisio::VSDContentCollector::_flushCurrentPage
void _flushCurrentPage()
Definition VSDContentCollector.cpp:1336
libvisio::VSDContentCollector::m_splineDegree
unsigned m_splineDegree
Definition VSDContentCollector.h:323
libvisio::VSDContentCollector::collectForeignData
void collectForeignData(unsigned level, const librevenge::RVNGBinaryData &binaryData) override
Definition VSDContentCollector.cpp:1710
libvisio::VSDContentCollector::m_currentOLEData
librevenge::RVNGBinaryData m_currentOLEData
Definition VSDContentCollector.h:256
libvisio::VSDContentCollector::m_lineStyle
VSDLineStyle m_lineStyle
Definition VSDContentCollector.h:293
libvisio::VSDContentCollector::collectRelEllipticalArcTo
void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override
Definition VSDContentCollector.cpp:1634
libvisio::VSDContentCollector::m_stencilShape
const VSDShape * m_stencilShape
Definition VSDContentCollector.h:307
libvisio::VSDContentCollector::collectInfiniteLine
void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2) override
Definition VSDContentCollector.cpp:1515
libvisio::VSDContentCollector::_outputQuadraticBezierSegment
void _outputQuadraticBezierSegment(const std::vector< std::pair< double, double > > &points)
Definition VSDContentCollector.cpp:1977
libvisio::VSDContentCollector::m_currentStyleSheet
unsigned m_currentStyleSheet
Definition VSDContentCollector.h:300
libvisio::VSDContentCollector::m_isPageStarted
bool m_isPageStarted
Definition VSDContentCollector.h:238
libvisio::VSDContentCollector::m_foreignOffsetY
double m_foreignOffsetY
Definition VSDContentCollector.h:263
libvisio::VSDContentCollector::_linePropertiesMarkerViewbox
const char * _linePropertiesMarkerViewbox(unsigned marker)
Definition VSDContentCollector.cpp:152
libvisio::VSDContentCollector::m_currentForeignData
librevenge::RVNGBinaryData m_currentForeignData
Definition VSDContentCollector.h:255
libvisio::VSDContentCollector::m_currentFillGeometry
std::vector< librevenge::RVNGPropertyList > m_currentFillGeometry
Definition VSDContentCollector.h:252
libvisio::VSDContentCollector::m_currentLayerList
VSDLayerList m_currentLayerList
Definition VSDContentCollector.h:328
libvisio::VSDContentCollector::m_pageHeight
double m_pageHeight
Definition VSDContentCollector.h:240
libvisio::VSDContentCollector::m_shapeOutputDrawing
VSDOutputElementList * m_shapeOutputDrawing
Definition VSDContentCollector.h:276
libvisio::VSDContentCollector::m_foreignFormat
unsigned m_foreignFormat
Definition VSDContentCollector.h:261
libvisio::VSDContentCollector::collectLine
void collectLine(unsigned level, const std::optional< double > &strokeWidth, const std::optional< Colour > &c, const std::optional< unsigned char > &linePattern, const std::optional< unsigned char > &startMarker, const std::optional< unsigned char > &endMarker, const std::optional< unsigned char > &lineCap, const std::optional< double > &rounding, const std::optional< long > &qsLineColour, const std::optional< long > &qsLineMatrix) override
Definition VSDContentCollector.cpp:1682
libvisio::VSDContentCollector::m_pageOutputText
std::map< unsigned, VSDOutputElementList > m_pageOutputText
Definition VSDContentCollector.h:278
libvisio::VSDContentCollector::m_splineLastKnot
double m_splineLastKnot
Definition VSDContentCollector.h:322
libvisio::VSDContentCollector::operator=
VSDContentCollector & operator=(const VSDContentCollector &)
libvisio::VSDContentCollector::transformFlips
void transformFlips(bool &flipX, bool &flipY)
Definition VSDContentCollector.cpp:2512
libvisio::VSDContentCollector::m_currentLineGeometry
std::vector< librevenge::RVNGPropertyList > m_currentLineGeometry
Definition VSDContentCollector.h:253
libvisio::VSDContentCollector::m_textBlockStyle
VSDTextBlockStyle m_textBlockStyle
Definition VSDContentCollector.h:295
libvisio::VSDContentCollector::m_styles
VSDStyles m_styles
Definition VSDContentCollector.h:301
libvisio::VSDContentCollector::m_groupMembershipsSequence
std::vector< std::map< unsigned, unsigned > > & m_groupMembershipsSequence
Definition VSDContentCollector.h:273
libvisio::VSDContentCollector::m_fonts
std::map< unsigned short, VSDFont > m_fonts
Definition VSDContentCollector.h:269
libvisio::VSDContentCollector::m_currentPage
VSDPage m_currentPage
Definition VSDContentCollector.h:314
libvisio::VSDContentCollector::_linePropertiesMarkerScale
double _linePropertiesMarkerScale(unsigned marker)
Definition VSDContentCollector.cpp:301
libvisio::VSDContentCollector::collectSplineEnd
void collectSplineEnd() override
Definition VSDContentCollector.cpp:2753
libvisio::VSDContentCollector::_outputLinearBezierSegment
void _outputLinearBezierSegment(const std::vector< std::pair< double, double > > &points)
Definition VSDContentCollector.cpp:2000
libvisio::VSDContentCollector::m_shadowOffsetY
double m_shadowOffsetY
Definition VSDContentCollector.h:242
libvisio::VSDContentCollector::_convertDataToString
void _convertDataToString(librevenge::RVNGString &result, const librevenge::RVNGBinaryData &data, TextFormat format)
Definition VSDContentCollector.cpp:2859
libvisio::VSDContentCollector::m_splineY
double m_splineY
Definition VSDContentCollector.h:321
libvisio::VSDContentCollector::collectStyleSheet
void collectStyleSheet(unsigned id, unsigned level, unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle) override
Definition VSDContentCollector.cpp:2884
libvisio::VSDContentCollector::m_splineLevel
unsigned m_splineLevel
Definition VSDContentCollector.h:324
libvisio::VSDContentCollector::m_NURBSData
std::map< unsigned, NURBSData > m_NURBSData
Definition VSDContentCollector.h:283
libvisio::VSDContentCollector::m_y
double m_y
Definition VSDContentCollector.h:246
libvisio::VSDContentCollector::transformPoint
void transformPoint(double &x, double &y, XForm *txtxform=nullptr)
Definition VSDContentCollector.cpp:2450
libvisio::VSDContentCollector::_isDefaultShapeFormat
bool _isDefaultShapeFormat()
Definition VSDContentCollector.cpp:3594
libvisio::VSDContentCollector::m_splineControlPoints
std::vector< std::pair< double, double > > m_splineControlPoints
Definition VSDContentCollector.h:319
libvisio::VSDContentCollector::m_stencilFields
VSDFieldList m_stencilFields
Definition VSDContentCollector.h:288
libvisio::VSDContentCollector::collectMetaData
void collectMetaData(const librevenge::RVNGPropertyList &metaData) override
Definition VSDContentCollector.cpp:3611
libvisio::VSDContentCollector::collectLayerMem
void collectLayerMem(unsigned level, const VSDName &layerMem) override
Definition VSDContentCollector.cpp:3848
libvisio::VSDContentCollector::m_defaultParaStyle
VSDParaStyle m_defaultParaStyle
Definition VSDContentCollector.h:298
libvisio::VSDContentCollector::m_noFill
bool m_noFill
Definition VSDContentCollector.h:267
libvisio::VSDContentCollector::m_shadowOffsetX
double m_shadowOffsetX
Definition VSDContentCollector.h:241
libvisio::VSDContentCollector::m_currentLevel
unsigned m_currentLevel
Definition VSDContentCollector.h:270
libvisio::VSDContentCollector::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 VSDContentCollector.cpp:2392
libvisio::VSDContentCollector::collectDocumentTheme
void collectDocumentTheme(const VSDXTheme *theme) override
Definition VSDContentCollector.cpp:1382
libvisio::VSDContentCollector::m_pageOutputDrawing
std::map< unsigned, VSDOutputElementList > m_pageOutputDrawing
Definition VSDContentCollector.h:277
libvisio::VSDContentCollector::_convertToPath
void _convertToPath(const std::vector< librevenge::RVNGPropertyList > &segmentVector, librevenge::RVNGPropertyListVector &path, double rounding)
Definition VSDContentCollector.cpp:554
libvisio::VSDContentCollector::m_fields
std::vector< librevenge::RVNGString > m_fields
Definition VSDContentCollector.h:287
libvisio::VSDContentCollector::VSDContentCollector
VSDContentCollector(librevenge::RVNGDrawingInterface *painter, std::vector< std::map< unsigned, XForm > > &groupXFormsSequence, std::vector< std::map< unsigned, unsigned > > &groupMembershipsSequence, std::vector< std::list< unsigned > > &documentPageShapeOrders, VSDStyles &styles, VSDStencils &stencils, const std::optional< unsigned > &varColInd, const std::optional< unsigned > &varStyInd)
Definition VSDContentCollector.cpp:118
libvisio::VSDContentCollector::m_fillStyle
VSDFillStyle m_fillStyle
Definition VSDContentCollector.h:294
libvisio::VSDContentCollector::m_isBackgroundPage
bool m_isBackgroundPage
Definition VSDContentCollector.h:326
libvisio::VSDContentCollector::collectRelLineTo
void collectRelLineTo(unsigned id, unsigned level, double x, double y) override
Definition VSDContentCollector.cpp:1643
libvisio::VSDContentCollector::collectUnhandledChunk
void collectUnhandledChunk(unsigned id, unsigned level) override
Definition VSDContentCollector.cpp:2727
libvisio::VSDContentCollector::m_splineKnotVector
std::vector< double > m_splineKnotVector
Definition VSDContentCollector.h:320
libvisio::VSDContentCollector::m_layerList
VSDLayerList m_layerList
Definition VSDContentCollector.h:317
libvisio::VSDContentCollector::collectTextField
void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId) override
Definition VSDContentCollector.cpp:3501
libvisio::VSDContentCollector::_linePropertiesMarkerPath
const char * _linePropertiesMarkerPath(unsigned marker)
Definition VSDContentCollector.cpp:194
libvisio::VSDContentCollector::m_variationStyleIndex
std::optional< unsigned > m_variationStyleIndex
Definition VSDContentCollector.h:304
libvisio::VSDContentCollector::m_defaultDrawingUnit
unsigned char m_defaultDrawingUnit
Definition VSDContentCollector.h:244
libvisio::VSDContentCollector::m_x
double m_x
Definition VSDContentCollector.h:245
libvisio::VSDContentCollector::_outputCubicBezierSegment
void _outputCubicBezierSegment(const std::vector< std::pair< double, double > > &points)
Definition VSDContentCollector.cpp:1949
libvisio::VSDContentCollector::m_foreignType
unsigned m_foreignType
Definition VSDContentCollector.h:260
libvisio::VSDContentCollector::_fillParagraphProperties
void _fillParagraphProperties(librevenge::RVNGPropertyList &propList, const VSDParaStyle &style)
Definition VSDContentCollector.cpp:1220
libvisio::VSDContentCollector::m_foreignWidth
double m_foreignWidth
Definition VSDContentCollector.h:264
libvisio::VSDContentCollector::_generateBezierSegmentsFromNURBS
void _generateBezierSegmentsFromNURBS(unsigned degree, const std::vector< std::pair< double, double > > &controlPoints, const std::vector< double > &knotVector)
Definition VSDContentCollector.cpp:2018
libvisio::VSDContentCollector::_flushShape
void _flushShape()
Definition VSDContentCollector.cpp:320
libvisio::VSDContentCollector::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 VSDContentCollector.cpp:2311
libvisio::VSDContentCollector::collectXFormData
void collectXFormData(unsigned level, const XForm &xform) override
Definition VSDContentCollector.cpp:2417
libvisio::VSDContentCollector::collectParaIX
void collectParaIX(unsigned id, unsigned level, unsigned charCount, const std::optional< double > &indFirst, const std::optional< double > &indLeft, const std::optional< double > &indRight, const std::optional< double > &spLine, const std::optional< double > &spBefore, const std::optional< double > &spAfter, const std::optional< unsigned char > &align, const std::optional< unsigned char > &bullet, const std::optional< VSDName > &bulletStr, const std::optional< VSDName > &bulletFont, const std::optional< double > &bulletFontSize, const std::optional< double > &textPosAfterBullet, const std::optional< unsigned > &flags) override
Definition VSDContentCollector.cpp:2780
libvisio::VSDContentCollector::_handleForeignData
void _handleForeignData(const librevenge::RVNGBinaryData &data)
Definition VSDContentCollector.cpp:1730
libvisio::VSDContentCollector::m_parentShapeId
unsigned m_parentShapeId
Definition VSDContentCollector.h:259
libvisio::VSDContentCollector::m_polylineData
std::map< unsigned, PolylineData > m_polylineData
Definition VSDContentCollector.h:284
libvisio::VSDContentCollector::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 VSDContentCollector.cpp:2188
libvisio::VSDContentCollector::applyXForm
void applyXForm(double &x, double &y, const XForm &xform)
Definition VSDContentCollector.cpp:2431
libvisio::VSDContentCollector::m_fieldIndex
unsigned m_fieldIndex
Definition VSDContentCollector.h:289
libvisio::VSDContentCollector::collectPageSheet
void collectPageSheet(unsigned id, unsigned level) override
Definition VSDContentCollector.cpp:2877
libvisio::VSDContentCollector::_fillTabSet
void _fillTabSet(librevenge::RVNGPropertyList &propList, const VSDTabSet &tabSet)
Definition VSDContentCollector.cpp:1259
libvisio::VSDContentCollector::m_noLine
bool m_noLine
Definition VSDContentCollector.h:266
libvisio::VSDContentCollector::m_groupXFormsSequence
std::vector< std::map< unsigned, XForm > > & m_groupXFormsSequence
Definition VSDContentCollector.h:272
libvisio::VSDContentCollector::collectPage
void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName) override
Definition VSDContentCollector.cpp:2587
libvisio::VSDContentCollector::collectRelMoveTo
void collectRelMoveTo(unsigned id, unsigned level, double x, double y) override
Definition VSDContentCollector.cpp:1650
libvisio::VSDContentCollector::collectEllipse
void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop) override
Definition VSDContentCollector.cpp:1462
libvisio::VSDContentCollector::collectMoveTo
void collectMoveTo(unsigned id, unsigned level, double x, double y) override
Definition VSDContentCollector.cpp:1864
libvisio::VSDContentCollector::collectTxtXForm
void collectTxtXForm(unsigned level, const XForm &txtxform) override
Definition VSDContentCollector.cpp:2423
libvisio::VSDContentCollector::m_isFirstGeometry
bool m_isFirstGeometry
Definition VSDContentCollector.h:281
libvisio::VSDContentCollector::m_misc
VSDMisc m_misc
Definition VSDContentCollector.h:251
libvisio::VSDContentCollector::VSDContentCollector
VSDContentCollector(const VSDContentCollector &)
libvisio::VSDContentCollector::m_txtxform
std::unique_ptr< XForm > m_txtxform
Definition VSDContentCollector.h:250
libvisio::VSDContentCollector::collectFieldList
void collectFieldList(unsigned id, unsigned level) override
Definition VSDContentCollector.cpp:3495
libvisio::VSDContentCollector::_fillAndShadowProperties
void _fillAndShadowProperties(const VSDFillStyle &style, librevenge::RVNGPropertyList &styleProps)
Definition VSDContentCollector.cpp:3191
libvisio::VSDContentCollector::m_pages
VSDPages m_pages
Definition VSDContentCollector.h:315
libvisio::VSDContentCollector::collectText
void collectText(unsigned level, const librevenge::RVNGBinaryData &textStream, TextFormat format) override
Definition VSDContentCollector.cpp:2771
libvisio::VSDContentCollector::m_groupXForms
std::map< unsigned, XForm > * m_groupXForms
Definition VSDContentCollector.h:254
libvisio::VSDContentCollector::m_noShow
bool m_noShow
Definition VSDContentCollector.h:268
libvisio::VSDContentCollector::m_paraFormats
std::vector< VSDParaStyle > m_paraFormats
Definition VSDContentCollector.h:291
libvisio::VSDContentCollector::m_currentShapeLevel
unsigned m_currentShapeLevel
Definition VSDContentCollector.h:325
libvisio::VSDContentCollector::collectOLEData
void collectOLEData(unsigned id, unsigned level, const librevenge::RVNGBinaryData &oleData) override
Definition VSDContentCollector.cpp:1724
libvisio::VSDContentCollector::m_xform
XForm m_xform
Definition VSDContentCollector.h:249
libvisio::VSDContentCollector::m_currentGeometryCount
unsigned m_currentGeometryCount
Definition VSDContentCollector.h:310
libvisio::VSDContentCollector::m_currentForeignProps
librevenge::RVNGPropertyList m_currentForeignProps
Definition VSDContentCollector.h:257
libvisio::VSDContentCollector::_fillCharProperties
void _fillCharProperties(librevenge::RVNGPropertyList &propList, const VSDCharStyle &style)
Definition VSDContentCollector.cpp:1185
libvisio::VSDContentCollector::_handleLevelChange
void _handleLevelChange(unsigned level)
Definition VSDContentCollector.cpp:3554
libvisio::VSDContentCollector::m_shapeOutputText
VSDOutputElementList * m_shapeOutputText
Definition VSDContentCollector.h:276
libvisio::VSDContentCollector::_appendVisibleAndPrintable
void _appendVisibleAndPrintable(librevenge::RVNGPropertyList &propList)
Definition VSDContentCollector.cpp:3876
libvisio::VSDContentCollector::_flushCurrentPath
void _flushCurrentPath(unsigned id)
Definition VSDContentCollector.cpp:384
libvisio::VSDContentCollector::appendCharacters
void appendCharacters(librevenge::RVNGString &text, const std::vector< unsigned char > &characters, TextFormat format)
Definition VSDContentCollector.cpp:3683
libvisio::VSDContentCollector::m_names
std::map< unsigned, librevenge::RVNGString > m_names
Definition VSDContentCollector.h:286
libvisio::VSDContentCollector::transformAngle
void transformAngle(double &angle, XForm *txtxform=nullptr)
Definition VSDContentCollector.cpp:2493
libvisio::VSDContentCollector::collectShape
void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle, const VSDName &aShapeType) override
Definition VSDContentCollector.cpp:2597
libvisio::VSDContentCollector::collectLineStyle
void collectLineStyle(unsigned level, const std::optional< double > &strokeWidth, const std::optional< Colour > &c, const std::optional< unsigned char > &linePattern, const std::optional< unsigned char > &startMarker, const std::optional< unsigned char > &endMarker, const std::optional< unsigned char > &lineCap, const std::optional< double > &rounding, const std::optional< long > &qsLineColour, const std::optional< long > &qsLineMatrix) override
Definition VSDContentCollector.cpp:2895
libvisio::VSDContentCollector::collectNameList
void collectNameList(unsigned id, unsigned level) override
Definition VSDContentCollector.cpp:2852
libvisio::VSDContentCollector::collectDefaultParaStyle
void collectDefaultParaStyle(unsigned charCount, const std::optional< double > &indFirst, const std::optional< double > &indLeft, const std::optional< double > &indRight, const std::optional< double > &spLine, const std::optional< double > &spBefore, const std::optional< double > &spAfter, const std::optional< unsigned char > &align, const std::optional< unsigned char > &bullet, const std::optional< VSDName > &bulletStr, const std::optional< VSDName > &bulletFont, const std::optional< double > &bulletFontSize, const std::optional< double > &textPosAfterBullet, const std::optional< unsigned > &flags) override
Definition VSDContentCollector.cpp:2795
libvisio::VSDContentCollector::_NURBSBasis
double _NURBSBasis(unsigned knot, unsigned degree, double point, const std::vector< double > &knotVector)
Definition VSDContentCollector.cpp:2108
libvisio::VSDContentCollector::collectRelQuadBezTo
void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b) override
Definition VSDContentCollector.cpp:1657
libvisio::VSDContentCollector::m_currentLayerMem
std::vector< unsigned > m_currentLayerMem
Definition VSDContentCollector.h:329
libvisio::VSDContentCollector::collectNumericField
void collectNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId) override
Definition VSDContentCollector.cpp:3524
libvisio::VSDContentCollector::m_defaultCharStyle
VSDCharStyle m_defaultCharStyle
Definition VSDContentCollector.h:297
libvisio::VSDContentCollector::m_variationColorIndex
std::optional< unsigned > m_variationColorIndex
Definition VSDContentCollector.h:303
libvisio::VSDContentCollector::_isUniform
bool _isUniform(const std::vector< double > &weights) const
Definition VSDContentCollector.cpp:2171
libvisio::VSDContentCollector::collectCharIX
void collectCharIX(unsigned id, unsigned level, unsigned charCount, const std::optional< VSDName > &font, const std::optional< Colour > &fontColour, const std::optional< double > &fontSize, const std::optional< bool > &bold, const std::optional< bool > &italic, const std::optional< bool > &underline, const std::optional< bool > &doubleunderline, const std::optional< bool > &strikeout, const std::optional< bool > &doublestrikeout, const std::optional< bool > &allcaps, const std::optional< bool > &initcaps, const std::optional< bool > &smallcaps, const std::optional< bool > &superscript, const std::optional< bool > &subscript, const std::optional< double > &scaleWidth) override
Definition VSDContentCollector.cpp:2807
libvisio::VSDContentCollector::m_currentPageID
unsigned m_currentPageID
Definition VSDContentCollector.h:313
libvisio::VSDContentCollector::collectTextBlock
void collectTextBlock(unsigned level, const std::optional< double > &leftMargin, const std::optional< double > &rightMargin, const std::optional< double > &topMargin, const std::optional< double > &bottomMargin, const std::optional< unsigned char > &verticalAlign, const std::optional< bool > &isBgFilled, const std::optional< Colour > &bgColour, const std::optional< double > &defaultTabStop, const std::optional< unsigned char > &textDirection) override
Definition VSDContentCollector.cpp:2843
libvisio::VSDContentCollector::collectMisc
void collectMisc(unsigned level, const VSDMisc &misc) override
Definition VSDContentCollector.cpp:3842
libvisio::VSDContentCollector::collectLayer
void collectLayer(unsigned id, unsigned level, const VSDLayer &layer) override
Definition VSDContentCollector.cpp:3870
libvisio::VSDContentCollector::m_isShapeStarted
bool m_isShapeStarted
Definition VSDContentCollector.h:271
libvisio::VSDContentCollector::parseFormatId
bool parseFormatId(const char *formatString, unsigned short &result)
Definition VSDContentCollector.cpp:3662
libvisio::VSDContentCollector::collectPageProps
void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale, unsigned char drawingScaleUnit, const std::optional< unsigned > variationColorIndex, const std::optional< unsigned > variationStyleIndex) override
Definition VSDContentCollector.cpp:2569
libvisio::VSDContentCollector::collectForeignDataType
void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height) override
Definition VSDContentCollector.cpp:2558
libvisio::VSDContentCollector::_bulletFromParaFormat
void _bulletFromParaFormat(VSDBullet &bullet, const VSDParaStyle &paraStyle)
Definition VSDContentCollector.cpp:3891
libvisio::VSDContentCollector::m_isStencilStarted
bool m_isStencilStarted
Definition VSDContentCollector.h:308
libvisio::VSDContentCollector::m_currentText
libvisio::VSDName m_currentText
Definition VSDContentCollector.h:285
libvisio::VSDContentCollector::collectName
void collectName(unsigned id, unsigned level, const librevenge::RVNGBinaryData &name, TextFormat format) override
Definition VSDContentCollector.cpp:2868
libvisio::VSDContentCollector::collectRelCubBezTo
void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override
Definition VSDContentCollector.cpp:1604
libvisio::VSDContentCollector::_applyLinePattern
void _applyLinePattern()
libvisio::VSDContentCollector::m_documentTheme
const VSDXTheme * m_documentTheme
Definition VSDContentCollector.h:332
libvisio::VSDContentCollector::m_tabSets
std::vector< VSDTabSet > m_tabSets
Definition VSDContentCollector.h:330
libvisio::VSDContentCollector::collectEllipticalArcTo
void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc) override
Definition VSDContentCollector.cpp:1389
libvisio::VSDContentCollector::collectFillStyle
void collectFillStyle(unsigned level, const std::optional< Colour > &colourFG, const std::optional< Colour > &colourBG, const std::optional< unsigned char > &fillPattern, const std::optional< double > &fillFGTransparency, const std::optional< double > &fillBGTransparency, const std::optional< unsigned char > &shadowPattern, const std::optional< Colour > &shfgc, const std::optional< double > &shadowOffsetX, const std::optional< double > &shadowOffsetY, const std::optional< long > &qsFillColour, const std::optional< long > &qsShadowColour, const std::optional< long > &qsFillMatrix) override
Definition VSDContentCollector.cpp:2905
libvisio::VSDContentCollector::m_foreignOffsetX
double m_foreignOffsetX
Definition VSDContentCollector.h:262
libvisio::VSDContentCollector::m_charFormats
std::vector< VSDCharStyle > m_charFormats
Definition VSDContentCollector.h:290
libvisio::VSDContentCollector::m_currentShapeId
unsigned m_currentShapeId
Definition VSDContentCollector.h:258
libvisio::VSDContentCollector::collectFillAndShadow
void collectFillAndShadow(unsigned level, const std::optional< Colour > &colourFG, const std::optional< Colour > &colourBG, const std::optional< unsigned char > &fillPattern, const std::optional< double > &fillFGTransparency, const std::optional< double > &fillBGTransparency, const std::optional< unsigned char > &shadowPattern, const std::optional< Colour > &shfgc, const std::optional< double > &shadowOffsetX, const std::optional< double > &shadowOffsetY, const std::optional< long > &qsFc, const std::optional< long > &qsSc, const std::optional< long > &qsLm) override
Definition VSDContentCollector.cpp:1690
libvisio::VSDContentCollector::m_originalX
double m_originalX
Definition VSDContentCollector.h:247
libvisio::VSDContentCollector::endPages
void endPages() override
Definition VSDContentCollector.cpp:3657
libvisio::VSDContentCollector::collectDefaultCharStyle
void collectDefaultCharStyle(unsigned charCount, const std::optional< VSDName > &font, const std::optional< Colour > &fontColour, const std::optional< double > &fontSize, const std::optional< bool > &bold, const std::optional< bool > &italic, const std::optional< bool > &underline, const std::optional< bool > &doubleunderline, const std::optional< bool > &strikeout, const std::optional< bool > &doublestrikeout, const std::optional< bool > &allcaps, const std::optional< bool > &initcaps, const std::optional< bool > &smallcaps, const std::optional< bool > &superscript, const std::optional< bool > &subscript, const std::optional< double > &scaleWidth) override
Definition VSDContentCollector.cpp:2831
libvisio::VSDContentCollector::collectOLEList
void collectOLEList(unsigned id, unsigned level) override
Definition VSDContentCollector.cpp:1716
libvisio::VSDContentCollector::endPage
void endPage() override
Definition VSDContentCollector.cpp:3638
libvisio::VSDContentCollector::m_stencils
VSDStencils m_stencils
Definition VSDContentCollector.h:306
libvisio::VSDContentCollector::_appendField
void _appendField(librevenge::RVNGString &text)
Definition VSDContentCollector.cpp:3834
libvisio::VSDContentCollector::collectGeometry
void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow) override
Definition VSDContentCollector.cpp:1849
libvisio::VSDContentCollector::m_documentPageShapeOrders
std::vector< std::list< unsigned > > & m_documentPageShapeOrders
Definition VSDContentCollector.h:279
libvisio::VSDContentCollector::collectSplineStart
void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree) override
Definition VSDContentCollector.cpp:2732
libvisio::VSDContentCollector::startPage
void startPage(unsigned pageId) override
Definition VSDContentCollector.cpp:3616
libvisio::VSDContentCollector::m_pageShapeOrder
std::vector< std::list< unsigned > >::iterator m_pageShapeOrder
Definition VSDContentCollector.h:280
libvisio::VSDContentCollector::m_groupMemberships
std::vector< std::map< unsigned, unsigned > >::iterator m_groupMemberships
Definition VSDContentCollector.h:274
libvisio::VSDContentCollector::collectArcTo
void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow) override
Definition VSDContentCollector.cpp:1900
libvisio::VSDContentCollector::m_pageWidth
double m_pageWidth
Definition VSDContentCollector.h:239
libvisio::VSDContentCollector::m_scale
double m_scale
Definition VSDContentCollector.h:243
libvisio::VSDContentCollector::m_backgroundPageID
unsigned m_backgroundPageID
Definition VSDContentCollector.h:312
libvisio::VSDContentCollector::m_originalY
double m_originalY
Definition VSDContentCollector.h:248
libvisio::VSDContentCollector::m_currentShapeType
librevenge::RVNGString m_currentShapeType
Definition VSDContentCollector.h:333
libvisio::VSDContentCollector::collectTabsDataList
void collectTabsDataList(unsigned level, const std::map< unsigned, VSDTabSet > &tabSets) override
Definition VSDContentCollector.cpp:2821
libvisio::VSDContentCollector::m_currentPageNumber
unsigned m_currentPageNumber
Definition VSDContentCollector.h:275
libvisio::VSDContentCollector::collectTextBlockStyle
void collectTextBlockStyle(unsigned level, const std::optional< double > &leftMargin, const std::optional< double > &rightMargin, const std::optional< double > &topMargin, const std::optional< double > &bottomMargin, const std::optional< unsigned char > &verticalAlign, const std::optional< bool > &isBgFilled, const std::optional< Colour > &bgColour, const std::optional< double > &defaultTabStop, const std::optional< unsigned char > &textDirection) override
Definition VSDContentCollector.cpp:2954
libvisio::VSDContentCollector::m_painter
librevenge::RVNGDrawingInterface * m_painter
Definition VSDContentCollector.h:185
libvisio::VSDContentCollector::_listLevelFromBullet
void _listLevelFromBullet(librevenge::RVNGPropertyList &propList, const VSDBullet &bullet)
Definition VSDContentCollector.cpp:3947
libvisio::VSDContentCollector::collectCharIXStyle
void collectCharIXStyle(unsigned id, unsigned level, unsigned charCount, const std::optional< VSDName > &font, const std::optional< Colour > &fontColour, const std::optional< double > &fontSize, const std::optional< bool > &bold, const std::optional< bool > &italic, const std::optional< bool > &underline, const std::optional< bool > &doubleunderline, const std::optional< bool > &strikeout, const std::optional< bool > &doublestrikeout, const std::optional< bool > &allcaps, const std::optional< bool > &initcaps, const std::optional< bool > &smallcaps, const std::optional< bool > &superscript, const std::optional< bool > &subscript, const std::optional< double > &scaleWidth) override
Definition VSDContentCollector.cpp:2942
libvisio::VSDContentCollector::m_stencilNames
std::map< unsigned, librevenge::RVNGString > m_stencilNames
Definition VSDContentCollector.h:286
libvisio::VSDContentCollector::m_foreignHeight
double m_foreignHeight
Definition VSDContentCollector.h:265
libvisio::VSDContentCollector::collectShapesOrder
void collectShapesOrder(unsigned id, unsigned level, const std::vector< unsigned > &shapeIds) override
Definition VSDContentCollector.cpp:2553
libvisio::VSDContentCollector::collectLineTo
void collectLineTo(unsigned id, unsigned level, double x, double y) override
Definition VSDContentCollector.cpp:1882
libvisio::VSDContentCollector::_flushCurrentForeignData
void _flushCurrentForeignData()
Definition VSDContentCollector.cpp:1288
libvisio::VSDContentCollector::collectParaIXStyle
void collectParaIXStyle(unsigned id, unsigned level, unsigned charCount, const std::optional< double > &indFirst, const std::optional< double > &indLeft, const std::optional< double > &indRight, const std::optional< double > &spLine, const std::optional< double > &spBefore, const std::optional< double > &spAfter, const std::optional< unsigned char > &align, const std::optional< unsigned char > &bullet, const std::optional< VSDName > &bulletStr, const std::optional< VSDName > &bulletFont, const std::optional< double > &bulletFontSize, const std::optional< double > &textPosAfterBullet, const std::optional< unsigned > &flags) override
Definition VSDContentCollector.cpp:2927
libvisio::VSDContentCollector::collectSplineKnot
void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot) override
Definition VSDContentCollector.cpp:2744
libvisio::VSDContentCollector::_lineProperties
void _lineProperties(const VSDLineStyle &style, librevenge::RVNGPropertyList &styleProps)
Definition VSDContentCollector.cpp:2963
libvisio::VSDContentCollector::m_splineX
double m_splineX
Definition VSDContentCollector.h:321
libvisio::VSDFieldList
Definition VSDFieldList.h:88
libvisio::VSDLayerList
Definition VSDLayerList.h:34
libvisio::VSDName
Definition VSDTypes.h:171
libvisio::VSDOutputElementList
Definition VSDOutputElementList.h:25
libvisio::VSDPage
Definition VSDPages.h:20
libvisio::VSDPages
Definition VSDPages.h:35
libvisio::VSDShape
Definition VSDStencils.h:28
libvisio::VSDStencils
Definition VSDStencils.h:80
libvisio::VSDStyles
Definition VSDStyles.h:512
libvisio::VSDXTheme
Definition VSDXTheme.h:85
libvisio_utils.h
libvisio
Definition libvisio_utils.h:47
libvisio::TextFormat
TextFormat
Definition VSDTypes.h:150
libvisio::NURBSData
Definition VSDTypes.h:94
libvisio::PolylineData
Definition VSDTypes.h:115
libvisio::VSDBullet
Definition VSDTypes.h:232
libvisio::VSDCharStyle
Definition VSDStyles.h:285
libvisio::VSDFillStyle
Definition VSDStyles.h:158
libvisio::VSDLayer
Definition VSDLayerList.h:22
libvisio::VSDLineStyle
Definition VSDStyles.h:63
libvisio::VSDMisc
Definition VSDTypes.h:204
libvisio::VSDParaStyle
Definition VSDStyles.h:391
libvisio::VSDTabSet
Definition VSDTypes.h:223
libvisio::VSDTextBlockStyle
Definition VSDStyles.h:476
libvisio::XForm
Definition VSDTypes.h:23