10 #ifndef VSDCONTENTCOLLECTOR_H    11 #define VSDCONTENTCOLLECTOR_H    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,
    43   void collectEllipticalArcTo(
unsigned id, 
unsigned level, 
double x3, 
double y3, 
double x2, 
double y2, 
double angle, 
double ecc) 
override;
    44   void collectForeignData(
unsigned level, 
const librevenge::RVNGBinaryData &binaryData) 
override;
    46   void collectOLEData(
unsigned id, 
unsigned level, 
const librevenge::RVNGBinaryData &oleData) 
override;
    47   void collectEllipse(
unsigned id, 
unsigned level, 
double cx, 
double cy, 
double xleft, 
double yleft, 
double xtop, 
double ytop) 
override;
    48   void collectLine(
unsigned level, 
const boost::optional<double> &strokeWidth, 
const boost::optional<Colour> &c, 
const boost::optional<unsigned char> &linePattern,
    49                    const boost::optional<unsigned char> &startMarker, 
const boost::optional<unsigned char> &endMarker,
    50                    const boost::optional<unsigned char> &lineCap, 
const boost::optional<double> &rounding,
    51                    const boost::optional<long> &qsLineColour, 
const boost::optional<long> &qsLineMatrix) 
override;
    52   void collectFillAndShadow(
unsigned level, 
const boost::optional<Colour> &colourFG, 
const boost::optional<Colour> &colourBG,
    53                             const boost::optional<unsigned char> &fillPattern, 
const boost::optional<double> &fillFGTransparency,
    54                             const boost::optional<double> &fillBGTransparency, 
const boost::optional<unsigned char> &shadowPattern,
    55                             const boost::optional<Colour> &shfgc, 
const boost::optional<double> &shadowOffsetX, 
const boost::optional<double> &shadowOffsetY,
    56                             const boost::optional<long> &qsFc, 
const boost::optional<long> &qsSc, 
const boost::optional<long> &qsLm) 
override;
    57   void collectFillAndShadow(
unsigned level, 
const boost::optional<Colour> &colourFG, 
const boost::optional<Colour> &colourBG,
    58                             const boost::optional<unsigned char> &fillPattern, 
const boost::optional<double> &fillFGTransparency,
    59                             const boost::optional<double> &fillBGTransparency, 
const boost::optional<unsigned char> &shadowPattern,
    60                             const boost::optional<Colour> &shfgc) 
override;
    61   void collectGeometry(
unsigned id, 
unsigned level, 
bool noFill, 
bool noLine, 
bool noShow) 
override;
    62   void collectMoveTo(
unsigned id, 
unsigned level, 
double x, 
double y) 
override;
    63   void collectLineTo(
unsigned id, 
unsigned level, 
double x, 
double y) 
override;
    64   void collectArcTo(
unsigned id, 
unsigned level, 
double x2, 
double y2, 
double bow) 
override;
    65   void collectNURBSTo(
unsigned id, 
unsigned level, 
double x2, 
double y2, 
unsigned char xType, 
unsigned char yType, 
unsigned degree,
    66                       const std::vector<std::pair<double, double> > &ctrlPnts, 
const std::vector<double> &kntVec, 
const std::vector<double> &weights) 
override;
    67   void collectNURBSTo(
unsigned id, 
unsigned level, 
double x2, 
double y2, 
double knot, 
double knotPrev, 
double weight, 
double weightPrev, 
unsigned dataID) 
override;
    68   void collectNURBSTo(
unsigned id, 
unsigned level, 
double x2, 
double y2, 
double knot, 
double knotPrev, 
double weight, 
double weightPrev, 
const NURBSData &data) 
override;
    69   void collectPolylineTo(
unsigned id, 
unsigned level, 
double x, 
double y, 
unsigned char xType, 
unsigned char yType,
    70                          const std::vector<std::pair<double, double> > &points) 
override;
    71   void collectPolylineTo(
unsigned id, 
unsigned level, 
double x, 
double y, 
unsigned dataID) 
override;
    73   void collectShapeData(
unsigned id, 
unsigned level, 
unsigned char xType, 
unsigned char yType, 
unsigned degree, 
double lastKnot,
    74                         std::vector<std::pair<double, double> > controlPoints, std::vector<double> knotVector, std::vector<double> weights) 
override;
    75   void collectShapeData(
unsigned id, 
unsigned level, 
unsigned char xType, 
unsigned char yType, std::vector<std::pair<double, double> > points) 
override;
    78   void collectShapesOrder(
unsigned id, 
unsigned level, 
const std::vector<unsigned> &shapeIds) 
override;
    79   void collectForeignDataType(
unsigned level, 
unsigned foreignType, 
unsigned foreignFormat, 
double offsetX, 
double offsetY, 
double width, 
double height) 
override;
    80   void collectPageProps(
unsigned id, 
unsigned level, 
double pageWidth, 
double pageHeight, 
double shadowOffsetX, 
double shadowOffsetY, 
double scale) 
override;
    81   void collectPage(
unsigned id, 
unsigned level, 
unsigned backgroundPageID, 
bool isBackgroundPage, 
const VSDName &pageName) 
override;
    82   void collectShape(
unsigned id, 
unsigned level, 
unsigned parent, 
unsigned masterPage, 
unsigned masterShape, 
unsigned lineStyle, 
unsigned fillStyle, 
unsigned textStyle) 
override;
    83   void collectSplineStart(
unsigned id, 
unsigned level, 
double x, 
double y, 
double secondKnot, 
double firstKnot, 
double lastKnot, 
unsigned degree) 
override;
    84   void collectSplineKnot(
unsigned id, 
unsigned level, 
double x, 
double y, 
double knot) 
override;
    86   void collectInfiniteLine(
unsigned id, 
unsigned level, 
double x1, 
double y1, 
double x2, 
double y2) 
override;
    87   void collectRelCubBezTo(
unsigned id, 
unsigned level, 
double x, 
double y, 
double a, 
double b, 
double c, 
double d) 
override;
    88   void collectRelEllipticalArcTo(
unsigned id, 
unsigned level, 
double x, 
double y, 
double a, 
double b, 
double c, 
double d) 
override;
    89   void collectRelLineTo(
unsigned id, 
unsigned level, 
double x, 
double y) 
override;
    90   void collectRelMoveTo(
unsigned id, 
unsigned level, 
double x, 
double y) 
override;
    91   void collectRelQuadBezTo(
unsigned id, 
unsigned level, 
double x, 
double y, 
double a, 
double b) 
override;
    95   void collectText(
unsigned level, 
const librevenge::RVNGBinaryData &textStream, 
TextFormat format) 
override;
    96   void collectCharIX(
unsigned id, 
unsigned level, 
unsigned charCount, 
const boost::optional<VSDName> &font,
    97                      const boost::optional<Colour> &fontColour, 
const boost::optional<double> &fontSize, 
const boost::optional<bool> &bold,
    98                      const boost::optional<bool> &italic, 
const boost::optional<bool> &underline, 
const boost::optional<bool> &doubleunderline,
    99                      const boost::optional<bool> &strikeout, 
const boost::optional<bool> &doublestrikeout, 
const boost::optional<bool> &allcaps,
   100                      const boost::optional<bool> &initcaps, 
const boost::optional<bool> &smallcaps, 
const boost::optional<bool> &superscript,
   101                      const boost::optional<bool> &subscript, 
const boost::optional<double> &scaleWidth) 
override;
   102   void collectDefaultCharStyle(
unsigned charCount, 
const boost::optional<VSDName> &font, 
const boost::optional<Colour> &fontColour,
   103                                const boost::optional<double> &fontSize, 
const boost::optional<bool> &bold, 
const boost::optional<bool> &italic,
   104                                const boost::optional<bool> &underline, 
const boost::optional<bool> &doubleunderline, 
const boost::optional<bool> &strikeout,
   105                                const boost::optional<bool> &doublestrikeout, 
const boost::optional<bool> &allcaps, 
const boost::optional<bool> &initcaps,
   106                                const boost::optional<bool> &smallcaps, 
const boost::optional<bool> &superscript, 
const boost::optional<bool> &subscript,
   107                                const boost::optional<double> &scaleWidth) 
override;
   108   void collectParaIX(
unsigned id, 
unsigned level, 
unsigned charCount, 
const boost::optional<double> &indFirst,
   109                      const boost::optional<double> &indLeft, 
const boost::optional<double> &indRight, 
const boost::optional<double> &spLine,
   110                      const boost::optional<double> &spBefore, 
const boost::optional<double> &spAfter, 
const boost::optional<unsigned char> &align,
   111                      const boost::optional<unsigned char> &bullet, 
const boost::optional<VSDName> &bulletStr, 
const boost::optional<VSDName> &bulletFont,
   112                      const boost::optional<double> &bulletFontSize, 
const boost::optional<double> &textPosAfterBullet,
   113                      const boost::optional<unsigned> &flags) 
override;
   114   void collectDefaultParaStyle(
unsigned charCount, 
const boost::optional<double> &indFirst, 
const boost::optional<double> &indLeft,
   115                                const boost::optional<double> &indRight, 
const boost::optional<double> &spLine, 
const boost::optional<double> &spBefore,
   116                                const boost::optional<double> &spAfter, 
const boost::optional<unsigned char> &align,
   117                                const boost::optional<unsigned char> &bullet, 
const boost::optional<VSDName> &bulletStr,
   118                                const boost::optional<VSDName> &bulletFont, 
const boost::optional<double> &bulletFontSize,
   119                                const boost::optional<double> &textPosAfterBullet, 
const boost::optional<unsigned> &flags) 
override;
   120   void collectTextBlock(
unsigned level, 
const boost::optional<double> &leftMargin, 
const boost::optional<double> &rightMargin,
   121                         const boost::optional<double> &topMargin, 
const boost::optional<double> &bottomMargin,
   122                         const boost::optional<unsigned char> &verticalAlign, 
const boost::optional<bool> &isBgFilled,
   123                         const boost::optional<Colour> &bgColour, 
const boost::optional<double> &defaultTabStop,
   124                         const boost::optional<unsigned char> &textDirection) 
override;
   126   void collectName(
unsigned id, 
unsigned level,  
const librevenge::RVNGBinaryData &name, 
TextFormat format) 
override;
   131   void collectTabsDataList(
unsigned level, 
const std::map<unsigned, VSDTabSet> &tabSets) 
override;
   134   void collectStyleSheet(
unsigned id, 
unsigned level, 
unsigned parentLineStyle, 
unsigned parentFillStyle, 
unsigned parentTextStyle) 
override;
   135   void collectLineStyle(
unsigned level, 
const boost::optional<double> &strokeWidth, 
const boost::optional<Colour> &c, 
const boost::optional<unsigned char> &linePattern,
   136                         const boost::optional<unsigned char> &startMarker, 
const boost::optional<unsigned char> &endMarker,
   137                         const boost::optional<unsigned char> &lineCap, 
const boost::optional<double> &rounding,
   138                         const boost::optional<long> &qsLineColour, 
const boost::optional<long> &qsLineMatrix) 
override;
   139   void collectFillStyle(
unsigned level, 
const boost::optional<Colour> &colourFG, 
const boost::optional<Colour> &colourBG,
   140                         const boost::optional<unsigned char> &fillPattern, 
const boost::optional<double> &fillFGTransparency,
   141                         const boost::optional<double> &fillBGTransparency, 
const boost::optional<unsigned char> &shadowPattern,
   142                         const boost::optional<Colour> &shfgc, 
const boost::optional<double> &shadowOffsetX, 
const boost::optional<double> &shadowOffsetY,
   143                         const boost::optional<long> &qsFillColour, 
const boost::optional<long> &qsShadowColour,
   144                         const boost::optional<long> &qsFillMatrix) 
override;
   145   void collectFillStyle(
unsigned level, 
const boost::optional<Colour> &colourFG, 
const boost::optional<Colour> &colourBG,
   146                         const boost::optional<unsigned char> &fillPattern, 
const boost::optional<double> &fillFGTransparency,
   147                         const boost::optional<double> &fillBGTransparency, 
const boost::optional<unsigned char> &shadowPattern,
   148                         const boost::optional<Colour> &shfgc) 
override;
   149   void collectCharIXStyle(
unsigned id, 
unsigned level, 
unsigned charCount, 
const boost::optional<VSDName> &font,
   150                           const boost::optional<Colour> &fontColour, 
const boost::optional<double> &fontSize, 
const boost::optional<bool> &bold,
   151                           const boost::optional<bool> &italic, 
const boost::optional<bool> &underline, 
const boost::optional<bool> &doubleunderline,
   152                           const boost::optional<bool> &strikeout, 
const boost::optional<bool> &doublestrikeout, 
const boost::optional<bool> &allcaps,
   153                           const boost::optional<bool> &initcaps, 
const boost::optional<bool> &smallcaps, 
const boost::optional<bool> &superscript,
   154                           const boost::optional<bool> &subscript, 
const boost::optional<double> &scaleWidth) 
override;
   155   void collectParaIXStyle(
unsigned id, 
unsigned level, 
unsigned charCount, 
const boost::optional<double> &indFirst,
   156                           const boost::optional<double> &indLeft, 
const boost::optional<double> &indRight, 
const boost::optional<double> &spLine,
   157                           const boost::optional<double> &spBefore, 
const boost::optional<double> &spAfter, 
const boost::optional<unsigned char> &align,
   158                           const boost::optional<unsigned char> &bullet, 
const boost::optional<VSDName> &bulletStr,
   159                           const boost::optional<VSDName> &bulletFont, 
const boost::optional<double> &bulletFontSize,
   160                           const boost::optional<double> &textPosAfterBullet, 
const boost::optional<unsigned> &flags) 
override;
   161   void collectTextBlockStyle(
unsigned level, 
const boost::optional<double> &leftMargin, 
const boost::optional<double> &rightMargin,
   162                              const boost::optional<double> &topMargin, 
const boost::optional<double> &bottomMargin,
   163                              const boost::optional<unsigned char> &verticalAlign, 
const boost::optional<bool> &isBgFilled,
   164                              const boost::optional<Colour> &bgColour, 
const boost::optional<double> &defaultTabStop,
   165                              const boost::optional<unsigned char> &textDirection) 
override;
   167   void collectMetaData(
const librevenge::RVNGPropertyList &metaData) 
override;
   172   void collectTextField(
unsigned id, 
unsigned level, 
int nameId, 
int formatStringId) 
override;
   173   void collectNumericField(
unsigned id, 
unsigned level, 
unsigned short format, 
double number, 
int formatStringId) 
override;
   175   void startPage(
unsigned pageId) 
override;
   191   double _NURBSBasis(
unsigned knot, 
unsigned degree, 
double point, 
const std::vector<double> &knotVector);
   212   void appendCharacters(librevenge::RVNGString &text, 
const std::vector<unsigned char> &characters);
   214   bool parseFormatId(
const char *formatString, 
unsigned short &result);
   218   bool _isUniform(
const std::vector<double> &weights) 
const;
   220                                   const std::vector<double> &knotVector, 
const std::vector<double> &weights);
   222                                         const std::vector<double> &knotVector);
   232   void _convertToPath(
const std::vector<librevenge::RVNGPropertyList> &segmentVector,
   233                       librevenge::RVNGPropertyListVector &path, 
double rounding);
 std::vector< std::list< unsigned > >::iterator m_pageShapeOrder
Definition: VSDContentCollector.h:275
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)
Definition: VSDContentCollector.cpp:117
Definition: VSDStyles.h:532
std::vector< std::map< unsigned, unsigned > >::iterator m_groupMemberships
Definition: VSDContentCollector.h:269
void _generateBezierSegmentsFromNURBS(unsigned degree, const std::vector< std::pair< double, double > > &controlPoints, const std::vector< double > &knotVector)
Definition: VSDContentCollector.cpp:1953
bool m_noLine
Definition: VSDContentCollector.h:261
Definition: VSDStencils.h:26
XForm m_xform
Definition: VSDContentCollector.h:245
bool parseFormatId(const char *formatString, unsigned short &result)
Definition: VSDContentCollector.cpp:3559
void collectForeignData(unsigned level, const librevenge::RVNGBinaryData &binaryData) override
Definition: VSDContentCollector.cpp:1645
void _flushCurrentPath(unsigned id)
Definition: VSDContentCollector.cpp:316
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 char > &bullet, const boost::optional< VSDName > &bulletStr, const boost::optional< VSDName > &bulletFont, const boost::optional< double > &bulletFontSize, const boost::optional< double > &textPosAfterBullet, const boost::optional< unsigned > &flags) override
Definition: VSDContentCollector.cpp:2847
void _convertToPath(const std::vector< librevenge::RVNGPropertyList > &segmentVector, librevenge::RVNGPropertyListVector &path, double rounding)
Definition: VSDContentCollector.cpp:487
bool m_isPageStarted
Definition: VSDContentCollector.h:235
void _fillCharProperties(librevenge::RVNGPropertyList &propList, const VSDCharStyle &style)
Definition: VSDContentCollector.cpp:1121
std::vector< librevenge::RVNGString > m_fields
Definition: VSDContentCollector.h:282
std::vector< std::map< unsigned, XForm > > & m_groupXFormsSequence
Definition: VSDContentCollector.h:267
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:2323
VSDLayerList m_currentLayerList
Definition: VSDContentCollector.h:320
std::vector< VSDParaStyle > m_paraFormats
Definition: VSDContentCollector.h:286
void collectStyleSheet(unsigned id, unsigned level, unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle) override
Definition: VSDContentCollector.cpp:2804
void collectXFormData(unsigned level, const XForm &xform) override
Definition: VSDContentCollector.cpp:2348
bool m_noShow
Definition: VSDContentCollector.h:263
void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale) override
Definition: VSDContentCollector.cpp:2500
void collectSplineEnd() override
Definition: VSDContentCollector.cpp:2673
void collectText(unsigned level, const librevenge::RVNGBinaryData &textStream, TextFormat format) override
Definition: VSDContentCollector.cpp:2691
Definition: VSDLayerList.h:33
Definition: VSDStyles.h:64
double m_originalX
Definition: VSDContentCollector.h:243
Definition: VSDTypes.h:95
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) override
Definition: VSDContentCollector.cpp:2763
Definition: VSDTypes.h:237
const char * _linePropertiesMarkerViewbox(unsigned marker)
Definition: VSDContentCollector.cpp:148
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:2062
void collectMisc(unsigned level, const VSDMisc &misc) override
Definition: VSDContentCollector.cpp:3739
void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName) override
Definition: VSDContentCollector.cpp:2513
void appendCharacters(librevenge::RVNGString &text, const std::vector< unsigned char > &characters, TextFormat format)
Definition: VSDContentCollector.cpp:3580
unsigned m_currentLevel
Definition: VSDContentCollector.h:265
librevenge::RVNGDrawingInterface * m_painter
Definition: VSDContentCollector.h:183
double m_shadowOffsetX
Definition: VSDContentCollector.h:238
Definition: VSDStyles.h:494
Definition: VSDTypes.h:228
void collectTabsDataList(unsigned level, const std::map< unsigned, VSDTabSet > &tabSets) override
Definition: VSDContentCollector.cpp:2741
void _flushCurrentPage()
Definition: VSDContentCollector.cpp:1272
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, const boost::optional< double > &rounding, const boost::optional< long > &qsLineColour, const boost::optional< long > &qsLineMatrix) override
Definition: VSDContentCollector.cpp:1618
libvisio::VSDName m_currentText
Definition: VSDContentCollector.h:280
void transformAngle(double &angle, XForm *txtxform=nullptr)
Definition: VSDContentCollector.cpp:2424
bool m_noFill
Definition: VSDContentCollector.h:262
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, const boost::optional< long > &qsFc, const boost::optional< long > &qsSc, const boost::optional< long > &qsLm) override
Definition: VSDContentCollector.cpp:1626
void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height) override
Definition: VSDContentCollector.cpp:2489
void _flushShape()
Definition: VSDContentCollector.cpp:252
Definition: VSDPages.h:34
VSDParaStyle m_defaultParaStyle
Definition: VSDContentCollector.h:293
unsigned m_splineDegree
Definition: VSDContentCollector.h:315
void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot) override
Definition: VSDContentCollector.cpp:2664
void startPage(unsigned pageId) override
Definition: VSDContentCollector.cpp:3513
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, const boost::optional< double > &scaleWidth) override
Definition: VSDContentCollector.cpp:2727
double m_scale
Definition: VSDContentCollector.h:240
double m_splineX
Definition: VSDContentCollector.h:313
std::vector< std::map< unsigned, unsigned > > & m_groupMembershipsSequence
Definition: VSDContentCollector.h:268
Definition: VSDTypes.h:210
double m_pageHeight
Definition: VSDContentCollector.h:237
double m_foreignOffsetY
Definition: VSDContentCollector.h:258
void _outputQuadraticBezierSegment(const std::vector< std::pair< double, double > > &points)
Definition: VSDContentCollector.cpp:1912
std::vector< std::list< unsigned > > & m_documentPageShapeOrders
Definition: VSDContentCollector.h:274
const VSDShape * m_stencilShape
Definition: VSDContentCollector.h:299
void collectUnhandledChunk(unsigned id, unsigned level) override
Definition: VSDContentCollector.cpp:2647
VSDPage m_currentPage
Definition: VSDContentCollector.h:306
std::vector< librevenge::RVNGPropertyList > m_currentFillGeometry
Definition: VSDContentCollector.h:248
void _handleLevelChange(unsigned level)
Definition: VSDContentCollector.cpp:3468
void collectOLEList(unsigned id, unsigned level) override
Definition: VSDContentCollector.cpp:1651
std::vector< VSDCharStyle > m_charFormats
Definition: VSDContentCollector.h:285
Definition: VSDStencils.h:77
double m_foreignOffsetX
Definition: VSDContentCollector.h:257
std::map< unsigned, XForm > * m_groupXForms
Definition: VSDContentCollector.h:250
Definition: VSDOutputElementList.h:24
void _fillAndShadowProperties(const VSDFillStyle &style, librevenge::RVNGPropertyList &styleProps)
Definition: VSDContentCollector.cpp:3105
bool m_isStencilStarted
Definition: VSDContentCollector.h:300
void collectName(unsigned id, unsigned level, const librevenge::RVNGBinaryData &name, TextFormat format) override
Definition: VSDContentCollector.cpp:2788
void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop) override
Definition: VSDContentCollector.cpp:1398
Definition: VSDContentCollector.h:31
VSDContentCollector & operator=(const VSDContentCollector &)
void collectLayer(unsigned id, unsigned level, const VSDLayer &layer) override
Definition: VSDContentCollector.cpp:3767
Definition: VSDCollector.h:20
void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override
Definition: VSDContentCollector.cpp:1540
double _NURBSBasis(unsigned knot, unsigned degree, double point, const std::vector< double > &knotVector)
Definition: VSDContentCollector.cpp:2039
void endPages() override
Definition: VSDContentCollector.cpp:3554
void _listLevelFromBullet(librevenge::RVNGPropertyList &propList, const VSDBullet &bullet)
Definition: VSDContentCollector.cpp:3844
VSDMisc m_misc
Definition: VSDContentCollector.h:247
unsigned m_foreignType
Definition: VSDContentCollector.h:255
void collectOLEData(unsigned id, unsigned level, const librevenge::RVNGBinaryData &oleData) override
Definition: VSDContentCollector.cpp:1659
Definition: VSDFieldList.h:81
void collectNameList(unsigned id, unsigned level) override
Definition: VSDContentCollector.cpp:2772
Definition: VSDStyles.h:287
double m_splineLastKnot
Definition: VSDContentCollector.h:314
std::map< unsigned, VSDOutputElementList > m_pageOutputText
Definition: VSDContentCollector.h:273
const VSDXTheme * m_documentTheme
Definition: VSDContentCollector.h:324
std::map< unsigned short, VSDFont > m_fonts
Definition: VSDContentCollector.h:264
VSDFieldList m_stencilFields
Definition: VSDContentCollector.h:283
void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId) override
Definition: VSDContentCollector.cpp:3415
unsigned m_foreignFormat
Definition: VSDContentCollector.h:256
double m_foreignWidth
Definition: VSDContentCollector.h:259
double _linePropertiesMarkerScale(unsigned marker)
Definition: VSDContentCollector.cpp:233
void _flushText()
Definition: VSDContentCollector.cpp:602
double m_foreignHeight
Definition: VSDContentCollector.h:260
librevenge::RVNGPropertyList m_currentForeignProps
Definition: VSDContentCollector.h:253
unsigned m_splineLevel
Definition: VSDContentCollector.h:316
std::map< unsigned, librevenge::RVNGString > m_names
Definition: VSDContentCollector.h:281
std::vector< librevenge::RVNGPropertyList > m_currentLineGeometry
Definition: VSDContentCollector.h:249
void applyXForm(double &x, double &y, const XForm &xform)
Definition: VSDContentCollector.cpp:2362
std::vector< unsigned > m_currentLayerMem
Definition: VSDContentCollector.h:321
void _appendVisibleAndPrintable(librevenge::RVNGPropertyList &propList)
Definition: VSDContentCollector.cpp:3773
VSDLayerList m_layerList
Definition: VSDContentCollector.h:309
std::map< unsigned, VSDOutputElementList > m_pageOutputDrawing
Definition: VSDContentCollector.h:272
unsigned m_currentStyleSheet
Definition: VSDContentCollector.h:295
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, const boost::optional< long > &qsFillColour, const boost::optional< long > &qsShadowColour, const boost::optional< long > &qsFillMatrix) override
Definition: VSDContentCollector.cpp:2825
std::map< unsigned, librevenge::RVNGString > m_stencilNames
Definition: VSDContentCollector.h:281
void _outputCubicBezierSegment(const std::vector< std::pair< double, double > > &points)
Definition: VSDContentCollector.cpp:1884
void transformFlips(bool &flipX, bool &flipY)
Definition: VSDContentCollector.cpp:2443
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:2242
std::map< unsigned, PolylineData > m_polylineData
Definition: VSDContentCollector.h:279
std::vector< VSDTabSet > m_tabSets
Definition: VSDContentCollector.h:322
Definition: VSDLayerList.h:21
librevenge::RVNGBinaryData m_currentOLEData
Definition: VSDContentCollector.h:252
void collectRelMoveTo(unsigned id, unsigned level, double x, double y) override
Definition: VSDContentCollector.cpp:1586
TextFormat
Definition: VSDTypes.h:157
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) override
Definition: VSDContentCollector.cpp:2874
void collectMoveTo(unsigned id, unsigned level, double x, double y) override
Definition: VSDContentCollector.cpp:1799
void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc) override
Definition: VSDContentCollector.cpp:1325
VSDStyles m_styles
Definition: VSDContentCollector.h:296
Definition: VSDStyles.h:161
void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override
Definition: VSDContentCollector.cpp:1570
double m_pageWidth
Definition: VSDContentCollector.h:236
unsigned m_fieldIndex
Definition: VSDContentCollector.h:284
unsigned m_backgroundPageID
Definition: VSDContentCollector.h:304
VSDPages m_pages
Definition: VSDContentCollector.h:307
VSDLineStyle m_lineStyle
Definition: VSDContentCollector.h:288
VSDCharStyle m_defaultCharStyle
Definition: VSDContentCollector.h:292
VSDFillStyle m_fillStyle
Definition: VSDContentCollector.h:289
void collectLayerMem(unsigned level, const VSDName &layerMem) override
Definition: VSDContentCollector.cpp:3745
void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2) override
Definition: VSDContentCollector.cpp:1451
bool m_isFirstGeometry
Definition: VSDContentCollector.h:276
void _handleForeignData(const librevenge::RVNGBinaryData &data)
Definition: VSDContentCollector.cpp:1665
void _convertDataToString(librevenge::RVNGString &result, const librevenge::RVNGBinaryData &data, TextFormat format)
Definition: VSDContentCollector.cpp:2779
Definition: libvisio_utils.h:48
void _outputLinearBezierSegment(const std::vector< std::pair< double, double > > &points)
Definition: VSDContentCollector.cpp:1935
std::vector< double > m_splineKnotVector
Definition: VSDContentCollector.h:312
double m_originalY
Definition: VSDContentCollector.h:244
Definition: VSDStyles.h:403
Definition: VSDPages.h:19
void _flushCurrentForeignData()
Definition: VSDContentCollector.cpp:1224
void transformPoint(double &x, double &y, XForm *txtxform=nullptr)
Definition: VSDContentCollector.cpp:2381
void collectLineTo(unsigned id, unsigned level, double x, double y) override
Definition: VSDContentCollector.cpp:1817
librevenge::RVNGBinaryData m_currentForeignData
Definition: VSDContentCollector.h:251
void collectPageSheet(unsigned id, unsigned level) override
Definition: VSDContentCollector.cpp:2797
unsigned m_currentShapeId
Definition: VSDContentCollector.h:254
bool m_isBackgroundPage
Definition: VSDContentCollector.h:318
std::map< unsigned, NURBSData > m_NURBSData
Definition: VSDContentCollector.h:278
void collectShapesOrder(unsigned id, unsigned level, const std::vector< unsigned > &shapeIds) override
Definition: VSDContentCollector.cpp:2484
VSDStencils m_stencils
Definition: VSDContentCollector.h:298
void collectNumericField(unsigned id, unsigned level, unsigned short format, double number, int formatStringId) override
Definition: VSDContentCollector.cpp:3438
double m_x
Definition: VSDContentCollector.h:241
double m_splineY
Definition: VSDContentCollector.h:313
void _lineProperties(const VSDLineStyle &style, librevenge::RVNGPropertyList &styleProps)
Definition: VSDContentCollector.cpp:2883
void collectTxtXForm(unsigned level, const XForm &txtxform) override
Definition: VSDContentCollector.cpp:2354
const char * _linePropertiesMarkerPath(unsigned marker)
Definition: VSDContentCollector.cpp:184
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, const boost::optional< double > &scaleWidth) override
Definition: VSDContentCollector.cpp:2862
unsigned m_currentShapeLevel
Definition: VSDContentCollector.h:317
void endPage() override
Definition: VSDContentCollector.cpp:3535
Definition: VSDTypes.h:122
std::vector< std::pair< double, double > > m_splineControlPoints
Definition: VSDContentCollector.h:311
bool m_isShapeStarted
Definition: VSDContentCollector.h:266
void _fillTabSet(librevenge::RVNGPropertyList &propList, const VSDTabSet &tabSet)
Definition: VSDContentCollector.cpp:1195
VSDTextBlockStyle m_textBlockStyle
Definition: VSDContentCollector.h:290
void _fillParagraphProperties(librevenge::RVNGPropertyList &propList, const VSDParaStyle &style)
Definition: VSDContentCollector.cpp:1156
void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b) override
Definition: VSDContentCollector.cpp:1593
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 char > &bullet, const boost::optional< VSDName > &bulletStr, const boost::optional< VSDName > &bulletFont, const boost::optional< double > &bulletFontSize, const boost::optional< double > &textPosAfterBullet, const boost::optional< unsigned > &flags) override
Definition: VSDContentCollector.cpp:2715
unsigned m_currentPageID
Definition: VSDContentCollector.h:305
void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow) override
Definition: VSDContentCollector.cpp:1784
std::unique_ptr< XForm > m_txtxform
Definition: VSDContentCollector.h:246
unsigned m_currentGeometryCount
Definition: VSDContentCollector.h:302
double m_y
Definition: VSDContentCollector.h:242
void collectRelLineTo(unsigned id, unsigned level, double x, double y) override
Definition: VSDContentCollector.cpp:1579
VSDOutputElementList * m_shapeOutputText
Definition: VSDContentCollector.h:271
Definition: VSDXTheme.h:76
Definition: VSDTypes.h:178
void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle) override
Definition: VSDContentCollector.cpp:2523
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, const boost::optional< double > &rounding, const boost::optional< long > &qsLineColour, const boost::optional< long > &qsLineMatrix) override
Definition: VSDContentCollector.cpp:2815
VSDOutputElementList * m_shapeOutputDrawing
Definition: VSDContentCollector.h:271
void _appendField(librevenge::RVNGString &text)
Definition: VSDContentCollector.cpp:3731
void collectMetaData(const librevenge::RVNGPropertyList &metaData) override
Definition: VSDContentCollector.cpp:3508
void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow) override
Definition: VSDContentCollector.cpp:1835
void collectDocumentTheme(const VSDXTheme *theme) override
Definition: VSDContentCollector.cpp:1318
double m_shadowOffsetY
Definition: VSDContentCollector.h:239
unsigned m_currentPageNumber
Definition: VSDContentCollector.h:270
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, const boost::optional< double > &scaleWidth) override
Definition: VSDContentCollector.cpp:2751
void collectFieldList(unsigned id, unsigned level) override
Definition: VSDContentCollector.cpp:3409
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 char > &bullet, const boost::optional< VSDName > &bulletStr, const boost::optional< VSDName > &bulletFont, const boost::optional< double > &bulletFontSize, const boost::optional< double > &textPosAfterBullet, const boost::optional< unsigned > &flags) override
Definition: VSDContentCollector.cpp:2700
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:2119
void _bulletFromParaFormat(VSDBullet &bullet, const VSDParaStyle ¶Style)
Definition: VSDContentCollector.cpp:3788
void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree) override
Definition: VSDContentCollector.cpp:2652
bool _isUniform(const std::vector< double > &weights) const
Definition: VSDContentCollector.cpp:2102