#include <CDRContentCollector.h>
Public Member Functions | |
| CDRContentCollector (CDRParserState &ps,::libwpg::WPGPaintInterface *painter) | |
| virtual | ~CDRContentCollector () |
| void | collectPage (unsigned level) |
| void | collectObject (unsigned level) |
| void | collectGroup (unsigned level) |
| void | collectVect (unsigned level) |
| void | collectOtherList () |
| void | collectCubicBezier (double x1, double y1, double x2, double y2, double x, double y) |
| void | collectQuadraticBezier (double x1, double y1, double x, double y) |
| void | collectMoveTo (double x, double y) |
| void | collectLineTo (double x, double y) |
| void | collectArcTo (double rx, double ry, bool largeArc, bool sweep, double x, double y) |
| void | collectClosePath () |
| void | collectLevel (unsigned level) |
| void | collectTransform (double v0, double v1, double x, double v3, double v4, double y, bool considerGroupTransform) |
| void | collectFildId (unsigned id) |
| void | collectOutlId (unsigned id) |
| void | collectFild (unsigned, unsigned short, const CDRColor &, const CDRColor &, const CDRGradient &, const CDRImageFill &) |
| void | collectOutl (unsigned, unsigned short, unsigned short, unsigned short, double, double, double, const CDRColor &, const std::vector< unsigned short > &, unsigned, unsigned) |
| void | collectRotate (double angle, double cx, double cy) |
| void | collectFlags (unsigned flags, bool considerFlags) |
| void | collectPageSize (double, double, double, double) |
| void | collectPolygonTransform (unsigned numAngles, unsigned nextPoint, double rx, double ry, double cx, double cy) |
| void | collectBitmap (unsigned imageId, double x1, double x2, double y1, double y2) |
| void | collectBmp (unsigned, unsigned, unsigned, unsigned, unsigned, const std::vector< unsigned > &, const std::vector< unsigned char > &) |
| void | collectBmp (unsigned, const std::vector< unsigned char > &) |
| void | collectBmpf (unsigned, unsigned, unsigned, const std::vector< unsigned char > &) |
| void | collectPpdt (const std::vector< std::pair< double, double > > &points, const std::vector< unsigned > &knotVector) |
| void | collectFillTransform (double v0, double v1, double x, double v3, double v4, double y) |
| void | collectFillOpacity (double opacity) |
| void | collectPolygon () |
| void | collectSpline () |
| void | collectColorProfile (const std::vector< unsigned char > &) |
| void | collectBBox (double x0, double y0, double x1, double y1) |
| void | collectSpnd (unsigned spnd) |
| void | collectVectorPattern (unsigned id, const WPXBinaryData &data) |
| void | collectPaletteEntry (unsigned, unsigned, const CDRColor &) |
| void | collectFont (unsigned, unsigned short, const WPXString &) |
| void | collectText (unsigned, unsigned, const std::vector< unsigned char > &, const std::vector< uint64_t > &, const std::map< unsigned, CDRCharacterStyle > &) |
| void | collectArtisticText () |
| void | collectParagraphText () |
| void | collectStlt (const std::map< unsigned, CDRCharacterStyle > &) |
Private Member Functions | |
| CDRContentCollector (const CDRContentCollector &) | |
| CDRContentCollector & | operator= (const CDRContentCollector &) |
| void | _startPage (double width, double height) |
| void | _endPage () |
| void | _flushCurrentPath () |
| void | _fillProperties (WPXPropertyList &propList, WPXPropertyListVector &vec) |
| void | _lineProperties (WPXPropertyList &propList) |
| void | _generateBitmapFromPattern (WPXBinaryData &bitmap, const CDRPattern &pattern, const CDRColor &fgColor, const CDRColor &bgColor) |
Private Attributes | |
| libwpg::WPGPaintInterface * | m_painter |
| bool | m_isPageProperties |
| bool | m_isPageStarted |
| bool | m_ignorePage |
| CDRPage | m_page |
| unsigned | m_pageIndex |
| unsigned | m_currentFildId |
| unsigned | m_currentOutlId |
| unsigned | m_spnd |
| unsigned | m_currentObjectLevel |
| unsigned | m_currentGroupLevel |
| unsigned | m_currentVectLevel |
| unsigned | m_currentPageLevel |
| CDRImage | m_currentImage |
| CDRText | m_currentText |
| double | m_currentTextOffsetX |
| double | m_currentTextOffsetY |
| CDRBBox | m_currentBBox |
| CDRPath | m_currentPath |
| CDRTransform | m_currentTransform |
| CDRTransform | m_fillTransform |
| CDRPolygon * | m_polygon |
| bool | m_isInPolygon |
| bool | m_isInSpline |
| std::stack < CDROutputElementList > * | m_outputElements |
| std::stack< CDROutputElementList > | m_contentOutputElements |
| std::stack< CDROutputElementList > | m_fillOutputElements |
| std::stack< unsigned > | m_groupLevels |
| std::stack< CDRTransform > | m_groupTransforms |
| CDRSplineData | m_splineData |
| double | m_fillOpacity |
| CDRParserState & | m_ps |
| libcdr::CDRContentCollector::CDRContentCollector | ( | CDRParserState & | ps, |
| ::libwpg::WPGPaintInterface * | painter | ||
| ) |
| libcdr::CDRContentCollector::~CDRContentCollector | ( | ) | [virtual] |
| libcdr::CDRContentCollector::CDRContentCollector | ( | const CDRContentCollector & | ) | [private] |
| void libcdr::CDRContentCollector::_endPage | ( | ) | [private] |
Referenced by ~CDRContentCollector().
| void libcdr::CDRContentCollector::_fillProperties | ( | WPXPropertyList & | propList, |
| WPXPropertyListVector & | vec | ||
| ) | [private] |
| void libcdr::CDRContentCollector::_flushCurrentPath | ( | ) | [private] |
| void libcdr::CDRContentCollector::_generateBitmapFromPattern | ( | WPXBinaryData & | bitmap, |
| const CDRPattern & | pattern, | ||
| const CDRColor & | fgColor, | ||
| const CDRColor & | bgColor | ||
| ) | [private] |
| void libcdr::CDRContentCollector::_lineProperties | ( | WPXPropertyList & | propList | ) | [private] |
| void libcdr::CDRContentCollector::_startPage | ( | double | width, |
| double | height | ||
| ) | [private] |
| void libcdr::CDRContentCollector::collectArcTo | ( | double | rx, |
| double | ry, | ||
| bool | largeArc, | ||
| bool | sweep, | ||
| double | x, | ||
| double | y | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectArtisticText | ( | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectBBox | ( | double | x0, |
| double | y0, | ||
| double | x1, | ||
| double | y1 | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectBitmap | ( | unsigned | imageId, |
| double | x1, | ||
| double | x2, | ||
| double | y1, | ||
| double | y2 | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectBmp | ( | unsigned | , |
| unsigned | , | ||
| unsigned | , | ||
| unsigned | , | ||
| unsigned | , | ||
| const std::vector< unsigned > & | , | ||
| const std::vector< unsigned char > & | |||
| ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectBmp | ( | unsigned | , |
| const std::vector< unsigned char > & | |||
| ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectBmpf | ( | unsigned | , |
| unsigned | , | ||
| unsigned | , | ||
| const std::vector< unsigned char > & | |||
| ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectClosePath | ( | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectColorProfile | ( | const std::vector< unsigned char > & | ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectCubicBezier | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| double | x, | ||
| double | y | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectFild | ( | unsigned | , |
| unsigned short | , | ||
| const CDRColor & | , | ||
| const CDRColor & | , | ||
| const CDRGradient & | , | ||
| const CDRImageFill & | |||
| ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectFildId | ( | unsigned | id | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectFillOpacity | ( | double | opacity | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectFillTransform | ( | double | v0, |
| double | v1, | ||
| double | x, | ||
| double | v3, | ||
| double | v4, | ||
| double | y | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectFlags | ( | unsigned | flags, |
| bool | considerFlags | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectFont | ( | unsigned | , |
| unsigned short | , | ||
| const WPXString & | |||
| ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectGroup | ( | unsigned | level | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectLevel | ( | unsigned | level | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectLineTo | ( | double | x, |
| double | y | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectMoveTo | ( | double | x, |
| double | y | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectObject | ( | unsigned | level | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectOtherList | ( | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectOutl | ( | unsigned | , |
| unsigned short | , | ||
| unsigned short | , | ||
| unsigned short | , | ||
| double | , | ||
| double | , | ||
| double | , | ||
| const CDRColor & | , | ||
| const std::vector< unsigned short > & | , | ||
| unsigned | , | ||
| unsigned | |||
| ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectOutlId | ( | unsigned | id | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectPage | ( | unsigned | level | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectPageSize | ( | double | , |
| double | , | ||
| double | , | ||
| double | |||
| ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectPaletteEntry | ( | unsigned | , |
| unsigned | , | ||
| const CDRColor & | |||
| ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectParagraphText | ( | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectPolygon | ( | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectPolygonTransform | ( | unsigned | numAngles, |
| unsigned | nextPoint, | ||
| double | rx, | ||
| double | ry, | ||
| double | cx, | ||
| double | cy | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectPpdt | ( | const std::vector< std::pair< double, double > > & | points, |
| const std::vector< unsigned > & | knotVector | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectQuadraticBezier | ( | double | x1, |
| double | y1, | ||
| double | x, | ||
| double | y | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectRotate | ( | double | angle, |
| double | cx, | ||
| double | cy | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectSpline | ( | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectSpnd | ( | unsigned | spnd | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectStlt | ( | const std::map< unsigned, CDRCharacterStyle > & | ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectText | ( | unsigned | , |
| unsigned | , | ||
| const std::vector< unsigned char > & | , | ||
| const std::vector< uint64_t > & | , | ||
| const std::map< unsigned, CDRCharacterStyle > & | |||
| ) | [inline, virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectTransform | ( | double | v0, |
| double | v1, | ||
| double | x, | ||
| double | v3, | ||
| double | v4, | ||
| double | y, | ||
| bool | considerGroupTransform | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectVect | ( | unsigned | level | ) | [virtual] |
Implements libcdr::CDRCollector.
| void libcdr::CDRContentCollector::collectVectorPattern | ( | unsigned | id, |
| const WPXBinaryData & | data | ||
| ) | [virtual] |
Implements libcdr::CDRCollector.
| CDRContentCollector& libcdr::CDRContentCollector::operator= | ( | const CDRContentCollector & | ) | [private] |
std::stack<CDROutputElementList> libcdr::CDRContentCollector::m_contentOutputElements [private] |
unsigned libcdr::CDRContentCollector::m_currentFildId [private] |
unsigned libcdr::CDRContentCollector::m_currentGroupLevel [private] |
unsigned libcdr::CDRContentCollector::m_currentObjectLevel [private] |
unsigned libcdr::CDRContentCollector::m_currentOutlId [private] |
unsigned libcdr::CDRContentCollector::m_currentPageLevel [private] |
double libcdr::CDRContentCollector::m_currentTextOffsetX [private] |
double libcdr::CDRContentCollector::m_currentTextOffsetY [private] |
unsigned libcdr::CDRContentCollector::m_currentVectLevel [private] |
double libcdr::CDRContentCollector::m_fillOpacity [private] |
std::stack<CDROutputElementList> libcdr::CDRContentCollector::m_fillOutputElements [private] |
std::stack<unsigned> libcdr::CDRContentCollector::m_groupLevels [private] |
std::stack<CDRTransform> libcdr::CDRContentCollector::m_groupTransforms [private] |
bool libcdr::CDRContentCollector::m_ignorePage [private] |
bool libcdr::CDRContentCollector::m_isInPolygon [private] |
bool libcdr::CDRContentCollector::m_isInSpline [private] |
bool libcdr::CDRContentCollector::m_isPageProperties [private] |
bool libcdr::CDRContentCollector::m_isPageStarted [private] |
Referenced by ~CDRContentCollector().
std::stack<CDROutputElementList>* libcdr::CDRContentCollector::m_outputElements [private] |
CDRPage libcdr::CDRContentCollector::m_page [private] |
unsigned libcdr::CDRContentCollector::m_pageIndex [private] |
libwpg::WPGPaintInterface* libcdr::CDRContentCollector::m_painter [private] |
CDRPolygon* libcdr::CDRContentCollector::m_polygon [private] |
CDRParserState& libcdr::CDRContentCollector::m_ps [private] |
unsigned libcdr::CDRContentCollector::m_spnd [private] |