VSDStylesCollector.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libvisio project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef VSDSTYLESCOLLECTOR_H
#define VSDSTYLESCOLLECTOR_H
#include <map>
#include <vector>
#include <list>
#include "VSDCollector.h"
#include "VSDParser.h"
#include "libvisio_utils.h"
#include "VSDStyles.h"
namespace libvisio
{
class VSDStylesCollector : public VSDCollector
{
public:
VSDStylesCollector(
std::vector<std::map<unsigned, XForm> > &groupXFormsSequence,
std::vector<std::map<unsigned, unsigned> > &groupMembershipsSequence,
std::vector<std::list<unsigned> > &documentPageShapeOrders
);
~VSDStylesCollector() override {}
void collectDocumentTheme(const VSDXTheme * /* theme */) override {}
void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc) override;
void collectForeignData(unsigned level, const librevenge::RVNGBinaryData &binaryData) override;
void collectOLEList(unsigned id, unsigned level) override
{
collectUnhandledChunk(id, level);
}
void collectOLEData(unsigned id, unsigned level, const librevenge::RVNGBinaryData &oleData) override;
void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop) override;
void collectLine(unsigned level, const std::optional<double> &strokeWidth, const std::optional<Colour> &c, const std::optional<unsigned char> &linePattern,
const std::optional<unsigned char> &startMarker, const std::optional<unsigned char> &endMarker,
const std::optional<unsigned char> &lineCap, const std::optional<double> &rounding,
const std::optional<long> &qsLineColour, const std::optional<long> &qsLineMatrix) override;
void collectFillAndShadow(unsigned level, const std::optional<Colour> &colourFG, const std::optional<Colour> &colourBG,
const std::optional<unsigned char> &fillPattern, const std::optional<double> &fillFGTransparency,
const std::optional<double> &fillBGTransparency, const std::optional<unsigned char> &shadowPattern,
const std::optional<Colour> &shfgc, const std::optional<double> &shadowOffsetX, const std::optional<double> &shadowOffsetY,
const std::optional<long> &qsFc, const std::optional<long> &qsSc, const std::optional<long> &qsLm) override;
void collectFillAndShadow(unsigned level, const std::optional<Colour> &colourFG, const std::optional<Colour> &colourBG,
const std::optional<unsigned char> &fillPattern, const std::optional<double> &fillFGTransparency,
const std::optional<double> &fillBGTransparency, const std::optional<unsigned char> &shadowPattern,
const std::optional<Colour> &shfgc) override;
void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow) override;
void collectMoveTo(unsigned id, unsigned level, double x, double y) override;
void collectLineTo(unsigned id, unsigned level, double x, double y) override;
void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow) override;
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;
void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, unsigned dataID) override;
void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, const NURBSData &data) override;
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;
void collectPolylineTo(unsigned id, unsigned level, double x, double y, unsigned dataID) override;
void collectPolylineTo(unsigned id, unsigned level, double x, double y, const PolylineData &data) override;
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;
void collectShapeData(unsigned id, unsigned level, unsigned char xType, unsigned char yType, std::vector<std::pair<double, double> > points) override;
void collectXFormData(unsigned level, const XForm &xform) override;
void collectTxtXForm(unsigned level, const XForm &txtxform) override;
void collectShapesOrder(unsigned id, unsigned level, const std::vector<unsigned> &shapeIds) override;
void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height) override;
void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale,
unsigned char drawingScaleUnit, const std::optional<unsigned> variationColorIndex, const std::optional<unsigned> variationStyleIndex) override;
void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName) override;
void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle, const VSDName &aShapeType) override;
void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree) override;
void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot) override;
void collectSplineEnd() override;
void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2) override;
void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override;
void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override;
void collectRelLineTo(unsigned id, unsigned level, double x, double y) override;
void collectRelMoveTo(unsigned id, unsigned level, double x, double y) override;
void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b) override;
void collectUnhandledChunk(unsigned id, unsigned level) override;
void collectText(unsigned level, const librevenge::RVNGBinaryData &textStream, TextFormat format) override;
void collectCharIX(unsigned id, unsigned level, unsigned charCount, const std::optional<VSDName> &font,
const std::optional<Colour> &fontColour, const std::optional<double> &fontSize, const std::optional<bool> &bold,
const std::optional<bool> &italic, const std::optional<bool> &underline, const std::optional<bool> &doubleunderline,
const std::optional<bool> &strikeout, const std::optional<bool> &doublestrikeout, const std::optional<bool> &allcaps,
const std::optional<bool> &initcaps, const std::optional<bool> &smallcaps, const std::optional<bool> &superscript,
const std::optional<bool> &subscript, const std::optional<double> &scaleWidth) override;
void collectDefaultCharStyle(unsigned charCount, const std::optional<VSDName> &font, const std::optional<Colour> &fontColour,
const std::optional<double> &fontSize, const std::optional<bool> &bold, const std::optional<bool> &italic,
const std::optional<bool> &underline, const std::optional<bool> &doubleunderline, const std::optional<bool> &strikeout,
const std::optional<bool> &doublestrikeout, const std::optional<bool> &allcaps, const std::optional<bool> &initcaps,
const std::optional<bool> &smallcaps, const std::optional<bool> &superscript, const std::optional<bool> &subscript,
const std::optional<double> &scaleWidth) override;
void collectParaIX(unsigned id, unsigned level, unsigned charCount, const std::optional<double> &indFirst,
const std::optional<double> &indLeft, const std::optional<double> &indRight, const std::optional<double> &spLine,
const std::optional<double> &spBefore, const std::optional<double> &spAfter, const std::optional<unsigned char> &align,
const std::optional<unsigned char> &bullet, const std::optional<VSDName> &bulletStr, const std::optional<VSDName> &bulletFont,
const std::optional<double> &bulletFontSize, const std::optional<double> &textPosAfterBullet,
const std::optional<unsigned> &flags) override;
void collectDefaultParaStyle(unsigned charCount, const std::optional<double> &indFirst, const std::optional<double> &indLeft,
const std::optional<double> &indRight, const std::optional<double> &spLine, const std::optional<double> &spBefore,
const std::optional<double> &spAfter, const std::optional<unsigned char> &align,
const std::optional<unsigned char> &bullet, const std::optional<VSDName> &bulletStr,
const std::optional<VSDName> &bulletFont, const std::optional<double> &bulletFontSize,
const std::optional<double> &textPosAfterBullet, const std::optional<unsigned> &flags) override;
void collectTextBlock(unsigned level, const std::optional<double> &leftMargin, const std::optional<double> &rightMargin,
const std::optional<double> &topMargin, const std::optional<double> &bottomMargin,
const std::optional<unsigned char> &verticalAlign, const std::optional<bool> &isBgFilled,
const std::optional<Colour> &bgColour, const std::optional<double> &defaultTabStop,
const std::optional<unsigned char> &textDirection) override;
void collectNameList(unsigned id, unsigned level) override
{
collectUnhandledChunk(id, level);
}
void collectName(unsigned id, unsigned level, const librevenge::RVNGBinaryData &name, TextFormat format) override;
void collectPageSheet(unsigned id, unsigned level) override;
void collectMisc(unsigned level, const VSDMisc &misc) override;
void collectLayer(unsigned id, unsigned level, const VSDLayer &layer) override;
void collectLayerMem(unsigned level, const VSDName &layerMem) override;
void collectTabsDataList(unsigned level, const std::map<unsigned, VSDTabSet> &tabSets) override;
// Style collectors
void collectStyleSheet(unsigned id, unsigned level,unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle) override;
void collectLineStyle(unsigned level, const std::optional<double> &strokeWidth, const std::optional<Colour> &c, const std::optional<unsigned char> &linePattern,
const std::optional<unsigned char> &startMarker, const std::optional<unsigned char> &endMarker,
const std::optional<unsigned char> &lineCap, const std::optional<double> &rounding,
const std::optional<long> &qsLineColour, const std::optional<long> &qsLineMatrix) override;
void collectFillStyle(unsigned level, const std::optional<Colour> &colourFG, const std::optional<Colour> &colourBG,
const std::optional<unsigned char> &fillPattern, const std::optional<double> &fillFGTransparency,
const std::optional<double> &fillBGTransparency, const std::optional<unsigned char> &shadowPattern,
const std::optional<Colour> &shfgc, const std::optional<double> &shadowOffsetX, const std::optional<double> &shadowOffsetY,
const std::optional<long> &qsFillColour, const std::optional<long> &qsShadowColour,
const std::optional<long> &qsFillMatrix) override;
void collectFillStyle(unsigned level, const std::optional<Colour> &colourFG, const std::optional<Colour> &colourBG,
const std::optional<unsigned char> &fillPattern, const std::optional<double> &fillFGTransparency,
const std::optional<double> &fillBGTransparency, const std::optional<unsigned char> &shadowPattern,
const std::optional<Colour> &shfgc) override;
void collectCharIXStyle(unsigned id, unsigned level, unsigned charCount, const std::optional<VSDName> &font,
const std::optional<Colour> &fontColour, const std::optional<double> &fontSize, const std::optional<bool> &bold,
const std::optional<bool> &italic, const std::optional<bool> &underline, const std::optional<bool> &doubleunderline,
const std::optional<bool> &strikeout, const std::optional<bool> &doublestrikeout, const std::optional<bool> &allcaps,
const std::optional<bool> &initcaps, const std::optional<bool> &smallcaps, const std::optional<bool> &superscript,
const std::optional<bool> &subscript, const std::optional<double> &scaleWidth) override;
void collectParaIXStyle(unsigned id, unsigned level, unsigned charCount, const std::optional<double> &indFirst,
const std::optional<double> &indLeft, const std::optional<double> &indRight, const std::optional<double> &spLine,
const std::optional<double> &spBefore, const std::optional<double> &spAfter, const std::optional<unsigned char> &align,
const std::optional<unsigned char> &bullet, const std::optional<VSDName> &bulletStr,
const std::optional<VSDName> &bulletFont, const std::optional<double> &bulletFontSize,
const std::optional<double> &textPosAfterBullet, const std::optional<unsigned> &flags) override;
void collectTextBlockStyle(unsigned level, const std::optional<double> &leftMargin, const std::optional<double> &rightMargin,
const std::optional<double> &topMargin, const std::optional<double> &bottomMargin,
const std::optional<unsigned char> &verticalAlign, const std::optional<bool> &isBgFilled,
const std::optional<Colour> &bgColour, const std::optional<double> &defaultTabStop,
const std::optional<unsigned char> &textDirection) override;
// Field list
void collectFieldList(unsigned id, unsigned level) override;
void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId) override;
void collectNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId) override;
void collectMetaData(const librevenge::RVNGPropertyList &) override { }
// Temporary hack
void startPage(unsigned pageID) override;
void endPage() override;
void endPages() override {}
const VSDStyles &getStyleSheets() const
{
return m_styles;
}
const std::optional<unsigned>& getvariationColorIndex() const { return m_variationColorIndex; }
const std::optional<unsigned>& getvariationStyleIndex() const { return m_variationStyleIndex; }
private:
VSDStylesCollector(const VSDStylesCollector &);
VSDStylesCollector &operator=(const VSDStylesCollector &);
void _handleLevelChange(unsigned level);
void _flushShapeList();
unsigned m_currentLevel;
bool m_isShapeStarted;
double m_shadowOffsetX;
double m_shadowOffsetY;
unsigned m_currentShapeId;
std::map<unsigned, XForm> m_groupXForms;
std::map<unsigned, unsigned> m_groupMemberships;
std::vector<std::map<unsigned, XForm> > &m_groupXFormsSequence;
std::vector<std::map<unsigned, unsigned> > &m_groupMembershipsSequence;
std::list<unsigned> m_pageShapeOrder;
std::vector<std::list<unsigned> > &m_documentPageShapeOrders;
std::map<unsigned, std::list<unsigned> > m_groupShapeOrder;
std::list<unsigned> m_shapeList;
unsigned m_currentStyleSheet;
VSDStyles m_styles;
std::optional<unsigned> m_variationColorIndex;
std::optional<unsigned> m_variationStyleIndex;
unsigned m_currentShapeLevel;
};
}
#endif /* VSDSTYLESCOLLECTOR_H */
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
VSDCollector.h
VSDParser.h
VSDStyles.h
libvisio::VSDCollector::VSDCollector
VSDCollector()
Definition VSDCollector.h:23
libvisio::VSDName
Definition VSDTypes.h:171
libvisio::VSDStylesCollector::collectName
void collectName(unsigned id, unsigned level, const librevenge::RVNGBinaryData &name, TextFormat format) override
Definition VSDStylesCollector.cpp:330
libvisio::VSDStylesCollector::m_groupMemberships
std::map< unsigned, unsigned > m_groupMemberships
Definition VSDStylesCollector.h:198
libvisio::VSDStylesCollector::VSDStylesCollector
VSDStylesCollector(std::vector< std::map< unsigned, XForm > > &groupXFormsSequence, std::vector< std::map< unsigned, unsigned > > &groupMembershipsSequence, std::vector< std::list< unsigned > > &documentPageShapeOrders)
Definition VSDStylesCollector.cpp:15
libvisio::VSDStylesCollector::collectMoveTo
void collectMoveTo(unsigned id, unsigned level, double x, double y) override
Definition VSDStylesCollector.cpp:89
libvisio::VSDStylesCollector::collectOLEList
void collectOLEList(unsigned id, unsigned level) override
Definition VSDStylesCollector.h:37
libvisio::VSDStylesCollector::collectOLEData
void collectOLEData(unsigned id, unsigned level, const librevenge::RVNGBinaryData &oleData) override
Definition VSDStylesCollector.cpp:46
libvisio::VSDStylesCollector::collectSplineStart
void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree) override
Definition VSDStylesCollector.cpp:140
libvisio::VSDStylesCollector::collectParaIXStyle
void collectParaIXStyle(unsigned id, unsigned level, unsigned charCount, const std::optional< double > &indFirst, const std::optional< double > &indLeft, const std::optional< double > &indRight, const std::optional< double > &spLine, const std::optional< double > &spBefore, const std::optional< double > &spAfter, const std::optional< unsigned char > &align, const std::optional< unsigned char > &bullet, const std::optional< VSDName > &bulletStr, const std::optional< VSDName > &bulletFont, const std::optional< double > &bulletFontSize, const std::optional< double > &textPosAfterBullet, const std::optional< unsigned > &flags) override
Definition VSDStylesCollector.cpp:385
libvisio::VSDStylesCollector::collectInfiniteLine
void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2) override
Definition VSDStylesCollector.cpp:155
libvisio::VSDStylesCollector::collectUnhandledChunk
void collectUnhandledChunk(unsigned id, unsigned level) override
Definition VSDStylesCollector.cpp:266
libvisio::VSDStylesCollector::collectTextBlockStyle
void collectTextBlockStyle(unsigned level, const std::optional< double > &leftMargin, const std::optional< double > &rightMargin, const std::optional< double > &topMargin, const std::optional< double > &bottomMargin, const std::optional< unsigned char > &verticalAlign, const std::optional< bool > &isBgFilled, const std::optional< Colour > &bgColour, const std::optional< double > &defaultTabStop, const std::optional< unsigned char > &textDirection) override
Definition VSDStylesCollector.cpp:397
libvisio::VSDStylesCollector::m_groupMembershipsSequence
std::vector< std::map< unsigned, unsigned > > & m_groupMembershipsSequence
Definition VSDStylesCollector.h:200
libvisio::VSDStylesCollector::getvariationStyleIndex
const std::optional< unsigned > & getvariationStyleIndex() const
Definition VSDStylesCollector.h:181
libvisio::VSDStylesCollector::collectText
void collectText(unsigned level, const librevenge::RVNGBinaryData &textStream, TextFormat format) override
Definition VSDStylesCollector.cpp:271
libvisio::VSDStylesCollector::m_currentShapeId
unsigned m_currentShapeId
Definition VSDStylesCollector.h:196
libvisio::VSDStylesCollector::m_currentShapeLevel
unsigned m_currentShapeLevel
Definition VSDStylesCollector.h:212
libvisio::VSDStylesCollector::collectXFormData
void collectXFormData(unsigned level, const XForm &xform) override
Definition VSDStylesCollector.cpp:198
libvisio::VSDStylesCollector::endPages
void endPages() override
Definition VSDStylesCollector.h:174
libvisio::VSDStylesCollector::collectShapesOrder
void collectShapesOrder(unsigned id, unsigned level, const std::vector< unsigned > &shapeIds) override
Definition VSDStylesCollector.cpp:210
libvisio::VSDStylesCollector::endPage
void endPage() override
Definition VSDStylesCollector.cpp:429
libvisio::VSDStylesCollector::collectLineStyle
void collectLineStyle(unsigned level, const std::optional< double > &strokeWidth, const std::optional< Colour > &c, const std::optional< unsigned char > &linePattern, const std::optional< unsigned char > &startMarker, const std::optional< unsigned char > &endMarker, const std::optional< unsigned char > &lineCap, const std::optional< double > &rounding, const std::optional< long > &qsLineColour, const std::optional< long > &qsLineMatrix) override
Definition VSDStylesCollector.cpp:346
libvisio::VSDStylesCollector::collectDefaultParaStyle
void collectDefaultParaStyle(unsigned charCount, const std::optional< double > &indFirst, const std::optional< double > &indLeft, const std::optional< double > &indRight, const std::optional< double > &spLine, const std::optional< double > &spBefore, const std::optional< double > &spAfter, const std::optional< unsigned char > &align, const std::optional< unsigned char > &bullet, const std::optional< VSDName > &bulletStr, const std::optional< VSDName > &bulletFont, const std::optional< double > &bulletFontSize, const std::optional< double > &textPosAfterBullet, const std::optional< unsigned > &flags) override
Definition VSDStylesCollector.cpp:288
libvisio::VSDStylesCollector::collectDefaultCharStyle
void collectDefaultCharStyle(unsigned charCount, const std::optional< VSDName > &font, const std::optional< Colour > &fontColour, const std::optional< double > &fontSize, const std::optional< bool > &bold, const std::optional< bool > &italic, const std::optional< bool > &underline, const std::optional< bool > &doubleunderline, const std::optional< bool > &strikeout, const std::optional< bool > &doublestrikeout, const std::optional< bool > &allcaps, const std::optional< bool > &initcaps, const std::optional< bool > &smallcaps, const std::optional< bool > &superscript, const std::optional< bool > &subscript, const std::optional< double > &scaleWidth) override
Definition VSDStylesCollector.cpp:313
libvisio::VSDStylesCollector::startPage
void startPage(unsigned pageID) override
Definition VSDStylesCollector.cpp:421
libvisio::VSDStylesCollector::m_variationStyleIndex
std::optional< unsigned > m_variationStyleIndex
Definition VSDStylesCollector.h:210
libvisio::VSDStylesCollector::collectNURBSTo
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 VSDStylesCollector.cpp:104
libvisio::VSDStylesCollector::collectTabsDataList
void collectTabsDataList(unsigned level, const std::map< unsigned, VSDTabSet > &tabSets) override
Definition VSDStylesCollector.cpp:308
libvisio::VSDStylesCollector::collectMisc
void collectMisc(unsigned level, const VSDMisc &misc) override
Definition VSDStylesCollector.cpp:251
libvisio::VSDStylesCollector::collectArcTo
void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow) override
Definition VSDStylesCollector.cpp:99
libvisio::VSDStylesCollector::collectFieldList
void collectFieldList(unsigned id, unsigned level) override
Definition VSDStylesCollector.cpp:406
libvisio::VSDStylesCollector::collectSplineEnd
void collectSplineEnd() override
Definition VSDStylesCollector.cpp:151
libvisio::VSDStylesCollector::collectTextField
void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId) override
Definition VSDStylesCollector.cpp:411
libvisio::VSDStylesCollector::collectRelLineTo
void collectRelLineTo(unsigned id, unsigned level, double x, double y) override
Definition VSDStylesCollector.cpp:170
libvisio::VSDStylesCollector::collectLayerMem
void collectLayerMem(unsigned level, const VSDName &layerMem) override
Definition VSDStylesCollector.cpp:256
libvisio::VSDStylesCollector::collectFillStyle
void collectFillStyle(unsigned level, const std::optional< Colour > &colourFG, const std::optional< Colour > &colourBG, const std::optional< unsigned char > &fillPattern, const std::optional< double > &fillFGTransparency, const std::optional< double > &fillBGTransparency, const std::optional< unsigned char > &shadowPattern, const std::optional< Colour > &shfgc, const std::optional< double > &shadowOffsetX, const std::optional< double > &shadowOffsetY, const std::optional< long > &qsFillColour, const std::optional< long > &qsShadowColour, const std::optional< long > &qsFillMatrix) override
Definition VSDStylesCollector.cpp:355
libvisio::VSDStylesCollector::collectLayer
void collectLayer(unsigned id, unsigned level, const VSDLayer &layer) override
Definition VSDStylesCollector.cpp:261
libvisio::VSDStylesCollector::collectSplineKnot
void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot) override
Definition VSDStylesCollector.cpp:146
libvisio::VSDStylesCollector::collectDocumentTheme
void collectDocumentTheme(const VSDXTheme *) override
Definition VSDStylesCollector.h:34
libvisio::VSDStylesCollector::collectTxtXForm
void collectTxtXForm(unsigned level, const XForm &txtxform) override
Definition VSDStylesCollector.cpp:205
libvisio::VSDStylesCollector::collectLine
void collectLine(unsigned level, const std::optional< double > &strokeWidth, const std::optional< Colour > &c, const std::optional< unsigned char > &linePattern, const std::optional< unsigned char > &startMarker, const std::optional< unsigned char > &endMarker, const std::optional< unsigned char > &lineCap, const std::optional< double > &rounding, const std::optional< long > &qsLineColour, const std::optional< long > &qsLineMatrix) override
Definition VSDStylesCollector.cpp:57
libvisio::VSDStylesCollector::collectCharIXStyle
void collectCharIXStyle(unsigned id, unsigned level, unsigned charCount, const std::optional< VSDName > &font, const std::optional< Colour > &fontColour, const std::optional< double > &fontSize, const std::optional< bool > &bold, const std::optional< bool > &italic, const std::optional< bool > &underline, const std::optional< bool > &doubleunderline, const std::optional< bool > &strikeout, const std::optional< bool > &doublestrikeout, const std::optional< bool > &allcaps, const std::optional< bool > &initcaps, const std::optional< bool > &smallcaps, const std::optional< bool > &superscript, const std::optional< bool > &subscript, const std::optional< double > &scaleWidth) override
Definition VSDStylesCollector.cpp:373
libvisio::VSDStylesCollector::collectEllipticalArcTo
void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc) override
Definition VSDStylesCollector.cpp:35
libvisio::VSDStylesCollector::collectParaIX
void collectParaIX(unsigned id, unsigned level, unsigned charCount, const std::optional< double > &indFirst, const std::optional< double > &indLeft, const std::optional< double > &indRight, const std::optional< double > &spLine, const std::optional< double > &spBefore, const std::optional< double > &spAfter, const std::optional< unsigned char > &align, const std::optional< unsigned char > &bullet, const std::optional< VSDName > &bulletStr, const std::optional< VSDName > &bulletFont, const std::optional< double > &bulletFontSize, const std::optional< double > &textPosAfterBullet, const std::optional< unsigned > &flags) override
Definition VSDStylesCollector.cpp:276
libvisio::VSDStylesCollector::collectEllipse
void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop) override
Definition VSDStylesCollector.cpp:51
libvisio::VSDStylesCollector::collectNameList
void collectNameList(unsigned id, unsigned level) override
Definition VSDStylesCollector.h:119
libvisio::VSDStylesCollector::m_shapeList
std::list< unsigned > m_shapeList
Definition VSDStylesCollector.h:204
libvisio::VSDStylesCollector::collectPageSheet
void collectPageSheet(unsigned id, unsigned level) override
Definition VSDStylesCollector.cpp:335
libvisio::VSDStylesCollector::operator=
VSDStylesCollector & operator=(const VSDStylesCollector &)
libvisio::VSDStylesCollector::collectRelCubBezTo
void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override
Definition VSDStylesCollector.cpp:160
libvisio::VSDStylesCollector::m_groupShapeOrder
std::map< unsigned, std::list< unsigned > > m_groupShapeOrder
Definition VSDStylesCollector.h:203
libvisio::VSDStylesCollector::collectLineTo
void collectLineTo(unsigned id, unsigned level, double x, double y) override
Definition VSDStylesCollector.cpp:94
libvisio::VSDStylesCollector::collectRelEllipticalArcTo
void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d) override
Definition VSDStylesCollector.cpp:165
libvisio::VSDStylesCollector::collectForeignData
void collectForeignData(unsigned level, const librevenge::RVNGBinaryData &binaryData) override
Definition VSDStylesCollector.cpp:41
libvisio::VSDStylesCollector::m_currentStyleSheet
unsigned m_currentStyleSheet
Definition VSDStylesCollector.h:206
libvisio::VSDStylesCollector::m_isShapeStarted
bool m_isShapeStarted
Definition VSDStylesCollector.h:191
libvisio::VSDStylesCollector::m_pageShapeOrder
std::list< unsigned > m_pageShapeOrder
Definition VSDStylesCollector.h:201
libvisio::VSDStylesCollector::collectStyleSheet
void collectStyleSheet(unsigned id, unsigned level, unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle) override
Definition VSDStylesCollector.cpp:341
libvisio::VSDStylesCollector::_flushShapeList
void _flushShapeList()
Definition VSDStylesCollector.cpp:463
libvisio::VSDStylesCollector::collectRelQuadBezTo
void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b) override
Definition VSDStylesCollector.cpp:180
libvisio::VSDStylesCollector::m_currentLevel
unsigned m_currentLevel
Definition VSDStylesCollector.h:190
libvisio::VSDStylesCollector::collectNumericField
void collectNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId) override
Definition VSDStylesCollector.cpp:416
libvisio::VSDStylesCollector::collectPage
void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName) override
Definition VSDStylesCollector.cpp:235
libvisio::VSDStylesCollector::collectTextBlock
void collectTextBlock(unsigned level, const std::optional< double > &leftMargin, const std::optional< double > &rightMargin, const std::optional< double > &topMargin, const std::optional< double > &bottomMargin, const std::optional< unsigned char > &verticalAlign, const std::optional< bool > &isBgFilled, const std::optional< Colour > &bgColour, const std::optional< double > &defaultTabStop, const std::optional< unsigned char > &textDirection) override
Definition VSDStylesCollector.cpp:322
libvisio::VSDStylesCollector::collectPolylineTo
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 VSDStylesCollector.cpp:123
libvisio::VSDStylesCollector::m_groupXForms
std::map< unsigned, XForm > m_groupXForms
Definition VSDStylesCollector.h:197
libvisio::VSDStylesCollector::collectRelMoveTo
void collectRelMoveTo(unsigned id, unsigned level, double x, double y) override
Definition VSDStylesCollector.cpp:175
libvisio::VSDStylesCollector::collectMetaData
void collectMetaData(const librevenge::RVNGPropertyList &) override
Definition VSDStylesCollector.h:169
libvisio::VSDStylesCollector::m_groupXFormsSequence
std::vector< std::map< unsigned, XForm > > & m_groupXFormsSequence
Definition VSDStylesCollector.h:199
libvisio::VSDStylesCollector::m_styles
VSDStyles m_styles
Definition VSDStylesCollector.h:207
libvisio::VSDStylesCollector::m_variationColorIndex
std::optional< unsigned > m_variationColorIndex
Definition VSDStylesCollector.h:209
libvisio::VSDStylesCollector::collectShape
void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle, const VSDName &aShapeType) override
Definition VSDStylesCollector.cpp:240
libvisio::VSDStylesCollector::collectForeignDataType
void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height) override
Definition VSDStylesCollector.cpp:219
libvisio::VSDStylesCollector::getStyleSheets
const VSDStyles & getStyleSheets() const
Definition VSDStylesCollector.h:176
libvisio::VSDStylesCollector::VSDStylesCollector
VSDStylesCollector(const VSDStylesCollector &)
libvisio::VSDStylesCollector::m_documentPageShapeOrders
std::vector< std::list< unsigned > > & m_documentPageShapeOrders
Definition VSDStylesCollector.h:202
libvisio::VSDStylesCollector::getvariationColorIndex
const std::optional< unsigned > & getvariationColorIndex() const
Definition VSDStylesCollector.h:180
libvisio::VSDStylesCollector::collectCharIX
void collectCharIX(unsigned id, unsigned level, unsigned charCount, const std::optional< VSDName > &font, const std::optional< Colour > &fontColour, const std::optional< double > &fontSize, const std::optional< bool > &bold, const std::optional< bool > &italic, const std::optional< bool > &underline, const std::optional< bool > &doubleunderline, const std::optional< bool > &strikeout, const std::optional< bool > &doublestrikeout, const std::optional< bool > &allcaps, const std::optional< bool > &initcaps, const std::optional< bool > &smallcaps, const std::optional< bool > &superscript, const std::optional< bool > &subscript, const std::optional< double > &scaleWidth) override
Definition VSDStylesCollector.cpp:298
libvisio::VSDStylesCollector::_handleLevelChange
void _handleLevelChange(unsigned level)
Definition VSDStylesCollector.cpp:453
libvisio::VSDStylesCollector::~VSDStylesCollector
~VSDStylesCollector() override
Definition VSDStylesCollector.h:32
libvisio::VSDStylesCollector::m_shadowOffsetY
double m_shadowOffsetY
Definition VSDStylesCollector.h:194
libvisio::VSDStylesCollector::collectFillAndShadow
void collectFillAndShadow(unsigned level, const std::optional< Colour > &colourFG, const std::optional< Colour > &colourBG, const std::optional< unsigned char > &fillPattern, const std::optional< double > &fillFGTransparency, const std::optional< double > &fillBGTransparency, const std::optional< unsigned char > &shadowPattern, const std::optional< Colour > &shfgc, const std::optional< double > &shadowOffsetX, const std::optional< double > &shadowOffsetY, const std::optional< long > &qsFc, const std::optional< long > &qsSc, const std::optional< long > &qsLm) override
Definition VSDStylesCollector.cpp:66
libvisio::VSDStylesCollector::collectShapeData
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 VSDStylesCollector.cpp:185
libvisio::VSDStylesCollector::collectGeometry
void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow) override
Definition VSDStylesCollector.cpp:84
libvisio::VSDStylesCollector::collectPageProps
void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale, unsigned char drawingScaleUnit, const std::optional< unsigned > variationColorIndex, const std::optional< unsigned > variationStyleIndex) override
Definition VSDStylesCollector.cpp:225
libvisio::VSDStylesCollector::m_shadowOffsetX
double m_shadowOffsetX
Definition VSDStylesCollector.h:193
libvisio::VSDStyles
Definition VSDStyles.h:512
libvisio::VSDXTheme
Definition VSDXTheme.h:85
libvisio_utils.h
libvisio
Definition libvisio_utils.h:47
libvisio::TextFormat
TextFormat
Definition VSDTypes.h:150
libvisio::NURBSData
Definition VSDTypes.h:94
libvisio::PolylineData
Definition VSDTypes.h:115
libvisio::VSDLayer
Definition VSDLayerList.h:22
libvisio::VSDMisc
Definition VSDTypes.h:204
libvisio::XForm
Definition VSDTypes.h:23