30 #ifndef __CDRCONTENTCOLLECTOR_H__
31 #define __CDRCONTENTCOLLECTOR_H__
36 #include <libwpg/libwpg.h>
58 void collectCubicBezier(
double x1,
double y1,
double x2,
double y2,
double x,
double y);
62 void collectArcTo(
double rx,
double ry,
bool largeArc,
bool sweep,
double x,
double y);
67 void collectLineStyle(
unsigned short lineType,
unsigned short capsType,
unsigned short joinType,
double lineWidth,
68 double stretch,
double angle,
const CDRColor &color,
const std::vector<unsigned> &dashArray,
69 unsigned startMarkerId,
unsigned endMarkerId);
73 void collectPolygonTransform(
unsigned numAngles,
unsigned nextPoint,
double rx,
double ry,
double cx,
double cy);
74 void collectBitmap(
unsigned imageId,
double x1,
double x2,
double y1,
double y2);
75 void collectBmp(
unsigned,
unsigned,
unsigned,
unsigned,
unsigned,
const std::vector<unsigned> &,
const std::vector<unsigned char> &) {}
76 void collectBmp(
unsigned,
const std::vector<unsigned char> &) {}
77 void collectBmpf(
unsigned,
unsigned,
unsigned,
const std::vector<unsigned char> &) {}
78 void collectPpdt(
const std::vector<std::pair<double, double> > &points,
const std::vector<unsigned> &knotVector);
84 void collectBBox(
double x0,
double y0,
double x1,
double y1);
88 void collectText(
unsigned,
unsigned,
const std::vector<unsigned char> &,
89 const std::vector<unsigned char> &,
const std::map<unsigned, CDRCharacterStyle> &) {}
103 void _fillProperties(WPXPropertyList &propList, WPXPropertyListVector &vec);
const std::vector< CDRTextLine > * m_currentText
Definition: CDRContentCollector.h:120
unsigned m_pageIndex
Definition: CDRContentCollector.h:114
void _flushCurrentPath()
Definition: CDRContentCollector.cpp:192
void collectOtherList()
Definition: CDRContentCollector.cpp:151
void collectColorProfile(const std::vector< unsigned char > &)
Definition: CDRContentCollector.h:83
CDRFillStyle m_currentFillStyle
Definition: CDRContentCollector.h:115
std::stack< unsigned > m_groupLevels
Definition: CDRContentCollector.h:133
Definition: CDRTypes.h:42
CDRTransforms m_fillTransforms
Definition: CDRContentCollector.h:126
CDRPage m_page
Definition: CDRContentCollector.h:113
void collectFillOpacity(double opacity)
Definition: CDRContentCollector.cpp:1143
std::stack< CDRTransforms > m_groupTransforms
Definition: CDRContentCollector.h:134
CDRImage m_currentImage
Definition: CDRContentCollector.h:119
void collectCubicBezier(double x1, double y1, double x2, double y2, double x, double y)
Definition: CDRContentCollector.cpp:156
Definition: CDRTypes.h:244
void _fillProperties(WPXPropertyList &propList, WPXPropertyListVector &vec)
Definition: CDRContentCollector.cpp:634
Definition: CDRTypes.h:103
void collectParagraphText(double x, double y, double width, double height)
Definition: CDRContentCollector.cpp:1210
unsigned m_currentPageLevel
Definition: CDRContentCollector.h:118
void _generateBitmapFromPattern(WPXBinaryData &bitmap, const CDRPattern &pattern, const CDRColor &fgColor, const CDRColor &bgColor)
Definition: CDRContentCollector.cpp:1063
unsigned m_currentObjectLevel
Definition: CDRContentCollector.h:118
bool m_isInPolygon
Definition: CDRContentCollector.h:128
void collectBmp(unsigned, unsigned, unsigned, unsigned, unsigned, const std::vector< unsigned > &, const std::vector< unsigned char > &)
Definition: CDRContentCollector.h:75
void collectPpdt(const std::vector< std::pair< double, double > > &points, const std::vector< unsigned > &knotVector)
Definition: CDRContentCollector.cpp:1138
unsigned m_spnd
Definition: CDRContentCollector.h:117
Definition: CDRTypes.h:255
Definition: CDRTypes.h:155
libwpg::WPGPaintInterface * m_painter
Definition: CDRContentCollector.h:107
unsigned m_currentVectLevel
Definition: CDRContentCollector.h:118
Definition: CDRTypes.h:119
void collectPage(unsigned level)
Definition: CDRContentCollector.cpp:97
void collectVect(unsigned level)
Definition: CDRContentCollector.cpp:129
void collectGroup(unsigned level)
Definition: CDRContentCollector.cpp:116
Definition: CDRTypes.h:196
void _lineProperties(WPXPropertyList &propList)
Definition: CDRContentCollector.cpp:948
CDRContentCollector(CDRParserState &ps,::libwpg::WPGPaintInterface *painter)
void collectSpline()
Definition: CDRContentCollector.cpp:622
void collectTransform(const CDRTransforms &transforms, bool considerGroupTransform)
Definition: CDRContentCollector.cpp:512
bool m_ignorePage
Definition: CDRContentCollector.h:111
void collectPaletteEntry(unsigned, unsigned, const CDRColor &)
Definition: CDRContentCollector.h:87
void collectRotate(double angle, double cx, double cy)
Definition: CDRContentCollector.cpp:607
bool m_isInSpline
Definition: CDRContentCollector.h:129
std::stack< CDROutputElementList > m_fillOutputElements
Definition: CDRContentCollector.h:132
CDRParserState & m_ps
Definition: CDRContentCollector.h:138
std::stack< CDROutputElementList > m_contentOutputElements
Definition: CDRContentCollector.h:131
void collectPolygon()
Definition: CDRContentCollector.cpp:617
void collectFlags(unsigned flags, bool considerFlags)
Definition: CDRContentCollector.cpp:139
void collectBitmap(unsigned imageId, double x1, double x2, double y1, double y2)
Definition: CDRContentCollector.cpp:1131
void collectPolygonTransform(unsigned numAngles, unsigned nextPoint, double rx, double ry, double cx, double cy)
Definition: CDRContentCollector.cpp:627
CDRLineStyle m_currentLineStyle
Definition: CDRContentCollector.h:116
void collectSpnd(unsigned spnd)
Definition: CDRContentCollector.cpp:1161
CDRBox m_currentTextBox
Definition: CDRContentCollector.h:122
void collectBBox(double x0, double y0, double x1, double y1)
Definition: CDRContentCollector.cpp:1148
CDRPolygon * m_polygon
Definition: CDRContentCollector.h:127
double m_fillOpacity
Definition: CDRContentCollector.h:136
CDRContentCollector & operator=(const CDRContentCollector &)
unsigned m_currentGroupLevel
Definition: CDRContentCollector.h:118
void collectArtisticText(double x, double y)
Definition: CDRContentCollector.cpp:1201
void collectQuadraticBezier(double x1, double y1, double x, double y)
Definition: CDRContentCollector.cpp:162
void collectMoveTo(double x, double y)
Definition: CDRContentCollector.cpp:168
bool m_isPageProperties
Definition: CDRContentCollector.h:109
void _startPage(double width, double height)
Definition: CDRContentCollector.cpp:69
Definition: CDRContentCollector.h:46
void collectLineStyle(unsigned short lineType, unsigned short capsType, unsigned short joinType, double lineWidth, double stretch, double angle, const CDRColor &color, const std::vector< unsigned > &dashArray, unsigned startMarkerId, unsigned endMarkerId)
Definition: CDRContentCollector.cpp:600
std::stack< CDROutputElementList > * m_outputElements
Definition: CDRContentCollector.h:130
Definition: CDRTypes.h:131
void collectFillStyle(unsigned short fillType, const CDRColor &color1, const CDRColor &color2, const CDRGradient &gradient, const CDRImageFill &imageFill)
Definition: CDRContentCollector.cpp:595
void collectLevel(unsigned level)
Definition: CDRContentCollector.cpp:525
void collectArcTo(double rx, double ry, bool largeArc, bool sweep, double x, double y)
Definition: CDRContentCollector.cpp:180
void _endPage()
Definition: CDRContentCollector.cpp:83
void collectLineTo(double x, double y)
Definition: CDRContentCollector.cpp:174
bool m_isPageStarted
Definition: CDRContentCollector.h:110
void collectFillTransform(const CDRTransforms &fillTrafo)
Definition: CDRContentCollector.cpp:520
void collectObject(unsigned level)
Definition: CDRContentCollector.cpp:106
Definition: CDRCollector.h:52
void collectText(unsigned, unsigned, const std::vector< unsigned char > &, const std::vector< unsigned char > &, const std::map< unsigned, CDRCharacterStyle > &)
Definition: CDRContentCollector.h:88
Definition: CDRTypes.h:71
CDRTransforms m_currentTransforms
Definition: CDRContentCollector.h:125
Definition: CDRTypes.h:234
CDRBox m_currentBBox
Definition: CDRContentCollector.h:121
Definition: CDRTypes.h:89
void collectVectorPattern(unsigned id, const WPXBinaryData &data)
Definition: CDRContentCollector.cpp:1169
CDRPath m_currentPath
Definition: CDRContentCollector.h:124
CDRSplineData m_splineData
Definition: CDRContentCollector.h:135
Definition: CDRTypes.h:210
virtual ~CDRContentCollector()
Definition: CDRContentCollector.cpp:63
void collectBmpf(unsigned, unsigned, unsigned, const std::vector< unsigned char > &)
Definition: CDRContentCollector.h:77
void collectBmp(unsigned, const std::vector< unsigned char > &)
Definition: CDRContentCollector.h:76
void collectPageSize(double, double, double, double)
Definition: CDRContentCollector.h:72
void collectStld(unsigned, const CDRCharacterStyle &)
Definition: CDRContentCollector.h:92
Definition: CDRCollector.h:79
void collectClosePath()
Definition: CDRContentCollector.cpp:186