31 #ifndef VSDCONTENTCOLLECTOR_H
32 #define VSDCONTENTCOLLECTOR_H
41 #include <libwpg/libwpg.h>
56 libwpg::WPGPaintInterface *painter,
57 std::vector<std::map<unsigned, XForm> > &groupXFormsSequence,
58 std::vector<std::map<unsigned, unsigned> > &groupMembershipsSequence,
59 std::vector<std::list<unsigned> > &documentPageShapeOrders,
67 void collectEllipticalArcTo(
unsigned id,
unsigned level,
double x3,
double y3,
double x2,
double y2,
double angle,
double ecc);
70 void collectOLEData(
unsigned id,
unsigned level,
const WPXBinaryData &oleData);
71 void collectEllipse(
unsigned id,
unsigned level,
double cx,
double cy,
double xleft,
double yleft,
double xtop,
double ytop);
72 void collectLine(
unsigned level,
const boost::optional<double> &strokeWidth,
const boost::optional<Colour> &c,
const boost::optional<unsigned char> &linePattern,
73 const boost::optional<unsigned char> &startMarker,
const boost::optional<unsigned char> &endMarker,
74 const boost::optional<unsigned char> &lineCap);
75 void collectFillAndShadow(
unsigned level,
const boost::optional<Colour> &colourFG,
const boost::optional<Colour> &colourBG,
76 const boost::optional<unsigned char> &fillPattern,
const boost::optional<double> &fillFGTransparency,
77 const boost::optional<double> &fillBGTransparency,
const boost::optional<unsigned char> &shadowPattern,
78 const boost::optional<Colour> &shfgc,
const boost::optional<double> &shadowOffsetX,
const boost::optional<double> &shadowOffsetY);
79 void collectFillAndShadow(
unsigned level,
const boost::optional<Colour> &colourFG,
const boost::optional<Colour> &colourBG,
80 const boost::optional<unsigned char> &fillPattern,
const boost::optional<double> &fillFGTransparency,
81 const boost::optional<double> &fillBGTransparency,
const boost::optional<unsigned char> &shadowPattern,
82 const boost::optional<Colour> &shfgc);
83 void collectGeometry(
unsigned id,
unsigned level,
bool noFill,
bool noLine,
bool noShow);
84 void collectMoveTo(
unsigned id,
unsigned level,
double x,
double y);
85 void collectLineTo(
unsigned id,
unsigned level,
double x,
double y);
86 void collectArcTo(
unsigned id,
unsigned level,
double x2,
double y2,
double bow);
87 void collectNURBSTo(
unsigned id,
unsigned level,
double x2,
double y2,
unsigned char xType,
unsigned char yType,
unsigned degree,
88 const std::vector<std::pair<double, double> > &ctrlPnts,
const std::vector<double> &kntVec,
const std::vector<double> &weights);
89 void collectNURBSTo(
unsigned id,
unsigned level,
double x2,
double y2,
double knot,
double knotPrev,
double weight,
double weightPrev,
unsigned dataID);
90 void collectNURBSTo(
unsigned id,
unsigned level,
double x2,
double y2,
double knot,
double knotPrev,
double weight,
double weightPrev,
const NURBSData &data);
91 void collectPolylineTo(
unsigned id,
unsigned level,
double x,
double y,
unsigned char xType,
unsigned char yType,
92 const std::vector<std::pair<double, double> > &points);
93 void collectPolylineTo(
unsigned id,
unsigned level,
double x,
double y,
unsigned dataID);
95 void collectShapeData(
unsigned id,
unsigned level,
unsigned char xType,
unsigned char yType,
unsigned degree,
double lastKnot,
96 std::vector<std::pair<double, double> > controlPoints, std::vector<double> knotVector, std::vector<double> weights);
97 void collectShapeData(
unsigned id,
unsigned level,
unsigned char xType,
unsigned char yType, std::vector<std::pair<double, double> > points);
100 void collectShapesOrder(
unsigned id,
unsigned level,
const std::vector<unsigned> &shapeIds);
101 void collectForeignDataType(
unsigned level,
unsigned foreignType,
unsigned foreignFormat,
double offsetX,
double offsetY,
double width,
double height);
102 void collectPageProps(
unsigned id,
unsigned level,
double pageWidth,
double pageHeight,
double shadowOffsetX,
double shadowOffsetY,
double scale);
103 void collectPage(
unsigned id,
unsigned level,
unsigned backgroundPageID,
bool isBackgroundPage,
const VSDName &pageName);
104 void collectShape(
unsigned id,
unsigned level,
unsigned parent,
unsigned masterPage,
unsigned masterShape,
unsigned lineStyle,
unsigned fillStyle,
unsigned textStyle);
105 void collectSplineStart(
unsigned id,
unsigned level,
double x,
double y,
double secondKnot,
double firstKnot,
double lastKnot,
unsigned degree);
106 void collectSplineKnot(
unsigned id,
unsigned level,
double x,
double y,
double knot);
108 void collectInfiniteLine(
unsigned id,
unsigned level,
double x1,
double y1,
double x2,
double y2);
109 void collectRelCubBezTo(
unsigned id,
unsigned level,
double x,
double y,
double a,
double b,
double c,
double d);
113 void collectRelQuadBezTo(
unsigned id,
unsigned level,
double x,
double y,
double a,
double b);
118 void collectCharIX(
unsigned id,
unsigned level,
unsigned charCount,
const boost::optional<VSDName> &font,
119 const boost::optional<Colour> &fontColour,
const boost::optional<double> &fontSize,
const boost::optional<bool> &bold,
120 const boost::optional<bool> &italic,
const boost::optional<bool> &underline,
const boost::optional<bool> &doubleunderline,
121 const boost::optional<bool> &strikeout,
const boost::optional<bool> &doublestrikeout,
const boost::optional<bool> &allcaps,
122 const boost::optional<bool> &initcaps,
const boost::optional<bool> &smallcaps,
const boost::optional<bool> &superscript,
123 const boost::optional<bool> &subscript);
124 void collectDefaultCharStyle(
unsigned charCount,
const boost::optional<VSDName> &font,
const boost::optional<Colour> &fontColour,
125 const boost::optional<double> &fontSize,
const boost::optional<bool> &bold,
const boost::optional<bool> &italic,
126 const boost::optional<bool> &underline,
const boost::optional<bool> &doubleunderline,
const boost::optional<bool> &strikeout,
127 const boost::optional<bool> &doublestrikeout,
const boost::optional<bool> &allcaps,
const boost::optional<bool> &initcaps,
128 const boost::optional<bool> &smallcaps,
const boost::optional<bool> &superscript,
const boost::optional<bool> &subscript);
129 void collectParaIX(
unsigned id,
unsigned level,
unsigned charCount,
const boost::optional<double> &indFirst,
130 const boost::optional<double> &indLeft,
const boost::optional<double> &indRight,
const boost::optional<double> &spLine,
131 const boost::optional<double> &spBefore,
const boost::optional<double> &spAfter,
const boost::optional<unsigned char> &align,
132 const boost::optional<unsigned> &flags);
133 void collectDefaultParaStyle(
unsigned charCount,
const boost::optional<double> &indFirst,
const boost::optional<double> &indLeft,
134 const boost::optional<double> &indRight,
const boost::optional<double> &spLine,
const boost::optional<double> &spBefore,
135 const boost::optional<double> &spAfter,
const boost::optional<unsigned char> &align,
const boost::optional<unsigned> &flags);
136 void collectTextBlock(
unsigned level,
const boost::optional<double> &leftMargin,
const boost::optional<double> &rightMargin,
137 const boost::optional<double> &topMargin,
const boost::optional<double> &bottomMargin,
138 const boost::optional<unsigned char> &verticalAlign,
const boost::optional<bool> &isBgFilled,
139 const boost::optional<Colour> &bgColour,
const boost::optional<double> &defaultTabStop,
140 const boost::optional<unsigned char> &textDirection);
148 void collectStyleSheet(
unsigned id,
unsigned level,
unsigned parentLineStyle,
unsigned parentFillStyle,
unsigned parentTextStyle);
149 void collectLineStyle(
unsigned level,
const boost::optional<double> &strokeWidth,
const boost::optional<Colour> &c,
const boost::optional<unsigned char> &linePattern,
150 const boost::optional<unsigned char> &startMarker,
const boost::optional<unsigned char> &endMarker,
151 const boost::optional<unsigned char> &lineCap);
152 void collectFillStyle(
unsigned level,
const boost::optional<Colour> &colourFG,
const boost::optional<Colour> &colourBG,
153 const boost::optional<unsigned char> &fillPattern,
const boost::optional<double> &fillFGTransparency,
154 const boost::optional<double> &fillBGTransparency,
const boost::optional<unsigned char> &shadowPattern,
155 const boost::optional<Colour> &shfgc,
const boost::optional<double> &shadowOffsetX,
const boost::optional<double> &shadowOffsetY);
156 void collectFillStyle(
unsigned level,
const boost::optional<Colour> &colourFG,
const boost::optional<Colour> &colourBG,
157 const boost::optional<unsigned char> &fillPattern,
const boost::optional<double> &fillFGTransparency,
158 const boost::optional<double> &fillBGTransparency,
const boost::optional<unsigned char> &shadowPattern,
159 const boost::optional<Colour> &shfgc);
160 void collectCharIXStyle(
unsigned id,
unsigned level,
unsigned charCount,
const boost::optional<VSDName> &font,
161 const boost::optional<Colour> &fontColour,
const boost::optional<double> &fontSize,
const boost::optional<bool> &bold,
162 const boost::optional<bool> &italic,
const boost::optional<bool> &underline,
const boost::optional<bool> &doubleunderline,
163 const boost::optional<bool> &strikeout,
const boost::optional<bool> &doublestrikeout,
const boost::optional<bool> &allcaps,
164 const boost::optional<bool> &initcaps,
const boost::optional<bool> &smallcaps,
const boost::optional<bool> &superscript,
165 const boost::optional<bool> &subscript);
166 void collectParaIXStyle(
unsigned id,
unsigned level,
unsigned charCount,
const boost::optional<double> &indFirst,
167 const boost::optional<double> &indLeft,
const boost::optional<double> &indRight,
const boost::optional<double> &spLine,
168 const boost::optional<double> &spBefore,
const boost::optional<double> &spAfter,
const boost::optional<unsigned char> &align,
169 const boost::optional<unsigned> &flags);
170 void collectTextBlockStyle(
unsigned level,
const boost::optional<double> &leftMargin,
const boost::optional<double> &rightMargin,
171 const boost::optional<double> &topMargin,
const boost::optional<double> &bottomMargin,
172 const boost::optional<unsigned char> &verticalAlign,
const boost::optional<bool> &isBgFilled,
173 const boost::optional<Colour> &bgColour,
const boost::optional<double> &defaultTabStop,
174 const boost::optional<unsigned char> &textDirection);
178 void collectTextField(
unsigned id,
unsigned level,
int nameId,
int formatStringId);
179 void collectNumericField(
unsigned id,
unsigned level,
unsigned short format,
double number,
int formatStringId);
197 double _NURBSBasis(
unsigned knot,
unsigned degree,
double point,
const std::vector<double> &knotVector);
218 void appendCharacters(WPXString &text,
const std::vector<unsigned char> &characters);
220 bool parseFormatId(
const char *formatString,
unsigned short &result );
224 bool _isUniform(
const std::vector<double> weights)
const;
226 const std::vector<double> &knotVector,
const std::vector<double> &weights);
228 const std::vector<double> &knotVector);
std::vector< std::list< unsigned > >::iterator m_pageShapeOrder
Definition: VSDContentCollector.h:273
Definition: VSDStyles.h:436
std::vector< std::map< unsigned, unsigned > >::iterator m_groupMemberships
Definition: VSDContentCollector.h:267
void _generateBezierSegmentsFromNURBS(unsigned degree, const std::vector< std::pair< double, double > > &controlPoints, const std::vector< double > &knotVector)
Definition: VSDContentCollector.cpp:1384
bool m_noLine
Definition: VSDContentCollector.h:259
Definition: VSDStencils.h:47
void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle)
Definition: VSDContentCollector.cpp:1927
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)
Definition: VSDContentCollector.cpp:2231
void transformAngle(double &angle, XForm *txtxform=0)
Definition: VSDContentCollector.cpp:1832
virtual ~VSDContentCollector()
Definition: VSDContentCollector.h:62
XForm m_xform
Definition: VSDContentCollector.h:243
bool parseFormatId(const char *formatString, unsigned short &result)
Definition: VSDContentCollector.cpp:2775
bool m_isPageStarted
Definition: VSDContentCollector.h:233
std::vector< std::map< unsigned, XForm > > & m_groupXFormsSequence
Definition: VSDContentCollector.h:265
std::vector< VSDParaStyle > m_paraFormats
Definition: VSDContentCollector.h:285
bool m_noShow
Definition: VSDContentCollector.h:261
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)
Definition: VSDContentCollector.cpp:2135
void collectMoveTo(unsigned id, unsigned level, double x, double y)
Definition: VSDContentCollector.cpp:1230
void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc)
Definition: VSDContentCollector.cpp:762
Definition: VSDStyles.h:73
void collectRelLineTo(unsigned id, unsigned level, double x, double y)
Definition: VSDContentCollector.cpp:1015
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)
Definition: VSDContentCollector.cpp:1732
double m_originalX
Definition: VSDContentCollector.h:241
Definition: VSDTypes.h:101
void endPage()
Definition: VSDContentCollector.cpp:2755
const char * _linePropertiesMarkerViewbox(unsigned marker)
Definition: VSDContentCollector.cpp:109
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)
Definition: VSDContentCollector.cpp:1061
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:1487
unsigned m_currentLevel
Definition: VSDContentCollector.h:263
double m_shadowOffsetX
Definition: VSDContentCollector.h:236
Definition: VSDStyles.h:398
void collectMisc(unsigned level, const VSDMisc &misc)
Definition: VSDContentCollector.cpp:2972
void _flushCurrentPage()
Definition: VSDContentCollector.cpp:715
WPXBinaryData m_textStream
Definition: VSDContentCollector.h:278
bool m_noFill
Definition: VSDContentCollector.h:260
VSDContentCollector(libwpg::WPGPaintInterface *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)
Definition: VSDContentCollector.cpp:78
void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop)
Definition: VSDContentCollector.cpp:835
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 > &flags)
Definition: VSDContentCollector.cpp:2114
void collectUnhandledChunk(unsigned id, unsigned level)
Definition: VSDContentCollector.cpp:2051
std::vector< WPXString > m_fields
Definition: VSDContentCollector.h:280
void _flushShape()
Definition: VSDContentCollector.cpp:213
void collectStyleSheet(unsigned id, unsigned level, unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle)
Definition: VSDContentCollector.cpp:2185
Definition: VSDPages.h:55
VSDParaStyle m_defaultParaStyle
Definition: VSDContentCollector.h:292
unsigned m_splineDegree
Definition: VSDContentCollector.h:312
void collectNumericField(unsigned id, unsigned level, unsigned short format, double number, int formatStringId)
Definition: VSDContentCollector.cpp:2658
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 > &flags)
Definition: VSDContentCollector.cpp:2221
void _handleForeignData(const WPXBinaryData &data)
Definition: VSDContentCollector.cpp:1097
void collectSplineEnd()
Definition: VSDContentCollector.cpp:2077
double m_scale
Definition: VSDContentCollector.h:238
void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow)
Definition: VSDContentCollector.cpp:1266
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)
Definition: VSDContentCollector.cpp:1054
double m_splineX
Definition: VSDContentCollector.h:310
void collectNameList(unsigned id, unsigned level)
Definition: VSDContentCollector.cpp:2154
std::vector< std::map< unsigned, unsigned > > & m_groupMembershipsSequence
Definition: VSDContentCollector.h:266
void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height)
Definition: VSDContentCollector.cpp:1893
void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow)
Definition: VSDContentCollector.cpp:1215
Definition: VSDTypes.h:211
WPXPropertyList m_currentForeignProps
Definition: VSDContentCollector.h:251
double m_pageHeight
Definition: VSDContentCollector.h:235
double m_foreignOffsetY
Definition: VSDContentCollector.h:256
void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId)
Definition: VSDContentCollector.cpp:2635
void _outputQuadraticBezierSegment(const std::vector< std::pair< double, double > > &points)
Definition: VSDContentCollector.cpp:1343
std::vector< std::list< unsigned > > & m_documentPageShapeOrders
Definition: VSDContentCollector.h:272
const VSDShape * m_stencilShape
Definition: VSDContentCollector.h:298
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)
Definition: VSDContentCollector.cpp:2243
void startPage(unsigned pageId)
Definition: VSDContentCollector.cpp:2731
VSDPage m_currentPage
Definition: VSDContentCollector.h:305
void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b)
Definition: VSDContentCollector.cpp:1029
void _handleLevelChange(unsigned level)
Definition: VSDContentCollector.cpp:2688
std::vector< VSDCharStyle > m_charFormats
Definition: VSDContentCollector.h:284
Definition: VSDStencils.h:95
void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName)
Definition: VSDContentCollector.cpp:1917
double m_foreignOffsetX
Definition: VSDContentCollector.h:255
std::map< unsigned, XForm > * m_groupXForms
Definition: VSDContentCollector.h:248
Definition: VSDOutputElementList.h:45
std::vector< WPXPropertyList > m_currentFillGeometry
Definition: VSDContentCollector.h:246
bool m_isStencilStarted
Definition: VSDContentCollector.h:299
Definition: VSDContentCollector.h:52
TextFormat m_textFormat
Definition: VSDContentCollector.h:283
VSDContentCollector & operator=(const VSDContentCollector &)
void collectShapesOrder(unsigned id, unsigned level, const std::vector< unsigned > &shapeIds)
Definition: VSDContentCollector.cpp:1888
Definition: VSDCollector.h:41
double _NURBSBasis(unsigned knot, unsigned degree, double point, const std::vector< double > &knotVector)
Definition: VSDContentCollector.cpp:1464
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 > &flags)
Definition: VSDContentCollector.cpp:2103
VSDMisc m_misc
Definition: VSDContentCollector.h:245
unsigned m_foreignType
Definition: VSDContentCollector.h:253
Definition: VSDFieldList.h:102
Definition: VSDStyles.h:236
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)
Definition: VSDContentCollector.cpp:1538
double m_splineLastKnot
Definition: VSDContentCollector.h:311
void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2)
Definition: VSDContentCollector.cpp:887
std::map< unsigned, VSDOutputElementList > m_pageOutputText
Definition: VSDContentCollector.h:271
void _appendField(WPXString &text)
Definition: VSDContentCollector.cpp:2964
std::map< unsigned short, VSDFont > m_fonts
Definition: VSDContentCollector.h:262
VSDFieldList m_stencilFields
Definition: VSDContentCollector.h:281
unsigned m_foreignFormat
Definition: VSDContentCollector.h:254
libwpg::WPGPaintInterface * m_painter
Definition: VSDContentCollector.h:189
void collectLineTo(unsigned id, unsigned level, double x, double y)
Definition: VSDContentCollector.cpp:1248
double m_foreignWidth
Definition: VSDContentCollector.h:257
double _linePropertiesMarkerScale(unsigned marker)
Definition: VSDContentCollector.cpp:194
void _flushText()
Definition: VSDContentCollector.cpp:402
double m_foreignHeight
Definition: VSDContentCollector.h:258
void collectOLEList(unsigned id, unsigned level)
Definition: VSDContentCollector.cpp:1083
unsigned m_splineLevel
Definition: VSDContentCollector.h:313
void applyXForm(double &x, double &y, const XForm &xform)
Definition: VSDContentCollector.cpp:1773
std::map< unsigned, WPXString > m_names
Definition: VSDContentCollector.h:279
std::map< unsigned, VSDOutputElementList > m_pageOutputDrawing
Definition: VSDContentCollector.h:270
void collectPageSheet(unsigned id, unsigned level)
Definition: VSDContentCollector.cpp:2179
std::map< unsigned, WPXString > m_stencilNames
Definition: VSDContentCollector.h:279
unsigned m_currentStyleSheet
Definition: VSDContentCollector.h:294
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)
Definition: VSDContentCollector.cpp:2204
void collectTxtXForm(unsigned level, const XForm &txtxform)
Definition: VSDContentCollector.cpp:1763
void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree)
Definition: VSDContentCollector.cpp:2056
void _outputCubicBezierSegment(const std::vector< std::pair< double, double > > &points)
Definition: VSDContentCollector.cpp:1315
void transformFlips(bool &flipX, bool &flipY)
Definition: VSDContentCollector.cpp:1850
void endPages()
Definition: VSDContentCollector.cpp:2770
std::map< unsigned, PolylineData > m_polylineData
Definition: VSDContentCollector.h:277
TextFormat
Definition: VSDTypes.h:163
VSDStyles m_styles
Definition: VSDContentCollector.h:295
Definition: VSDStyles.h:143
double m_pageWidth
Definition: VSDContentCollector.h:234
void collectName(unsigned id, unsigned level, const WPXBinaryData &name, TextFormat format)
Definition: VSDContentCollector.cpp:2170
unsigned m_fieldIndex
Definition: VSDContentCollector.h:282
void collectText(unsigned level, const WPXBinaryData &textStream, TextFormat format)
Definition: VSDContentCollector.cpp:2095
unsigned m_backgroundPageID
Definition: VSDContentCollector.h:303
VSDPages m_pages
Definition: VSDContentCollector.h:306
VSDLineStyle m_lineStyle
Definition: VSDContentCollector.h:287
VSDCharStyle m_defaultCharStyle
Definition: VSDContentCollector.h:291
VSDFillStyle m_fillStyle
Definition: VSDContentCollector.h:288
void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale)
Definition: VSDContentCollector.cpp:1904
void collectXFormData(unsigned level, const XForm &xform)
Definition: VSDContentCollector.cpp:1757
bool m_isFirstGeometry
Definition: VSDContentCollector.h:274
void collectRelMoveTo(unsigned id, unsigned level, double x, double y)
Definition: VSDContentCollector.cpp:1022
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)
Definition: VSDContentCollector.cpp:2121
WPXBinaryData m_currentForeignData
Definition: VSDContentCollector.h:249
void _outputLinearBezierSegment(const std::vector< std::pair< double, double > > &points)
Definition: VSDContentCollector.cpp:1366
std::vector< double > m_splineKnotVector
Definition: VSDContentCollector.h:309
void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot)
Definition: VSDContentCollector.cpp:2068
double m_originalY
Definition: VSDContentCollector.h:242
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)
Definition: VSDContentCollector.cpp:2145
Definition: VSDStyles.h:323
Definition: VSDPages.h:40
void _flushCurrentForeignData()
Definition: VSDContentCollector.cpp:670
bool _isUniform(const std::vector< double > weights) const
Definition: VSDContentCollector.cpp:1523
void appendCharacters(WPXString &text, const std::vector< unsigned char > &characters, TextFormat format)
Definition: VSDContentCollector.cpp:2805
unsigned m_currentShapeId
Definition: VSDContentCollector.h:252
bool m_isBackgroundPage
Definition: VSDContentCollector.h:315
std::map< unsigned, NURBSData > m_NURBSData
Definition: VSDContentCollector.h:276
VSDStencils m_stencils
Definition: VSDContentCollector.h:297
double m_x
Definition: VSDContentCollector.h:239
double m_splineY
Definition: VSDContentCollector.h:310
const char * _linePropertiesMarkerPath(unsigned marker)
Definition: VSDContentCollector.cpp:145
unsigned m_currentShapeLevel
Definition: VSDContentCollector.h:314
void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d)
Definition: VSDContentCollector.cpp:1006
Definition: VSDTypes.h:128
void transformPoint(double &x, double &y, XForm *txtxform=0)
Definition: VSDContentCollector.cpp:1792
std::vector< std::pair< double, double > > m_splineControlPoints
Definition: VSDContentCollector.h:308
bool m_isShapeStarted
Definition: VSDContentCollector.h:264
VSDTextBlockStyle m_textBlockStyle
Definition: VSDContentCollector.h:289
unsigned m_currentPageID
Definition: VSDContentCollector.h:304
unsigned m_currentGeometryCount
Definition: VSDContentCollector.h:301
WPXBinaryData m_currentOLEData
Definition: VSDContentCollector.h:250
double m_y
Definition: VSDContentCollector.h:240
VSDOutputElementList * m_shapeOutputText
Definition: VSDContentCollector.h:269
void _convertDataToString(WPXString &result, const WPXBinaryData &data, TextFormat format)
Definition: VSDContentCollector.cpp:2161
Definition: VSDTypes.h:184
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)
Definition: VSDContentCollector.cpp:2196
void collectForeignData(unsigned level, const WPXBinaryData &binaryData)
Definition: VSDContentCollector.cpp:1077
std::vector< WPXPropertyList > m_currentLineGeometry
Definition: VSDContentCollector.h:247
VSDOutputElementList * m_shapeOutputDrawing
Definition: VSDContentCollector.h:269
void collectFieldList(unsigned id, unsigned level)
Definition: VSDContentCollector.cpp:2629
void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d)
Definition: VSDContentCollector.cpp:976
void collectPolylineTo(unsigned id, unsigned level, double x, double y, unsigned char xType, unsigned char yType, const std::vector< std::pair< double, double > > &points)
Definition: VSDContentCollector.cpp:1651
void _flushCurrentPath()
Definition: VSDContentCollector.cpp:249
void _fillAndShadowProperties(const VSDFillStyle &style, WPXPropertyList &styleProps)
Definition: VSDContentCollector.cpp:2468
void collectOLEData(unsigned id, unsigned level, const WPXBinaryData &oleData)
Definition: VSDContentCollector.cpp:1091
void _lineProperties(const VSDLineStyle &style, WPXPropertyList &styleProps)
Definition: VSDContentCollector.cpp:2252
double m_shadowOffsetY
Definition: VSDContentCollector.h:237
unsigned m_currentPageNumber
Definition: VSDContentCollector.h:268
XForm * m_txtxform
Definition: VSDContentCollector.h:244