- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

VSDStyles.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 __VSDSTYLES_H__
32 #define __VSDSTYLES_H__
33
34 #include <map>
35 #include <vector>
36 #include <boost/optional.hpp>
37 #include <libwpg/libwpg.h>
38 #include "VSDTypes.h"
39
40 namespace libvisio
41 {
42
43 struct VSDOptionalLineStyle
44 {
45 VSDOptionalLineStyle() :
46 width(), colour(), pattern(), startMarker(), endMarker(), cap() {}
47 VSDOptionalLineStyle(const boost::optional<double> &w, const boost::optional<Colour> &col,
48 const boost::optional<unsigned char> &p, const boost::optional<unsigned char> &sm,
49 const boost::optional<unsigned char> &em, const boost::optional<unsigned char> &c) :
50 width(w), colour(col), pattern(p), startMarker(sm), endMarker(em), cap(c) {}
51 VSDOptionalLineStyle(const VSDOptionalLineStyle &style) :
52 width(style.width), colour(style.colour), pattern(style.pattern), startMarker(style.startMarker),
53 endMarker(style.endMarker), cap(style.cap) {}
54 ~VSDOptionalLineStyle() {}
55 void override(const VSDOptionalLineStyle &style)
56 {
57 ASSIGN_OPTIONAL(style.width, width);
58 ASSIGN_OPTIONAL(style.colour, colour);
59 ASSIGN_OPTIONAL(style.pattern, pattern);
60 ASSIGN_OPTIONAL(style.startMarker, startMarker);
61 ASSIGN_OPTIONAL(style.endMarker, endMarker);
62 ASSIGN_OPTIONAL(style.cap, cap);
63 }
64
65 boost::optional<double> width;
66 boost::optional<Colour> colour;
67 boost::optional<unsigned char> pattern;
68 boost::optional<unsigned char> startMarker;
69 boost::optional<unsigned char> endMarker;
70 boost::optional<unsigned char> cap;
71 };
72
73 struct VSDLineStyle
74 {
75 VSDLineStyle() :
76 width(0.01), colour(), pattern(1), startMarker(0), endMarker(0), cap(0) {}
77 VSDLineStyle(double w, Colour col, unsigned char p, unsigned char sm,
78 unsigned char em, unsigned char c) :
79 width(w), colour(col), pattern(p), startMarker(sm), endMarker(em), cap(c) {}
80 VSDLineStyle(const VSDLineStyle &style) :
81 width(style.width), colour(style.colour), pattern(style.pattern), startMarker(style.startMarker),
82 endMarker(style.endMarker), cap(style.cap) {}
83 ~VSDLineStyle() {}
84 void override(const VSDOptionalLineStyle &style)
85 {
86 ASSIGN_OPTIONAL(style.width, width);
87 ASSIGN_OPTIONAL(style.colour, colour);
88 ASSIGN_OPTIONAL(style.pattern, pattern);
89 ASSIGN_OPTIONAL(style.startMarker, startMarker);
90 ASSIGN_OPTIONAL(style.endMarker, endMarker);
91 ASSIGN_OPTIONAL(style.cap, cap);
92 }
93
94 double width;
95 Colour colour;
96 unsigned char pattern;
97 unsigned char startMarker;
98 unsigned char endMarker;
99 unsigned char cap;
100 };
101
102 struct VSDOptionalFillStyle
103 {
104 VSDOptionalFillStyle() :
105 fgColour(), bgColour(), pattern(), fgTransparency(), bgTransparency(), shadowFgColour(),
106 shadowPattern(), shadowOffsetX(), shadowOffsetY() {}
107 VSDOptionalFillStyle(const boost::optional<Colour> &fgc, const boost::optional<Colour> &bgc,
108 const boost::optional<unsigned char> &p, const boost::optional<double> &fga,
109 const boost::optional<double> &bga, const boost::optional<Colour> &sfgc,
110 const boost::optional<unsigned char> &shp, const boost::optional<double> &shX,
111 const boost::optional<double> &shY) :
112 fgColour(fgc), bgColour(bgc), pattern(p), fgTransparency(fga), bgTransparency(bga),
113 shadowFgColour(sfgc), shadowPattern(shp), shadowOffsetX(shX), shadowOffsetY(shY) {}
114 VSDOptionalFillStyle(const VSDOptionalFillStyle &style) :
115 fgColour(style.fgColour), bgColour(style.bgColour), pattern(style.pattern), fgTransparency(style.fgTransparency),
116 bgTransparency(style.bgTransparency), shadowFgColour(style.shadowFgColour), shadowPattern(style.shadowPattern),
117 shadowOffsetX(style.shadowOffsetX), shadowOffsetY(style.shadowOffsetY) {}
118 ~VSDOptionalFillStyle() {}
119 void override(const VSDOptionalFillStyle &style)
120 {
121 ASSIGN_OPTIONAL(style.fgColour, fgColour);
122 ASSIGN_OPTIONAL(style.bgColour, bgColour);
123 ASSIGN_OPTIONAL(style.pattern, pattern);
124 ASSIGN_OPTIONAL(style.fgTransparency, fgTransparency);
125 ASSIGN_OPTIONAL(style.bgTransparency, bgTransparency);
126 ASSIGN_OPTIONAL(style.shadowFgColour, shadowFgColour);
127 ASSIGN_OPTIONAL(style.shadowPattern, shadowPattern);
128 ASSIGN_OPTIONAL(style.shadowOffsetX, shadowOffsetX);
129 ASSIGN_OPTIONAL(style.shadowOffsetY, shadowOffsetY);
130 }
131
132 boost::optional<Colour> fgColour;
133 boost::optional<Colour> bgColour;
134 boost::optional<unsigned char> pattern;
135 boost::optional<double> fgTransparency;
136 boost::optional<double> bgTransparency;
137 boost::optional<Colour> shadowFgColour;
138 boost::optional<unsigned char> shadowPattern;
139 boost::optional<double> shadowOffsetX;
140 boost::optional<double> shadowOffsetY;
141 };
142
143 struct VSDFillStyle
144 {
145 VSDFillStyle()
146 : fgColour(), bgColour(0xff, 0xff, 0xff, 0), pattern(0), fgTransparency(0), bgTransparency(0), shadowFgColour(),
147 shadowPattern(0), shadowOffsetX(0), shadowOffsetY(0) {}
148 VSDFillStyle(const Colour &fgc, const Colour &bgc, unsigned char p, double fga, double bga, const Colour &sfgc,
149 unsigned char shp, double shX, double shY)
150 : fgColour(fgc), bgColour(bgc), pattern(p), fgTransparency(fga), bgTransparency(bga),
151 shadowFgColour(sfgc), shadowPattern(shp), shadowOffsetX(shX), shadowOffsetY(shY) {}
152 VSDFillStyle(const VSDFillStyle &style) :
153 fgColour(style.fgColour), bgColour(style.bgColour), pattern(style.pattern), fgTransparency(style.fgTransparency),
154 bgTransparency(style.bgTransparency), shadowFgColour(style.shadowFgColour), shadowPattern(style.shadowPattern),
155 shadowOffsetX(style.shadowOffsetX), shadowOffsetY(style.shadowOffsetY) {}
156 ~VSDFillStyle() {}
157 void override(const VSDOptionalFillStyle &style)
158 {
159 ASSIGN_OPTIONAL(style.fgColour, fgColour);
160 ASSIGN_OPTIONAL(style.bgColour, bgColour);
161 ASSIGN_OPTIONAL(style.pattern, pattern);
162 ASSIGN_OPTIONAL(style.fgTransparency, fgTransparency);
163 ASSIGN_OPTIONAL(style.bgTransparency, bgTransparency);
164 ASSIGN_OPTIONAL(style.shadowFgColour, shadowFgColour);
165 ASSIGN_OPTIONAL(style.shadowPattern, shadowPattern);
166 ASSIGN_OPTIONAL(style.shadowOffsetX, shadowOffsetX);
167 ASSIGN_OPTIONAL(style.shadowOffsetY, shadowOffsetY);
168 }
169
170 Colour fgColour;
171 Colour bgColour;
172 unsigned char pattern;
173 double fgTransparency;
174 double bgTransparency;
175 Colour shadowFgColour;
176 unsigned char shadowPattern;
177 double shadowOffsetX;
178 double shadowOffsetY;
179 };
180
181 struct VSDOptionalCharStyle
182 {
183 VSDOptionalCharStyle()
184 : charCount(0), font(), colour(), size(), bold(), italic(), underline(), doubleunderline(), strikeout(),
185 doublestrikeout(), allcaps(), initcaps(), smallcaps(), superscript(), subscript() {}
186 VSDOptionalCharStyle(unsigned cc, const boost::optional<VSDName> &ft,
187 const boost::optional<Colour> &c, const boost::optional<double> &s, const boost::optional<bool> &b,
188 const boost::optional<bool> &i, const boost::optional<bool> &u, const boost::optional<bool> &du,
189 const boost::optional<bool> &so, const boost::optional<bool> &dso, const boost::optional<bool> &ac,
190 const boost::optional<bool> &ic, const boost::optional<bool> &sc, const boost::optional<bool> &super,
191 const boost::optional<bool> &sub) :
192 charCount(cc), font(ft), colour(c), size(s), bold(b), italic(i), underline(u), doubleunderline(du),
193 strikeout(so), doublestrikeout(dso), allcaps(ac), initcaps(ic), smallcaps(sc), superscript(super),
194 subscript(sub) {}
195 VSDOptionalCharStyle(const VSDOptionalCharStyle &style) :
196 charCount(style.charCount), font(style.font), colour(style.colour), size(style.size), bold(style.bold),
197 italic(style.italic), underline(style.underline), doubleunderline(style.doubleunderline), strikeout(style.strikeout),
198 doublestrikeout(style.doublestrikeout), allcaps(style.allcaps), initcaps(style.initcaps), smallcaps(style.smallcaps),
199 superscript(style.superscript), subscript(style.subscript) {}
200 ~VSDOptionalCharStyle() {}
201 void override(const VSDOptionalCharStyle &style)
202 {
203 ASSIGN_OPTIONAL(style.font, font);
204 ASSIGN_OPTIONAL(style.colour, colour);
205 ASSIGN_OPTIONAL(style.size, size);
206 ASSIGN_OPTIONAL(style.bold, bold);
207 ASSIGN_OPTIONAL(style.italic, italic);
208 ASSIGN_OPTIONAL(style.underline, underline);
209 ASSIGN_OPTIONAL(style.doubleunderline, doubleunderline);
210 ASSIGN_OPTIONAL(style.strikeout, strikeout);
211 ASSIGN_OPTIONAL(style.doublestrikeout, doublestrikeout);
212 ASSIGN_OPTIONAL(style.allcaps, allcaps);
213 ASSIGN_OPTIONAL(style.initcaps, initcaps);
214 ASSIGN_OPTIONAL(style.smallcaps, smallcaps);
215 ASSIGN_OPTIONAL(style.superscript, superscript);
216 ASSIGN_OPTIONAL(style.subscript, subscript);
217 }
218
219 unsigned charCount;
220 boost::optional<VSDName> font;
221 boost::optional<Colour> colour;
222 boost::optional<double> size;
223 boost::optional<bool> bold;
224 boost::optional<bool> italic;
225 boost::optional<bool> underline;
226 boost::optional<bool> doubleunderline;
227 boost::optional<bool> strikeout;
228 boost::optional<bool> doublestrikeout;
229 boost::optional<bool> allcaps;
230 boost::optional<bool> initcaps;
231 boost::optional<bool> smallcaps;
232 boost::optional<bool> superscript;
233 boost::optional<bool> subscript;
234 };
235
236 struct VSDCharStyle
237 {
238 VSDCharStyle()
239 : charCount(0), font(), colour(), size(12.0/72.0), bold(false), italic(false), underline(false),
240 doubleunderline(false), strikeout(false), doublestrikeout(false), allcaps(false), initcaps(false),
241 smallcaps(false), superscript(false), subscript(false) {}
242 VSDCharStyle(unsigned cc, const VSDName &ft, const Colour &c, double s, bool b, bool i, bool u, bool du,
243 bool so, bool dso, bool ac, bool ic, bool sc, bool super, bool sub) :
244 charCount(cc), font(ft), colour(c), size(s), bold(b), italic(i), underline(u), doubleunderline(du),
245 strikeout(so), doublestrikeout(dso), allcaps(ac), initcaps(ic), smallcaps(sc), superscript(super),
246 subscript(sub) {}
247 VSDCharStyle(const VSDCharStyle &style) :
248 charCount(style.charCount), font(style.font), colour(style.colour), size(style.size), bold(style.bold),
249 italic(style.italic), underline(style.underline), doubleunderline(style.doubleunderline), strikeout(style.strikeout),
250 doublestrikeout(style.doublestrikeout), allcaps(style.allcaps), initcaps(style.initcaps), smallcaps(style.smallcaps),
251 superscript(style.superscript), subscript(style.subscript) {}
252 ~VSDCharStyle() {}
253 void override(const VSDOptionalCharStyle &style)
254 {
255 ASSIGN_OPTIONAL(style.font, font);
256 ASSIGN_OPTIONAL(style.colour, colour);
257 ASSIGN_OPTIONAL(style.size, size);
258 ASSIGN_OPTIONAL(style.bold, bold);
259 ASSIGN_OPTIONAL(style.italic, italic);
260 ASSIGN_OPTIONAL(style.underline, underline);
261 ASSIGN_OPTIONAL(style.doubleunderline, doubleunderline);
262 ASSIGN_OPTIONAL(style.strikeout, strikeout);
263 ASSIGN_OPTIONAL(style.doublestrikeout, doublestrikeout);
264 ASSIGN_OPTIONAL(style.allcaps, allcaps);
265 ASSIGN_OPTIONAL(style.initcaps, initcaps);
266 ASSIGN_OPTIONAL(style.smallcaps, smallcaps);
267 ASSIGN_OPTIONAL(style.superscript, superscript);
268 ASSIGN_OPTIONAL(style.subscript, subscript);
269 }
270
271 unsigned charCount;
272 VSDName font;
273 Colour colour;
274 double size;
275 bool bold;
276 bool italic;
277 bool underline;
278 bool doubleunderline;
279 bool strikeout;
280 bool doublestrikeout;
281 bool allcaps;
282 bool initcaps;
283 bool smallcaps;
284 bool superscript;
285 bool subscript;
286 };
287
288 struct VSDOptionalParaStyle
289 {
290 VSDOptionalParaStyle() :
291 charCount(0), indFirst(), indLeft(), indRight(), spLine(), spBefore(), spAfter(), align(), flags() {}
292 VSDOptionalParaStyle(unsigned cc, const boost::optional<double> &ifst, const boost::optional<double> &il,
293 const boost::optional<double> &ir, const boost::optional<double> &sl, const boost::optional<double> &sb,
294 const boost::optional<double> &sa, const boost::optional<unsigned char> &a, const boost::optional<unsigned> &f) :
295 charCount(cc), indFirst(ifst), indLeft(il), indRight(ir), spLine(sl), spBefore(sb), spAfter(sa), align(a), flags(f) {}
296 VSDOptionalParaStyle(const VSDOptionalParaStyle &style) :
297 charCount(style.charCount), indFirst(style.indFirst), indLeft(style.indLeft), indRight(style.indRight), spLine(style.spLine),
298 spBefore(style.spBefore), spAfter(style.spAfter), align(style.align), flags(style.flags) {}
299 ~VSDOptionalParaStyle() {}
300 void override(const VSDOptionalParaStyle &style)
301 {
302 ASSIGN_OPTIONAL(style.indFirst, indFirst);
303 ASSIGN_OPTIONAL(style.indLeft, indLeft);
304 ASSIGN_OPTIONAL(style.indRight,indRight);
305 ASSIGN_OPTIONAL(style.spLine, spLine);
306 ASSIGN_OPTIONAL(style.spBefore, spBefore);
307 ASSIGN_OPTIONAL(style.spAfter, spAfter);
308 ASSIGN_OPTIONAL(style.align, align);
309 ASSIGN_OPTIONAL(style.flags, flags);
310 }
311
312 unsigned charCount;
313 boost::optional<double> indFirst;
314 boost::optional<double> indLeft;
315 boost::optional<double> indRight;
316 boost::optional<double> spLine;
317 boost::optional<double> spBefore;
318 boost::optional<double> spAfter;
319 boost::optional<unsigned char> align;
320 boost::optional<unsigned> flags;
321 };
322
323 struct VSDParaStyle
324 {
325 VSDParaStyle() :
326 charCount(0), indFirst(0.0), indLeft(0.0), indRight(0.0), spLine(-1.2), spBefore(0.0), spAfter(0.0), align(1), flags(0) {}
327 VSDParaStyle(unsigned cc, double ifst, double il, double ir, double sl, double sb,
328 double sa, unsigned char a, unsigned f) :
329 charCount(cc), indFirst(ifst), indLeft(il), indRight(ir), spLine(sl), spBefore(sb), spAfter(sa), align(a), flags(f) {}
330 VSDParaStyle(const VSDParaStyle &style) :
331 charCount(style.charCount), indFirst(style.indFirst), indLeft(style.indLeft), indRight(style.indRight), spLine(style.spLine),
332 spBefore(style.spBefore), spAfter(style.spAfter), align(style.align), flags(style.flags) {}
333 ~VSDParaStyle() {}
334 void override(const VSDOptionalParaStyle &style)
335 {
336 ASSIGN_OPTIONAL(style.indFirst, indFirst);
337 ASSIGN_OPTIONAL(style.indLeft, indLeft);
338 ASSIGN_OPTIONAL(style.indRight,indRight);
339 ASSIGN_OPTIONAL(style.spLine, spLine);
340 ASSIGN_OPTIONAL(style.spBefore, spBefore);
341 ASSIGN_OPTIONAL(style.spAfter, spAfter);
342 ASSIGN_OPTIONAL(style.align, align);
343 ASSIGN_OPTIONAL(style.flags, flags);
344 }
345
346 unsigned charCount;
347 double indFirst;
348 double indLeft;
349 double indRight;
350 double spLine;
351 double spBefore;
352 double spAfter;
353 unsigned char align;
354 unsigned flags;
355 };
356
357 struct VSDOptionalTextBlockStyle
358 {
359 VSDOptionalTextBlockStyle() :
360 leftMargin(), rightMargin(), topMargin(), bottomMargin(), verticalAlign(), isTextBkgndFilled(),
361 textBkgndColour(), defaultTabStop(), textDirection() {}
362 VSDOptionalTextBlockStyle(const boost::optional<double> &lm, const boost::optional<double> &rm,
363 const boost::optional<double> &tm, const boost::optional<double> &bm,
364 const boost::optional<unsigned char> &va, const boost::optional<bool> &isBgFilled,
365 const boost::optional<Colour> &bgClr, const boost::optional<double> &defTab,
366 const boost::optional<unsigned char> &td) :
367 leftMargin(lm), rightMargin(rm), topMargin(tm), bottomMargin(bm), verticalAlign(va),
368 isTextBkgndFilled(isBgFilled), textBkgndColour(bgClr), defaultTabStop(defTab), textDirection(td) {}
369 VSDOptionalTextBlockStyle(const VSDOptionalTextBlockStyle &style) :
370 leftMargin(style.leftMargin), rightMargin(style.rightMargin), topMargin(style.topMargin),
371 bottomMargin(style.bottomMargin), verticalAlign(style.verticalAlign), isTextBkgndFilled(style.isTextBkgndFilled),
372 textBkgndColour(style.textBkgndColour), defaultTabStop(style.defaultTabStop), textDirection(style.textDirection) {}
373 ~VSDOptionalTextBlockStyle() {}
374 void override(const VSDOptionalTextBlockStyle &style)
375 {
376 ASSIGN_OPTIONAL(style.leftMargin, leftMargin);
377 ASSIGN_OPTIONAL(style.rightMargin, rightMargin);
378 ASSIGN_OPTIONAL(style.topMargin, topMargin);
379 ASSIGN_OPTIONAL(style.bottomMargin, bottomMargin);
380 ASSIGN_OPTIONAL(style.verticalAlign, verticalAlign);
381 ASSIGN_OPTIONAL(style.isTextBkgndFilled, isTextBkgndFilled);
382 ASSIGN_OPTIONAL(style.textBkgndColour, textBkgndColour);
383 ASSIGN_OPTIONAL(style.defaultTabStop, defaultTabStop);
384 ASSIGN_OPTIONAL(style.textDirection, textDirection);
385 }
386
387 boost::optional<double> leftMargin;
388 boost::optional<double> rightMargin;
389 boost::optional<double> topMargin;
390 boost::optional<double> bottomMargin;
391 boost::optional<unsigned char> verticalAlign;
392 boost::optional<bool> isTextBkgndFilled;
393 boost::optional<Colour> textBkgndColour;
394 boost::optional<double> defaultTabStop;
395 boost::optional<unsigned char> textDirection;
396 };
397
398 struct VSDTextBlockStyle
399 {
400 VSDTextBlockStyle() :
401 leftMargin(0.0), rightMargin(0.0), topMargin(0.0), bottomMargin(0.0), verticalAlign(1),
402 isTextBkgndFilled(true), textBkgndColour(0xff,0xff,0xff,0), defaultTabStop(0.5), textDirection(0) {}
403 VSDTextBlockStyle(double lm, double rm, double tm, double bm, unsigned char va,
404 bool isBgFilled, Colour bgClr, double defTab, unsigned char td) :
405 leftMargin(lm), rightMargin(rm), topMargin(tm), bottomMargin(bm), verticalAlign(va),
406 isTextBkgndFilled(isBgFilled), textBkgndColour(bgClr), defaultTabStop(defTab), textDirection(td) {}
407 VSDTextBlockStyle(const VSDTextBlockStyle &style) :
408 leftMargin(style.leftMargin), rightMargin(style.rightMargin), topMargin(style.topMargin),
409 bottomMargin(style.bottomMargin), verticalAlign(style.verticalAlign), isTextBkgndFilled(style.isTextBkgndFilled),
410 textBkgndColour(style.textBkgndColour), defaultTabStop(style.defaultTabStop), textDirection(style.textDirection) {}
411 ~VSDTextBlockStyle() {}
412 void override(const VSDOptionalTextBlockStyle &style)
413 {
414 ASSIGN_OPTIONAL(style.leftMargin, leftMargin);
415 ASSIGN_OPTIONAL(style.rightMargin, rightMargin);
416 ASSIGN_OPTIONAL(style.topMargin, topMargin);
417 ASSIGN_OPTIONAL(style.bottomMargin, bottomMargin);
418 ASSIGN_OPTIONAL(style.verticalAlign, verticalAlign);
419 ASSIGN_OPTIONAL(style.isTextBkgndFilled, isTextBkgndFilled);
420 ASSIGN_OPTIONAL(style.textBkgndColour, textBkgndColour);
421 ASSIGN_OPTIONAL(style.defaultTabStop, defaultTabStop);
422 ASSIGN_OPTIONAL(style.textDirection, textDirection);
423 }
424
425 double leftMargin;
426 double rightMargin;
427 double topMargin;
428 double bottomMargin;
429 unsigned char verticalAlign;
430 bool isTextBkgndFilled;
431 Colour textBkgndColour;
432 double defaultTabStop;
433 unsigned char textDirection;
434 };
435
436 class VSDStyles
437 {
438 public:
439 VSDStyles();
440 VSDStyles(const VSDStyles &styles);
441 ~VSDStyles();
442 VSDStyles &operator=(const VSDStyles &styles);
443 void addLineStyle(unsigned lineStyleIndex, const VSDOptionalLineStyle &lineStyle);
444 void addFillStyle(unsigned fillStyleIndex, const VSDOptionalFillStyle &fillStyle);
445 void addTextBlockStyle(unsigned textStyleIndex, const VSDOptionalTextBlockStyle &textBlockStyle);
446 void addCharStyle(unsigned textStyleIndex, const VSDOptionalCharStyle &charStyle);
447 void addParaStyle(unsigned textStyleIndex, const VSDOptionalParaStyle &paraStyle);
448
449 void addLineStyleMaster(unsigned lineStyleIndex, unsigned lineStyleMaster);
450 void addFillStyleMaster(unsigned fillStyleIndex, unsigned fillStyleMaster);
451 void addTextStyleMaster(unsigned textStyleIndex, unsigned textStyleMaster);
452
453 VSDLineStyle getLineStyle(unsigned lineStyleIndex) const;
454 VSDOptionalLineStyle getOptionalLineStyle(unsigned lineStyleIndex) const;
455 VSDFillStyle getFillStyle(unsigned fillStyleIndex) const;
456 VSDOptionalFillStyle getOptionalFillStyle(unsigned fillStyleIndex) const;
457 VSDTextBlockStyle getTextBlockStyle(unsigned textStyleIndex) const;
458 VSDOptionalTextBlockStyle getOptionalTextBlockStyle(unsigned textStyleIndex) const;
459 VSDCharStyle getCharStyle(unsigned textStyleIndex) const;
460 VSDOptionalCharStyle getOptionalCharStyle(unsigned textStyleIndex) const;
461 VSDParaStyle getParaStyle(unsigned textStyleIndex) const;
462 VSDOptionalParaStyle getOptionalParaStyle(unsigned textStyleIndex) const;
463
464 private:
465 std::map<unsigned, VSDOptionalLineStyle> m_lineStyles;
466 std::map<unsigned, VSDOptionalFillStyle> m_fillStyles;
467 std::map<unsigned, VSDOptionalTextBlockStyle> m_textBlockStyles;
468 std::map<unsigned, VSDOptionalCharStyle> m_charStyles;
469 std::map<unsigned, VSDOptionalParaStyle> m_paraStyles;
470 std::map<unsigned, unsigned> m_lineStyleMasters;
471 std::map<unsigned, unsigned> m_fillStyleMasters;
472 std::map<unsigned, unsigned> m_textStyleMasters;
473 };
474
475
476 } // namespace libvisio
477
478 #endif // __VSDSTYLES_H__
479 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libvisio::VSDOptionalTextBlockStyle::VSDOptionalTextBlockStyle
VSDOptionalTextBlockStyle(const boost::optional< double > &lm, const boost::optional< double > &rm, const boost::optional< double > &tm, const boost::optional< double > &bm, const boost::optional< unsigned char > &va, const boost::optional< bool > &isBgFilled, const boost::optional< Colour > &bgClr, const boost::optional< double > &defTab, const boost::optional< unsigned char > &td)
Definition: VSDStyles.h:362
libvisio::VSDStyles
Definition: VSDStyles.h:436
libvisio::VSDOptionalTextBlockStyle::textDirection
boost::optional< unsigned char > textDirection
Definition: VSDStyles.h:395
libvisio::VSDOptionalFillStyle::shadowOffsetX
boost::optional< double > shadowOffsetX
Definition: VSDStyles.h:139
libvisio::VSDOptionalFillStyle::VSDOptionalFillStyle
VSDOptionalFillStyle(const boost::optional< Colour > &fgc, const boost::optional< Colour > &bgc, const boost::optional< unsigned char > &p, const boost::optional< double > &fga, const boost::optional< double > &bga, const boost::optional< Colour > &sfgc, const boost::optional< unsigned char > &shp, const boost::optional< double > &shX, const boost::optional< double > &shY)
Definition: VSDStyles.h:107
libvisio::VSDOptionalCharStyle::VSDOptionalCharStyle
VSDOptionalCharStyle(const VSDOptionalCharStyle &style)
Definition: VSDStyles.h:195
libvisio::VSDStyles::getOptionalParaStyle
VSDOptionalParaStyle getOptionalParaStyle(unsigned textStyleIndex) const
Definition: VSDStyles.cpp:237
libvisio::VSDStyles::getParaStyle
VSDParaStyle getParaStyle(unsigned textStyleIndex) const
Definition: VSDStyles.cpp:262
libvisio::VSDCharStyle::colour
Colour colour
Definition: VSDStyles.h:273
libvisio::VSDOptionalCharStyle::VSDOptionalCharStyle
VSDOptionalCharStyle(unsigned cc, const boost::optional< VSDName > &ft, const boost::optional< Colour > &c, const boost::optional< double > &s, const boost::optional< bool > &b, const boost::optional< bool > &i, const boost::optional< bool > &u, const boost::optional< bool > &du, const boost::optional< bool > &so, const boost::optional< bool > &dso, const boost::optional< bool > &ac, const boost::optional< bool > &ic, const boost::optional< bool > &sc, const boost::optional< bool > &super, const boost::optional< bool > &sub)
Definition: VSDStyles.h:186
libvisio::VSDTextBlockStyle::VSDTextBlockStyle
VSDTextBlockStyle(double lm, double rm, double tm, double bm, unsigned char va, bool isBgFilled, Colour bgClr, double defTab, unsigned char td)
Definition: VSDStyles.h:403
libvisio::VSDFillStyle::fgTransparency
double fgTransparency
Definition: VSDStyles.h:173
libvisio::VSDStyles::m_textStyleMasters
std::map< unsigned, unsigned > m_textStyleMasters
Definition: VSDStyles.h:472
libvisio::VSDParaStyle::VSDParaStyle
VSDParaStyle()
Definition: VSDStyles.h:325
libvisio::VSDOptionalFillStyle
Definition: VSDStyles.h:102
libvisio::VSDParaStyle::VSDParaStyle
VSDParaStyle(const VSDParaStyle &style)
Definition: VSDStyles.h:330
libvisio::VSDTextBlockStyle::leftMargin
double leftMargin
Definition: VSDStyles.h:425
libvisio::VSDOptionalTextBlockStyle::defaultTabStop
boost::optional< double > defaultTabStop
Definition: VSDStyles.h:394
libvisio::VSDOptionalCharStyle::font
boost::optional< VSDName > font
Definition: VSDStyles.h:220
libvisio::VSDFillStyle::VSDFillStyle
VSDFillStyle(const Colour &fgc, const Colour &bgc, unsigned char p, double fga, double bga, const Colour &sfgc, unsigned char shp, double shX, double shY)
Definition: VSDStyles.h:148
libvisio::VSDCharStyle::subscript
bool subscript
Definition: VSDStyles.h:285
libvisio::VSDTextBlockStyle::~VSDTextBlockStyle
~VSDTextBlockStyle()
Definition: VSDStyles.h:411
libvisio::VSDCharStyle::initcaps
bool initcaps
Definition: VSDStyles.h:282
libvisio::VSDParaStyle::spLine
double spLine
Definition: VSDStyles.h:350
libvisio::VSDLineStyle
Definition: VSDStyles.h:73
libvisio::VSDStyles::m_lineStyles
std::map< unsigned, VSDOptionalLineStyle > m_lineStyles
Definition: VSDStyles.h:465
libvisio::VSDTextBlockStyle::VSDTextBlockStyle
VSDTextBlockStyle(const VSDTextBlockStyle &style)
Definition: VSDStyles.h:407
libvisio::VSDFillStyle::~VSDFillStyle
~VSDFillStyle()
Definition: VSDStyles.h:156
libvisio::VSDOptionalTextBlockStyle::VSDOptionalTextBlockStyle
VSDOptionalTextBlockStyle(const VSDOptionalTextBlockStyle &style)
Definition: VSDStyles.h:369
libvisio::VSDOptionalParaStyle::indFirst
boost::optional< double > indFirst
Definition: VSDStyles.h:313
libvisio::VSDLineStyle::cap
unsigned char cap
Definition: VSDStyles.h:99
libvisio::Colour
Definition: VSDTypes.h:78
libvisio::VSDOptionalLineStyle::~VSDOptionalLineStyle
~VSDOptionalLineStyle()
Definition: VSDStyles.h:54
libvisio::VSDStyles::getFillStyle
VSDFillStyle getFillStyle(unsigned fillStyleIndex) const
Definition: VSDStyles.cpp:166
libvisio::VSDOptionalCharStyle::underline
boost::optional< bool > underline
Definition: VSDStyles.h:225
libvisio::VSDParaStyle::indRight
double indRight
Definition: VSDStyles.h:349
libvisio::VSDParaStyle::align
unsigned char align
Definition: VSDStyles.h:353
libvisio::VSDFillStyle::pattern
unsigned char pattern
Definition: VSDStyles.h:172
libvisio::VSDOptionalCharStyle::strikeout
boost::optional< bool > strikeout
Definition: VSDStyles.h:227
libvisio::VSDTextBlockStyle
Definition: VSDStyles.h:398
libvisio::VSDFillStyle::shadowOffsetX
double shadowOffsetX
Definition: VSDStyles.h:177
libvisio::VSDOptionalTextBlockStyle::rightMargin
boost::optional< double > rightMargin
Definition: VSDStyles.h:388
libvisio::VSDOptionalTextBlockStyle
Definition: VSDStyles.h:357
libvisio::VSDOptionalCharStyle::subscript
boost::optional< bool > subscript
Definition: VSDStyles.h:233
libvisio::VSDOptionalCharStyle::size
boost::optional< double > size
Definition: VSDStyles.h:222
libvisio::VSDOptionalLineStyle::cap
boost::optional< unsigned char > cap
Definition: VSDStyles.h:70
libvisio::VSDCharStyle::doublestrikeout
bool doublestrikeout
Definition: VSDStyles.h:280
libvisio::VSDCharStyle::~VSDCharStyle
~VSDCharStyle()
Definition: VSDStyles.h:252
libvisio::VSDOptionalLineStyle::VSDOptionalLineStyle
VSDOptionalLineStyle()
Definition: VSDStyles.h:45
libvisio::VSDLineStyle::VSDLineStyle
VSDLineStyle(const VSDLineStyle &style)
Definition: VSDStyles.h:80
libvisio::VSDStyles::~VSDStyles
~VSDStyles()
Definition: VSDStyles.cpp:48
libvisio::VSDCharStyle::doubleunderline
bool doubleunderline
Definition: VSDStyles.h:278
libvisio::VSDCharStyle::font
VSDName font
Definition: VSDStyles.h:272
libvisio::VSDTextBlockStyle::verticalAlign
unsigned char verticalAlign
Definition: VSDStyles.h:429
libvisio::VSDOptionalCharStyle::charCount
unsigned charCount
Definition: VSDStyles.h:219
libvisio::VSDStyles::m_lineStyleMasters
std::map< unsigned, unsigned > m_lineStyleMasters
Definition: VSDStyles.h:470
libvisio::VSDStyles::getOptionalFillStyle
VSDOptionalFillStyle getOptionalFillStyle(unsigned fillStyleIndex) const
Definition: VSDStyles.cpp:141
libvisio::VSDOptionalLineStyle
Definition: VSDStyles.h:43
libvisio::VSDStyles::addFillStyleMaster
void addFillStyleMaster(unsigned fillStyleIndex, unsigned fillStyleMaster)
Definition: VSDStyles.cpp:99
libvisio::VSDOptionalParaStyle::charCount
unsigned charCount
Definition: VSDStyles.h:312
libvisio::VSDOptionalLineStyle::startMarker
boost::optional< unsigned char > startMarker
Definition: VSDStyles.h:68
libvisio::VSDOptionalCharStyle::allcaps
boost::optional< bool > allcaps
Definition: VSDStyles.h:229
libvisio::VSDOptionalCharStyle::doubleunderline
boost::optional< bool > doubleunderline
Definition: VSDStyles.h:226
libvisio::VSDOptionalParaStyle::VSDOptionalParaStyle
VSDOptionalParaStyle(unsigned cc, const boost::optional< double > &ifst, const boost::optional< double > &il, const boost::optional< double > &ir, const boost::optional< double > &sl, const boost::optional< double > &sb, const boost::optional< double > &sa, const boost::optional< unsigned char > &a, const boost::optional< unsigned > &f)
Definition: VSDStyles.h:292
libvisio::VSDTextBlockStyle::textDirection
unsigned char textDirection
Definition: VSDStyles.h:433
libvisio::VSDCharStyle::allcaps
bool allcaps
Definition: VSDStyles.h:281
libvisio::VSDLineStyle::endMarker
unsigned char endMarker
Definition: VSDStyles.h:98
libvisio::VSDParaStyle::spBefore
double spBefore
Definition: VSDStyles.h:351
libvisio::VSDCharStyle::bold
bool bold
Definition: VSDStyles.h:275
libvisio::VSDParaStyle::VSDParaStyle
VSDParaStyle(unsigned cc, double ifst, double il, double ir, double sl, double sb, double sa, unsigned char a, unsigned f)
Definition: VSDStyles.h:327
libvisio::VSDOptionalParaStyle::indRight
boost::optional< double > indRight
Definition: VSDStyles.h:315
libvisio::VSDStyles::m_fillStyleMasters
std::map< unsigned, unsigned > m_fillStyleMasters
Definition: VSDStyles.h:471
libvisio::VSDCharStyle::superscript
bool superscript
Definition: VSDStyles.h:284
libvisio::VSDStyles::m_paraStyles
std::map< unsigned, VSDOptionalParaStyle > m_paraStyles
Definition: VSDStyles.h:469
libvisio::VSDFillStyle::VSDFillStyle
VSDFillStyle(const VSDFillStyle &style)
Definition: VSDStyles.h:152
libvisio::VSDStyles::addLineStyle
void addLineStyle(unsigned lineStyleIndex, const VSDOptionalLineStyle &lineStyle)
Definition: VSDStyles.cpp:69
libvisio::VSDOptionalTextBlockStyle::leftMargin
boost::optional< double > leftMargin
Definition: VSDStyles.h:387
libvisio::VSDOptionalParaStyle
Definition: VSDStyles.h:288
libvisio::VSDParaStyle::indFirst
double indFirst
Definition: VSDStyles.h:347
libvisio::VSDCharStyle
Definition: VSDStyles.h:236
libvisio::VSDOptionalParaStyle::VSDOptionalParaStyle
VSDOptionalParaStyle()
Definition: VSDStyles.h:290
libvisio::VSDStyles::addCharStyle
void addCharStyle(unsigned textStyleIndex, const VSDOptionalCharStyle &charStyle)
Definition: VSDStyles.cpp:84
libvisio::VSDOptionalTextBlockStyle::VSDOptionalTextBlockStyle
VSDOptionalTextBlockStyle()
Definition: VSDStyles.h:359
libvisio::VSDOptionalFillStyle::pattern
boost::optional< unsigned char > pattern
Definition: VSDStyles.h:134
libvisio::VSDOptionalFillStyle::bgTransparency
boost::optional< double > bgTransparency
Definition: VSDStyles.h:136
libvisio::VSDParaStyle::charCount
unsigned charCount
Definition: VSDStyles.h:346
libvisio::VSDStyles::VSDStyles
VSDStyles()
Definition: VSDStyles.cpp:35
libvisio::VSDOptionalLineStyle::colour
boost::optional< Colour > colour
Definition: VSDStyles.h:66
libvisio::VSDOptionalCharStyle::italic
boost::optional< bool > italic
Definition: VSDStyles.h:224
libvisio::VSDLineStyle::~VSDLineStyle
~VSDLineStyle()
Definition: VSDStyles.h:83
libvisio::VSDStyles::getOptionalCharStyle
VSDOptionalCharStyle getOptionalCharStyle(unsigned textStyleIndex) const
Definition: VSDStyles.cpp:205
libvisio::VSDOptionalParaStyle::indLeft
boost::optional< double > indLeft
Definition: VSDStyles.h:314
libvisio::VSDFillStyle::shadowFgColour
Colour shadowFgColour
Definition: VSDStyles.h:175
libvisio::VSDOptionalCharStyle::bold
boost::optional< bool > bold
Definition: VSDStyles.h:223
libvisio::VSDStyles::addTextStyleMaster
void addTextStyleMaster(unsigned textStyleIndex, unsigned textStyleMaster)
Definition: VSDStyles.cpp:104
libvisio::VSDOptionalParaStyle::spAfter
boost::optional< double > spAfter
Definition: VSDStyles.h:318
libvisio::VSDTextBlockStyle::textBkgndColour
Colour textBkgndColour
Definition: VSDStyles.h:431
libvisio::VSDLineStyle::VSDLineStyle
VSDLineStyle()
Definition: VSDStyles.h:75
libvisio::VSDFillStyle::VSDFillStyle
VSDFillStyle()
Definition: VSDStyles.h:145
libvisio::VSDOptionalTextBlockStyle::verticalAlign
boost::optional< unsigned char > verticalAlign
Definition: VSDStyles.h:391
VSDTypes.h
libvisio::VSDStyles::getTextBlockStyle
VSDTextBlockStyle getTextBlockStyle(unsigned textStyleIndex) const
Definition: VSDStyles.cpp:198
libvisio::VSDOptionalLineStyle::VSDOptionalLineStyle
VSDOptionalLineStyle(const boost::optional< double > &w, const boost::optional< Colour > &col, const boost::optional< unsigned char > &p, const boost::optional< unsigned char > &sm, const boost::optional< unsigned char > &em, const boost::optional< unsigned char > &c)
Definition: VSDStyles.h:47
libvisio::VSDOptionalTextBlockStyle::isTextBkgndFilled
boost::optional< bool > isTextBkgndFilled
Definition: VSDStyles.h:392
libvisio::VSDOptionalCharStyle::doublestrikeout
boost::optional< bool > doublestrikeout
Definition: VSDStyles.h:228
libvisio::VSDOptionalParaStyle::spBefore
boost::optional< double > spBefore
Definition: VSDStyles.h:317
libvisio::VSDCharStyle::italic
bool italic
Definition: VSDStyles.h:276
libvisio::VSDLineStyle::startMarker
unsigned char startMarker
Definition: VSDStyles.h:97
libvisio::VSDOptionalTextBlockStyle::topMargin
boost::optional< double > topMargin
Definition: VSDStyles.h:389
libvisio::VSDStyles::getCharStyle
VSDCharStyle getCharStyle(unsigned textStyleIndex) const
Definition: VSDStyles.cpp:230
libvisio::VSDParaStyle::flags
unsigned flags
Definition: VSDStyles.h:354
libvisio::VSDOptionalLineStyle::width
boost::optional< double > width
Definition: VSDStyles.h:65
libvisio::VSDStyles::getOptionalLineStyle
VSDOptionalLineStyle getOptionalLineStyle(unsigned lineStyleIndex) const
Definition: VSDStyles.cpp:109
libvisio::VSDOptionalLineStyle::VSDOptionalLineStyle
VSDOptionalLineStyle(const VSDOptionalLineStyle &style)
Definition: VSDStyles.h:51
libvisio::VSDCharStyle::smallcaps
bool smallcaps
Definition: VSDStyles.h:283
libvisio::VSDTextBlockStyle::VSDTextBlockStyle
VSDTextBlockStyle()
Definition: VSDStyles.h:400
libvisio::VSDOptionalParaStyle::spLine
boost::optional< double > spLine
Definition: VSDStyles.h:316
libvisio::VSDFillStyle::shadowPattern
unsigned char shadowPattern
Definition: VSDStyles.h:176
libvisio::VSDCharStyle::VSDCharStyle
VSDCharStyle(unsigned cc, const VSDName &ft, const Colour &c, double s, bool b, bool i, bool u, bool du, bool so, bool dso, bool ac, bool ic, bool sc, bool super, bool sub)
Definition: VSDStyles.h:242
libvisio::VSDOptionalCharStyle::smallcaps
boost::optional< bool > smallcaps
Definition: VSDStyles.h:231
libvisio::VSDStyles::operator=
VSDStyles & operator=(const VSDStyles &styles)
Definition: VSDStyles.cpp:52
libvisio::VSDTextBlockStyle::bottomMargin
double bottomMargin
Definition: VSDStyles.h:428
libvisio::VSDFillStyle
Definition: VSDStyles.h:143
libvisio::VSDFillStyle::fgColour
Colour fgColour
Definition: VSDStyles.h:170
libvisio::VSDStyles::addFillStyle
void addFillStyle(unsigned fillStyleIndex, const VSDOptionalFillStyle &fillStyle)
Definition: VSDStyles.cpp:74
libvisio::VSDOptionalParaStyle::~VSDOptionalParaStyle
~VSDOptionalParaStyle()
Definition: VSDStyles.h:299
libvisio::VSDOptionalCharStyle
Definition: VSDStyles.h:181
libvisio::VSDOptionalTextBlockStyle::textBkgndColour
boost::optional< Colour > textBkgndColour
Definition: VSDStyles.h:393
libvisio::VSDOptionalParaStyle::VSDOptionalParaStyle
VSDOptionalParaStyle(const VSDOptionalParaStyle &style)
Definition: VSDStyles.h:296
libvisio::VSDOptionalParaStyle::align
boost::optional< unsigned char > align
Definition: VSDStyles.h:319
libvisio::VSDOptionalFillStyle::shadowOffsetY
boost::optional< double > shadowOffsetY
Definition: VSDStyles.h:140
libvisio::VSDCharStyle::size
double size
Definition: VSDStyles.h:274
libvisio::VSDParaStyle
Definition: VSDStyles.h:323
libvisio::VSDStyles::m_charStyles
std::map< unsigned, VSDOptionalCharStyle > m_charStyles
Definition: VSDStyles.h:468
libvisio::VSDOptionalFillStyle::~VSDOptionalFillStyle
~VSDOptionalFillStyle()
Definition: VSDStyles.h:118
libvisio::VSDOptionalCharStyle::~VSDOptionalCharStyle
~VSDOptionalCharStyle()
Definition: VSDStyles.h:200
libvisio::VSDOptionalCharStyle::initcaps
boost::optional< bool > initcaps
Definition: VSDStyles.h:230
libvisio::VSDCharStyle::VSDCharStyle
VSDCharStyle(const VSDCharStyle &style)
Definition: VSDStyles.h:247
libvisio::VSDLineStyle::colour
Colour colour
Definition: VSDStyles.h:95
libvisio::VSDLineStyle::width
double width
Definition: VSDStyles.h:94
libvisio::VSDStyles::addParaStyle
void addParaStyle(unsigned textStyleIndex, const VSDOptionalParaStyle &paraStyle)
Definition: VSDStyles.cpp:89
libvisio::VSDOptionalFillStyle::fgColour
boost::optional< Colour > fgColour
Definition: VSDStyles.h:132
ASSIGN_OPTIONAL
#define ASSIGN_OPTIONAL(t, u)
Definition: VSDTypes.h:38
libvisio::VSDCharStyle::underline
bool underline
Definition: VSDStyles.h:277
libvisio::VSDOptionalParaStyle::flags
boost::optional< unsigned > flags
Definition: VSDStyles.h:320
libvisio::VSDCharStyle::strikeout
bool strikeout
Definition: VSDStyles.h:279
libvisio::VSDStyles::m_fillStyles
std::map< unsigned, VSDOptionalFillStyle > m_fillStyles
Definition: VSDStyles.h:466
libvisio::VSDStyles::addTextBlockStyle
void addTextBlockStyle(unsigned textStyleIndex, const VSDOptionalTextBlockStyle &textBlockStyle)
Definition: VSDStyles.cpp:79
libvisio::VSDOptionalFillStyle::shadowFgColour
boost::optional< Colour > shadowFgColour
Definition: VSDStyles.h:137
libvisio::VSDParaStyle::indLeft
double indLeft
Definition: VSDStyles.h:348
libvisio::VSDTextBlockStyle::defaultTabStop
double defaultTabStop
Definition: VSDStyles.h:432
libvisio::VSDOptionalCharStyle::colour
boost::optional< Colour > colour
Definition: VSDStyles.h:221
libvisio::VSDOptionalTextBlockStyle::~VSDOptionalTextBlockStyle
~VSDOptionalTextBlockStyle()
Definition: VSDStyles.h:373
libvisio::VSDOptionalFillStyle::shadowPattern
boost::optional< unsigned char > shadowPattern
Definition: VSDStyles.h:138
libvisio::VSDCharStyle::charCount
unsigned charCount
Definition: VSDStyles.h:271
libvisio::VSDFillStyle::shadowOffsetY
double shadowOffsetY
Definition: VSDStyles.h:178
libvisio::VSDOptionalTextBlockStyle::bottomMargin
boost::optional< double > bottomMargin
Definition: VSDStyles.h:390
libvisio::VSDStyles::getLineStyle
VSDLineStyle getLineStyle(unsigned lineStyleIndex) const
Definition: VSDStyles.cpp:134
libvisio::VSDOptionalFillStyle::VSDOptionalFillStyle
VSDOptionalFillStyle(const VSDOptionalFillStyle &style)
Definition: VSDStyles.h:114
libvisio::VSDName
Definition: VSDTypes.h:184
libvisio::VSDOptionalFillStyle::bgColour
boost::optional< Colour > bgColour
Definition: VSDStyles.h:133
libvisio::VSDOptionalFillStyle::fgTransparency
boost::optional< double > fgTransparency
Definition: VSDStyles.h:135
libvisio::VSDLineStyle::VSDLineStyle
VSDLineStyle(double w, Colour col, unsigned char p, unsigned char sm, unsigned char em, unsigned char c)
Definition: VSDStyles.h:77
libvisio::VSDFillStyle::bgColour
Colour bgColour
Definition: VSDStyles.h:171
libvisio::VSDOptionalFillStyle::VSDOptionalFillStyle
VSDOptionalFillStyle()
Definition: VSDStyles.h:104
libvisio::VSDLineStyle::pattern
unsigned char pattern
Definition: VSDStyles.h:96
libvisio::VSDCharStyle::VSDCharStyle
VSDCharStyle()
Definition: VSDStyles.h:238
libvisio::VSDParaStyle::~VSDParaStyle
~VSDParaStyle()
Definition: VSDStyles.h:333
libvisio::VSDStyles::getOptionalTextBlockStyle
VSDOptionalTextBlockStyle getOptionalTextBlockStyle(unsigned textStyleIndex) const
Definition: VSDStyles.cpp:173
libvisio::VSDTextBlockStyle::rightMargin
double rightMargin
Definition: VSDStyles.h:426
libvisio::VSDParaStyle::spAfter
double spAfter
Definition: VSDStyles.h:352
libvisio::VSDTextBlockStyle::topMargin
double topMargin
Definition: VSDStyles.h:427
libvisio::VSDFillStyle::bgTransparency
double bgTransparency
Definition: VSDStyles.h:174
libvisio::VSDStyles::m_textBlockStyles
std::map< unsigned, VSDOptionalTextBlockStyle > m_textBlockStyles
Definition: VSDStyles.h:467
libvisio::VSDOptionalLineStyle::pattern
boost::optional< unsigned char > pattern
Definition: VSDStyles.h:67
libvisio::VSDStyles::addLineStyleMaster
void addLineStyleMaster(unsigned lineStyleIndex, unsigned lineStyleMaster)
Definition: VSDStyles.cpp:94
libvisio::VSDTextBlockStyle::isTextBkgndFilled
bool isTextBkgndFilled
Definition: VSDStyles.h:430
libvisio::VSDOptionalCharStyle::VSDOptionalCharStyle
VSDOptionalCharStyle()
Definition: VSDStyles.h:183
libvisio::VSDOptionalLineStyle::endMarker
boost::optional< unsigned char > endMarker
Definition: VSDStyles.h:69
libvisio::VSDOptionalCharStyle::superscript
boost::optional< bool > superscript
Definition: VSDStyles.h:232