- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

MSPUBCollector.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libmspub project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef __MSPUBCOLLECTOR_H__
11 #define __MSPUBCOLLECTOR_H__
12
13 #include <list>
14 #include <vector>
15 #include <map>
16 #include <set>
17 #include <string>
18 #include <algorithm>
19
20 #include <boost/ptr_container/ptr_vector.hpp>
21 #include <boost/bind.hpp>
22 #include <boost/function.hpp>
23
24 #include <librevenge/librevenge.h>
25 #include <librevenge/librevenge.h>
26
27 #include "MSPUBTypes.h"
28 #include "libmspub_utils.h"
29 #include "MSPUBContentChunkType.h"
30 #include "ShapeType.h"
31 #include "Coordinate.h"
32 #include "ShapeGroupElement.h"
33 #include "Fill.h"
34 #include "ColorReference.h"
35 #include "PolygonUtils.h"
36 #include "ShapeInfo.h"
37 #include "BorderArtInfo.h"
38 #include "Dash.h"
39 #include "Arrow.h"
40 #include "VerticalAlign.h"
41 #include "EmbeddedFontInfo.h"
42 #include "Shadow.h"
43
44 namespace libmspub
45 {
46 class MSPUBCollector
47 {
48 friend class Fill;
49 friend class ImgFill;
50 friend class SolidFill;
51 friend class GradientFill;
52 friend class PatternFill;
53 public:
54 typedef std::list<ContentChunkReference>::const_iterator ccr_iterator_t;
55
56 MSPUBCollector(::librevenge::RVNGDrawingInterface *painter);
57 virtual ~MSPUBCollector();
58
59 // collector functions
60 bool addPage(unsigned seqNum);
61 bool addTextString(const std::vector<TextParagraph> &str, unsigned id);
62 void addTextShape(unsigned stringId, unsigned seqNum);
63 bool addImage(unsigned index, ImgType type, librevenge::RVNGBinaryData img);
64 void setBorderImageOffset(unsigned index, unsigned offset);
65 librevenge::RVNGBinaryData *addBorderImage(ImgType type, unsigned borderArtIndex);
66 void setShapePage(unsigned seqNum, unsigned pageSeqNum);
67
68 void setNextPage(unsigned seqNum);
69
70 void setShapeType(unsigned seqNum, ShapeType type);
71 void setShapeCropType(unsigned seqNum, ShapeType cropType);
72 void setShapePictureRecolor(unsigned seqNum, const ColorReference &recolor);
73 void setShapePictureBrightness(unsigned seqNum, int brightness);
74 void setShapePictureContrast(unsigned seqNum, int contrast);
75 void setShapeTableInfo(unsigned seqNum, const TableInfo &ti);
76 void setShapeBorderImageId(unsigned seqNum, unsigned borderImageId);
77 void setShapeCoordinatesInEmu(unsigned seqNum, int xs, int ys, int xe, int ye);
78 void setShapeImgIndex(unsigned seqNum, unsigned index);
79 void setShapeFill(unsigned seqNum, boost::shared_ptr<Fill> fill, bool skipIfNotBg);
80 void setShapeDash(unsigned seqNum, const Dash &dash);
81 void setAdjustValue(unsigned seqNum, unsigned index, int adjust);
82 void setShapeRotation(unsigned seqNum, double rotation);
83 void setShapeFlip(unsigned, bool, bool);
84 void setShapeMargins(unsigned seqNum, unsigned left, unsigned top, unsigned right, unsigned bottom);
85 void setShapeBorderPosition(unsigned seqNum, BorderPosition pos);
86 void setShapeCoordinatesRotated90(unsigned seqNum);
87 void setShapeCustomPath(unsigned seqNum,
88 const DynamicCustomShape &shape);
89 void setShapeClipPath(unsigned seqNum, const std::vector<libmspub::Vertex> &clip);
90 void setShapeVerticalTextAlign(unsigned seqNum, VerticalAlign va);
91 void designateMasterPage(unsigned seqNum);
92 void setMasterPage(unsigned pageSeqNum, unsigned masterSeqNum);
93 void setShapeStretchBorderArt(unsigned seqNum);
94 void setShapeShadow(unsigned seqNum, const Shadow &shadow);
95
96 // Microsoft "Embedded OpenType" ... need to figure out how to convert
97 // this to a sane format and how to get LibreOffice to understand embedded fonts.
98 librevenge::RVNGBinaryData &addEOTFont(const librevenge::RVNGString &name);
99
100 void beginGroup();
101 bool endGroup();
102
103 void setShapeLineBackColor(unsigned seqNum, ColorReference backColor);
104 void addShapeLine(unsigned seqNum, Line line);
105 void setShapeOrder(unsigned seqNum);
106 void setPageBgShape(unsigned pageSeqNum, unsigned seqNum);
107 void setWidthInEmu(unsigned long);
108 void setHeightInEmu(unsigned long);
109 void setShapeNumColumns(unsigned seqNum, unsigned numColumns);
110 void setShapeColumnSpacing(unsigned seqNum, unsigned spacing);
111 void setShapeBeginArrow(unsigned seqNum, const Arrow &arrow);
112 void setShapeEndArrow(unsigned seqNum, const Arrow &arrow);
113
114 void addTextColor(ColorReference c);
115 void addFont(std::vector<unsigned char> name);
116
117 void addDefaultCharacterStyle(const CharacterStyle &style);
118 void addDefaultParagraphStyle(const ParagraphStyle &style);
119 void addPaletteColor(Color);
120 bool setCurrentGroupSeqNum(unsigned seqNum);
121
122 void useEncodingHeuristic();
123
124 void setNextTableCellTextEnds(const std::vector<unsigned> &ends);
125 void setTextStringOffset(unsigned textId, unsigned offset);
126
127 bool go();
128
129 bool hasPage(unsigned seqNum) const;
130 private:
131
132 struct PageInfo
133 {
134 std::vector<ShapeGroupElement *> m_shapeGroupsOrdered;
135 PageInfo() : m_shapeGroupsOrdered() { }
136 };
137
138 MSPUBCollector(const MSPUBCollector &);
139 MSPUBCollector &operator=(const MSPUBCollector &);
140
141 librevenge::RVNGDrawingInterface *m_painter;
142 std::list<ContentChunkReference> m_contentChunkReferences;
143 double m_width, m_height;
144 bool m_widthSet, m_heightSet;
145 unsigned short m_numPages;
146 std::map<unsigned, std::vector<TextParagraph> > m_textStringsById;
147 std::map<unsigned, PageInfo> m_pagesBySeqNum;
148 std::vector<std::pair<ImgType, librevenge::RVNGBinaryData> > m_images;
149 std::vector<BorderArtInfo> m_borderImages;
150 std::vector<ColorReference> m_textColors;
151 std::vector<std::vector<unsigned char> > m_fonts;
152 std::vector<CharacterStyle> m_defaultCharStyles;
153 std::vector<ParagraphStyle> m_defaultParaStyles;
154 std::map<unsigned, ShapeType> m_shapeTypesBySeqNum;
155 std::vector<Color> m_paletteColors;
156 std::vector<unsigned> m_shapeSeqNumsOrdered;
157 std::map<unsigned, unsigned> m_pageSeqNumsByShapeSeqNum;
158 std::map<unsigned, unsigned> m_bgShapeSeqNumsByPageSeqNum;
159 std::set<unsigned> m_skipIfNotBgSeqNums;
160 ShapeGroupElement *m_currentShapeGroup;
161 boost::ptr_vector<ShapeGroupElement> m_topLevelShapes;
162 std::map<unsigned, ShapeGroupElement *> m_groupsBySeqNum;
163 std::list<EmbeddedFontInfo> m_embeddedFonts;
164 std::map<unsigned, ShapeInfo> m_shapeInfosBySeqNum;
165 std::set<unsigned> m_masterPages;
166 std::set<unsigned> m_shapesWithCoordinatesRotated90;
167 std::map<unsigned, unsigned> m_masterPagesByPageSeqNum;
168 std::vector<std::vector<unsigned> > m_tableCellTextEndsVector;
169 std::map<unsigned, unsigned> m_stringOffsetsByTextId;
170 mutable std::vector<bool> m_calculationValuesSeen;
171 std::vector<unsigned> m_pageSeqNumsOrdered;
172 bool m_encodingHeuristic;
173 std::vector<unsigned char> m_allText;
174 mutable boost::optional<const char *> m_calculatedEncoding;
175 // helper functions
176 std::vector<int> getShapeAdjustValues(const ShapeInfo &info) const;
177 boost::optional<unsigned> getMasterPageSeqNum(unsigned pageSeqNum) const;
178 void setRectCoordProps(Coordinate, librevenge::RVNGPropertyList *) const;
179 boost::optional<std::vector<libmspub::TextParagraph> > getShapeText(const ShapeInfo &info) const;
180 void setupShapeStructures(ShapeGroupElement &elt);
181 void addBlackToPaletteIfNecessary();
182 void assignShapesToPages();
183 void writePage(unsigned pageSeqNum) const;
184 void writePageShapes(unsigned pageSeqNum) const;
185 void writePageBackground(unsigned pageSeqNum) const;
186 void writeImage(double x, double y, double height, double width,
187 ImgType type, const librevenge::RVNGBinaryData &blob,
188 boost::optional<Color> oneBitColor) const;
189 bool pageIsMaster(unsigned pageSeqNum) const;
190
191 boost::function<void(void)> paintShape(const ShapeInfo &info, const Coordinate &relativeTo, const VectorTransformation2D &foldedTransform, bool isGroup, const VectorTransformation2D &thisTransform) const;
192 double getCalculationValue(const ShapeInfo &info, unsigned index, bool recursiveEntry, const std::vector<int> &adjustValues) const;
193
194 librevenge::RVNGPropertyList getCharStyleProps(const CharacterStyle &, boost::optional<unsigned> defaultCharStyleIndex) const;
195 librevenge::RVNGPropertyList getParaStyleProps(const ParagraphStyle &, boost::optional<unsigned> defaultParaStyleIndex) const;
196 double getSpecialValue(const ShapeInfo &info, const CustomShape &shape, int arg, const std::vector<int> &adjustValues) const;
197 void ponderStringEncoding(const std::vector<TextParagraph> &str);
198 const char *getCalculatedEncoding() const;
199 public:
200 static librevenge::RVNGString getColorString(const Color &);
201 };
202 } // namespace libmspub
203
204 #endif /* __MSPUBCOLLECTOR_H__ */
205 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libmspub::MSPUBCollector::setShapeClipPath
void setShapeClipPath(unsigned seqNum, const std::vector< libmspub::Vertex > &clip)
Definition: MSPUBCollector.cpp:299
libmspub::MSPUBCollector::addImage
bool addImage(unsigned index, ImgType type, librevenge::RVNGBinaryData img)
Definition: MSPUBCollector.cpp:1566
libmspub::MSPUBCollector::m_defaultParaStyles
std::vector< ParagraphStyle > m_defaultParaStyles
Definition: MSPUBCollector.h:153
libmspub::MSPUBCollector::addBlackToPaletteIfNecessary
void addBlackToPaletteIfNecessary()
Definition: MSPUBCollector.cpp:1387
libmspub::MSPUBCollector::setShapeBeginArrow
void setShapeBeginArrow(unsigned seqNum, const Arrow &arrow)
Definition: MSPUBCollector.cpp:132
libmspub::MSPUBCollector::writeImage
void writeImage(double x, double y, double height, double width, ImgType type, const librevenge::RVNGBinaryData &blob, boost::optional< Color > oneBitColor) const
Definition: MSPUBCollector.cpp:994
libmspub::MSPUBCollector::m_shapeTypesBySeqNum
std::map< unsigned, ShapeType > m_shapeTypesBySeqNum
Definition: MSPUBCollector.h:154
libmspub::MSPUBCollector::setShapeBorderImageId
void setShapeBorderImageId(unsigned seqNum, unsigned borderImageId)
Definition: MSPUBCollector.cpp:288
libmspub::MSPUBCollector::ponderStringEncoding
void ponderStringEncoding(const std::vector< TextParagraph > &str)
Definition: MSPUBCollector.cpp:1539
Shadow.h
EmbeddedFontInfo.h
libmspub::MSPUBCollector::m_textStringsById
std::map< unsigned, std::vector< TextParagraph > > m_textStringsById
Definition: MSPUBCollector.h:146
libmspub::MSPUBCollector::m_defaultCharStyles
std::vector< CharacterStyle > m_defaultCharStyles
Definition: MSPUBCollector.h:152
MSPUBContentChunkType.h
libmspub::MSPUBCollector::addEOTFont
librevenge::RVNGBinaryData & addEOTFont(const librevenge::RVNGString &name)
Definition: MSPUBCollector.cpp:108
libmspub::MSPUBCollector::setBorderImageOffset
void setBorderImageOffset(unsigned index, unsigned offset)
Definition: MSPUBCollector.cpp:1595
libmspub::MSPUBCollector::setRectCoordProps
void setRectCoordProps(Coordinate, librevenge::RVNGPropertyList *) const
Definition: MSPUBCollector.cpp:173
libmspub::TableInfo
Definition: TableInfo.h:15
libmspub::Color
Definition: MSPUBTypes.h:165
libmspub::MSPUBCollector::setShapeShadow
void setShapeShadow(unsigned seqNum, const Shadow &shadow)
Definition: MSPUBCollector.cpp:274
libmspub::MSPUBCollector::setPageBgShape
void setPageBgShape(unsigned pageSeqNum, unsigned seqNum)
Definition: MSPUBCollector.cpp:344
ColorReference.h
libmspub::MSPUBCollector::setNextTableCellTextEnds
void setNextTableCellTextEnds(const std::vector< unsigned > &ends)
Definition: MSPUBCollector.cpp:263
libmspub::MSPUBCollector::m_painter
librevenge::RVNGDrawingInterface * m_painter
Definition: MSPUBCollector.h:141
libmspub::MSPUBCollector::setNextPage
void setNextPage(unsigned seqNum)
Definition: MSPUBCollector.cpp:226
libmspub::Arrow
Definition: Arrow.h:30
Fill.h
libmspub::MSPUBCollector::setShapeMargins
void setShapeMargins(unsigned seqNum, unsigned left, unsigned top, unsigned right, unsigned bottom)
Definition: MSPUBCollector.cpp:339
PolygonUtils.h
libmspub_utils.h
libmspub::MSPUBCollector::setShapeColumnSpacing
void setShapeColumnSpacing(unsigned seqNum, unsigned spacing)
Definition: MSPUBCollector.cpp:162
libmspub::MSPUBCollector::m_borderImages
std::vector< BorderArtInfo > m_borderImages
Definition: MSPUBCollector.h:149
libmspub::MSPUBCollector::m_fonts
std::vector< std::vector< unsigned char > > m_fonts
Definition: MSPUBCollector.h:151
libmspub::MSPUBCollector::addDefaultParagraphStyle
void addDefaultParagraphStyle(const ParagraphStyle &style)
Definition: MSPUBCollector.cpp:1166
libmspub::MSPUBCollector::PageInfo
Definition: MSPUBCollector.h:132
libmspub::MSPUBCollector::addBorderImage
librevenge::RVNGBinaryData * addBorderImage(ImgType type, unsigned borderArtIndex)
Definition: MSPUBCollector.cpp:1584
libmspub::Fill
Definition: Fill.h:24
libmspub::MSPUBCollector::setAdjustValue
void setAdjustValue(unsigned seqNum, unsigned index, int adjust)
Definition: MSPUBCollector.cpp:1156
libmspub::MSPUBCollector::setTextStringOffset
void setTextStringOffset(unsigned textId, unsigned offset)
Definition: MSPUBCollector.cpp:257
libmspub::DynamicCustomShape
Definition: PolygonUtils.h:91
libmspub::MSPUBCollector::setShapeNumColumns
void setShapeNumColumns(unsigned seqNum, unsigned numColumns)
Definition: MSPUBCollector.cpp:156
libmspub::MSPUBCollector::getParaStyleProps
librevenge::RVNGPropertyList getParaStyleProps(const ParagraphStyle &, boost::optional< unsigned > defaultParaStyleIndex) const
Definition: MSPUBCollector.cpp:1217
VerticalAlign.h
libmspub::MSPUBCollector::m_currentShapeGroup
ShapeGroupElement * m_currentShapeGroup
Definition: MSPUBCollector.h:160
libmspub::MSPUBCollector::paintShape
boost::function< void(void)> paintShape(const ShapeInfo &info, const Coordinate &relativeTo, const VectorTransformation2D &foldedTransform, bool isGroup, const VectorTransformation2D &thisTransform) const
Definition: MSPUBCollector.cpp:450
libmspub::MSPUBCollector::setShapeRotation
void setShapeRotation(unsigned seqNum, double rotation)
Definition: MSPUBCollector.cpp:1140
libmspub::ImgFill
Definition: Fill.h:37
ShapeType.h
libmspub::MSPUBCollector::m_skipIfNotBgSeqNums
std::set< unsigned > m_skipIfNotBgSeqNums
Definition: MSPUBCollector.h:159
libmspub::MSPUBCollector::addTextShape
void addTextShape(unsigned stringId, unsigned seqNum)
Definition: MSPUBCollector.cpp:1182
libmspub::MSPUBCollector::setShapeFill
void setShapeFill(unsigned seqNum, boost::shared_ptr< Fill > fill, bool skipIfNotBg)
Definition: MSPUBCollector.cpp:1198
libmspub::MSPUBCollector::designateMasterPage
void designateMasterPage(unsigned seqNum)
Definition: MSPUBCollector.cpp:1631
libmspub::MSPUBCollector::m_heightSet
bool m_heightSet
Definition: MSPUBCollector.h:144
libmspub::MSPUBCollector::setShapeCropType
void setShapeCropType(unsigned seqNum, ShapeType cropType)
Definition: MSPUBCollector.cpp:1641
libmspub::PatternFill
Definition: Fill.h:53
libmspub::BorderPosition
BorderPosition
Definition: MSPUBTypes.h:24
libmspub::MSPUBCollector::hasPage
bool hasPage(unsigned seqNum) const
Definition: MSPUBCollector.cpp:334
libmspub::ColorReference
Definition: ColorReference.h:17
libmspub::MSPUBCollector::pageIsMaster
bool pageIsMaster(unsigned pageSeqNum) const
Definition: MSPUBCollector.cpp:1490
libmspub::MSPUBCollector::writePage
void writePage(unsigned pageSeqNum) const
Definition: MSPUBCollector.cpp:1423
libmspub::MSPUBCollector::setMasterPage
void setMasterPage(unsigned pageSeqNum, unsigned masterSeqNum)
Definition: MSPUBCollector.cpp:1636
libmspub::MSPUBCollector::setShapeCoordinatesRotated90
void setShapeCoordinatesRotated90(unsigned seqNum)
Definition: MSPUBCollector.cpp:283
libmspub::MSPUBCollector::m_widthSet
bool m_widthSet
Definition: MSPUBCollector.h:144
libmspub::MSPUBCollector::setCurrentGroupSeqNum
bool setCurrentGroupSeqNum(unsigned seqNum)
Definition: MSPUBCollector.cpp:349
libmspub::MSPUBCollector::setShapeCustomPath
void setShapeCustomPath(unsigned seqNum, const DynamicCustomShape &shape)
Definition: MSPUBCollector.cpp:293
libmspub::MSPUBCollector::m_encodingHeuristic
bool m_encodingHeuristic
Definition: MSPUBCollector.h:172
libmspub::Dash
Definition: Dash.h:48
libmspub::MSPUBCollector::useEncodingHeuristic
void useEncodingHeuristic()
Definition: MSPUBCollector.cpp:269
libmspub::MSPUBCollector::setShapeStretchBorderArt
void setShapeStretchBorderArt(unsigned seqNum)
Definition: MSPUBCollector.cpp:168
libmspub::MSPUBCollector::getSpecialValue
double getSpecialValue(const ShapeInfo &info, const CustomShape &shape, int arg, const std::vector< int > &adjustValues) const
Definition: MSPUBCollector.cpp:1016
libmspub::MSPUBCollector::m_embeddedFonts
std::list< EmbeddedFontInfo > m_embeddedFonts
Definition: MSPUBCollector.h:163
libmspub::GradientFill
Definition: Fill.h:77
libmspub::MSPUBCollector::~MSPUBCollector
virtual ~MSPUBCollector()
Definition: MSPUBCollector.cpp:1136
libmspub::MSPUBCollector::setShapeEndArrow
void setShapeEndArrow(unsigned seqNum, const Arrow &arrow)
Definition: MSPUBCollector.cpp:144
libmspub::MSPUBCollector::addDefaultCharacterStyle
void addDefaultCharacterStyle(const CharacterStyle &style)
Definition: MSPUBCollector.cpp:1161
libmspub::MSPUBCollector::getCharStyleProps
librevenge::RVNGPropertyList getCharStyleProps(const CharacterStyle &, boost::optional< unsigned > defaultCharStyleIndex) const
Definition: MSPUBCollector.cpp:1300
libmspub::Coordinate
Definition: Coordinate.h:15
libmspub::MSPUBCollector::addTextString
bool addTextString(const std::vector< TextParagraph > &str, unsigned id)
Definition: MSPUBCollector.cpp:1528
libmspub::MSPUBCollector::m_topLevelShapes
boost::ptr_vector< ShapeGroupElement > m_topLevelShapes
Definition: MSPUBCollector.h:161
libmspub::MSPUBCollector::m_pageSeqNumsByShapeSeqNum
std::map< unsigned, unsigned > m_pageSeqNumsByShapeSeqNum
Definition: MSPUBCollector.h:157
libmspub::MSPUBCollector::addPage
bool addPage(unsigned seqNum)
Definition: MSPUBCollector.cpp:1171
Dash.h
libmspub::MSPUBCollector::addTextColor
void addTextColor(ColorReference c)
Definition: MSPUBCollector.cpp:1626
libmspub::MSPUBCollector::getColorString
static librevenge::RVNGString getColorString(const Color &)
Definition: MSPUBCollector.cpp:1379
libmspub::MSPUBCollector::m_masterPages
std::set< unsigned > m_masterPages
Definition: MSPUBCollector.h:165
libmspub::MSPUBCollector::PageInfo::m_shapeGroupsOrdered
std::vector< ShapeGroupElement * > m_shapeGroupsOrdered
Definition: MSPUBCollector.h:134
libmspub::MSPUBCollector::m_bgShapeSeqNumsByPageSeqNum
std::map< unsigned, unsigned > m_bgShapeSeqNumsByPageSeqNum
Definition: MSPUBCollector.h:158
libmspub::MSPUBCollector::m_shapesWithCoordinatesRotated90
std::set< unsigned > m_shapesWithCoordinatesRotated90
Definition: MSPUBCollector.h:166
libmspub::MSPUBCollector::getCalculationValue
double getCalculationValue(const ShapeInfo &info, unsigned index, bool recursiveEntry, const std::vector< int > &adjustValues) const
Definition: MSPUBCollector.cpp:1056
libmspub::ImgType
ImgType
Definition: MSPUBTypes.h:179
libmspub::MSPUBCollector::m_numPages
unsigned short m_numPages
Definition: MSPUBCollector.h:145
libmspub::MSPUBCollector::setShapeImgIndex
void setShapeImgIndex(unsigned seqNum, unsigned index)
Definition: MSPUBCollector.cpp:1187
BorderArtInfo.h
libmspub::MSPUBCollector::m_contentChunkReferences
std::list< ContentChunkReference > m_contentChunkReferences
Definition: MSPUBCollector.h:142
libmspub::MSPUBCollector::addFont
void addFont(std::vector< unsigned char > name)
Definition: MSPUBCollector.cpp:1212
libmspub::MSPUBCollector::setShapePictureBrightness
void setShapePictureBrightness(unsigned seqNum, int brightness)
Definition: MSPUBCollector.cpp:120
libmspub::MSPUBCollector::setShapePictureContrast
void setShapePictureContrast(unsigned seqNum, int contrast)
Definition: MSPUBCollector.cpp:126
libmspub::MSPUBCollector::assignShapesToPages
void assignShapesToPages()
Definition: MSPUBCollector.cpp:1395
libmspub::MSPUBCollector::go
bool go()
Definition: MSPUBCollector.cpp:1495
libmspub::MSPUBCollector::m_groupsBySeqNum
std::map< unsigned, ShapeGroupElement * > m_groupsBySeqNum
Definition: MSPUBCollector.h:162
libmspub::MSPUBCollector::MSPUBCollector
MSPUBCollector(::librevenge::RVNGDrawingInterface *painter)
libmspub::MSPUBCollector::operator=
MSPUBCollector & operator=(const MSPUBCollector &)
libmspub::MSPUBCollector::getMasterPageSeqNum
boost::optional< unsigned > getMasterPageSeqNum(unsigned pageSeqNum) const
Definition: MSPUBCollector.cpp:1412
libmspub::MSPUBCollector::m_calculationValuesSeen
std::vector< bool > m_calculationValuesSeen
Definition: MSPUBCollector.h:170
libmspub::MSPUBCollector::getShapeAdjustValues
std::vector< int > getShapeAdjustValues(const ShapeInfo &info) const
Definition: MSPUBCollector.cpp:383
libmspub::ParagraphStyle
Definition: MSPUBTypes.h:129
libmspub::MSPUBCollector::setShapeCoordinatesInEmu
void setShapeCoordinatesInEmu(unsigned seqNum, int xs, int ys, int xe, int ye)
Definition: MSPUBCollector.cpp:1207
libmspub::MSPUBCollector::PageInfo::PageInfo
PageInfo()
Definition: MSPUBCollector.h:135
libmspub::MSPUBCollector::m_width
double m_width
Definition: MSPUBCollector.h:143
libmspub::MSPUBCollector::m_masterPagesByPageSeqNum
std::map< unsigned, unsigned > m_masterPagesByPageSeqNum
Definition: MSPUBCollector.h:167
libmspub::MSPUBCollector::setShapeBorderPosition
void setShapeBorderPosition(unsigned seqNum, BorderPosition pos)
Definition: MSPUBCollector.cpp:329
Arrow.h
libmspub::MSPUBCollector::writePageBackground
void writePageBackground(unsigned pageSeqNum) const
Definition: MSPUBCollector.cpp:1466
libmspub::CustomShape
Definition: PolygonUtils.h:58
libmspub::MSPUBCollector::beginGroup
void beginGroup()
Definition: MSPUBCollector.cpp:304
libmspub::MSPUBCollector::m_shapeSeqNumsOrdered
std::vector< unsigned > m_shapeSeqNumsOrdered
Definition: MSPUBCollector.h:156
libmspub::MSPUBCollector::setShapePage
void setShapePage(unsigned seqNum, unsigned pageSeqNum)
Definition: MSPUBCollector.cpp:1620
libmspub::MSPUBCollector::m_calculatedEncoding
boost::optional< const char * > m_calculatedEncoding
Definition: MSPUBCollector.h:174
libmspub::MSPUBCollector::getCalculatedEncoding
const char * getCalculatedEncoding() const
Definition: MSPUBCollector.cpp:926
libmspub::MSPUBCollector::setShapeDash
void setShapeDash(unsigned seqNum, const Dash &dash)
Definition: MSPUBCollector.cpp:1193
libmspub::MSPUBCollector::setShapeTableInfo
void setShapeTableInfo(unsigned seqNum, const TableInfo &ti)
Definition: MSPUBCollector.cpp:150
libmspub::MSPUBCollector::writePageShapes
void writePageShapes(unsigned pageSeqNum) const
Definition: MSPUBCollector.cpp:1455
libmspub::MSPUBCollector::addShapeLine
void addShapeLine(unsigned seqNum, Line line)
Definition: MSPUBCollector.cpp:324
libmspub::MSPUBCollector::setShapeOrder
void setShapeOrder(unsigned seqNum)
Definition: MSPUBCollector.cpp:360
Coordinate.h
libmspub::MSPUBCollector::m_stringOffsetsByTextId
std::map< unsigned, unsigned > m_stringOffsetsByTextId
Definition: MSPUBCollector.h:169
libmspub::MSPUBCollector::m_allText
std::vector< unsigned char > m_allText
Definition: MSPUBCollector.h:173
libmspub::VectorTransformation2D
Definition: VectorTransformation2D.h:25
libmspub::CharacterStyle
Definition: MSPUBTypes.h:88
libmspub::MSPUBCollector::m_images
std::vector< std::pair< ImgType, librevenge::RVNGBinaryData > > m_images
Definition: MSPUBCollector.h:148
libmspub::MSPUBCollector::ccr_iterator_t
std::list< ContentChunkReference >::const_iterator ccr_iterator_t
Definition: MSPUBCollector.h:54
libmspub::MSPUBCollector::addPaletteColor
void addPaletteColor(Color)
Definition: MSPUBCollector.cpp:369
MSPUBTypes.h
libmspub::MSPUBCollector::setShapePictureRecolor
void setShapePictureRecolor(unsigned seqNum, const ColorReference &recolor)
Definition: MSPUBCollector.cpp:114
libmspub::MSPUBCollector::setupShapeStructures
void setupShapeStructures(ShapeGroupElement &elt)
Definition: MSPUBCollector.cpp:422
ShapeGroupElement.h
ShapeInfo.h
libmspub::MSPUBCollector
Definition: MSPUBCollector.h:46
libmspub::MSPUBCollector::setShapeType
void setShapeType(unsigned seqNum, ShapeType type)
Definition: MSPUBCollector.cpp:1151
libmspub::MSPUBCollector::setShapeVerticalTextAlign
void setShapeVerticalTextAlign(unsigned seqNum, VerticalAlign va)
Definition: MSPUBCollector.cpp:138
libmspub::MSPUBCollector::m_height
double m_height
Definition: MSPUBCollector.h:143
libmspub::MSPUBCollector::m_pagesBySeqNum
std::map< unsigned, PageInfo > m_pagesBySeqNum
Definition: MSPUBCollector.h:147
libmspub::SolidFill
Definition: Fill.h:65
libmspub::MSPUBCollector::m_textColors
std::vector< ColorReference > m_textColors
Definition: MSPUBCollector.h:150
libmspub::VerticalAlign
VerticalAlign
Definition: VerticalAlign.h:15
libmspub::ShapeGroupElement
Definition: ShapeGroupElement.h:21
libmspub::MSPUBCollector::m_shapeInfosBySeqNum
std::map< unsigned, ShapeInfo > m_shapeInfosBySeqNum
Definition: MSPUBCollector.h:164
libmspub::MSPUBCollector::m_tableCellTextEndsVector
std::vector< std::vector< unsigned > > m_tableCellTextEndsVector
Definition: MSPUBCollector.h:168
libmspub::MSPUBCollector::setWidthInEmu
void setWidthInEmu(unsigned long)
Definition: MSPUBCollector.cpp:1552
libmspub::ShapeType
ShapeType
Definition: ShapeType.h:15
libmspub::MSPUBCollector::getShapeText
boost::optional< std::vector< libmspub::TextParagraph > > getShapeText(const ShapeInfo &info) const
Definition: MSPUBCollector.cpp:408
libmspub::ShapeInfo
Definition: ShapeInfo.h:34
libmspub::MSPUBCollector::setHeightInEmu
void setHeightInEmu(unsigned long)
Definition: MSPUBCollector.cpp:1559
libmspub::MSPUBCollector::endGroup
bool endGroup()
Definition: MSPUBCollector.cpp:314
libmspub::MSPUBCollector::m_paletteColors
std::vector< Color > m_paletteColors
Definition: MSPUBCollector.h:155
libmspub::Line
Definition: Line.h:18
libmspub::Shadow
Definition: Shadow.h:26
libmspub::MSPUBCollector::setShapeFlip
void setShapeFlip(unsigned, bool, bool)
Definition: MSPUBCollector.cpp:1146
libmspub::MSPUBCollector::setShapeLineBackColor
void setShapeLineBackColor(unsigned seqNum, ColorReference backColor)
Definition: MSPUBCollector.cpp:988
libmspub::MSPUBCollector::m_pageSeqNumsOrdered
std::vector< unsigned > m_pageSeqNumsOrdered
Definition: MSPUBCollector.h:171