IWORKCollector.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 libetonyek 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 IWORKCOLLECTOR_H_INCLUDED
11 #define IWORKCOLLECTOR_H_INCLUDED
12
13 #include <deque>
14 #include <memory>
15 #include <stack>
16 #include <string>
17
18 #include <boost/optional.hpp>
19
20 #include "libetonyek_utils.h"
21 #include "IWORKPath_fwd.h"
22 #include "IWORKShape.h"
23 #include "IWORKStyle.h"
24 #include "IWORKStyleStack.h"
25 #include "IWORKStylesheet.h"
26 #include "IWORKTransformation.h"
27 #include "IWORKTypes.h"
28 #include "IWORKOutputManager.h"
29
30 namespace libetonyek
31 {
32
33 class IWORKDocumentInterface;
34 class IWORKLanguageManager;
35 class IWORKPropertyMap;
36 class IWORKRecorder;
37 class IWORKTable;
38 class IWORKText;
39 struct IWORKSize;
40
41 class IWORKCollector
42 {
43 private:
44 struct Level
45 {
46 IWORKGeometryPtr_t m_geometry;
47 IWORKStylePtr_t m_graphicStyle;
48 glm::dmat3 m_trafo;
49 glm::dmat3 m_previousTrafo;
50
51 Level();
52 };
53
54 public:
55 explicit IWORKCollector(IWORKDocumentInterface *document);
56 virtual ~IWORKCollector();
57
58 void setRecorder(const std::shared_ptr<IWORKRecorder> &recorder);
59
60 // collector functions
61
62 void collectStyle(const IWORKStylePtr_t &style);
63
64 void setGraphicStyle(const IWORKStylePtr_t &style);
65
66 void collectGeometry(const IWORKGeometryPtr_t &geometry);
67 void setAccumulateTransformTo(bool accumulate);
68
69 void collectBezier(const IWORKPathPtr_t &path);
70 void collectLine(const IWORKLinePtr_t &line);
71 void collectShape(const boost::optional<int> &order=boost::none, bool locked=false);
72
73 void collectBezierPath();
74 void collectPolygonPath(const IWORKSize &size, unsigned edges);
75 void collectRoundedRectanglePath(const IWORKSize &size, double radius);
76 void collectArrowPath(const IWORKSize &size, double headWidth, double stemRelYPos, bool doubleSided);
77 void collectStarPath(const IWORKSize &size, unsigned points, double innerRadius);
78 void collectConnectionPath(const IWORKConnectionPath &path);
79 void collectCalloutPath(const IWORKSize &size, double radius, double tailSize, double tailX, double tailY, bool quoteBubble);
80
81 void collectImage(const IWORKMediaContentPtr_t &image, const IWORKGeometryPtr_t &cropGeometry=IWORKGeometryPtr_t(),
82 const boost::optional<int> &order=boost::none, bool locked=false);
83 void collectMedia(const IWORKMediaContentPtr_t &content, const IWORKGeometryPtr_t &cropGeometry=IWORKGeometryPtr_t(), const boost::optional<int> &order=boost::none);
84
85 void collectStylesheet(const IWORKStylesheetPtr_t &stylesheet);
86
87 void collectMetadata(const IWORKMetadata &metadata);
88
89 void collectHeader(const std::string &name);
90 void collectFooter(const std::string &name);
91
92 void collectTable(const std::shared_ptr<IWORKTable> &table);
93 void collectText(const std::shared_ptr<IWORKText> &text);
94
95 void startDocument();
96 void endDocument();
97
98 void startAttachment();
99 void endAttachment();
100
101 void startAttachments();
102 void endAttachments();
103
104 void startGroup();
105 void endGroup();
106
107 // really add a group in the final file
108 void openGroup();
109 void closeGroup();
110
111 void startLevel();
112 void endLevel();
113
114 void pushStyle();
115 void popStyle();
116
117 void pushStylesheet(const IWORKStylesheetPtr_t &stylesheet);
118 void popStylesheet();
119 IWORKStylesheetPtr_t getStylesheet() const
120 {
121 if (m_stylesheetStack.empty())
122 return IWORKStylesheetPtr_t();
123 return m_stylesheetStack.top();
124 }
125
126 IWORKOutputManager &getOutputManager();
127
128 public:
129 virtual std::shared_ptr<IWORKTable> createTable(const IWORKTableNameMapPtr_t &tableNameMap, const IWORKLanguageManager &langManager) const;
130 virtual std::shared_ptr<IWORKText> createText(const IWORKLanguageManager &langManager, bool discardEmptyContent = false, bool allowListInsertion=true) const;
131
132 protected:
133 void fillMetadata(librevenge::RVNGPropertyList &props);
134
135 static void fillGraphicProps(const IWORKStylePtr_t style, librevenge::RVNGPropertyList &props,
136 bool isSurface=true, bool isFrame=false);
137 static void fillLayoutProps(const IWORKStylePtr_t style, librevenge::RVNGPropertyList &props);
138 static void fillWrapProps(const IWORKStylePtr_t style, librevenge::RVNGPropertyList &props,
139 const boost::optional<int> &order);
140 static void writeFill(const IWORKFill &fill, librevenge::RVNGPropertyList &props);
141 virtual void drawShape(const IWORKShapePtr_t &shape);
142
143 private:
144 void pushStyle(const IWORKStylePtr_t &style);
145
146 void collectHeaderFooter(const std::string &name, IWORKHeaderFooterMap_t &map);
147
148 void drawLine(const IWORKLinePtr_t &line);
149 void drawMedia(const IWORKMediaPtr_t &media);
150 virtual void drawTable() = 0;
151 virtual void drawMedia(double x, double y, const librevenge::RVNGPropertyList &data) = 0;
152 virtual void fillShapeProperties(librevenge::RVNGPropertyList &props) = 0;
153 virtual bool createFrameStylesForTextBox() const = 0;
154 virtual void drawTextBox(const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox, const librevenge::RVNGPropertyList &style) = 0;
155
156 protected:
157 IWORKCollector(const IWORKCollector &);
158 IWORKCollector &operator=(const IWORKCollector &);
159
160 IWORKDocumentInterface *m_document;
161 std::shared_ptr<IWORKRecorder> m_recorder;
162
163 std::stack<Level> m_levelStack;
164 IWORKStyleStack m_styleStack;
165 std::stack<IWORKStylesheetPtr_t> m_stylesheetStack;
166 IWORKOutputManager m_outputManager;
167
168 std::deque<IWORKStylePtr_t> m_newStyles;
169
170 std::shared_ptr<IWORKTable> m_currentTable;
171 std::shared_ptr<IWORKText> m_currentText;
172
173 IWORKHeaderFooterMap_t m_headers;
174 IWORKHeaderFooterMap_t m_footers;
175
176 std::stack<IWORKPathPtr_t> m_pathStack;
177 IWORKPathPtr_t m_currentPath;
178
179 std::stack<bool> m_attachmentStack;
180 bool m_inAttachment;
181 bool m_inAttachments;
182
183 private:
184 IWORKDataPtr_t m_currentData;
185 IWORKMediaContentPtr_t m_currentUnfiltered;
186 IWORKMediaContentPtr_t m_currentFiltered;
187 IWORKMediaContentPtr_t m_currentLeveled;
188 IWORKMediaContentPtr_t m_currentContent;
189
190 IWORKMetadata m_metadata;
191
192 bool m_accumulateTransform;
193 int m_groupLevel;
194 };
195
196 } // namespace libetonyek
197
198 #endif // IWORKCOLLECTOR_H_INCLUDED
199
200 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::IWORKCollector::createTable
virtual std::shared_ptr< IWORKTable > createTable(const IWORKTableNameMapPtr_t &tableNameMap, const IWORKLanguageManager &langManager) const
Definition: IWORKCollector.cpp:625
libetonyek::IWORKGeometryPtr_t
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:41
libetonyek
Definition: IWORKBezierElement.cpp:20
IWORKTransformation.h
libetonyek::IWORKCollector::m_stylesheetStack
std::stack< IWORKStylesheetPtr_t > m_stylesheetStack
Definition: IWORKCollector.h:165
libetonyek::IWORKCollector::m_currentFiltered
IWORKMediaContentPtr_t m_currentFiltered
Definition: IWORKCollector.h:186
libetonyek::IWORKToken::path
Definition: IWORKToken.h:358
libetonyek::IWORKCollector::collectTable
void collectTable(const std::shared_ptr< IWORKTable > &table)
Definition: IWORKCollector.cpp:535
IWORKOutputManager.h
libetonyek::IWORKCollector::IWORKCollector
IWORKCollector(IWORKDocumentInterface *document)
Definition: IWORKCollector.cpp:237
libetonyek::IWORKCollector::createText
virtual std::shared_ptr< IWORKText > createText(const IWORKLanguageManager &langManager, bool discardEmptyContent=false, bool allowListInsertion=true) const
Definition: IWORKCollector.cpp:630
libetonyek::IWORKToken::stylesheet
Definition: IWORKToken.h:417
libetonyek::IWORKCollector::collectGeometry
void collectGeometry(const IWORKGeometryPtr_t &geometry)
Definition: IWORKCollector.cpp:312
libetonyek::IWORKCollector::m_currentLeveled
IWORKMediaContentPtr_t m_currentLeveled
Definition: IWORKCollector.h:187
libetonyek::IWORKToken::media
Definition: IWORKToken.h:321
y
double y
Definition: IWORKShape.cpp:46
libetonyek::IWORKOutputManager
A manager for output elements.
Definition: IWORKOutputManager.h:29
libetonyek::IWORKCollector::collectConnectionPath
void collectConnectionPath(const IWORKConnectionPath &path)
Definition: IWORKCollector.cpp:463
libetonyek::IWORKToken::line
Definition: IWORKToken.h:298
libetonyek::IWORKCollector::Level::m_graphicStyle
IWORKStylePtr_t m_graphicStyle
Definition: IWORKCollector.h:47
libetonyek::IWORKToken::content
Definition: IWORKToken.h:163
libetonyek::IWORKStyleStack
Representation of a dynamic inheritance of styles.
Definition: IWORKStyleStack.h:34
libetonyek::IWORKCollector::m_currentContent
IWORKMediaContentPtr_t m_currentContent
Definition: IWORKCollector.h:188
libetonyek::IWORKCollector::popStylesheet
void popStylesheet()
Definition: IWORKCollector.cpp:742
libetonyek::IWORKToken::shape
Definition: IWORKToken.h:394
libetonyek::IWORKCollector::startAttachments
void startAttachments()
Definition: IWORKCollector.cpp:709
libetonyek::IWORKMediaPtr_t
std::shared_ptr< IWORKMedia > IWORKMediaPtr_t
Definition: IWORKTypes_fwd.h:64
libetonyek::IWORKCollector::m_inAttachment
bool m_inAttachment
Definition: IWORKCollector.h:180
libetonyek::IWORKCollector::m_recorder
std::shared_ptr< IWORKRecorder > m_recorder
Definition: IWORKCollector.h:161
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
libetonyek::IWORKCollector::fillWrapProps
static void fillWrapProps(const IWORKStylePtr_t style, librevenge::RVNGPropertyList &props, const boost::optional< int > &order)
Definition: IWORKCollector.cpp:984
libetonyek::PAG1Token::order
Definition: PAG1Token.h:43
libetonyek::IWORKToken::image
Definition: IWORKToken.h:260
libetonyek::IWORKCollector::setAccumulateTransformTo
void setAccumulateTransformTo(bool accumulate)
Definition: IWORKCollector.cpp:307
libetonyek::IWORKCollector::collectBezier
void collectBezier(const IWORKPathPtr_t &path)
Definition: IWORKCollector.cpp:330
libetonyek::IWORKCollector::startGroup
void startGroup()
Definition: IWORKCollector.cpp:578
libetonyek::IWORKCollector::collectStarPath
void collectStarPath(const IWORKSize &size, unsigned points, double innerRadius)
Definition: IWORKCollector.cpp:454
libetonyek::IWORKCollector::m_inAttachments
bool m_inAttachments
Definition: IWORKCollector.h:181
libetonyek::IWORKCollector::fillGraphicProps
static void fillGraphicProps(const IWORKStylePtr_t style, librevenge::RVNGPropertyList &props, bool isSurface=true, bool isFrame=false)
Definition: IWORKCollector.cpp:781
libetonyek::IWORKCollector::drawMedia
void drawMedia(const IWORKMediaPtr_t &media)
Definition: IWORKCollector.cpp:1117
libetonyek::IWORKCollector::collectStyle
void collectStyle(const IWORKStylePtr_t &style)
Definition: IWORKCollector.cpp:280
libetonyek::IWORKCollector::Level
Definition: IWORKCollector.h:44
libetonyek::IWORKSize
Definition: IWORKTypes.h:44
libetonyek::IWORKToken::text
Definition: IWORKToken.h:465
libetonyek::IWORKCollector::popStyle
void popStyle()
Definition: IWORKCollector.cpp:726
libetonyek::IWORKCollector::collectFooter
void collectFooter(const std::string &name)
Definition: IWORKCollector.cpp:530
libetonyek::IWORKCollector::collectHeaderFooter
void collectHeaderFooter(const std::string &name, IWORKHeaderFooterMap_t &map)
Definition: IWORKCollector.cpp:755
libetonyek::IWORKDocumentInterface
Definition: IWORKDocumentInterface.h:18
x
double x
Definition: IWORKShape.cpp:45
libetonyek::IWORKCollector::drawTable
virtual void drawTable()=0
libetonyek::IWORKCollector::fillLayoutProps
static void fillLayoutProps(const IWORKStylePtr_t style, librevenge::RVNGPropertyList &props)
Definition: IWORKCollector.cpp:948
libetonyek::KEY1Token::table
Definition: KEY1Token.h:198
libetonyek::IWORKCollector::endAttachment
void endAttachment()
Definition: IWORKCollector.cpp:686
libetonyek::IWORKToken::none
Definition: IWORKToken.h:666
libetonyek::IWORKCollector::setGraphicStyle
void setGraphicStyle(const IWORKStylePtr_t &style)
Definition: IWORKCollector.cpp:292
libetonyek::IWORKCollector::collectMetadata
void collectMetadata(const IWORKMetadata &metadata)
Definition: IWORKCollector.cpp:520
libetonyek::IWORKCollector::m_headers
IWORKHeaderFooterMap_t m_headers
Definition: IWORKCollector.h:173
libetonyek::IWORKDataPtr_t
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition: IWORKTypes_fwd.h:49
libetonyek::IWORKCollector::collectText
void collectText(const std::shared_ptr< IWORKText > &text)
Definition: IWORKCollector.cpp:549
libetonyek::IWORKCollector::~IWORKCollector
virtual ~IWORKCollector()
Definition: IWORKCollector.cpp:265
libetonyek::IWORKHeaderFooterMap_t
std::unordered_map< std::string, IWORKOutputElements > IWORKHeaderFooterMap_t
Definition: IWORKTypes.h:40
libetonyek::IWORKToken::style
Definition: IWORKToken.h:414
IWORKStyle.h
libetonyek::IWORKCollector::Level::m_geometry
IWORKGeometryPtr_t m_geometry
Definition: IWORKCollector.h:46
libetonyek::IWORKCollector::createFrameStylesForTextBox
virtual bool createFrameStylesForTextBox() const =0
libetonyek::IWORKCollector::startDocument
void startDocument()
Definition: IWORKCollector.cpp:561
libetonyek::IWORKCollector::endDocument
void endDocument()
Definition: IWORKCollector.cpp:566
libetonyek::IWORKCollector::m_accumulateTransform
bool m_accumulateTransform
Definition: IWORKCollector.h:192
libetonyek::IWORKCollector::m_currentPath
IWORKPathPtr_t m_currentPath
Definition: IWORKCollector.h:177
libetonyek::IWORKCollector
Definition: IWORKCollector.h:41
libetonyek::IWORKCollector::collectHeader
void collectHeader(const std::string &name)
Definition: IWORKCollector.cpp:525
libetonyek::IWORKCollector::setRecorder
void setRecorder(const std::shared_ptr< IWORKRecorder > &recorder)
Definition: IWORKCollector.cpp:275
libetonyek::IWORKCollector::m_levelStack
std::stack< Level > m_levelStack
Definition: IWORKCollector.h:163
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKCollector::closeGroup
void closeGroup()
Definition: IWORKCollector.cpp:614
libetonyek::IWORKCollector::openGroup
void openGroup()
Definition: IWORKCollector.cpp:602
libetonyek::IWORKCollector::collectStylesheet
void collectStylesheet(const IWORKStylesheetPtr_t &stylesheet)
Definition: IWORKCollector.cpp:508
libetonyek::IWORKTextPtr_t
std::shared_ptr< IWORKText > IWORKTextPtr_t
Definition: IWORKText_fwd.h:18
libetonyek::IWORKToken::size
Definition: IWORKToken.h:395
libetonyek::IWORKCollector::m_pathStack
std::stack< IWORKPathPtr_t > m_pathStack
Definition: IWORKCollector.h:176
libetonyek::IWORKCollector::collectBezierPath
void collectBezierPath()
Definition: IWORKCollector.cpp:418
libetonyek::IWORKCollector::m_newStyles
std::deque< IWORKStylePtr_t > m_newStyles
Definition: IWORKCollector.h:168
libetonyek::IWORKCollector::m_document
IWORKDocumentInterface * m_document
Definition: IWORKCollector.h:160
libetonyek::IWORKCollector::writeFill
static void writeFill(const IWORKFill &fill, librevenge::RVNGPropertyList &props)
Definition: IWORKCollector.cpp:1249
libetonyek::IWORKCollector::operator=
IWORKCollector & operator=(const IWORKCollector &)
libetonyek::IWORKCollector::Level::Level
Level()
Definition: IWORKCollector.cpp:229
libetonyek::IWORKCollector::fillShapeProperties
virtual void fillShapeProperties(librevenge::RVNGPropertyList &props)=0
IWORKPath_fwd.h
libetonyek::IWORKCollector::getOutputManager
IWORKOutputManager & getOutputManager()
Definition: IWORKCollector.cpp:1034
libetonyek::IWORKCollector::m_currentText
std::shared_ptr< IWORKText > m_currentText
Definition: IWORKCollector.h:171
libetonyek::IWORKCollector::getStylesheet
IWORKStylesheetPtr_t getStylesheet() const
Definition: IWORKCollector.h:119
libetonyek::IWORKCollector::drawShape
virtual void drawShape(const IWORKShapePtr_t &shape)
Definition: IWORKCollector.cpp:1197
libetonyek::IWORKConnectionPath
Definition: IWORKPath.h:87
IWORKStylesheet.h
libetonyek::IWORKCollector::m_currentUnfiltered
IWORKMediaContentPtr_t m_currentUnfiltered
Definition: IWORKCollector.h:185
libetonyek::IWORKToken::geometry
Definition: IWORKToken.h:232
IWORKShape.h
libetonyek::IWORKCollector::startLevel
void startLevel()
Definition: IWORKCollector.cpp:635
libetonyek::IWORKToken::locked
Definition: IWORKToken.h:570
libetonyek::IWORKCollector::collectImage
void collectImage(const IWORKMediaContentPtr_t &image, const IWORKGeometryPtr_t &cropGeometry=IWORKGeometryPtr_t(), const boost::optional< int > &order=boost::none, bool locked=false)
Definition: IWORKCollector.cpp:341
libetonyek::IWORKCollector::Level::m_trafo
glm::dmat3 m_trafo
Definition: IWORKCollector.h:48
libetonyek::IWORKTableNameMapPtr_t
std::shared_ptr< IWORKTableNameMap_t > IWORKTableNameMapPtr_t
Definition: IWORKTypes_fwd.h:34
libetonyek::IWORKCollector::collectArrowPath
void collectArrowPath(const IWORKSize &size, double headWidth, double stemRelYPos, bool doubleSided)
Definition: IWORKCollector.cpp:441
libetonyek::IWORKLinePtr_t
std::shared_ptr< IWORKLine > IWORKLinePtr_t
Definition: IWORKTypes_fwd.h:45
libetonyek::IWORKCollector::endLevel
void endLevel()
Definition: IWORKCollector.cpp:656
IWORKStyleStack.h
libetonyek::KEY1Token::radius
Definition: KEY1Token.h:185
libetonyek::IWORKToken::data
Definition: IWORKToken.h:174
libetonyek::IWORKCollector::endGroup
void endGroup()
Definition: IWORKCollector.cpp:589
libetonyek::IWORKLanguageManager
Definition: IWORKLanguageManager.h:23
libetonyek::IWORKCollector::m_outputManager
IWORKOutputManager m_outputManager
Definition: IWORKCollector.h:166
libetonyek::NUM1Token::document
Definition: NUM1Token.h:34
libetonyek::IWORKCollector::m_footers
IWORKHeaderFooterMap_t m_footers
Definition: IWORKCollector.h:174
libetonyek::IWORKToken::string
Definition: IWORKToken.h:411
libetonyek::IWORKCollector::collectCalloutPath
void collectCalloutPath(const IWORKSize &size, double radius, double tailSize, double tailX, double tailY, bool quoteBubble)
Definition: IWORKCollector.cpp:472
libetonyek::IWORKCollector::m_metadata
IWORKMetadata m_metadata
Definition: IWORKCollector.h:190
libetonyek::IWORKCollector::drawLine
void drawLine(const IWORKLinePtr_t &line)
Definition: IWORKCollector.cpp:1039
libetonyek::IWORKCollector::fillMetadata
void fillMetadata(librevenge::RVNGPropertyList &props)
Definition: IWORKCollector.cpp:769
libetonyek::IWORKCollector::collectLine
void collectLine(const IWORKLinePtr_t &line)
Definition: IWORKCollector.cpp:364
libetonyek::IWORKPathPtr_t
std::shared_ptr< IWORKPath > IWORKPathPtr_t
Definition: IWORKPath_fwd.h:20
libetonyek::IWORKCollector::endAttachments
void endAttachments()
Definition: IWORKCollector.cpp:715
IWORKTypes.h
libetonyek::IWORKCollector::m_styleStack
IWORKStyleStack m_styleStack
Definition: IWORKCollector.h:164
libetonyek::IWORKShapePtr_t
std::shared_ptr< IWORKShape > IWORKShapePtr_t
Definition: IWORKShape.h:38
libetonyek::IWORKCollector::pushStyle
void pushStyle()
Definition: IWORKCollector.cpp:721
libetonyek::IWORKFill
boost::variant< IWORKColor, IWORKGradient, IWORKMediaContent > IWORKFill
Definition: IWORKTypes.h:309
libetonyek::IWORKCollector::m_groupLevel
int m_groupLevel
Definition: IWORKCollector.h:193
libetonyek::IWORKCollector::collectPolygonPath
void collectPolygonPath(const IWORKSize &size, unsigned edges)
Definition: IWORKCollector.cpp:423
libetonyek::IWORKCollector::drawTextBox
virtual void drawTextBox(const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox, const librevenge::RVNGPropertyList &style)=0
libetonyek::IWORKCollector::pushStylesheet
void pushStylesheet(const IWORKStylesheetPtr_t &stylesheet)
Definition: IWORKCollector.cpp:731
libetonyek_utils.h
libetonyek::IWORKToken::metadata
Definition: IWORKToken.h:323
libetonyek::IWORKCollector::Level::m_previousTrafo
glm::dmat3 m_previousTrafo
Definition: IWORKCollector.h:49
libetonyek::IWORKCollector::m_currentTable
std::shared_ptr< IWORKTable > m_currentTable
Definition: IWORKCollector.h:170
libetonyek::IWORKToken::tailSize
Definition: IWORKToken.h:617
libetonyek::IWORKCollector::collectRoundedRectanglePath
void collectRoundedRectanglePath(const IWORKSize &size, double radius)
Definition: IWORKCollector.cpp:432
libetonyek::IWORKMediaContentPtr_t
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition: IWORKTypes_fwd.h:54
libetonyek::IWORKMetadata
Definition: IWORKTypes.h:327
libetonyek::IWORKToken::fill
Definition: IWORKToken.h:200
libetonyek::IWORKCollector::startAttachment
void startAttachment()
Definition: IWORKCollector.cpp:670
libetonyek::IWORKCollector::m_currentData
IWORKDataPtr_t m_currentData
Definition: IWORKCollector.h:184
libetonyek::IWORKCollector::m_attachmentStack
std::stack< bool > m_attachmentStack
Definition: IWORKCollector.h:179
libetonyek::IWORKCollector::collectMedia
void collectMedia(const IWORKMediaContentPtr_t &content, const IWORKGeometryPtr_t &cropGeometry=IWORKGeometryPtr_t(), const boost::optional< int > &order=boost::none)
Definition: IWORKCollector.cpp:485
libetonyek::IWORKCollector::collectShape
void collectShape(const boost::optional< int > &order=boost::none, bool locked=false)
Definition: IWORKCollector.cpp:382
libetonyek::IWORKStylesheetPtr_t
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19