IWAParser.h Source File documentation

IWAParser.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 IWAPARSER_H_INCLUDED
11 #define IWAPARSER_H_INCLUDED
12
13 #include <deque>
14 #include <functional>
15 #include <map>
16 #include <memory>
17 #include <string>
18 #include <unordered_map>
19
20 #include <boost/optional.hpp>
21 #include <boost/variant.hpp>
22
23 #if defined(__GNUC__) && !defined(__clang__)
24 #pragma GCC diagnostic push
25 #pragma GCC diagnostic ignored "-Weffc++"
26 #endif
27 #include <mdds/flat_segment_tree.hpp>
28 #if defined(__GNUC__) && !defined(__clang__)
29 #pragma GCC diagnostic pop
30 #endif
31
32 #include "libetonyek_utils.h"
33 #include "IWAMessage.h"
34 #include "IWAObjectIndex.h"
35 #include "IWORKLanguageManager.h"
36 #include "IWORKOutputElements.h"
37 #include "IWORKStyle_fwd.h"
38 #include "IWORKTypes.h"
39
40 namespace libetonyek
41 {
42
43 class IWORKCollector;
44 class IWORKPropertyMap;
45 class IWORKTable;
46 class IWORKText;
47
48 class IWAParser
49 {
50 // disable copying
51 IWAParser(const IWAParser &);
52 IWAParser &operator=(const IWAParser &);
53 public:
54 IWAParser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, IWORKCollector &collector);
55 virtual ~IWAParser()
56 {
57 }
58
59 bool parse();
60
61 protected:
62 class ObjectMessage
63 {
64 public:
65 ObjectMessage(IWAParser &parser, unsigned id, unsigned type = 0);
66 ~ObjectMessage();
67
68 operator bool() const;
69 const IWAMessage &get() const;
70
71 unsigned getType() const;
72
73 friend const IWAMessage &get(const ObjectMessage &msg)
74 {
75 return msg.get();
76 }
77
78 private:
79 IWAParser &m_parser;
80 boost::optional<IWAMessage> m_message;
81 const unsigned m_id;
82 unsigned m_type;
83 };
84 friend class ObjectMessage;
85
86 typedef std::map<unsigned, IWORKStylePtr_t> StyleMap_t;
87 typedef std::function<void(unsigned, IWORKStylePtr_t &)> StyleParseFun_t;
88
89 protected:
90 static boost::optional<unsigned> readRef(const IWAMessage &msg, unsigned field);
91 static std::deque<unsigned> readRefs(const IWAMessage &msg, unsigned field);
92 static boost::optional<IWORKPosition> readPosition(const IWAMessage &msg, unsigned field);
93 static boost::optional<IWORKSize> readSize(const IWAMessage &msg, unsigned field);
94 static boost::optional<IWORKColor> readColor(const IWAMessage &msg, unsigned field);
95 static void readStroke(const IWAMessage &msg, IWORKStroke &stroke);
96 bool readFill(const IWAMessage &msg, IWORKFill &fill);
97 static void readGradient(const IWAMessage &msg, IWORKGradient &gradient);
98 static void readShadow(const IWAMessage &msg, IWORKShadow &shadow);
99 static void readPadding(const IWAMessage &msg, IWORKPadding &padding);
100
101 bool dispatchShape(unsigned id);
102 bool parseText(unsigned id, const std::function<void(unsigned, IWORKStylePtr_t)> &openPageSpan=nullptr);
103 void parseComment(unsigned id);
104
105 bool parseShapePlacement(const IWAMessage &msg, IWORKGeometryPtr_t &geometry);
106
107 const IWORKStylePtr_t queryCharacterStyle(unsigned id) const;
108 const IWORKStylePtr_t queryParagraphStyle(unsigned id) const;
109 const IWORKStylePtr_t querySectionStyle(unsigned id) const;
110
111 const IWORKStylePtr_t queryGraphicStyle(unsigned id) const;
112 const IWORKStylePtr_t queryMediaStyle(unsigned id) const;
113 const IWORKStylePtr_t queryCellStyle(unsigned id) const;
114 const IWORKStylePtr_t queryTableStyle(unsigned id) const;
115 const IWORKStylePtr_t queryListStyle(unsigned id) const;
116
117 const IWORKStylePtr_t queryStyle(unsigned id, StyleMap_t &styleMap, StyleParseFun_t parse) const;
118
119 protected:
120 IWORKLanguageManager m_langManager;
121 std::shared_ptr<IWORKText> m_currentText;
122
123 private:
124 typedef std::map<unsigned, boost::variant<std::string, unsigned> > DataList_t;
125
126 struct PageMaster
127 {
128 PageMaster();
129 IWORKStylePtr_t m_style;
130 bool m_headerFootersSameAsPrevious;
131 };
132
133 struct TableHeader
134 {
135 TableHeader(unsigned count, float defValue=0);
136
137 mdds::flat_segment_tree<unsigned, float> m_sizes;
138 mdds::flat_segment_tree<unsigned, bool> m_hidden;
139 };
140
141 struct TableInfo
142 {
143 TableInfo(const std::shared_ptr<IWORKTable> &table, unsigned columns, unsigned rows);
144
145 std::shared_ptr<IWORKTable> m_table;
146
147 const unsigned m_columns;
148 const unsigned m_rows;
149
150 IWORKStylePtr_t m_style;
151
152 TableHeader m_columnHeader;
153 TableHeader m_rowHeader;
154
155 DataList_t m_simpleTextList;
156 DataList_t m_cellStyleList;
157 DataList_t m_formattedTextList;
158 DataList_t m_commentList;
159 };
160
161 private:
162 virtual bool parseDocument() = 0;
163
164 private:
165 void queryObject(unsigned id, unsigned &type, boost::optional<IWAMessage> &msg) const;
166 const RVNGInputStreamPtr_t queryFile(unsigned id) const;
167
168 void parseObjectIndex();
169
170 void parseCharacterStyle(unsigned id, IWORKStylePtr_t &style);
171 void parseParagraphStyle(unsigned id, IWORKStylePtr_t &style);
172 void parseSectionStyle(unsigned id, IWORKStylePtr_t &style);
173
174 void parseGraphicStyle(unsigned id, IWORKStylePtr_t &style);
175 void parseMediaStyle(unsigned id, IWORKStylePtr_t &style);
176 void parseCellStyle(unsigned id, IWORKStylePtr_t &style);
177 void parseTableStyle(unsigned id, IWORKStylePtr_t &style);
178 void parseListStyle(unsigned id, IWORKStylePtr_t &style);
179
180 void parseHeaderAndFooter(unsigned id, IWORKPageMaster &hf);
181 void parsePageMaster(unsigned id, PageMaster &pageMaster);
182
183 void parseTabularModel(unsigned id);
184 void parseDataList(unsigned id, DataList_t &dataList);
185 void parseTile(unsigned id);
186 void parseTableHeaders(unsigned id, TableHeader &header);
187 void parseTableGridLines(unsigned id, IWORKGridLineMap_t (&gridLines)[4]);
188 void parseTableGridLine(unsigned id, IWORKGridLineMap_t &gridLines);
189
190 void parseLink(unsigned id, std::string &url);
191
192 bool parseAttachment(unsigned id);
193
194 bool parseDrawableShape(const IWAMessage &msg, bool isConnectionLine=false);
195 bool parseGroup(const IWAMessage &msg);
196 bool parseShapePlacement(const IWAMessage &msg);
197 bool parseImage(const IWAMessage &msg);
198 bool parseTabularInfo(const IWAMessage &msg);
199 bool parsePath(const IWAMessage &msg, IWORKPathPtr_t &path);
200
201 bool parseArrowProperties(const IWAMessage &msg, IWORKPropertyMap &props, bool headArrow);
202 void parseCharacterProperties(const IWAMessage &msg, IWORKPropertyMap &props);
203 void parseColumnsProperties(const IWAMessage &msg, IWORKPropertyMap &props);
204
205 private:
206 IWORKCollector &m_collector;
207
208 IWAObjectIndex m_index;
209
210 std::deque<unsigned> m_visited;
211
212 mutable StyleMap_t m_charStyles;
213 mutable StyleMap_t m_paraStyles;
214 mutable StyleMap_t m_sectionStyles;
215
216 mutable StyleMap_t m_graphicStyles;
217 mutable StyleMap_t m_mediaStyles;
218 mutable StyleMap_t m_cellStyles;
219 mutable StyleMap_t m_tableStyles;
220 mutable StyleMap_t m_listStyles;
221
222 IWORKTableNameMapPtr_t m_tableNameMap;
223 std::shared_ptr<TableInfo> m_currentTable;
224 };
225
226 }
227
228 #endif
229
230 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::IWORKToken::point
@ point
Definition: IWORKToken.h:366
libetonyek::IWAParser::TableInfo::m_columnHeader
TableHeader m_columnHeader
Definition: IWAParser.h:152
libetonyek::IWORKMediaContent::m_type
IWORKImageType m_type
Definition: IWORKTypes.h:150
libetonyek::IWAParser::readPadding
static void readPadding(const IWAMessage &msg, IWORKPadding &padding)
Definition: IWAParser.cpp:445
m_table
KEY1TableElement::TableData & m_table
Definition: KEY1TableElement.cpp:157
libetonyek::IWORKGradientStop::m_inflection
double m_inflection
Definition: IWORKTypes.h:295
libetonyek::IWORKTextLabel::m_format
IWORKTextLabelFormat m_format
Definition: IWORKTypes.h:447
libetonyek::IWAParser::readRef
static boost::optional< unsigned > readRef(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:229
libetonyek::IWAObjectType::Headers
@ Headers
Definition: IWAObjectType.h:50
libetonyek::IWAObjectType::GridLine
@ GridLine
Definition: IWAObjectType.h:55
libetonyek::IWAMessageField::message
const IWAMessageField & message(std::size_t field) const
Definition: IWAField.cpp:70
libetonyek::IWAObjectType::GraphicStyle
@ GraphicStyle
Definition: IWAObjectType.h:33
libetonyek::IWORKToken::header
@ header
Definition: IWORKToken.h:252
IWAText.h
libetonyek::IWAText::setSections
void setSections(const std::map< unsigned, IWORKStylePtr_t > &sections)
Definition: IWAText.cpp:63
libetonyek::IWAText::setAttachments
void setAttachments(const std::multimap< unsigned, std::function< void(unsigned, bool &)> > &attachments)
Definition: IWAText.cpp:98
libetonyek::IWAObjectType::Comment
@ Comment
Definition: IWAObjectType.h:43
libetonyek::IWAParser::parseText
bool parseText(unsigned id, const std::function< void(unsigned, IWORKStylePtr_t)> &openPageSpan=nullptr)
Definition: IWAParser.cpp:483
libetonyek::IWAParser::parseComment
void parseComment(unsigned id)
Definition: IWAParser.cpp:2092
m_style
IWORKStylePtr_t m_style
Definition: IWORKPropertyMapElement.cpp:172
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKToken::none
@ none
Definition: IWORKToken.h:666
libetonyek::IWAObjectType::Text
@ Text
Definition: IWAObjectType.h:22
libetonyek::IWAParser::ObjectMessage::get
const friend IWAMessage & get(const ObjectMessage &msg)
Definition: IWAParser.h:73
libetonyek::IWORKColumns
Definition: IWORKTypes.h:337
libetonyek::IWAObjectType::SectionStyle
@ SectionStyle
Definition: IWAObjectType.h:32
libetonyek::IWORKStroke
Definition: IWORKTypes.h:277
libetonyek::IWORK_LINE_CAP_ROUND
@ IWORK_LINE_CAP_ROUND
Definition: IWORKEnum.h:69
libetonyek::IWORKMediaContent::m_size
boost::optional< IWORKSize > m_size
Definition: IWORKTypes.h:151
libetonyek::KEY1Token::table
@ table
Definition: KEY1Token.h:198
libetonyek::IWORKConnectionPath::m_isSpline
bool m_isSpline
Definition: IWORKPath.h:95
libetonyek::IWAParser::readColor
static boost::optional< IWORKColor > readColor(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:273
libetonyek::IWORKLanguageManager
Definition: IWORKLanguageManager.h:23
libetonyek::IWORKToken::listStyle
@ listStyle
Definition: IWORKToken.h:307
libetonyek::IWORKToken::flags
@ flags
Definition: IWORKToken.h:527
libetonyek::IWORKCollector::startLevel
void startLevel()
Definition: IWORKCollector.cpp:635
libetonyek::IWAParser::parseShapePlacement
bool parseShapePlacement(const IWAMessage &msg, IWORKGeometryPtr_t &geometry)
Definition: IWAParser.cpp:1300
libetonyek::IWORKToken::shape
@ shape
Definition: IWORKToken.h:394
libetonyek::IWAObjectType::TabularInfo
@ TabularInfo
Definition: IWAObjectType.h:44
libetonyek::IWORKShadow::m_offset
double m_offset
Definition: IWORKTypes.h:319
libetonyek::IWORKTableNameMapPtr_t
std::shared_ptr< IWORKTableNameMap_t > IWORKTableNameMapPtr_t
Definition: IWORKTypes_fwd.h:34
libetonyek::IWORKToken::SFTStrokeProperty
@ SFTStrokeProperty
Definition: IWORKToken.h:85
libetonyek::IWAParser::m_tableNameMap
IWORKTableNameMapPtr_t m_tableNameMap
Definition: IWAParser.h:222
libetonyek::IWORKCollector::collectHeader
void collectHeader(const std::string &name)
Definition: IWORKCollector.cpp:525
libetonyek::IWAObjectType::ConnectionLine
@ ConnectionLine
Definition: IWAObjectType.h:40
libetonyek::IWAParser::readStroke
static void readStroke(const IWAMessage &msg, IWORKStroke &stroke)
Definition: IWAParser.cpp:284
libetonyek::IWAObjectType::Image
@ Image
Definition: IWAObjectType.h:38
libetonyek::IWAParser::PageMaster::m_style
IWORKStylePtr_t m_style
Definition: IWAParser.h:129
libetonyek::IWORKToken::bezier
@ bezier
Definition: IWORKToken.h:112
libetonyek::IWORK_LABEL_NUM_FORMAT_ROMAN
@ IWORK_LABEL_NUM_FORMAT_ROMAN
Definition: IWORKEnum.h:131
libetonyek::IWAParser::readShadow
static void readShadow(const IWAMessage &msg, IWORKShadow &shadow)
Definition: IWAParser.cpp:429
libetonyek::IWAParser::TableInfo::m_rowHeader
TableHeader m_rowHeader
Definition: IWAParser.h:153
libetonyek::IWAObjectType::NoteStart
@ NoteStart
Definition: IWAObjectType.h:24
libetonyek::IWAObjectType::CellStyle
@ CellStyle
Definition: IWAObjectType.h:48
libetonyek::IWAObjectType::Note
@ Note
Definition: IWAObjectType.h:25
libetonyek::IWAObjectType::Group
@ Group
Definition: IWAObjectType.h:39
libetonyek::IWAParser::m_currentTable
std::shared_ptr< TableInfo > m_currentTable
Definition: IWAParser.h:223
libetonyek::IWAParser::IWAParser
IWAParser(const IWAParser &)
libetonyek::IWAObjectType::CharacterStyle
@ CharacterStyle
Definition: IWAObjectType.h:29
IWORKProperties.h
libetonyek::IWORKToken::type
@ type
Definition: IWORKToken.h:486
libetonyek::IWORK_CELL_TYPE_TEXT
@ IWORK_CELL_TYPE_TEXT
Definition: IWORKEnum.h:82
libetonyek::IWAParser::queryTableStyle
const IWORKStylePtr_t queryTableStyle(unsigned id) const
Definition: IWAParser.cpp:822
libetonyek::IWAParser::parseImage
bool parseImage(const IWAMessage &msg)
Definition: IWAParser.cpp:2059
libetonyek::IWAParser::m_paraStyles
StyleMap_t m_paraStyles
Definition: IWAParser.h:213
libetonyek::IWAParser
Definition: IWAParser.h:48
libetonyek::IWORKConnectionPath::m_size
boost::optional< IWORKSize > m_size
Definition: IWORKPath.h:94
libetonyek::IWORKDataPtr_t
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition: IWORKTypes_fwd.h:49
libetonyek::IWORKPath
Definition: IWORKPath.h:28
libetonyek::IWAParser::~IWAParser
virtual ~IWAParser()
Definition: IWAParser.h:55
ETONYEK_FALLTHROUGH
#define ETONYEK_FALLTHROUGH
Definition: libetonyek_utils.h:42
IWAObjectType.h
libetonyek::IWAParser::queryGraphicStyle
const IWORKStylePtr_t queryGraphicStyle(unsigned id) const
Definition: IWAParser.cpp:807
IWORKNumberConverter.h
IWAParser.h
libetonyek::KEY1Token::level
@ level
Definition: KEY1Token.h:158
libetonyek::IWORKNumberConverter::convert
static boost::optional< T > convert(const char *value)
Definition: IWORKNumberConverter.cpp:20
libetonyek::IWAParser::m_tableStyles
StyleMap_t m_tableStyles
Definition: IWAParser.h:219
m_y
boost::optional< unsigned > m_y
Definition: IWORKFormulaElement.cpp:111
libetonyek::IWAParser::parsePath
bool parsePath(const IWAMessage &msg, IWORKPathPtr_t &path)
Definition: IWAParser.cpp:962
libetonyek::IWORKCollector::collectArrowPath
void collectArrowPath(const IWORKSize &size, double headWidth, double stemRelYPos, bool doubleSided)
Definition: IWORKCollector.cpp:441
libetonyek::IWORKToken::empty
@ empty
Definition: IWORKToken.h:656
libetonyek::IWORKToken::attachment
@ attachment
Definition: IWORKToken.h:104
libetonyek::IWAParser::queryParagraphStyle
const IWORKStylePtr_t queryParagraphStyle(unsigned id) const
Definition: IWAParser.cpp:797
libetonyek::IWAParser::queryFile
const RVNGInputStreamPtr_t queryFile(unsigned id) const
Definition: IWAParser.cpp:224
libetonyek::IWORK_LABEL_NUM_FORMAT_ALPHA
@ IWORK_LABEL_NUM_FORMAT_ALPHA
Definition: IWORKEnum.h:129
libetonyek::IWAParser::parseHeaderAndFooter
void parseHeaderAndFooter(unsigned id, IWORKPageMaster &hf)
Definition: IWAParser.cpp:2022
libetonyek::IWORKMediaContent::m_fillColor
boost::optional< IWORKColor > m_fillColor
Definition: IWORKTypes.h:153
libetonyek::IWAParser::parsePageMaster
void parsePageMaster(unsigned id, PageMaster &pageMaster)
Definition: IWAParser.cpp:1987
libetonyek::IWAParser::parseTabularInfo
bool parseTabularInfo(const IWAMessage &msg)
Definition: IWAParser.cpp:2107
libetonyek::IWAParser::TableInfo::m_columns
const unsigned m_columns
Definition: IWAParser.h:147
libetonyek::IWAParser::m_visited
std::deque< unsigned > m_visited
Definition: IWAParser.h:210
libetonyek::IWAParser::m_collector
IWORKCollector & m_collector
Definition: IWAParser.h:206
libetonyek::PAGCollector
Definition: PAGCollector.h:23
libetonyek::detail::IWAFieldImpl::empty
bool empty() const override
Definition: IWAField.h:113
libetonyek::IWAMessage::bool_
const IWABoolField & bool_(std::size_t field) const
Definition: IWAMessage.cpp:142
libetonyek::IWAText::setPageMasters
void setPageMasters(const std::map< unsigned, IWORKStylePtr_t > &pageMasters)
Definition: IWAText.cpp:58
libetonyek::IWORKToken::g
@ g
Definition: IWORKToken.h:231
libetonyek::IWORKCollector::endGroup
void endGroup()
Definition: IWORKCollector.cpp:589
libetonyek::IWORK_GRADIENT_TYPE_LINEAR
@ IWORK_GRADIENT_TYPE_LINEAR
Definition: IWORKEnum.h:107
libetonyek::IWAParser::TableInfo::m_simpleTextList
DataList_t m_simpleTextList
Definition: IWAParser.h:155
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::IWORKToken::n
@ n
Definition: IWORKToken.h:328
libetonyek::KEY2Token::i
@ i
Definition: KEY2Token.h:101
libetonyek::IWAParser::StyleParseFun_t
std::function< void(unsigned, IWORKStylePtr_t &)> StyleParseFun_t
Definition: IWAParser.h:87
libetonyek::IWORKToken::row
@ row
Definition: IWORKToken.h:383
libetonyek::IWORK_LABEL_NUM_FORMAT_SURROUNDING_DOT
@ IWORK_LABEL_NUM_FORMAT_SURROUNDING_DOT
Definition: IWORKEnum.h:139
libetonyek::IWORKPadding
Definition: IWORKTypes.h:99
libetonyek::IWORK_STROKE_TYPE_SOLID
@ IWORK_STROKE_TYPE_SOLID
Definition: IWORKEnum.h:121
libetonyek::detail::IWAFieldImpl::optional
const boost::optional< value_type > optional() const
Definition: IWAField.h:159
libetonyek::IWORKToken::tailAtCenter
@ tailAtCenter
Definition: IWORKToken.h:614
libetonyek::IWAParser::parseCharacterProperties
void parseCharacterProperties(const IWAMessage &msg, IWORKPropertyMap &props)
Definition: IWAParser.cpp:1904
libetonyek::IWORKVerticalAlignment
IWORKVerticalAlignment
Definition: IWORKEnum.h:111
libetonyek::IWORKCollector::collectPolygonPath
void collectPolygonPath(const IWORKSize &size, unsigned edges)
Definition: IWORKCollector.cpp:423
IWORKTable.h
libetonyek::IWAText::setLists
void setLists(const std::map< unsigned, IWORKStylePtr_t > &lists)
Definition: IWAText.cpp:93
libetonyek::IWORKMarker
Definition: IWORKTypes.h:89
libetonyek::IWAObjectIndex
Definition: IWAObjectIndex.h:26
IWORKLanguageManager.h
libetonyek::IWAObjectType::CommentField
@ CommentField
Definition: IWAObjectType.h:27
libetonyek::IWAParser::m_sectionStyles
StyleMap_t m_sectionStyles
Definition: IWAParser.h:214
libetonyek::IWAParser::ObjectMessage::~ObjectMessage
~ObjectMessage()
Definition: IWAParser.cpp:194
libetonyek::IWORKTabStops_t
std::deque< IWORKTabStop > IWORKTabStops_t
Definition: IWORKTypes.h:119
libetonyek::IWAText::setParagraphs
void setParagraphs(const std::map< unsigned, IWORKStylePtr_t > &paras)
Definition: IWAText.cpp:68
libetonyek::IWORKCollector::endLevel
void endLevel()
Definition: IWORKCollector.cpp:656
IWORKTransformation.h
libetonyek::IWORKTable::CELL_TYPE_BODY
@ CELL_TYPE_BODY
Definition: IWORKTable.h:53
libetonyek::IWAParser::TableInfo::m_table
std::shared_ptr< IWORKTable > m_table
Definition: IWAParser.h:145
libetonyek::IWORKToken::SFTTableBandedRowsProperty
@ SFTTableBandedRowsProperty
Definition: IWORKToken.h:86
libetonyek::IWAParser::m_cellStyles
StyleMap_t m_cellStyles
Definition: IWAParser.h:218
libetonyek::IWORKToken::st
@ st
Definition: IWORKToken.h:404
libetonyek::IWAParser::readSize
static boost::optional< IWORKSize > readSize(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:262
libetonyek::IWORKToken::index
@ index
Definition: IWORKToken.h:564
libetonyek::IWAParser::readFill
bool readFill(const IWAMessage &msg, IWORKFill &fill)
Definition: IWAParser.cpp:338
libetonyek::IWAParser::readRefs
static std::deque< unsigned > readRefs(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:236
libetonyek::IWORK_VERTICAL_ALIGNMENT_BOTTOM
@ IWORK_VERTICAL_ALIGNMENT_BOTTOM
Definition: IWORKEnum.h:115
libetonyek::IWORKToken::path
@ path
Definition: IWORKToken.h:358
libetonyek::IWORK_LABEL_NUM_FORMAT_ROMAN_LOWERCASE
@ IWORK_LABEL_NUM_FORMAT_ROMAN_LOWERCASE
Definition: IWORKEnum.h:132
libetonyek::IWORKToken::align
@ align
Definition: IWORKToken.h:502
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::IWAParser::TableHeader
Definition: IWAParser.h:133
libetonyek::IWORKShadow::m_color
IWORKColor m_color
Definition: IWORKTypes.h:316
libetonyek::IWORKMediaContentPtr_t
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition: IWORKTypes_fwd.h:54
libetonyek::IWAParser::TableInfo::TableInfo
TableInfo(const std::shared_ptr< IWORKTable > &table, unsigned columns, unsigned rows)
Definition: IWAParser.cpp:125
libetonyek::IWAParser::parseTableGridLine
void parseTableGridLine(unsigned id, IWORKGridLineMap_t &gridLines)
Definition: IWAParser.cpp:2523
libetonyek::IWORK_VERTICAL_ALIGNMENT_MIDDLE
@ IWORK_VERTICAL_ALIGNMENT_MIDDLE
Definition: IWORKEnum.h:114
libetonyek::IWAParser::TableHeader::TableHeader
TableHeader(unsigned count, float defValue=0)
Definition: IWAParser.cpp:119
libetonyek::IWAObjectType::ListStyle
@ ListStyle
Definition: IWAObjectType.h:31
libetonyek::IWAParser::queryListStyle
const IWORKStylePtr_t queryListStyle(unsigned id) const
Definition: IWAParser.cpp:827
libetonyek::IWORKCollector::collectCalloutPath
void collectCalloutPath(const IWORKSize &size, double radius, double tailSize, double tailX, double tailY, bool quoteBubble)
Definition: IWORKCollector.cpp:472
libetonyek::IWORKToken::count
@ count
Definition: IWORKToken.h:515
m_columns
const unsigned m_columns
Definition: IWORKTableRecorder.cpp:35
libetonyek::IWORKToken::rows
@ rows
Definition: IWORKToken.h:385
IWAObjectIndex.h
libetonyek::IWAMessage::uint32
const IWAUInt32Field & uint32(std::size_t field) const
Definition: IWAMessage.cpp:122
libetonyek::IWORKPropertyMap::clear
void clear()
Clear property.
Definition: IWORKPropertyMap.h:145
libetonyek::IWORKToken::h
@ h
Definition: IWORKToken.h:550
libetonyek::IWORK_VERTICAL_ALIGNMENT_TOP
@ IWORK_VERTICAL_ALIGNMENT_TOP
Definition: IWORKEnum.h:113
libetonyek::IWORKToken::attachments
@ attachments
Definition: IWORKToken.h:106
libetonyek::IWAParser::parseColumnsProperties
void parseColumnsProperties(const IWAMessage &msg, IWORKPropertyMap &props)
Definition: IWAParser.cpp:1944
libetonyek::IWORKToken::col
@ col
Definition: IWORKToken.h:150
libetonyek::IWORKCollector::collectTable
void collectTable(const std::shared_ptr< IWORKTable > &table)
Definition: IWORKCollector.cpp:535
libetonyek::IWAMessageField
Definition: IWAField.h:222
libetonyek::IWAObjectType::TableStyle
@ TableStyle
Definition: IWAObjectType.h:47
libetonyek::IWORKConnectionPath
Definition: IWORKPath.h:87
libetonyek::IWORKTabStop
Definition: IWORKTypes.h:110
libetonyek::IWAParser::ObjectMessage::get
const IWAMessage & get() const
Definition: IWAParser.cpp:209
libetonyek::IWORKTable::CELL_TYPE_ROW_FOOTER
@ CELL_TYPE_ROW_FOOTER
Definition: IWORKTable.h:57
libetonyek::IWAText::setSpans
void setSpans(const std::map< unsigned, IWORKStylePtr_t > &spans)
Definition: IWAText.cpp:73
libetonyek::IWORKToken::size
@ size
Definition: IWORKToken.h:395
libetonyek::IWORKCollector::createTable
virtual std::shared_ptr< IWORKTable > createTable(const IWORKTableNameMapPtr_t &tableNameMap, const IWORKLanguageManager &langManager) const
Definition: IWORKCollector.cpp:625
libetonyek::IWORKToken::columns
@ columns
Definition: IWORKToken.h:154
libetonyek::IWORKToken::id
@ id
Definition: IWORKToken.h:259
libetonyek::readDouble
double readDouble(const RVNGInputStreamPtr_t &input)
Definition: libetonyek_utils.cpp:162
libetonyek::IWAText::setLinks
void setLinks(const std::map< unsigned, std::string > &links)
Definition: IWAText.cpp:83
libetonyek::IWORKToken::content
@ content
Definition: IWORKToken.h:163
libetonyek::IWAMessage::string
const IWAStringField & string(std::size_t field) const
Definition: IWAMessage.cpp:157
libetonyek::IWORKToken::position
@ position
Definition: IWORKToken.h:368
libetonyek::IWORKToken::spacing
@ spacing
Definition: IWORKToken.h:609
libetonyek::IWAParser::m_charStyles
StyleMap_t m_charStyles
Definition: IWAParser.h:212
libetonyek::IWAParser::parseDrawableShape
bool parseDrawableShape(const IWAMessage &msg, bool isConnectionLine=false)
Definition: IWAParser.cpp:1052
libetonyek::IWAParser::PageMaster
Definition: IWAParser.h:126
libetonyek::IWAParser::queryMediaStyle
const IWORKStylePtr_t queryMediaStyle(unsigned id) const
Definition: IWAParser.cpp:812
libetonyek::IWAObjectType::ShapeField
@ ShapeField
Definition: IWAObjectType.h:23
libetonyek::IWAText
Definition: IWAText.h:30
libetonyek::IWAParser::PageMaster::PageMaster
PageMaster()
Definition: IWAParser.cpp:113
libetonyek::IWAParser::ObjectMessage::m_id
const unsigned m_id
Definition: IWAParser.h:81
libetonyek::IWORK_IMAGE_TYPE_SCALE_TO_FIT
@ IWORK_IMAGE_TYPE_SCALE_TO_FIT
Definition: IWORKEnum.h:102
libetonyek::IWAParser::parseGroup
bool parseGroup(const IWAMessage &msg)
Definition: IWAParser.cpp:1283
libetonyek::IWORKFormulaPtr_t
std::shared_ptr< IWORKFormula > IWORKFormulaPtr_t
Definition: IWORKTypes.h:123
IWORKPath.h
libetonyek::IWAObjectType::PageField
@ PageField
Definition: IWAObjectType.h:37
libetonyek::IWAParser::parseLink
void parseLink(unsigned id, std::string &url)
Definition: IWAParser.cpp:2559
libetonyek::IWAParser::parseTile
void parseTile(unsigned id)
Definition: IWAParser.cpp:2297
libetonyek::IWAParser::parseArrowProperties
bool parseArrowProperties(const IWAMessage &msg, IWORKPropertyMap &props, bool headArrow)
Definition: IWAParser.cpp:929
libetonyek::IWAParser::TableInfo::m_commentList
DataList_t m_commentList
Definition: IWAParser.h:158
libetonyek::IWAMessageField::bool_
const IWABoolField & bool_(std::size_t field) const
Definition: IWAField.cpp:50
libetonyek::detail::IWAFieldImpl::repeated
const std::deque< value_type > repeated() const
Definition: IWAField.h:153
libetonyek::IWAParser::TableInfo::m_cellStyleList
DataList_t m_cellStyleList
Definition: IWAParser.h:156
libetonyek::IWORK_LABEL_NUM_FORMAT_SURROUNDING_PARENTHESIS
@ IWORK_LABEL_NUM_FORMAT_SURROUNDING_PARENTHESIS
Definition: IWORKEnum.h:138
libetonyek::IWAParser::m_graphicStyles
StyleMap_t m_graphicStyles
Definition: IWAParser.h:216
libetonyek::IWAParser::parseSectionStyle
void parseSectionStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1506
libetonyek::IWORKTextLabelFormat::m_prefix
IWORKLabelNumFormatSurrounding m_prefix
Definition: IWORKTypes.h:438
libetonyek::transformations::scale
glm::dmat3 scale(const double ratioX, const double ratioY)
Scale along x and/or y axis.
Definition: IWORKTransformation.cpp:72
libetonyek::IWORKCollector::createText
virtual std::shared_ptr< IWORKText > createText(const IWORKLanguageManager &langManager, bool discardEmptyContent=false, bool allowListInsertion=true) const
Definition: IWORKCollector.cpp:630
libetonyek::approxEqual
bool approxEqual(const IWORKPath &left, const IWORKPath &right, double eps=ETONYEK_EPSILON)
libetonyek::IWAParser::readGradient
static void readGradient(const IWAMessage &msg, IWORKGradient &gradient)
Definition: IWAParser.cpp:396
libetonyek::IWAMessage::message
const IWAMessageField & message(std::size_t field) const
Definition: IWAMessage.cpp:167
libetonyek::getLength
unsigned long getLength(const RVNGInputStreamPtr_t &input)
Definition: libetonyek_utils.cpp:184
libetonyek::IWORKPathPtr_t
std::shared_ptr< IWORKPath > IWORKPathPtr_t
Definition: IWORKPath_fwd.h:20
libetonyek::IWAObjectType::TabularModel
@ TabularModel
Definition: IWAObjectType.h:45
libetonyek::IWORKCollector::collectRoundedRectanglePath
void collectRoundedRectanglePath(const IWORKSize &size, double radius)
Definition: IWORKCollector.cpp:432
libetonyek::IWORKMarker::m_endPoint
boost::optional< IWORKPosition > m_endPoint
Definition: IWORKTypes.h:96
libetonyek::IWAObjectIndex::parse
void parse()
Definition: IWAObjectIndex.cpp:53
libetonyek::IWAParser::m_mediaStyles
StyleMap_t m_mediaStyles
Definition: IWAParser.h:217
libetonyek::IWORKLineSpacing
Definition: IWORKTypes.h:194
libetonyek::IWAMessageField::float_
const IWAFloatField & float_(std::size_t field) const
Definition: IWAField.cpp:80
libetonyek::IWORKColumns::Column
Definition: IWORKTypes.h:339
libetonyek::IWORKGradientStop
Definition: IWORKTypes.h:289
libetonyek::IWAParser::parseParagraphStyle
void parseParagraphStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1407
libetonyek::IWAParser::parseGraphicStyle
void parseGraphicStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1530
libetonyek::IWORKGridLine_t
mdds::flat_segment_tree< unsigned, IWORKStylePtr_t > IWORKGridLine_t
Definition: IWORKTypes.h:121
libetonyek::IWORKPropertyMap::put
void put(const typename IWORKPropertyInfo< Property >::ValueType &value)
Insert a new value for key key.
Definition: IWORKPropertyMap.h:134
libetonyek::IWAParser::ObjectMessage::m_parser
IWAParser & m_parser
Definition: IWAParser.h:79
libetonyek::IWAObjectType::Tile
@ Tile
Definition: IWAObjectType.h:46
libetonyek::IWAObjectType::PageMaster
@ PageMaster
Definition: IWAObjectType.h:57
libetonyek::IWAParser::parseTableHeaders
void parseTableHeaders(unsigned id, TableHeader &header)
Definition: IWAParser.cpp:2477
libetonyek::IWORKMediaContent
Definition: IWORKTypes.h:148
libetonyek::IWAParser::parseCellStyle
void parseCellStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1649
libetonyek::IWORKToken::color
@ color
Definition: IWORKToken.h:151
libetonyek::IWORK_LINE_JOIN_MITER
@ IWORK_LINE_JOIN_MITER
Definition: IWORKEnum.h:75
libetonyek::IWORK_CELL_TYPE_NUMBER
@ IWORK_CELL_TYPE_NUMBER
Definition: IWORKEnum.h:81
libetonyek::IWAObjectType::GridLines
@ GridLines
Definition: IWAObjectType.h:54
libetonyek::IWAMessage::float_
const IWAFloatField & float_(std::size_t field) const
Definition: IWAMessage.cpp:177
libetonyek::IWAParser::PageMaster::m_headerFootersSameAsPrevious
bool m_headerFootersSameAsPrevious
Definition: IWAParser.h:130
libetonyek::IWAParser::parseMediaStyle
void parseMediaStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1601
libetonyek::IWORKCollector::collectConnectionPath
void collectConnectionPath(const IWORKConnectionPath &path)
Definition: IWORKCollector.cpp:463
libetonyek::IWORKCollector::collectBezier
void collectBezier(const IWORKPathPtr_t &path)
Definition: IWORKCollector.cpp:330
libetonyek::IWAParser::parseTableStyle
void parseTableStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1732
libetonyek::IWORKToken::string
@ string
Definition: IWORKToken.h:411
libetonyek::IWORKShadow::m_opacity
double m_opacity
Definition: IWORKTypes.h:320
IWORKText.h
libetonyek::IWORKToken::pos
@ pos
Definition: IWORKToken.h:592
libetonyek::IWAParser::TableInfo::m_rows
const unsigned m_rows
Definition: IWAParser.h:148
libetonyek_utils.h
libetonyek::IWAObjectType::DataList
@ DataList
Definition: IWAObjectType.h:49
libetonyek::IWORKToken::w
@ w
Definition: IWORKToken.h:630
libetonyek::IWORKCollector::collectShape
void collectShape(const boost::optional< int > &order=boost::none, bool locked=false)
Definition: IWORKCollector.cpp:382
libetonyek::IWORKConnectionPath::m_positions
boost::optional< IWORKPosition > m_positions[3]
Definition: IWORKPath.h:93
libetonyek::IWAMessage
Definition: IWAMessage.h:21
libetonyek::IWAParser::TableInfo::m_formattedTextList
DataList_t m_formattedTextList
Definition: IWAParser.h:157
m_width
boost::optional< double > m_width
Definition: IWORKStrokeContext.cpp:229
libetonyek::IWORKToken::column
@ column
Definition: IWORKToken.h:152
libetonyek::detail::IWAFieldImpl
Definition: IWAField.h:73
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
libetonyek::IWAParser::queryObject
void queryObject(unsigned id, unsigned &type, boost::optional< IWAMessage > &msg) const
Definition: IWAParser.cpp:219
libetonyek::IWORKGradient
Definition: IWORKTypes.h:299
IWORKTypes.h
y
double y
Definition: IWORKShape.cpp:46
libetonyek::IWORK_CELL_TYPE_DATE_TIME
@ IWORK_CELL_TYPE_DATE_TIME
Definition: IWORKEnum.h:83
libetonyek::IWORKCollector
Definition: IWORKCollector.h:41
libetonyek::IWAParser::m_listStyles
StyleMap_t m_listStyles
Definition: IWAParser.h:220
libetonyek::IWORKPageMaster
Definition: IWORKTypes.h:356
libetonyek::detail::IWAFieldImpl::const_iterator
container_type::const_iterator const_iterator
Definition: IWAField.h:81
libetonyek::IWAParser::m_langManager
IWORKLanguageManager m_langManager
Definition: IWAParser.h:120
libetonyek::IWAParser::DataList_t
std::map< unsigned, boost::variant< std::string, unsigned > > DataList_t
Definition: IWAParser.h:124
libetonyek::IWORKSize
Definition: IWORKTypes.h:44
libetonyek::IWORKPageMaster::m_footer
std::string m_footer
Definition: IWORKTypes.h:361
libetonyek::IWAObjectIndex::queryObject
void queryObject(unsigned id, unsigned &type, boost::optional< IWAMessage > &msg) const
Definition: IWAObjectIndex.cpp:103
libetonyek::IWORKCollector::startGroup
void startGroup()
Definition: IWORKCollector.cpp:578
libetonyek::IWAParser::parseDataList
void parseDataList(unsigned id, DataList_t &dataList)
Definition: IWAParser.cpp:2240
libetonyek::IWAParser::queryCellStyle
const IWORKStylePtr_t queryCellStyle(unsigned id) const
Definition: IWAParser.cpp:817
libetonyek::IWORK_IMAGE_TYPE_TILE
@ IWORK_IMAGE_TYPE_TILE
Definition: IWORKEnum.h:100
libetonyek::IWAParser::parseTableGridLines
void parseTableGridLines(unsigned id, IWORKGridLineMap_t(&gridLines)[4])
Definition: IWAParser.cpp:2501
IWORKCollector.h
libetonyek::IWORKGradientStop::m_color
IWORKColor m_color
Definition: IWORKTypes.h:293
libetonyek::IWORKCellType
IWORKCellType
Definition: IWORKEnum.h:79
x
double x
Definition: IWORKShape.cpp:45
libetonyek::IWORKToken::start
@ start
Definition: IWORKToken.h:405
libetonyek::IWORK_TABULATION_LEFT
@ IWORK_TABULATION_LEFT
Definition: IWORKEnum.h:152
libetonyek::IWORKToken::tabs
@ tabs
Definition: IWORKToken.h:422
libetonyek::IWORKMediaContent::m_data
IWORKDataPtr_t m_data
Definition: IWORKTypes.h:152
libetonyek::IWORKFill
boost::variant< IWORKColor, IWORKGradient, IWORKMediaContent > IWORKFill
Definition: IWORKTypes.h:309
m_rows
const unsigned m_rows
Definition: IWORKTableRecorder.cpp:36
libetonyek::IWORKTextLabel::m_tiered
bool m_tiered
Definition: IWORKTypes.h:448
libetonyek::IWORKToken::cornerRadius
@ cornerRadius
Definition: IWORKToken.h:513
libetonyek::IWORKToken::_1
@ _1
Definition: IWORKToken.h:641
libetonyek::IWAParser::ObjectMessage::getType
unsigned getType() const
Definition: IWAParser.cpp:214
libetonyek::IWORK_IMAGE_TYPE_ORIGINAL_SIZE
@ IWORK_IMAGE_TYPE_ORIGINAL_SIZE
Definition: IWORKEnum.h:98
libetonyek::IWORKTable::CELL_TYPE_ROW_HEADER
@ CELL_TYPE_ROW_HEADER
Definition: IWORKTable.h:56
libetonyek::IWORK_IMAGE_TYPE_STRETCH
@ IWORK_IMAGE_TYPE_STRETCH
Definition: IWORKEnum.h:99
libetonyek::IWORKCollector::collectGeometry
void collectGeometry(const IWORKGeometryPtr_t &geometry)
Definition: IWORKCollector.cpp:312
IWORKOutputElements.h
libetonyek::IWORKPropertyMap
Represents a (hierarchical) property map.
Definition: IWORKPropertyMap.h:24
libetonyek::IWAText::parse
void parse(IWORKText &collector, const std::function< void(unsigned, IWORKStylePtr_t)> &openPageSpan=nullptr)
Definition: IWAText.cpp:103
libetonyek::IWORKToken::tailSize
@ tailSize
Definition: IWORKToken.h:617
libetonyek::IWORKToken::first
@ first
Definition: IWORKToken.h:524
libetonyek::IWAObjectType::TextRef
@ TextRef
Definition: IWAObjectType.h:52
libetonyek::IWORKToken::stroke
@ stroke
Definition: IWORKToken.h:412
libetonyek::IWORKCollector::collectFooter
void collectFooter(const std::string &name)
Definition: IWORKCollector.cpp:530
libetonyek::IWAParser::TableHeader::m_sizes
mdds::flat_segment_tree< unsigned, float > m_sizes
Definition: IWAParser.h:137
libetonyek::IWORKGeometryPtr_t
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:41
libetonyek::deg2rad
double deg2rad(double value)
Convert an angle from degrees to radians.
Definition: libetonyek_utils.cpp:230
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
libetonyek::IWAObjectType::MediaStyle
@ MediaStyle
Definition: IWAObjectType.h:41
libetonyek::IWORKListLevels_t
std::map< unsigned, IWORKStylePtr_t > IWORKListLevels_t
Definition: IWORKTypes.h:458
libetonyek::IWORK_GRADIENT_TYPE_RADIAL
@ IWORK_GRADIENT_TYPE_RADIAL
Definition: IWORKEnum.h:108
libetonyek::IWORKToken::offset
@ offset
Definition: IWORKToken.h:587
libetonyek::IWORKToken::s
@ s
Definition: IWORKToken.h:387
libetonyek::IWORKShadow
Definition: IWORKTypes.h:312
IWAMessage.h
libetonyek::IWORK_LABEL_NUM_FORMAT_ALPHA_LOWERCASE
@ IWORK_LABEL_NUM_FORMAT_ALPHA_LOWERCASE
Definition: IWORKEnum.h:130
libetonyek::IWORK_IMAGE_TYPE_SCALE_TO_FILL
@ IWORK_IMAGE_TYPE_SCALE_TO_FILL
Definition: IWORKEnum.h:101
libetonyek::IWORKCollector::setGraphicStyle
void setGraphicStyle(const IWORKStylePtr_t &style)
Definition: IWORKCollector.cpp:292
libetonyek::IWAParser::TableInfo::m_style
IWORKStylePtr_t m_style
Definition: IWAParser.h:150
libetonyek::IWORKToken::end
@ end
Definition: IWORKToken.h:189
libetonyek::IWORKPageMaster::m_header
std::string m_header
Definition: IWORKTypes.h:360
libetonyek::IWORKCollector::collectStarPath
void collectStarPath(const IWORKSize &size, unsigned points, double innerRadius)
Definition: IWORKCollector.cpp:454
m_id
boost::optional< ID_t > m_id
Definition: IWORKLineEndElement.cpp:34
libetonyek::IWAParser::parse
bool parse()
Definition: IWAParser.cpp:158
libetonyek::get_optional_value_or
const ValueT & get_optional_value_or(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field, const ValueT &value)
Definition: IWAField.h:196
libetonyek::KEY1Token::bullets
@ bullets
Definition: KEY1Token.h:43
libetonyek::IWAParser::parseListStyle
void parseListStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1776
libetonyek::IWORKToken::fill
@ fill
Definition: IWORKToken.h:200
libetonyek::IWAParser::operator=
IWAParser & operator=(const IWAParser &)
libetonyek::IWORKPosition
Definition: IWORKTypes.h:52
libetonyek::readU32
uint32_t readU32(const RVNGInputStreamPtr_t &input, bool bigEndian)
Definition: libetonyek_utils.cpp:76
libetonyek::IWAObjectType::DrawableShape
@ DrawableShape
Definition: IWAObjectType.h:26
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
m_type
boost::optional< IWORKGradientType > m_type
Definition: IWORKFillElement.cpp:132
libetonyek::IWORKToken::padding
@ padding
Definition: IWORKToken.h:343
libetonyek::IWAParser::parseObjectIndex
void parseObjectIndex()
Definition: IWAParser.cpp:1378
libetonyek::IWORK_LINE_JOIN_ROUND
@ IWORK_LINE_JOIN_ROUND
Definition: IWORKEnum.h:76
libetonyek::IWAParser::ObjectMessage
Definition: IWAParser.h:62
libetonyek::IWORKTable::CELL_TYPE_COLUMN_HEADER
@ CELL_TYPE_COLUMN_HEADER
Definition: IWORKTable.h:55
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
libetonyek::IWORKTextLabelFormat::m_format
IWORKLabelNumFormat m_format
Definition: IWORKTypes.h:439
libetonyek::IWAParser::queryCharacterStyle
const IWORKStylePtr_t queryCharacterStyle(unsigned id) const
Definition: IWAParser.cpp:792
libetonyek::IWAMessageField::uint32
const IWAUInt32Field & uint32(std::size_t field) const
Definition: IWAField.cpp:30
libetonyek::IWAParser::ObjectMessage::m_message
boost::optional< IWAMessage > m_message
Definition: IWAParser.h:80
libetonyek::IWAParser::readPosition
static boost::optional< IWORKPosition > readPosition(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:251
libetonyek::IWORKTextLabel
Definition: IWORKTypes.h:443
IWORKStyle_fwd.h
libetonyek::IWORKToken::grid
@ grid
Definition: IWORKToken.h:240
libetonyek::IWORK_LINE_CAP_BUTT
@ IWORK_LINE_CAP_BUTT
Definition: IWORKEnum.h:68
libetonyek::IWORKColor
Definition: IWORKTypes.h:78
libetonyek::IWORKToken::fontColor
@ fontColor
Definition: IWORKToken.h:215
libetonyek::IWAParser::m_index
IWAObjectIndex m_index
Definition: IWAParser.h:208
libetonyek::IWAMessageField::string
const IWAStringField & string(std::size_t field) const
Definition: IWAField.cpp:65
libetonyek::IWAParser::parseAttachment
bool parseAttachment(unsigned id)
Definition: IWAParser.cpp:832
libetonyek::IWAObjectType::HeadersAndFooters
@ HeadersAndFooters
Definition: IWAObjectType.h:59
libetonyek::IWORKToken::geometry
@ geometry
Definition: IWORKToken.h:232
libetonyek::IWAParser::TableHeader::m_hidden
mdds::flat_segment_tree< unsigned, bool > m_hidden
Definition: IWAParser.h:138
libetonyek::IWORKTable::CELL_TYPE_ALTERNATE_BODY
@ CELL_TYPE_ALTERNATE_BODY
Definition: IWORKTable.h:54
libetonyek::IWAParser::StyleMap_t
std::map< unsigned, IWORKStylePtr_t > StyleMap_t
Definition: IWAParser.h:86
libetonyek::IWAParser::ObjectMessage::ObjectMessage
ObjectMessage(IWAParser &parser, unsigned id, unsigned type=0)
Definition: IWAParser.cpp:164
libetonyek::IWAParser::queryStyle
const IWORKStylePtr_t queryStyle(unsigned id, StyleMap_t &styleMap, StyleParseFun_t parse) const
Definition: IWAParser.cpp:779
libetonyek::IWAParser::dispatchShape
bool dispatchShape(unsigned id)
Definition: IWAParser.cpp:453
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKMarker::m_path
boost::optional< std::string > m_path
Definition: IWORKTypes.h:95
libetonyek::IWORKToken::data
@ data
Definition: IWORKToken.h:174
libetonyek::IWORKCollector::collectText
void collectText(const std::shared_ptr< IWORKText > &text)
Definition: IWORKCollector.cpp:549
libetonyek::IWAText::setListLevels
void setListLevels(const std::map< unsigned, unsigned > &levels)
Definition: IWAText.cpp:88
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
libetonyek::IWAParser::TableInfo
Definition: IWAParser.h:141
libetonyek::IWORKShadow::m_angle
double m_angle
Definition: IWORKTypes.h:317
libetonyek::detail::IWAFieldImpl::size
std::size_t size() const override
Definition: IWAField.h:118
libetonyek::IWAParser::parseDocument
virtual bool parseDocument()=0
libetonyek::IWORKListLabelGeometry
Definition: IWORKTypes.h:422
libetonyek::IWAParser::parseCharacterStyle
void parseCharacterStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1383
m_x
boost::optional< unsigned > m_x
Definition: IWORKFormulaElement.cpp:111
libetonyek::IWORK_LABEL_NUM_FORMAT_NUMERIC
@ IWORK_LABEL_NUM_FORMAT_NUMERIC
Definition: IWORKEnum.h:128
libetonyek::IWAObjectType::Link
@ Link
Definition: IWAObjectType.h:35
libetonyek::IWORKTextLabelFormat::m_suffix
IWORKLabelNumFormatSurrounding m_suffix
Definition: IWORKTypes.h:440
libetonyek::IWAObjectIndex::queryFile
const RVNGInputStreamPtr_t queryFile(unsigned id) const
Definition: IWAObjectIndex.cpp:121
libetonyek::IWAText::setLanguages
void setLanguages(const std::map< unsigned, std::string > &langs)
Definition: IWAText.cpp:78
libetonyek::KEY1Token::gradient
@ gradient
Definition: KEY1Token.h:58
libetonyek::IWAParser::ObjectMessage::m_type
unsigned m_type
Definition: IWAParser.h:82
libetonyek::IWAParser::m_currentText
std::shared_ptr< IWORKText > m_currentText
Definition: IWAParser.h:121
PAGCollector.h
libetonyek::IWAParser::querySectionStyle
const IWORKStylePtr_t querySectionStyle(unsigned id) const
Definition: IWAParser.cpp:802
libetonyek::IWORKCollector::collectBezierPath
void collectBezierPath()
Definition: IWORKCollector.cpp:418
libetonyek::IWORKGridLineMap_t
std::map< unsigned, IWORKGridLine_t > IWORKGridLineMap_t
Definition: IWORKTypes.h:122
libetonyek::IWAObjectType::ParagraphStyle
@ ParagraphStyle
Definition: IWAObjectType.h:30
libetonyek::IWORKToken::text
@ text
Definition: IWORKToken.h:465
libetonyek::IWORKGradientStop::m_fraction
double m_fraction
Definition: IWORKTypes.h:294
libetonyek::IWAParser::parseTabularModel
void parseTabularModel(unsigned id)
Definition: IWAParser.cpp:2119
libetonyek::readU16
uint16_t readU16(const RVNGInputStreamPtr_t &input, bool bigEndian)
Definition: libetonyek_utils.cpp:60