#include <VSDXContentCollector.h>
Public Member Functions | |
VSDXContentCollector (libwpg::WPGPaintInterface *painter, std::vector< std::map< unsigned, XForm > > &groupXFormsSequence, std::vector< std::map< unsigned, unsigned > > &groupMembershipsSequence, std::vector< std::list< unsigned > > &documentPageShapeOrders, VSDXStyles &styles, VSDXStencils &stencils) | |
virtual | ~VSDXContentCollector () |
void | collectEllipticalArcTo (unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc) |
void | collectForeignData (unsigned id, unsigned level, const WPXBinaryData &binaryData) |
void | collectOLEList (unsigned id, unsigned level) |
void | collectOLEData (unsigned id, unsigned level, const WPXBinaryData &oleData) |
void | collectEllipse (unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop) |
void | collectLine (unsigned id, unsigned level, double strokeWidth, Colour c, unsigned linePattern, unsigned char startMarker, unsigned char endMarker, unsigned lineCap) |
void | collectFillAndShadow (unsigned id, unsigned level, unsigned colourIndexFG, unsigned colourIndexBG, unsigned fillPattern, unsigned fillFGTransparency, unsigned fillBGTransparency, unsigned shadowPattern, Colour shfgc, double shadowOffsetX, double shadowOffsetY) |
void | collectFillAndShadow (unsigned id, unsigned level, unsigned colourIndexFG, unsigned colourIndexBG, unsigned fillPattern, unsigned fillFGTransparency, unsigned fillBGTransparency, unsigned shadowPattern, Colour shfgc) |
void | collectGeometry (unsigned id, unsigned level, unsigned char geomFlags) |
void | collectMoveTo (unsigned id, unsigned level, double x, double y) |
void | collectLineTo (unsigned id, unsigned level, double x, double y) |
void | collectArcTo (unsigned id, unsigned level, double x2, double y2, double bow) |
void | collectNURBSTo (unsigned id, unsigned level, double x2, double y2, unsigned char xType, unsigned char yType, unsigned degree, std::vector< std::pair< double, double > > controlPoints, std::vector< double > knotVector, std::vector< double > weights) |
void | collectNURBSTo (unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, unsigned dataID) |
void | collectPolylineTo (unsigned id, unsigned level, double x, double y, unsigned char xType, unsigned char yType, std::vector< std::pair< double, double > > &points) |
void | collectPolylineTo (unsigned id, unsigned level, double x, double y, unsigned dataID) |
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) |
void | collectShapeData (unsigned id, unsigned level, unsigned char xType, unsigned char yType, std::vector< std::pair< double, double > > points) |
void | collectXFormData (unsigned id, unsigned level, const XForm &xform) |
void | collectTxtXForm (unsigned id, unsigned level, const XForm &txtxform) |
void | collectShapeId (unsigned id, unsigned level, unsigned shapeId) |
void | collectForeignDataType (unsigned id, unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height) |
void | collectPageProps (unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale) |
void | collectPage (unsigned id, unsigned level, unsigned backgroundPageID, unsigned currentPageID) |
void | collectShape (unsigned id, unsigned level, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle) |
void | collectSplineStart (unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree) |
void | collectSplineKnot (unsigned id, unsigned level, double x, double y, double knot) |
void | collectSplineEnd () |
void | collectInfiniteLine (unsigned id, unsigned level, double x1, double y1, double x2, double y2) |
void | collectUnhandledChunk (unsigned id, unsigned level) |
void | collectColours (const std::vector< Colour > &colours) |
void | collectFont (unsigned short fontID, const WPXBinaryData &textStream, TextFormat format) |
void | collectText (unsigned id, unsigned level, const WPXBinaryData &textStream, TextFormat format) |
void | collectVSDXCharStyle (unsigned id, unsigned level, unsigned charCount, unsigned short fontID, Colour fontColour, unsigned langId, double fontSize, bool bold, bool italic, bool underline, bool doubleunderline, bool strikeout, bool doublestrikeout, bool allcaps, bool initcaps, bool smallcaps, bool superscript, bool subscript, WPXString fontFace) |
void | collectVSDXParaStyle (unsigned id, unsigned level, unsigned charCount, double indFirst, double indLeft, double indRight, double spLine, double spBefore, double spAfter, unsigned char align, unsigned flags) |
void | collectTextBlock (unsigned id, unsigned level, double leftMargin, double rightMargin, double topMargin, double bottomMargin, unsigned char verticalAlign, unsigned char bgClrId, const Colour &bgColour, double defaultTabStop, unsigned char textDirection) |
void | collectNameList (unsigned id, unsigned level) |
void | collectName (unsigned id, unsigned level, const WPXBinaryData &name, TextFormat format) |
void | collectStyleSheet (unsigned id, unsigned level, unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle) |
void | collectLineStyle (unsigned id, unsigned level, double strokeWidth, Colour c, unsigned char linePattern, unsigned char startMarker, unsigned char endMarker, unsigned char lineCap) |
void | collectFillStyle (unsigned id, unsigned level, unsigned char colourIndexFG, unsigned char colourIndexBG, unsigned char fillPattern, unsigned char fillFGTransparency, unsigned char fillBGTransparency, unsigned char shadowPattern, Colour shfgc, double shadowOffsetX, double shadowOffsetY) |
void | collectFillStyle (unsigned id, unsigned level, unsigned char colourIndexFG, unsigned char colourIndexBG, unsigned char fillPattern, unsigned char fillFGTransparency, unsigned char fillBGTransparency, unsigned char shadowPattern, Colour shfgc) |
void | collectCharIXStyle (unsigned id, unsigned level, unsigned charCount, unsigned short fontID, Colour fontColour, unsigned langId, double fontSize, bool bold, bool italic, bool underline, bool doubleunderline, bool strikeout, bool doublestrikeout, bool allcaps, bool initcaps, bool smallcaps, bool superscript, bool subscript, WPXString fontFace) |
void | collectParaIXStyle (unsigned id, unsigned level, unsigned charCount, double indFirst, double indLeft, double indRight, double spLine, double spBefore, double spAfter, unsigned char align, unsigned flags) |
void | collectTextBlockStyle (unsigned id, unsigned level, double leftMargin, double rightMargin, double topMargin, double bottomMargin, unsigned char verticalAlign, unsigned char bgClrId, const Colour &bgColour, double defaultTabStop, unsigned char textDirection) |
void | collectFieldList (unsigned id, unsigned level) |
void | collectTextField (unsigned id, unsigned level, int nameId, int formatStringId) |
void | collectNumericField (unsigned id, unsigned level, unsigned short format, double number, int formatStringId) |
void | startPage () |
void | endPage () |
void | endPages () |
![]() | |
VSDXCollector () | |
virtual | ~VSDXCollector () |
virtual void | collectFont (unsigned short fontID, const ::WPXBinaryData &textStream, TextFormat format)=0 |
virtual void | collectText (unsigned id, unsigned level, const ::WPXBinaryData &textStream, TextFormat format)=0 |
virtual void | collectName (unsigned id, unsigned level, const ::WPXBinaryData &name, TextFormat format)=0 |
Private Member Functions | |
VSDXContentCollector (const VSDXContentCollector &) | |
VSDXContentCollector & | operator= (const VSDXContentCollector &) |
void | applyXForm (double &x, double &y, const XForm &xform) |
void | transformPoint (double &x, double &y, XForm *txtxform=0) |
void | transformAngle (double &angle, XForm *txtxform=0) |
void | transformFlips (bool &flipX, bool &flipY) |
double | _NURBSBasis (unsigned knot, unsigned degree, double point, const std::vector< double > &knotVector) |
void | _flushCurrentPath () |
void | _flushText () |
void | _flushCurrentForeignData () |
void | _flushCurrentPage () |
void | _handleLevelChange (unsigned level) |
void | _appendUTF16LE (WPXString &text, WPXInputStream *input) |
void | _appendUCS4 (WPXString &text, unsigned ucs4Character) |
void | _handleForeignData (const WPXBinaryData &data) |
void | lineStyleFromStyleSheet (unsigned styleId) |
void | fillStyleFromStyleSheet (unsigned styleId) |
void | lineStyleFromStyleSheet (const VSDXLineStyle *style) |
void | fillStyleFromStyleSheet (const VSDXFillStyle *style) |
void | _applyLinePattern () |
void | _lineProperties (double strokeWidth, Colour c, unsigned linePattern, unsigned startMarker, unsigned endMarker, unsigned lineCap) |
const char * | _linePropertiesMarkerViewbox (unsigned marker) |
const char * | _linePropertiesMarkerPath (unsigned marker) |
double | _linePropertiesMarkerScale (unsigned marker) |
void | _fillAndShadowProperties (unsigned colourIndexFG, unsigned colourIndexBG, unsigned fillPattern, unsigned fillFGTransparency, unsigned fillBGTransparency, unsigned shadowPattern, Colour shfgc, double shadowOffsetX, double shadowOffsetY) |
void | _convertDataToString (WPXString &result, const WPXBinaryData &data, TextFormat format) |
bool | parseFormatId (const char *formatString, unsigned short &result) |
Additional Inherited Members | |
![]() | |
const ::WPXString | getColourString (const Colour &c) const |
libvisio::VSDXContentCollector::VSDXContentCollector | ( | libwpg::WPGPaintInterface * | painter, |
std::vector< std::map< unsigned, XForm > > & | groupXFormsSequence, | ||
std::vector< std::map< unsigned, unsigned > > & | groupMembershipsSequence, | ||
std::vector< std::list< unsigned > > & | documentPageShapeOrders, | ||
VSDXStyles & | styles, | ||
VSDXStencils & | stencils | ||
) |
Referenced by ~VSDXContentCollector().
|
inlinevirtual |
|
private |
|
private |
Referenced by _appendUTF16LE(), _convertDataToString(), and _flushText().
|
private |
Referenced by _convertDataToString(), and _flushText().
|
private |
Referenced by _lineProperties(), and collectGeometry().
|
private |
Referenced by collectFont(), collectName(), and collectShape().
|
private |
Referenced by collectFillAndShadow(), and fillStyleFromStyleSheet().
|
private |
Referenced by _handleLevelChange(), and startPage().
|
private |
Referenced by endPage().
|
private |
Referenced by _handleLevelChange(), collectGeometry(), and startPage().
|
private |
Referenced by _handleLevelChange().
|
private |
Referenced by collectForeignData(), collectOLEList(), and collectShape().
|
private |
Referenced by collectArcTo(), collectCharIXStyle(), collectEllipse(), collectEllipticalArcTo(), collectFieldList(), collectFillAndShadow(), collectFillStyle(), collectForeignData(), collectForeignDataType(), collectGeometry(), collectInfiniteLine(), collectLine(), collectLineStyle(), collectLineTo(), collectMoveTo(), collectName(), collectNameList(), collectNumericField(), collectNURBSTo(), collectOLEData(), collectOLEList(), collectPage(), collectPageProps(), collectParaIXStyle(), collectPolylineTo(), collectShape(), collectShapeData(), collectShapeId(), collectStyleSheet(), collectText(), collectTextBlock(), collectTextBlockStyle(), collectTextField(), collectTxtXForm(), collectUnhandledChunk(), collectVSDXCharStyle(), collectVSDXParaStyle(), collectXFormData(), and endPage().
|
private |
Referenced by collectLine(), and lineStyleFromStyleSheet().
|
private |
Referenced by _lineProperties().
|
private |
Referenced by _lineProperties().
|
private |
Referenced by _lineProperties().
|
private |
Referenced by collectNURBSTo().
|
private |
Referenced by transformPoint().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by collectFillAndShadow(), and ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
void libvisio::VSDXContentCollector::collectFont | ( | unsigned short | fontID, |
const WPXBinaryData & | textStream, | ||
TextFormat | format | ||
) |
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
void libvisio::VSDXContentCollector::collectName | ( | unsigned | id, |
unsigned | level, | ||
const WPXBinaryData & | name, | ||
TextFormat | format | ||
) |
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by collectNURBSTo(), collectSplineEnd(), and ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by collectPolylineTo(), and ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
void libvisio::VSDXContentCollector::collectText | ( | unsigned | id, |
unsigned | level, | ||
const WPXBinaryData & | textStream, | ||
TextFormat | format | ||
) |
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
private |
Referenced by collectShape().
|
private |
|
private |
Referenced by collectShape().
|
private |
|
private |
Referenced by ~VSDXContentCollector().
|
private |
Referenced by collectNumericField().
|
virtual |
Implements libvisio::VSDXCollector.
Referenced by ~VSDXContentCollector().
|
private |
Referenced by _flushCurrentForeignData(), _flushText(), collectArcTo(), collectEllipse(), and collectEllipticalArcTo().
|
private |
Referenced by _flushCurrentForeignData(), _flushText(), and collectArcTo().
|
private |
|
private |
|
private |
Referenced by _flushText(), collectShape(), and collectVSDXCharStyle().
|
private |
Referenced by _fillAndShadowProperties(), and collectColours().
|
private |
Referenced by _flushCurrentForeignData(), _handleForeignData(), collectOLEData(), collectOLEList(), and collectShape().
|
private |
Referenced by _flushCurrentForeignData(), and _handleForeignData().
|
private |
|
private |
Referenced by collectGeometry(), collectNURBSTo(), collectPolylineTo(), and collectShape().
|
private |
Referenced by _handleLevelChange().
|
private |
|
private |
Referenced by _flushCurrentPage(), collectPage(), collectPageProps(), endPage(), and startPage().
|
private |
|
private |
Referenced by startPage().
|
private |
Referenced by collectShape(), transformAngle(), transformFlips(), and transformPoint().
|
private |
Referenced by _flushText(), and collectShape().
|
private |
Referenced by _flushText(), and collectShape().
|
private |
Referenced by startPage().
|
private |
Referenced by _appendUTF16LE(), _flushText(), and collectShape().
|
private |
Referenced by _appendUTF16LE(), _flushText(), collectFieldList(), collectNumericField(), collectShape(), and collectTextField().
|
private |
Referenced by _fillAndShadowProperties(), and collectShape().
|
private |
Referenced by _fillAndShadowProperties(), and collectShape().
|
private |
Referenced by _fillAndShadowProperties(), collectGeometry(), and collectShape().
|
private |
Referenced by _fillAndShadowProperties(), collectGeometry(), and collectShape().
|
private |
Referenced by _flushText(), and collectFont().
|
private |
Referenced by _handleForeignData(), collectForeignDataType(), and collectShape().
|
private |
Referenced by _flushCurrentForeignData(), collectForeignDataType(), and collectShape().
|
private |
Referenced by _flushCurrentForeignData(), collectForeignDataType(), and collectShape().
|
private |
Referenced by _flushCurrentForeignData(), collectForeignDataType(), and collectShape().
|
private |
Referenced by _handleForeignData(), collectForeignDataType(), and collectShape().
|
private |
Referenced by _flushCurrentForeignData(), collectForeignDataType(), and collectShape().
|
private |
Referenced by _flushCurrentPage(), startPage(), transformFlips(), and transformPoint().
|
private |
Referenced by startPage().
|
private |
Referenced by startPage(), transformFlips(), and transformPoint().
|
private |
Referenced by startPage().
|
private |
Referenced by collectGeometry(), and collectShape().
|
private |
Referenced by endPage(), and startPage().
|
private |
Referenced by _handleLevelChange(), collectShape(), startPage(), transformAngle(), transformFlips(), and transformPoint().
|
private |
Referenced by _handleLevelChange().
|
private |
Referenced by _lineProperties(), and collectGeometry().
|
private |
Referenced by _applyLinePattern(), _lineProperties(), and collectGeometry().
|
private |
Referenced by collectName(), collectNameList(), collectNumericField(), collectShape(), and collectTextField().
|
private |
Referenced by collectGeometry(), and collectShape().
|
private |
Referenced by collectGeometry(), and collectShape().
|
private |
Referenced by _flushCurrentForeignData(), _flushCurrentPath(), collectGeometry(), and collectShape().
|
private |
Referenced by _handleLevelChange(), collectNURBSTo(), and collectShapeData().
|
private |
|
private |
|
private |
Referenced by collectInfiniteLine(), collectPageProps(), and transformPoint().
|
private |
Referenced by _flushCurrentPage(), and collectShape().
|
private |
Referenced by _flushCurrentPage(), and collectShape().
|
private |
Referenced by endPage(), and endPages().
|
private |
Referenced by _flushCurrentPage(), and startPage().
|
private |
Referenced by collectInfiniteLine(), and collectPageProps().
|
private |
Referenced by endPages().
|
private |
Referenced by _flushText(), collectShape(), and collectVSDXParaStyle().
|
private |
Referenced by _handleLevelChange(), collectPolylineTo(), and collectShapeData().
|
private |
|
private |
Referenced by _fillAndShadowProperties(), collectFillAndShadow(), and collectPageProps().
|
private |
Referenced by _fillAndShadowProperties(), collectFillAndShadow(), and collectPageProps().
|
private |
Referenced by _flushCurrentForeignData(), _flushCurrentPath(), and collectShape().
|
private |
Referenced by _flushText(), and collectShape().
|
private |
Referenced by collectSplineEnd(), and collectSplineKnot().
|
private |
Referenced by collectSplineEnd(), and collectSplineStart().
|
private |
Referenced by collectSplineEnd(), collectSplineKnot(), and collectSplineStart().
|
private |
Referenced by collectSplineEnd(), and collectSplineStart().
|
private |
Referenced by collectSplineEnd(), and collectSplineStart().
|
private |
Referenced by collectSplineEnd(), collectSplineKnot(), and collectSplineStart().
|
private |
Referenced by collectSplineEnd(), collectSplineKnot(), and collectSplineStart().
|
private |
Referenced by collectNumericField(), collectShape(), and collectTextField().
|
private |
Referenced by collectShape(), and collectTextField().
|
private |
Referenced by collectShape().
|
private |
Referenced by _handleLevelChange(), collectNURBSTo(), collectPolylineTo(), and collectShape().
|
private |
|
private |
Referenced by collectShape(), fillStyleFromStyleSheet(), and lineStyleFromStyleSheet().
|
private |
Referenced by _flushText(), collectShape(), and collectTextBlock().
|
private |
Referenced by _flushText(), collectShape(), and collectText().
|
private |
Referenced by _flushText(), _handleLevelChange(), collectShape(), and collectText().
|
private |
Referenced by _flushText(), _handleLevelChange(), collectTxtXForm(), startPage(), and ~VSDXContentCollector().
|
private |
|
private |
Referenced by _flushText(), _handleLevelChange(), collectNURBSTo(), collectPolylineTo(), collectXFormData(), startPage(), and transformAngle().
|
private |