- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

VSDStylesCollector.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libvisio
3 * Version: MPL 1.1 / GPLv2+ / LGPLv2+
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License or as specified alternatively below. You may obtain a copy of
8 * the License at http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * Major Contributor(s):
16 * Copyright (C) 2011 Fridrich Strba <fridrich.strba@bluewin.ch>
17 * Copyright (C) 2011 Eilidh McAdam <tibbylickle@gmail.com>
18 *
19 *
20 * All Rights Reserved.
21 *
22 * For minor contributions see the git repository.
23 *
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
26 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
27 * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
28 * instead of those above.
29 */
30
31 #ifndef VSDSTYLESCOLLECTOR_H
32 #define VSDSTYLESCOLLECTOR_H
33
34 #include <map>
35 #include <vector>
36 #include <list>
37 #include "VSDCollector.h"
38 #include "VSDParser.h"
39 #include "libvisio_utils.h"
40 #include "VSDStyles.h"
41
42 namespace libvisio
43 {
44
45 class VSDStylesCollector : public VSDCollector
46 {
47 public:
48 VSDStylesCollector(
49 std::vector<std::map<unsigned, XForm> > &groupXFormsSequence,
50 std::vector<std::map<unsigned, unsigned> > &groupMembershipsSequence,
51 std::vector<std::list<unsigned> > &documentPageShapeOrders
52 );
53 virtual ~VSDStylesCollector() {}
54
55 void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc);
56 void collectForeignData(unsigned level, const WPXBinaryData &binaryData);
57 void collectOLEList(unsigned id, unsigned level)
58 {
59 collectUnhandledChunk(id, level);
60 }
61 void collectOLEData(unsigned id, unsigned level, const WPXBinaryData &oleData);
62 void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop);
63 void collectLine(unsigned level, const boost::optional<double> &strokeWidth, const boost::optional<Colour> &c, const boost::optional<unsigned char> &linePattern,
64 const boost::optional<unsigned char> &startMarker, const boost::optional<unsigned char> &endMarker,
65 const boost::optional<unsigned char> &lineCap);
66 void collectFillAndShadow(unsigned level, const boost::optional<Colour> &colourFG, const boost::optional<Colour> &colourBG,
67 const boost::optional<unsigned char> &fillPattern, const boost::optional<double> &fillFGTransparency,
68 const boost::optional<double> &fillBGTransparency, const boost::optional<unsigned char> &shadowPattern,
69 const boost::optional<Colour> &shfgc, const boost::optional<double> &shadowOffsetX, const boost::optional<double> &shadowOffsetY);
70 void collectFillAndShadow(unsigned level, const boost::optional<Colour> &colourFG, const boost::optional<Colour> &colourBG,
71 const boost::optional<unsigned char> &fillPattern, const boost::optional<double> &fillFGTransparency,
72 const boost::optional<double> &fillBGTransparency, const boost::optional<unsigned char> &shadowPattern,
73 const boost::optional<Colour> &shfgc);
74 void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow);
75 void collectMoveTo(unsigned id, unsigned level, double x, double y);
76 void collectLineTo(unsigned id, unsigned level, double x, double y);
77 void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow);
78 void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, unsigned char xType, unsigned char yType, unsigned degree,
79 const std::vector<std::pair<double, double> > &ctrlPnts, const std::vector<double> &kntVec, const std::vector<double> &weights);
80 void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, unsigned dataID);
81 void collectNURBSTo(unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, const NURBSData &data);
82 void collectPolylineTo(unsigned id, unsigned level, double x, double y, unsigned char xType, unsigned char yType, const std::vector<std::pair<double, double> > &points);
83 void collectPolylineTo(unsigned id, unsigned level, double x, double y, unsigned dataID);
84 void collectPolylineTo(unsigned id, unsigned level, double x, double y, const PolylineData &data);
85 void collectShapeData(unsigned id, unsigned level, unsigned char xType, unsigned char yType, unsigned degree, double lastKnot,
86 std::vector<std::pair<double, double> > controlPoints, std::vector<double> knotVector, std::vector<double> weights);
87 void collectShapeData(unsigned id, unsigned level, unsigned char xType, unsigned char yType, std::vector<std::pair<double, double> > points);
88 void collectXFormData(unsigned level, const XForm &xform);
89 void collectTxtXForm(unsigned level, const XForm &txtxform);
90 void collectShapesOrder(unsigned id, unsigned level, const std::vector<unsigned> &shapeIds);
91 void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height);
92 void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale);
93 void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName);
94 void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle);
95 void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree);
96 void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot);
97 void collectSplineEnd();
98 void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2);
99 void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d);
100 void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d);
101 void collectRelLineTo(unsigned id, unsigned level, double x, double y);
102 void collectRelMoveTo(unsigned id, unsigned level, double x, double y);
103 void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b);
104 void collectUnhandledChunk(unsigned id, unsigned level);
105
106 void collectText(unsigned level, const ::WPXBinaryData &textStream, TextFormat format);
107 void collectCharIX(unsigned id, unsigned level, unsigned charCount, const boost::optional<VSDName> &font,
108 const boost::optional<Colour> &fontColour, const boost::optional<double> &fontSize, const boost::optional<bool> &bold,
109 const boost::optional<bool> &italic, const boost::optional<bool> &underline, const boost::optional<bool> &doubleunderline,
110 const boost::optional<bool> &strikeout, const boost::optional<bool> &doublestrikeout, const boost::optional<bool> &allcaps,
111 const boost::optional<bool> &initcaps, const boost::optional<bool> &smallcaps, const boost::optional<bool> &superscript,
112 const boost::optional<bool> &subscript);
113 void collectDefaultCharStyle(unsigned charCount, const boost::optional<VSDName> &font, const boost::optional<Colour> &fontColour,
114 const boost::optional<double> &fontSize, const boost::optional<bool> &bold, const boost::optional<bool> &italic,
115 const boost::optional<bool> &underline, const boost::optional<bool> &doubleunderline, const boost::optional<bool> &strikeout,
116 const boost::optional<bool> &doublestrikeout, const boost::optional<bool> &allcaps, const boost::optional<bool> &initcaps,
117 const boost::optional<bool> &smallcaps, const boost::optional<bool> &superscript, const boost::optional<bool> &subscript);
118 void collectParaIX(unsigned id, unsigned level, unsigned charCount, const boost::optional<double> &indFirst,
119 const boost::optional<double> &indLeft, const boost::optional<double> &indRight, const boost::optional<double> &spLine,
120 const boost::optional<double> &spBefore, const boost::optional<double> &spAfter, const boost::optional<unsigned char> &align,
121 const boost::optional<unsigned> &flags);
122 void collectDefaultParaStyle(unsigned charCount, const boost::optional<double> &indFirst, const boost::optional<double> &indLeft,
123 const boost::optional<double> &indRight, const boost::optional<double> &spLine, const boost::optional<double> &spBefore,
124 const boost::optional<double> &spAfter, const boost::optional<unsigned char> &align, const boost::optional<unsigned> &flags);
125 void collectTextBlock(unsigned level, const boost::optional<double> &leftMargin, const boost::optional<double> &rightMargin,
126 const boost::optional<double> &topMargin, const boost::optional<double> &bottomMargin,
127 const boost::optional<unsigned char> &verticalAlign, const boost::optional<bool> &isBgFilled,
128 const boost::optional<Colour> &bgColour, const boost::optional<double> &defaultTabStop,
129 const boost::optional<unsigned char> &textDirection);
130 void collectNameList(unsigned id, unsigned level)
131 {
132 collectUnhandledChunk(id, level);
133 }
134 void collectName(unsigned id, unsigned level, const ::WPXBinaryData &name, TextFormat format);
135 void collectPageSheet(unsigned id, unsigned level);
136 void collectMisc(unsigned level, const VSDMisc &misc);
137
138 // Style collectors
139 void collectStyleSheet(unsigned id, unsigned level,unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle);
140 void collectLineStyle(unsigned level, const boost::optional<double> &strokeWidth, const boost::optional<Colour> &c, const boost::optional<unsigned char> &linePattern,
141 const boost::optional<unsigned char> &startMarker, const boost::optional<unsigned char> &endMarker,
142 const boost::optional<unsigned char> &lineCap);
143 void collectFillStyle(unsigned level, const boost::optional<Colour> &colourFG, const boost::optional<Colour> &colourBG,
144 const boost::optional<unsigned char> &fillPattern, const boost::optional<double> &fillFGTransparency,
145 const boost::optional<double> &fillBGTransparency, const boost::optional<unsigned char> &shadowPattern,
146 const boost::optional<Colour> &shfgc, const boost::optional<double> &shadowOffsetX, const boost::optional<double> &shadowOffsetY);
147 void collectFillStyle(unsigned level, const boost::optional<Colour> &colourFG, const boost::optional<Colour> &colourBG,
148 const boost::optional<unsigned char> &fillPattern, const boost::optional<double> &fillFGTransparency,
149 const boost::optional<double> &fillBGTransparency, const boost::optional<unsigned char> &shadowPattern,
150 const boost::optional<Colour> &shfgc);
151 void collectCharIXStyle(unsigned id, unsigned level, unsigned charCount, const boost::optional<VSDName> &font,
152 const boost::optional<Colour> &fontColour, const boost::optional<double> &fontSize, const boost::optional<bool> &bold,
153 const boost::optional<bool> &italic, const boost::optional<bool> &underline, const boost::optional<bool> &doubleunderline,
154 const boost::optional<bool> &strikeout, const boost::optional<bool> &doublestrikeout, const boost::optional<bool> &allcaps,
155 const boost::optional<bool> &initcaps, const boost::optional<bool> &smallcaps, const boost::optional<bool> &superscript,
156 const boost::optional<bool> &subscript);
157 void collectParaIXStyle(unsigned id, unsigned level, unsigned charCount, const boost::optional<double> &indFirst,
158 const boost::optional<double> &indLeft, const boost::optional<double> &indRight, const boost::optional<double> &spLine,
159 const boost::optional<double> &spBefore, const boost::optional<double> &spAfter, const boost::optional<unsigned char> &align,
160 const boost::optional<unsigned> &flags);
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);
166
167 // Field list
168 void collectFieldList(unsigned id, unsigned level);
169 void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId);
170 void collectNumericField(unsigned id, unsigned level, unsigned short format, double number, int formatStringId);
171
172 // Temporary hack
173 void startPage(unsigned pageID);
174 void endPage();
175 void endPages() {}
176
177 const VSDStyles &getStyleSheets() const
178 {
179 return m_styles;
180 }
181
182
183 private:
184 VSDStylesCollector(const VSDStylesCollector &);
185 VSDStylesCollector &operator=(const VSDStylesCollector &);
186
187 void _handleLevelChange(unsigned level);
188 void _flushShapeList();
189
190 unsigned m_currentLevel;
191 bool m_isShapeStarted;
192
193 double m_shadowOffsetX;
194 double m_shadowOffsetY;
195
196 unsigned m_currentShapeId;
197 std::map<unsigned, XForm> m_groupXForms;
198 std::map<unsigned, unsigned> m_groupMemberships;
199 std::vector<std::map<unsigned, XForm> > &m_groupXFormsSequence;
200 std::vector<std::map<unsigned, unsigned> > &m_groupMembershipsSequence;
201 std::list<unsigned> m_pageShapeOrder;
202 std::vector<std::list<unsigned> > &m_documentPageShapeOrders;
203 std::map<unsigned, std::list<unsigned> > m_groupShapeOrder;
204 std::list<unsigned> m_shapeList;
205
206 unsigned m_currentStyleSheet;
207 VSDStyles m_styles;
208
209 unsigned m_currentShapeLevel;
210 };
211
212 }
213
214 #endif /* VSDSTYLESCOLLECTOR_H */
215 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libvisio::VSDStyles
Definition: VSDStyles.h:436
libvisio::VSDStylesCollector::collectPage
void collectPage(unsigned id, unsigned level, unsigned backgroundPageID, bool isBackgroundPage, const VSDName &pageName)
Definition: VSDStylesCollector.cpp:246
libvisio::VSDStylesCollector::collectTextBlockStyle
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)
Definition: VSDStylesCollector.cpp:374
libvisio::VSDStylesCollector::collectArcTo
void collectArcTo(unsigned id, unsigned level, double x2, double y2, double bow)
Definition: VSDStylesCollector.cpp:114
libvisio::VSDStylesCollector::m_currentStyleSheet
unsigned m_currentStyleSheet
Definition: VSDStylesCollector.h:206
libvisio::VSDStylesCollector::m_shapeList
std::list< unsigned > m_shapeList
Definition: VSDStylesCollector.h:204
libvisio::VSDStylesCollector::collectTextField
void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId)
Definition: VSDStylesCollector.cpp:387
libvisio::VSDStylesCollector::m_groupXFormsSequence
std::vector< std::map< unsigned, XForm > > & m_groupXFormsSequence
Definition: VSDStylesCollector.h:199
libvisio::VSDStylesCollector::m_shadowOffsetX
double m_shadowOffsetX
Definition: VSDStylesCollector.h:193
libvisio::VSDStylesCollector::collectLine
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)
Definition: VSDStylesCollector.cpp:76
libvisio::NURBSData
Definition: VSDTypes.h:101
libvisio::VSDStylesCollector
Definition: VSDStylesCollector.h:45
libvisio_utils.h
libvisio::VSDStylesCollector::collectSplineEnd
void collectSplineEnd()
Definition: VSDStylesCollector.cpp:166
libvisio::VSDStylesCollector::m_shadowOffsetY
double m_shadowOffsetY
Definition: VSDStylesCollector.h:194
libvisio::VSDStylesCollector::collectTxtXForm
void collectTxtXForm(unsigned level, const XForm &txtxform)
Definition: VSDStylesCollector.cpp:220
libvisio::VSDStylesCollector::startPage
void startPage(unsigned pageID)
Definition: VSDStylesCollector.cpp:397
libvisio::VSDStylesCollector::m_currentShapeId
unsigned m_currentShapeId
Definition: VSDStylesCollector.h:196
libvisio::VSDStylesCollector::collectName
void collectName(unsigned id, unsigned level, const ::WPXBinaryData &name, TextFormat format)
Definition: VSDStylesCollector.cpp:319
libvisio::VSDStylesCollector::m_documentPageShapeOrders
std::vector< std::list< unsigned > > & m_documentPageShapeOrders
Definition: VSDStylesCollector.h:202
libvisio::VSDStylesCollector::collectFieldList
void collectFieldList(unsigned id, unsigned level)
Definition: VSDStylesCollector.cpp:382
libvisio::VSDStylesCollector::collectSplineKnot
void collectSplineKnot(unsigned id, unsigned level, double x, double y, double knot)
Definition: VSDStylesCollector.cpp:161
libvisio::VSDMisc
Definition: VSDTypes.h:211
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)
Definition: VSDStylesCollector.cpp:138
libvisio::VSDStylesCollector::m_currentLevel
unsigned m_currentLevel
Definition: VSDStylesCollector.h:190
libvisio::VSDStylesCollector::collectXFormData
void collectXFormData(unsigned level, const XForm &xform)
Definition: VSDStylesCollector.cpp:213
libvisio::VSDStylesCollector::collectFillStyle
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)
Definition: VSDStylesCollector.cpp:342
libvisio::VSDStylesCollector::m_groupXForms
std::map< unsigned, XForm > m_groupXForms
Definition: VSDStylesCollector.h:197
libvisio::VSDStylesCollector::m_groupMembershipsSequence
std::vector< std::map< unsigned, unsigned > > & m_groupMembershipsSequence
Definition: VSDStylesCollector.h:200
libvisio::VSDStylesCollector::collectInfiniteLine
void collectInfiniteLine(unsigned id, unsigned level, double x1, double y1, double x2, double y2)
Definition: VSDStylesCollector.cpp:170
libvisio::VSDStylesCollector::collectSplineStart
void collectSplineStart(unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree)
Definition: VSDStylesCollector.cpp:155
libvisio::VSDStylesCollector::collectMoveTo
void collectMoveTo(unsigned id, unsigned level, double x, double y)
Definition: VSDStylesCollector.cpp:104
libvisio::VSDStylesCollector::collectGeometry
void collectGeometry(unsigned id, unsigned level, bool noFill, bool noLine, bool noShow)
Definition: VSDStylesCollector.cpp:99
libvisio::VSDStylesCollector::m_groupMemberships
std::map< unsigned, unsigned > m_groupMemberships
Definition: VSDStylesCollector.h:198
libvisio::VSDStylesCollector::collectRelCubBezTo
void collectRelCubBezTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d)
Definition: VSDStylesCollector.cpp:175
libvisio::VSDStylesCollector::collectTextBlock
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)
Definition: VSDStylesCollector.cpp:311
libvisio::VSDCollector
Definition: VSDCollector.h:41
libvisio::VSDStylesCollector::_handleLevelChange
void _handleLevelChange(unsigned level)
Definition: VSDStylesCollector.cpp:426
libvisio::VSDStylesCollector::collectCharIX
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)
Definition: VSDStylesCollector.cpp:292
libvisio::VSDStylesCollector::collectPageProps
void collectPageProps(unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale)
Definition: VSDStylesCollector.cpp:240
libvisio::VSDStylesCollector::_flushShapeList
void _flushShapeList()
Definition: VSDStylesCollector.cpp:436
libvisio::VSDStylesCollector::collectForeignDataType
void collectForeignDataType(unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height)
Definition: VSDStylesCollector.cpp:234
libvisio::VSDStylesCollector::collectDefaultCharStyle
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)
Definition: VSDStylesCollector.cpp:302
libvisio::VSDStylesCollector::~VSDStylesCollector
virtual ~VSDStylesCollector()
Definition: VSDStylesCollector.h:53
libvisio::VSDStylesCollector::m_styles
VSDStyles m_styles
Definition: VSDStylesCollector.h:207
libvisio::VSDStylesCollector::collectMisc
void collectMisc(unsigned level, const VSDMisc &misc)
Definition: VSDStylesCollector.cpp:262
libvisio::VSDStylesCollector::collectEllipse
void collectEllipse(unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop)
Definition: VSDStylesCollector.cpp:70
VSDParser.h
libvisio::VSDStylesCollector::collectNumericField
void collectNumericField(unsigned id, unsigned level, unsigned short format, double number, int formatStringId)
Definition: VSDStylesCollector.cpp:392
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:35
libvisio::VSDStylesCollector::collectLineTo
void collectLineTo(unsigned id, unsigned level, double x, double y)
Definition: VSDStylesCollector.cpp:109
libvisio::VSDStylesCollector::collectNameList
void collectNameList(unsigned id, unsigned level)
Definition: VSDStylesCollector.h:130
libvisio::VSDStylesCollector::collectStyleSheet
void collectStyleSheet(unsigned id, unsigned level, unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle)
Definition: VSDStylesCollector.cpp:330
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)
Definition: VSDStylesCollector.cpp:200
libvisio::TextFormat
TextFormat
Definition: VSDTypes.h:163
libvisio::VSDStylesCollector::m_groupShapeOrder
std::map< unsigned, std::list< unsigned > > m_groupShapeOrder
Definition: VSDStylesCollector.h:203
libvisio::VSDStylesCollector::collectFillAndShadow
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)
Definition: VSDStylesCollector.cpp:84
libvisio::VSDStylesCollector::m_pageShapeOrder
std::list< unsigned > m_pageShapeOrder
Definition: VSDStylesCollector.h:201
libvisio::VSDStylesCollector::collectRelEllipticalArcTo
void collectRelEllipticalArcTo(unsigned id, unsigned level, double x, double y, double a, double b, double c, double d)
Definition: VSDStylesCollector.cpp:180
libvisio::VSDStylesCollector::getStyleSheets
const VSDStyles & getStyleSheets() const
Definition: VSDStylesCollector.h:177
libvisio::VSDStylesCollector::collectDefaultParaStyle
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 > &flags)
Definition: VSDStylesCollector.cpp:285
VSDStyles.h
libvisio::VSDStylesCollector::operator=
VSDStylesCollector & operator=(const VSDStylesCollector &)
libvisio::VSDStylesCollector::collectRelLineTo
void collectRelLineTo(unsigned id, unsigned level, double x, double y)
Definition: VSDStylesCollector.cpp:185
libvisio::VSDStylesCollector::collectParaIX
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 > &flags)
Definition: VSDStylesCollector.cpp:277
libvisio::VSDStylesCollector::collectText
void collectText(unsigned level, const ::WPXBinaryData &textStream, TextFormat format)
Definition: VSDStylesCollector.cpp:272
libvisio::VSDStylesCollector::collectOLEData
void collectOLEData(unsigned id, unsigned level, const WPXBinaryData &oleData)
Definition: VSDStylesCollector.cpp:65
libvisio::VSDStylesCollector::collectRelQuadBezTo
void collectRelQuadBezTo(unsigned id, unsigned level, double x, double y, double a, double b)
Definition: VSDStylesCollector.cpp:195
libvisio::VSDStylesCollector::collectPageSheet
void collectPageSheet(unsigned id, unsigned level)
Definition: VSDStylesCollector.cpp:324
libvisio::VSDStylesCollector::collectCharIXStyle
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)
Definition: VSDStylesCollector.cpp:357
libvisio::VSDStylesCollector::collectParaIXStyle
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 > &flags)
Definition: VSDStylesCollector.cpp:366
libvisio::PolylineData
Definition: VSDTypes.h:128
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)
Definition: VSDStylesCollector.cpp:119
libvisio::VSDStylesCollector::m_isShapeStarted
bool m_isShapeStarted
Definition: VSDStylesCollector.h:191
libvisio::VSDStylesCollector::collectUnhandledChunk
void collectUnhandledChunk(unsigned id, unsigned level)
Definition: VSDStylesCollector.cpp:267
libvisio::VSDStylesCollector::endPages
void endPages()
Definition: VSDStylesCollector.h:175
libvisio::XForm
Definition: VSDTypes.h:43
libvisio::VSDStylesCollector::endPage
void endPage()
Definition: VSDStylesCollector.cpp:405
libvisio::VSDStylesCollector::collectOLEList
void collectOLEList(unsigned id, unsigned level)
Definition: VSDStylesCollector.h:57
libvisio::VSDStylesCollector::collectForeignData
void collectForeignData(unsigned level, const WPXBinaryData &binaryData)
Definition: VSDStylesCollector.cpp:60
libvisio::VSDStylesCollector::collectLineStyle
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)
Definition: VSDStylesCollector.cpp:335
VSDCollector.h
libvisio::VSDName
Definition: VSDTypes.h:184
libvisio::VSDStylesCollector::m_currentShapeLevel
unsigned m_currentShapeLevel
Definition: VSDStylesCollector.h:209
libvisio::VSDStylesCollector::collectShapesOrder
void collectShapesOrder(unsigned id, unsigned level, const std::vector< unsigned > &shapeIds)
Definition: VSDStylesCollector.cpp:225
libvisio::VSDStylesCollector::collectShape
void collectShape(unsigned id, unsigned level, unsigned parent, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle)
Definition: VSDStylesCollector.cpp:251
libvisio::VSDStylesCollector::collectEllipticalArcTo
void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc)
Definition: VSDStylesCollector.cpp:54
libvisio::VSDStylesCollector::collectRelMoveTo
void collectRelMoveTo(unsigned id, unsigned level, double x, double y)
Definition: VSDStylesCollector.cpp:190