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 IWAObjectIndex;
45 class IWORKPropertyMap;
46 class IWORKTable;
47 class IWORKText;
48
49 class IWAParser
50{
51 friend class IWAObjectIndex; // for readColor
52
53 // disable copying
54 IWAParser(const IWAParser &);
55 IWAParser &operator=(const IWAParser &);
56 public:
57 IWAParser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, IWORKCollector &collector);
58 virtual ~IWAParser()
59 {
60 }
61
62 bool parse();
63
64 protected:
65 class ObjectMessage
66 {
67 public:
68 ObjectMessage(IWAParser &parser, unsigned id, unsigned type = 0);
69 ~ObjectMessage();
70
71 operator bool() const;
72 const IWAMessage &get() const;
73
74 unsigned getType() const;
75
76 friend const IWAMessage &get(const ObjectMessage &msg)
77 {
78 return msg.get();
79 }
80
81 private:
82 IWAParser &m_parser;
83 boost::optional<IWAMessage> m_message;
84 const unsigned m_id;
85 unsigned m_type;
86 };
87 friend class ObjectMessage;
88
89 typedef std::map<unsigned, IWORKStylePtr_t> StyleMap_t;
90 typedef std::function<void(unsigned, IWORKStylePtr_t &)> StyleParseFun_t;
91
92 protected:
93 static boost::optional<unsigned> readRef(const IWAMessage &msg, unsigned field);
94 static std::deque<unsigned> readRefs(const IWAMessage &msg, unsigned field);
95 static boost::optional<IWORKPosition> readPosition(const IWAMessage &msg, unsigned field);
96 static boost::optional<IWORKSize> readSize(const IWAMessage &msg, unsigned field);
97 static boost::optional<IWORKColor> readColor(const IWAMessage &msg, unsigned field);
98 static boost::optional<std::string> readUUID(const IWAMessage &msg, unsigned field);
99 static boost::optional<uint64_t> readUID(const IWAMessage &msg, unsigned field);
100 static std::deque<uint64_t> readUIDs(const IWAMessage &msg, unsigned field);
101 static void readStroke(const IWAMessage &msg, IWORKStroke &stroke);
102 bool readFill(const IWAMessage &msg, IWORKFill &fill);
103 static void readGradient(const IWAMessage &msg, IWORKGradient &gradient);
104 static void readShadow(const IWAMessage &msg, IWORKShadow &shadow);
105 static void readPadding(const IWAMessage &msg, IWORKPadding &padding);
106
107 bool dispatchShape(unsigned id);
108 bool dispatchShapeWithMessage(const IWAMessage &msg, unsigned type);
109 bool parseText(unsigned id, bool createNoteAsFootnote=true, const std::function<void(unsigned, IWORKStylePtr_t)> &openPageSpan=nullptr);
110 void parseComment(unsigned id);
111 void parseAuthorInComment(unsigned id);
112 void parseCustomFormat(unsigned id);
113
114 virtual bool parseShapePlacement(const IWAMessage &msg, IWORKGeometryPtr_t &geometry, boost::optional<unsigned> &flags);
115 void parseMask(unsigned id, IWORKGeometryPtr_t &geometry, IWORKPathPtr_t &path);
116 void updateGeometryUsingTextRef(unsigned id, IWORKGeometry &geometry, unsigned flags);
117
118 const IWORKStylePtr_t queryCharacterStyle(unsigned id) const;
119 const IWORKStylePtr_t queryParagraphStyle(unsigned id) const;
120 const IWORKStylePtr_t querySectionStyle(unsigned id) const;
121
122 const IWORKStylePtr_t queryGraphicStyle(unsigned id) const;
123 const IWORKStylePtr_t queryMediaStyle(unsigned id) const;
124 const IWORKStylePtr_t queryCellStyle(unsigned id) const;
125 const IWORKStylePtr_t queryTableStyle(unsigned id) const;
126 const IWORKStylePtr_t queryListStyle(unsigned id) const;
127
128 const IWORKStylePtr_t queryStyle(unsigned id, StyleMap_t &styleMap, StyleParseFun_t parse) const;
129 boost::optional<unsigned> getObjectType(unsigned id) const;
130
131 protected:
132 IWORKLanguageManager m_langManager;
133 IWORKTableNameMapPtr_t m_tableNameMap;
134 std::shared_ptr<IWORKText> m_currentText;
135
136 private:
137 struct Format
138 {
139 Format();
140 boost::optional<IWORKCellType> m_type;
141 boost::variant<IWORKNumberFormat,IWORKDateTimeFormat,IWORKDurationFormat> m_format;
142 };
143
144 struct PageMaster
145 {
146 PageMaster();
147 IWORKStylePtr_t m_style;
148 bool m_headerFootersSameAsPrevious;
149 };
150
151 struct TableHeader
152 {
153 TableHeader(unsigned count, float defValue=0);
154
155 mdds::flat_segment_tree<unsigned, float> m_sizes;
156 mdds::flat_segment_tree<unsigned, bool> m_hidden;
157 };
158
159 typedef std::map<unsigned, boost::variant<std::string, unsigned, IWORKFormulaPtr_t, Format> > DataList_t;
160
161 struct TableInfo
162 {
163 TableInfo(const std::shared_ptr<IWORKTable> &table, unsigned columns, unsigned rows);
164
165 std::shared_ptr<IWORKTable> m_table;
166
167 const unsigned m_columns;
168 const unsigned m_rows;
169
170 IWORKStylePtr_t m_style;
171
172 TableHeader m_columnHeader;
173 TableHeader m_rowHeader;
174
175 DataList_t m_simpleTextList;
176 DataList_t m_cellStyleList;
177 DataList_t m_formattedTextList;
178 DataList_t m_formulaList;
179 DataList_t m_formatList;
180 DataList_t m_commentList;
181 };
182
183 private:
184 virtual bool parseDocument() = 0;
185
186 private:
187 void queryObject(unsigned id, unsigned &type, boost::optional<IWAMessage> &msg) const;
188 const RVNGInputStreamPtr_t queryFile(unsigned id) const;
189
190 void parseObjectIndex();
191
192 void parseCharacterStyle(unsigned id, IWORKStylePtr_t &style);
193 void parseParagraphStyle(unsigned id, IWORKStylePtr_t &style);
194 void parseSectionStyle(unsigned id, IWORKStylePtr_t &style);
195
196 void parseGraphicStyle(unsigned id, IWORKStylePtr_t &style);
197 void parseMediaStyle(unsigned id, IWORKStylePtr_t &style);
198 void parseCellStyle(unsigned id, IWORKStylePtr_t &style);
199 void parseTableStyle(unsigned id, IWORKStylePtr_t &style);
200 void parseListStyle(unsigned id, IWORKStylePtr_t &style);
201
202 void parseHeaderAndFooter(unsigned id, IWORKPageMaster &hf);
203 void parsePageMaster(unsigned id, PageMaster &pageMaster);
204
205 void parseTabularModel(unsigned id);
206 void parseDataList(unsigned id, DataList_t &dataList);
207 void parseTile(unsigned id);
208 void parseTableHeaders(unsigned id, TableHeader &header);
209 void parseTableGridLines(unsigned id, IWORKGridLineMap_t (&gridLines)[4]);
210 void parseTableGridLine(unsigned id, IWORKGridLineMap_t &gridLines);
211 void parseLink(unsigned id, std::string &url);
212
213 bool parseAttachment(unsigned id);
214 bool parseDrawableShape(const IWAMessage &msg, bool isConnectionLine=false);
215 bool parseGroup(const IWAMessage &msg);
216 bool parseShapePlacement(const IWAMessage &msg);
217 bool parseImage(const IWAMessage &msg);
218 bool parseTabularInfo(const IWAMessage &msg);
219 bool parsePath(const IWAMessage &msg, IWORKPathPtr_t &path);
220 bool parseFormula(const IWAMessage &msg, IWORKFormulaPtr_t &formula);
221 bool parseFormat(const IWAMessage &msg, Format &format);
222 virtual bool parseStickyNote(const IWAMessage &msg);
223
224 bool parseArrowProperties(const IWAMessage &msg, IWORKPropertyMap &props, bool headArrow);
225 void parseCharacterProperties(const IWAMessage &msg, IWORKPropertyMap &props);
226 void parseColumnsProperties(const IWAMessage &msg, IWORKPropertyMap &props);
227
228 private:
229 IWORKCollector &m_collector;
230
231 IWAObjectIndex m_index;
232
233 std::deque<unsigned> m_visited;
234
235 mutable StyleMap_t m_charStyles;
236 mutable StyleMap_t m_paraStyles;
237 mutable StyleMap_t m_sectionStyles;
238
239 mutable StyleMap_t m_graphicStyles;
240 mutable StyleMap_t m_mediaStyles;
241 mutable StyleMap_t m_cellStyles;
242 mutable StyleMap_t m_tableStyles;
243 mutable StyleMap_t m_listStyles;
244
245 std::shared_ptr<TableInfo> m_currentTable;
246 std::map<uint64_t,Format> m_uidFormatMap;
247};
248
249}
250
251#endif
252
253/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWAMessage.h
IWAObjectIndex.h
IWORKLanguageManager.h
IWORKOutputElements.h
IWORKStyle_fwd.h
IWORKTypes.h
libetonyek::IWAMessage
Definition: IWAMessage.h:22
libetonyek::IWAObjectIndex
Definition: IWAObjectIndex.h:27
libetonyek::IWAParser::ObjectMessage
Definition: IWAParser.h:66
libetonyek::IWAParser::ObjectMessage::m_message
boost::optional< IWAMessage > m_message
Definition: IWAParser.h:83
libetonyek::IWAParser::ObjectMessage::get
friend const IWAMessage & get(const ObjectMessage &msg)
Definition: IWAParser.h:76
libetonyek::IWAParser::ObjectMessage::m_id
const unsigned m_id
Definition: IWAParser.h:84
libetonyek::IWAParser::ObjectMessage::getType
unsigned getType() const
Definition: IWAParser.cpp:225
libetonyek::IWAParser::ObjectMessage::m_type
unsigned m_type
Definition: IWAParser.h:85
libetonyek::IWAParser::ObjectMessage::~ObjectMessage
~ObjectMessage()
Definition: IWAParser.cpp:205
libetonyek::IWAParser::ObjectMessage::m_parser
IWAParser & m_parser
Definition: IWAParser.h:82
libetonyek::IWAParser::ObjectMessage::get
const IWAMessage & get() const
Definition: IWAParser.cpp:220
libetonyek::IWAParser
Definition: IWAParser.h:50
libetonyek::IWAParser::querySectionStyle
const IWORKStylePtr_t querySectionStyle(unsigned id) const
Definition: IWAParser.cpp:960
libetonyek::IWAParser::m_cellStyles
StyleMap_t m_cellStyles
Definition: IWAParser.h:241
libetonyek::IWAParser::parseTabularModel
void parseTabularModel(unsigned id)
Definition: IWAParser.cpp:2412
libetonyek::IWAParser::parseTableGridLine
void parseTableGridLine(unsigned id, IWORKGridLineMap_t &gridLines)
Definition: IWAParser.cpp:2944
libetonyek::IWAParser::parseDataList
void parseDataList(unsigned id, DataList_t &dataList)
Definition: IWAParser.cpp:2561
libetonyek::IWAParser::parseCharacterProperties
void parseCharacterProperties(const IWAMessage &msg, IWORKPropertyMap &props)
Definition: IWAParser.cpp:2130
libetonyek::IWAParser::parseTile
void parseTile(unsigned id)
Definition: IWAParser.cpp:2651
libetonyek::IWAParser::queryObject
void queryObject(unsigned id, unsigned &type, boost::optional< IWAMessage > &msg) const
Definition: IWAParser.cpp:230
libetonyek::IWAParser::m_currentTable
std::shared_ptr< TableInfo > m_currentTable
Definition: IWAParser.h:245
libetonyek::IWAParser::parseTableStyle
void parseTableStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1929
libetonyek::IWAParser::DataList_t
std::map< unsigned, boost::variant< std::string, unsigned, IWORKFormulaPtr_t, Format > > DataList_t
Definition: IWAParser.h:159
libetonyek::IWAParser::parseFormula
bool parseFormula(const IWAMessage &msg, IWORKFormulaPtr_t &formula)
Definition: IWAParser.cpp:3119
libetonyek::IWAParser::queryMediaStyle
const IWORKStylePtr_t queryMediaStyle(unsigned id) const
Definition: IWAParser.cpp:970
libetonyek::IWAParser::m_currentText
std::shared_ptr< IWORKText > m_currentText
Definition: IWAParser.h:134
libetonyek::IWAParser::parseColumnsProperties
void parseColumnsProperties(const IWAMessage &msg, IWORKPropertyMap &props)
Definition: IWAParser.cpp:2170
libetonyek::IWAParser::parseAuthorInComment
void parseAuthorInComment(unsigned id)
Definition: IWAParser.cpp:2342
libetonyek::IWAParser::parseGroup
bool parseGroup(const IWAMessage &msg)
Definition: IWAParser.cpp:1487
libetonyek::IWAParser::m_langManager
IWORKLanguageManager m_langManager
Definition: IWAParser.h:132
libetonyek::IWAParser::StyleMap_t
std::map< unsigned, IWORKStylePtr_t > StyleMap_t
Definition: IWAParser.h:89
libetonyek::IWAParser::parseImage
bool parseImage(const IWAMessage &msg)
Definition: IWAParser.cpp:2288
libetonyek::IWAParser::updateGeometryUsingTextRef
void updateGeometryUsingTextRef(unsigned id, IWORKGeometry &geometry, unsigned flags)
Definition: IWAParser.cpp:579
libetonyek::IWAParser::m_graphicStyles
StyleMap_t m_graphicStyles
Definition: IWAParser.h:239
libetonyek::IWAParser::queryStyle
const IWORKStylePtr_t queryStyle(unsigned id, StyleMap_t &styleMap, StyleParseFun_t parse) const
Definition: IWAParser.cpp:937
libetonyek::IWAParser::parseSectionStyle
void parseSectionStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1690
libetonyek::IWAParser::readRef
static boost::optional< unsigned > readRef(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:245
libetonyek::IWAParser::queryGraphicStyle
const IWORKStylePtr_t queryGraphicStyle(unsigned id) const
Definition: IWAParser.cpp:965
libetonyek::IWAParser::parseShapePlacement
virtual bool parseShapePlacement(const IWAMessage &msg, IWORKGeometryPtr_t &geometry, boost::optional< unsigned > &flags)
Definition: IWAParser.cpp:1506
libetonyek::IWAParser::parse
bool parse()
Definition: IWAParser.cpp:169
libetonyek::IWAParser::m_tableStyles
StyleMap_t m_tableStyles
Definition: IWAParser.h:242
libetonyek::IWAParser::queryTableStyle
const IWORKStylePtr_t queryTableStyle(unsigned id) const
Definition: IWAParser.cpp:980
libetonyek::IWAParser::parseText
bool parseText(unsigned id, bool createNoteAsFootnote=true, const std::function< void(unsigned, IWORKStylePtr_t)> &openPageSpan=nullptr)
Definition: IWAParser.cpp:633
libetonyek::IWAParser::parseTableGridLines
void parseTableGridLines(unsigned id, IWORKGridLineMap_t(&gridLines)[4])
Definition: IWAParser.cpp:2922
libetonyek::IWAParser::~IWAParser
virtual ~IWAParser()
Definition: IWAParser.h:58
libetonyek::IWAParser::m_mediaStyles
StyleMap_t m_mediaStyles
Definition: IWAParser.h:240
libetonyek::IWAParser::parseHeaderAndFooter
void parseHeaderAndFooter(unsigned id, IWORKPageMaster &hf)
Definition: IWAParser.cpp:2251
libetonyek::IWAParser::parseCellStyle
void parseCellStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1846
libetonyek::IWAParser::queryCharacterStyle
const IWORKStylePtr_t queryCharacterStyle(unsigned id) const
Definition: IWAParser.cpp:950
libetonyek::IWAParser::readColor
static boost::optional< IWORKColor > readColor(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:289
libetonyek::IWAParser::readFill
bool readFill(const IWAMessage &msg, IWORKFill &fill)
Definition: IWAParser.cpp:424
libetonyek::IWAParser::m_paraStyles
StyleMap_t m_paraStyles
Definition: IWAParser.h:236
libetonyek::IWAParser::readPadding
static void readPadding(const IWAMessage &msg, IWORKPadding &padding)
Definition: IWAParser.cpp:534
libetonyek::IWAParser::m_sectionStyles
StyleMap_t m_sectionStyles
Definition: IWAParser.h:237
libetonyek::IWAParser::StyleParseFun_t
std::function< void(unsigned, IWORKStylePtr_t &)> StyleParseFun_t
Definition: IWAParser.h:90
libetonyek::IWAParser::parseParagraphStyle
void parseParagraphStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1591
libetonyek::IWAParser::queryFile
const RVNGInputStreamPtr_t queryFile(unsigned id) const
Definition: IWAParser.cpp:240
libetonyek::IWAParser::readStroke
static void readStroke(const IWAMessage &msg, IWORKStroke &stroke)
Definition: IWAParser.cpp:357
libetonyek::IWAParser::dispatchShapeWithMessage
bool dispatchShapeWithMessage(const IWAMessage &msg, unsigned type)
Definition: IWAParser.cpp:550
libetonyek::IWAParser::getObjectType
boost::optional< unsigned > getObjectType(unsigned id) const
Definition: IWAParser.cpp:235
libetonyek::IWAParser::queryParagraphStyle
const IWORKStylePtr_t queryParagraphStyle(unsigned id) const
Definition: IWAParser.cpp:955
libetonyek::IWAParser::parseTabularInfo
bool parseTabularInfo(const IWAMessage &msg)
Definition: IWAParser.cpp:2400
libetonyek::IWAParser::readUUID
static boost::optional< std::string > readUUID(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:322
libetonyek::IWAParser::parseLink
void parseLink(unsigned id, std::string &url)
Definition: IWAParser.cpp:3412
libetonyek::IWAParser::queryListStyle
const IWORKStylePtr_t queryListStyle(unsigned id) const
Definition: IWAParser.cpp:985
libetonyek::IWAParser::readRefs
static std::deque< unsigned > readRefs(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:252
libetonyek::IWAParser::parseDrawableShape
bool parseDrawableShape(const IWAMessage &msg, bool isConnectionLine=false)
Definition: IWAParser.cpp:1216
libetonyek::IWAParser::readUID
static boost::optional< uint64_t > readUID(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:300
libetonyek::IWAParser::m_index
IWAObjectIndex m_index
Definition: IWAParser.h:231
libetonyek::IWAParser::readPosition
static boost::optional< IWORKPosition > readPosition(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:267
libetonyek::IWAParser::parsePageMaster
void parsePageMaster(unsigned id, PageMaster &pageMaster)
Definition: IWAParser.cpp:2213
libetonyek::IWAParser::queryCellStyle
const IWORKStylePtr_t queryCellStyle(unsigned id) const
Definition: IWAParser.cpp:975
libetonyek::IWAParser::parseMediaStyle
void parseMediaStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1806
libetonyek::IWAParser::dispatchShape
bool dispatchShape(unsigned id)
Definition: IWAParser.cpp:542
libetonyek::IWAParser::operator=
IWAParser & operator=(const IWAParser &)
libetonyek::IWAParser::m_visited
std::deque< unsigned > m_visited
Definition: IWAParser.h:233
libetonyek::IWAParser::parseFormat
bool parseFormat(const IWAMessage &msg, Format &format)
Definition: IWAParser.cpp:2980
libetonyek::IWAParser::parseTableHeaders
void parseTableHeaders(unsigned id, TableHeader &header)
Definition: IWAParser.cpp:2898
libetonyek::IWAParser::readUIDs
static std::deque< uint64_t > readUIDs(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:310
libetonyek::IWAParser::parseAttachment
bool parseAttachment(unsigned id)
Definition: IWAParser.cpp:990
libetonyek::IWAParser::parseArrowProperties
bool parseArrowProperties(const IWAMessage &msg, IWORKPropertyMap &props, bool headArrow)
Definition: IWAParser.cpp:1087
libetonyek::IWAParser::parseCustomFormat
void parseCustomFormat(unsigned id)
Definition: IWAParser.cpp:3093
libetonyek::IWAParser::parseGraphicStyle
void parseGraphicStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1714
libetonyek::IWAParser::readShadow
static void readShadow(const IWAMessage &msg, IWORKShadow &shadow)
Definition: IWAParser.cpp:516
libetonyek::IWAParser::parseMask
void parseMask(unsigned id, IWORKGeometryPtr_t &geometry, IWORKPathPtr_t &path)
Definition: IWAParser.cpp:1549
libetonyek::IWAParser::parsePath
bool parsePath(const IWAMessage &msg, IWORKPathPtr_t &path)
Definition: IWAParser.cpp:1120
libetonyek::IWAParser::parseListStyle
void parseListStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1973
libetonyek::IWAParser::parseObjectIndex
void parseObjectIndex()
Definition: IWAParser.cpp:1562
libetonyek::IWAParser::parseComment
void parseComment(unsigned id)
Definition: IWAParser.cpp:2367
libetonyek::IWAParser::parseStickyNote
virtual bool parseStickyNote(const IWAMessage &msg)
Definition: IWAParser.cpp:1210
libetonyek::IWAParser::readGradient
static void readGradient(const IWAMessage &msg, IWORKGradient &gradient)
Definition: IWAParser.cpp:483
libetonyek::IWAParser::readSize
static boost::optional< IWORKSize > readSize(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:278
libetonyek::IWAParser::m_tableNameMap
IWORKTableNameMapPtr_t m_tableNameMap
Definition: IWAParser.h:133
libetonyek::IWAParser::IWAParser
IWAParser(const IWAParser &)
libetonyek::IWAParser::m_charStyles
StyleMap_t m_charStyles
Definition: IWAParser.h:235
libetonyek::IWAParser::m_listStyles
StyleMap_t m_listStyles
Definition: IWAParser.h:243
libetonyek::IWAParser::parseCharacterStyle
void parseCharacterStyle(unsigned id, IWORKStylePtr_t &style)
Definition: IWAParser.cpp:1567
libetonyek::IWAParser::parseDocument
virtual bool parseDocument()=0
libetonyek::IWAParser::m_uidFormatMap
std::map< uint64_t, Format > m_uidFormatMap
Definition: IWAParser.h:246
libetonyek::IWAParser::m_collector
IWORKCollector & m_collector
Definition: IWAParser.h:229
libetonyek::IWORKCollector
Definition: IWORKCollector.h:42
libetonyek::IWORKLanguageManager
Definition: IWORKLanguageManager.h:24
libetonyek::IWORKPropertyMap
Represents a (hierarchical) property map.
Definition: IWORKPropertyMap.h:25
libetonyek_utils.h
libetonyek
Definition: IWORKBezierElement.cpp:21
libetonyek::IWORKFill
boost::variant< IWORKColor, IWORKGradient, IWORKMediaContent > IWORKFill
Definition: IWORKTypes.h:309
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
libetonyek::IWORKGridLineMap_t
std::map< unsigned, IWORKGridLine_t > IWORKGridLineMap_t
Definition: IWORKTypes.h:122
libetonyek::IWORKPathPtr_t
std::shared_ptr< IWORKPath > IWORKPathPtr_t
Definition: IWORKPath_fwd.h:22
libetonyek::IWORKFormulaPtr_t
std::shared_ptr< IWORKFormula > IWORKFormulaPtr_t
Definition: IWORKTypes.h:123
libetonyek::IWORKGeometryPtr_t
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:43
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:23
libetonyek::IWORKTableNameMapPtr_t
std::shared_ptr< IWORKTableNameMap_t > IWORKTableNameMapPtr_t
Definition: IWORKTypes_fwd.h:34
libetonyek::IWAParser::Format
Definition: IWAParser.h:138
libetonyek::IWAParser::Format::Format
Format()
Definition: IWAParser.cpp:115
libetonyek::IWAParser::Format::m_type
boost::optional< IWORKCellType > m_type
Definition: IWAParser.h:140
libetonyek::IWAParser::Format::m_format
boost::variant< IWORKNumberFormat, IWORKDateTimeFormat, IWORKDurationFormat > m_format
Definition: IWAParser.h:141
libetonyek::IWAParser::PageMaster
Definition: IWAParser.h:145
libetonyek::IWAParser::PageMaster::PageMaster
PageMaster()
Definition: IWAParser.cpp:121
libetonyek::IWAParser::PageMaster::m_headerFootersSameAsPrevious
bool m_headerFootersSameAsPrevious
Definition: IWAParser.h:148
libetonyek::IWAParser::PageMaster::m_style
IWORKStylePtr_t m_style
Definition: IWAParser.h:147
libetonyek::IWAParser::TableHeader
Definition: IWAParser.h:152
libetonyek::IWAParser::TableHeader::m_hidden
mdds::flat_segment_tree< unsigned, bool > m_hidden
Definition: IWAParser.h:156
libetonyek::IWAParser::TableHeader::m_sizes
mdds::flat_segment_tree< unsigned, float > m_sizes
Definition: IWAParser.h:155
libetonyek::IWAParser::TableInfo
Definition: IWAParser.h:162
libetonyek::IWAParser::TableInfo::m_formatList
DataList_t m_formatList
Definition: IWAParser.h:179
libetonyek::IWAParser::TableInfo::m_simpleTextList
DataList_t m_simpleTextList
Definition: IWAParser.h:175
libetonyek::IWAParser::TableInfo::m_columnHeader
TableHeader m_columnHeader
Definition: IWAParser.h:172
libetonyek::IWAParser::TableInfo::m_formattedTextList
DataList_t m_formattedTextList
Definition: IWAParser.h:177
libetonyek::IWAParser::TableInfo::m_formulaList
DataList_t m_formulaList
Definition: IWAParser.h:178
libetonyek::IWAParser::TableInfo::m_commentList
DataList_t m_commentList
Definition: IWAParser.h:180
libetonyek::IWAParser::TableInfo::m_cellStyleList
DataList_t m_cellStyleList
Definition: IWAParser.h:176
libetonyek::IWAParser::TableInfo::m_rowHeader
TableHeader m_rowHeader
Definition: IWAParser.h:173
libetonyek::IWAParser::TableInfo::m_style
IWORKStylePtr_t m_style
Definition: IWAParser.h:170
libetonyek::IWAParser::TableInfo::m_rows
const unsigned m_rows
Definition: IWAParser.h:168
libetonyek::IWAParser::TableInfo::m_columns
const unsigned m_columns
Definition: IWAParser.h:167
libetonyek::IWAParser::TableInfo::m_table
std::shared_ptr< IWORKTable > m_table
Definition: IWAParser.h:165
libetonyek::IWORKGeometry
Definition: IWORKTypes.h:62
libetonyek::IWORKGradient
Definition: IWORKTypes.h:300
libetonyek::IWORKPadding
Definition: IWORKTypes.h:100
libetonyek::IWORKPageMaster
Definition: IWORKTypes.h:358
libetonyek::IWORKShadow
Definition: IWORKTypes.h:313
libetonyek::IWORKStroke
Definition: IWORKTypes.h:278