RagTime5Document.hxx Source File documentation

RagTime5Document.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33
34 #ifndef RAGTIME_5_DOCUMENT
35 # define RAGTIME_5_DOCUMENT
36
37 #include <map>
38 #include <string>
39 #include <set>
40 #include <vector>
41
42 #include "MWAWDebug.hxx"
43 #include "MWAWInputStream.hxx"
44
45 #include "MWAWParser.hxx"
46
47 #include "RagTime5StructManager.hxx"
48 #include "RagTime5ClusterManager.hxx"
49
50 namespace RagTime5DocumentInternal
51 {
52 struct DocInfoFieldParser;
53 struct State;
54 class SubDocument;
55 }
56
57 class RagTime5Chart;
58 class RagTime5Formula;
59 class RagTime5Graph;
60 class RagTime5Layout;
61 class RagTime5Parser;
62 class RagTime5Pipeline;
63 class RagTime5SSParser;
64 class RagTime5Spreadsheet;
65 class RagTime5StructManager;
66 class RagTime5StyleManager;
67 class RagTime5Text;
68 class RagTime5Zone;
69 class RagTime5ClusterManager;
70
76 class RagTime5Document
77 {
78 friend class RagTime5Chart;
79 friend class RagTime5Formula;
80 friend class RagTime5Graph;
81 friend class RagTime5Layout;
82 friend class RagTime5Parser;
83 friend class RagTime5Pipeline;
84 friend class RagTime5Spreadsheet;
85 friend class RagTime5SSParser;
86 friend class RagTime5StructManager;
87 friend class RagTime5Text;
88 friend class RagTime5ClusterManager;
89 friend struct RagTime5DocumentInternal::DocInfoFieldParser;
90 friend class RagTime5StyleManager;
91 friend class RagTime5DocumentInternal::SubDocument;
92
93 public:
95 explicit RagTime5Document(MWAWParser &parser);
97 ~RagTime5Document();
98
100 bool checkHeader(MWAWHeader *header, bool strict=false);
102 MWAWParser &getMainParser()
103 {
104 return *m_parser;
105 }
106
107 protected:
109 void init();
110
111 //
112 // interface
113 //
114
116 int numPages() const;
118 void updatePageSpanList(std::vector<MWAWPageSpan> &spanList);
120 librevenge::RVNGPropertyList getDocumentMetaData() const;
122 MWAWParserStatePtr getParserState()
123 {
124 return m_parserState;
125 }
127 int version() const;
129 void setVersion(int vers);
130
132 libmwaw::DebugFile &ascii()
133 {
134 return getParserState()->m_asciiFile;
135 }
136
138 std::shared_ptr<RagTime5Zone> getDataZone(int dataId) const;
140 RagTime5ClusterManager::Cluster::Type getClusterType(int zId) const;
142 RagTime5ClusterManager::Cluster::Type getPipelineContainerType(int pipelineId) const;
143
145 std::shared_ptr<RagTime5ClusterManager> getClusterManager();
147 std::shared_ptr<RagTime5StructManager> getStructManager();
149 std::shared_ptr<RagTime5StyleManager> getStyleManager();
151 std::shared_ptr<RagTime5Formula> getFormulaParser();
153 std::shared_ptr<RagTime5Graph> getGraphParser();
155 std::shared_ptr<RagTime5Spreadsheet> getSpreadsheetParser();
156
158 std::shared_ptr<RagTime5ClusterManager::Cluster> readButtonCluster(RagTime5Zone &zone, int zoneType);
160 std::shared_ptr<RagTime5ClusterManager::Cluster> readChartCluster(RagTime5Zone &zone, int zoneType);
162 std::shared_ptr<RagTime5ClusterManager::Cluster> readGraphicCluster(RagTime5Zone &zone, int zoneType);
164 std::shared_ptr<RagTime5ClusterManager::Cluster> readLayoutCluster(RagTime5Zone &zone, int zoneType);
166 std::shared_ptr<RagTime5ClusterManager::Cluster> readPipelineCluster(RagTime5Zone &zone, int zoneType);
168 std::shared_ptr<RagTime5ClusterManager::Cluster> readPictureCluster(RagTime5Zone &zone, int zoneType);
170 std::shared_ptr<RagTime5ClusterManager::Cluster> readSpreadsheetCluster(RagTime5Zone &zone, int zoneType);
172 std::shared_ptr<RagTime5ClusterManager::Cluster> readTextCluster(RagTime5Zone &zone, int zoneType);
173
175 bool sendZones(MWAWListenerPtr listener);
177 bool sendSpreadsheet(MWAWListenerPtr listener);
179 bool send(int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0, int cellId=0, double totalWidth=-1);
181 bool sendButtonZoneAsText(MWAWListenerPtr listener, int buttonId);
183 void newPage(int number, bool softBreak);
184
186 bool createZones();
188 bool findZones(MWAWEntry const &entry);
190 bool findZonesKind();
192 bool updateZone(std::shared_ptr<RagTime5Zone> &zone);
194 bool updateZoneInput(RagTime5Zone &zone);
196 bool readZoneData(RagTime5Zone &zone);
198 bool unpackZone(RagTime5Zone &zone, MWAWEntry const &entry, std::vector<unsigned char> &data);
200 bool unpackZone(RagTime5Zone &zone);
201
203 bool useMainZoneInfoData();
205 bool parseMainZoneInfoData(RagTime5Zone const &zone);
206
208 bool checkIsSpreadsheet();
209
211 bool readClusterZone(RagTime5Zone &zone, int type=-1);
213 bool readClusterLinkList(RagTime5Zone &zone,
214 RagTime5ClusterManager::Link const &link,
215 std::vector<RagTime5StructManager::ZoneLink> &listLinks);
217 bool readClusterLinkList(RagTime5ClusterManager::Link const &link,
218 std::vector<RagTime5StructManager::ZoneLink> &list, std::string const &name="");
219
221 bool readString(RagTime5Zone &zone, std::string &string);
223 bool readUnicodeString(RagTime5Zone &zone, std::string const &what="");
225 bool readLongListWithSize(int dataId, int fSz, std::vector<long> &list, std::string const &zoneName="");
227 bool readPositions(int posId, std::vector<long> &listPosition);
229 bool readLongList(RagTime5ClusterManager::Link const &link, std::vector<long> &list);
231 bool readUnicodeStringList(RagTime5ClusterManager::NameLink const &link, std::map<int, librevenge::RVNGString> &idToStringMap);
232
234 bool readDocumentVersion(RagTime5Zone &zone);
236 bool readClusterRootData(RagTime5ClusterManager::ClusterRoot &cluster);
238 bool readDocInfoClusterData(RagTime5Zone &zone, MWAWEntry const &entry);
240 bool readScriptComment(RagTime5Zone &zone);
242 bool readClusterGProp(RagTime5ClusterManager::Cluster &cluster);
244 bool readUnknownClusterCData(RagTime5ClusterManager::Cluster &cluster);
245
247 bool readStructZone(RagTime5ClusterManager::Link const &link, RagTime5StructManager::FieldParser &parser, int headerSz, RagTime5ClusterManager::NameLink *nameLink=nullptr);
249 bool readStructData(RagTime5Zone &zone, long endPos, int n, int headerSz,
250 RagTime5StructManager::FieldParser &parser, librevenge::RVNGString const &dataName);
251
253 bool readListZone(RagTime5ClusterManager::Link const &link);
255 bool readListZone(RagTime5ClusterManager::Link const &link, RagTime5StructManager::DataParser &parser);
257 bool readFixedSizeZone(RagTime5ClusterManager::Link const &link, std::string const &name);
259 bool readFixedSizeZone(RagTime5ClusterManager::Link const &link, RagTime5StructManager::DataParser &parser);
260
262 bool readChildList(RagTime5ClusterManager::Link const &link, std::vector<RagTime5StructManager::ZoneLink> &childList, bool findN=false);
264 bool checkClusterList(std::vector<RagTime5StructManager::ZoneLink> const &list);
266 bool checkClusterList(std::vector<int> const &list);
268 void flushExtra(MWAWListenerPtr listener, bool onlyCheck=false);
269
270 protected:
271 //
272 // data
273 //
275 MWAWParser *m_parser;
277 std::shared_ptr<MWAWParserState> m_parserState;
279 std::shared_ptr<RagTime5DocumentInternal::State> m_state;
281 std::shared_ptr<RagTime5Chart> m_chartParser;
283 std::shared_ptr<RagTime5Formula> m_formulaParser;
285 std::shared_ptr<RagTime5Graph> m_graphParser;
287 std::shared_ptr<RagTime5Layout> m_layoutParser;
289 std::shared_ptr<RagTime5Pipeline> m_pipelineParser;
291 std::shared_ptr<RagTime5Spreadsheet> m_spreadsheetParser;
293 std::shared_ptr<RagTime5Text> m_textParser;
294
296 std::shared_ptr<RagTime5ClusterManager> m_clusterManager;
298 std::shared_ptr<RagTime5StructManager> m_structManager;
300 std::shared_ptr<RagTime5StyleManager> m_styleManager;
301
302 //
303 // the callback
304 //
305
307 typedef void (MWAWParser::* NewPage)(int page, bool softBreak);
309 typedef void (MWAWParser::* SendFootnote)(int zoneId);
310
312 NewPage m_newPage;
314 SendFootnote m_sendFootnote;
315 private:
316 RagTime5Document(RagTime5Document const &)=delete;
317 RagTime5Document &operator=(RagTime5Document const &)=delete;
318
319 };
320 #endif
321 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
RagTime5Document::readDocInfoClusterData
bool readDocInfoClusterData(RagTime5Zone &zone, MWAWEntry const &entry)
try to read the main doc info cluster data
Definition: RagTime5Document.cxx:1296
RagTime5ClusterManager::Link::m_ids
std::vector< int > m_ids
the data ids
Definition: RagTime5ClusterManager.hxx:210
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
RagTime5Document::readStructData
bool readStructData(RagTime5Zone &zone, long endPos, int n, int headerSz, RagTime5StructManager::FieldParser &parser, librevenge::RVNGString const &dataName)
try to read a data in a structured zone
Definition: RagTime5Document.cxx:1817
RagTime5Zone::m_isParsed
bool m_isParsed
a flag to know if the zone is parsed
Definition: RagTime5StructManager.hxx:152
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
RagTime5Document::readPositions
bool readPositions(int posId, std::vector< long > &listPosition)
try to read a positions zone in data
Definition: RagTime5Document.cxx:923
RagTime5DocumentInternal::State::m_footerHeight
int m_footerHeight
the footer height if known
Definition: RagTime5Document.cxx:300
RagTime5ClusterManager::NameLink::m_posToNames
std::vector< long > m_posToNames[2]
for unicode list field ids and field id to name
Definition: RagTime5ClusterManager.hxx:251
RagTime5Zone::setInput
void setInput(MWAWInputStreamPtr const &input)
reset the current input
Definition: RagTime5StructManager.hxx:99
RagTime5ClusterManager::NameLink::m_ids
std::vector< int > m_ids
the data ids
Definition: RagTime5ClusterManager.hxx:245
RagTime5Document::readGraphicCluster
std::shared_ptr< RagTime5ClusterManager::Cluster > readGraphicCluster(RagTime5Zone &zone, int zoneType)
try to read a graphic cluster (via the graphic manager)
Definition: RagTime5Document.cxx:435
RagTime5Document::getGraphParser
std::shared_ptr< RagTime5Graph > getGraphParser()
returns the graphic parser
Definition: RagTime5Document.cxx:415
RagTime5DocumentInternal::State::m_zonesList
std::vector< std::shared_ptr< RagTime5Zone > > m_zonesList
the zone list
Definition: RagTime5Document.cxx:278
RagTime5Document::m_parserState
std::shared_ptr< MWAWParserState > m_parserState
the parser state
Definition: RagTime5Document.hxx:277
RagTime5ClusterManager::Cluster::C_GroupZone
@ C_GroupZone
Definition: RagTime5ClusterManager.hxx:270
RagTime5Document::~RagTime5Document
~RagTime5Document()
destructor
Definition: RagTime5Document.cxx:330
RagTime5Document::readLayoutCluster
std::shared_ptr< RagTime5ClusterManager::Cluster > readLayoutCluster(RagTime5Zone &zone, int zoneType)
try to read a layout cluster (via the layout manager)
Definition: RagTime5Document.cxx:440
RagTime5Document::sendSpreadsheet
bool sendSpreadsheet(MWAWListenerPtr listener)
try to send the spreadsheet (assuming there is only one spreadsheet)
Definition: RagTime5Document.cxx:2595
RagTime5ClusterManager::Link::L_ClusterLink
@ L_ClusterLink
Definition: RagTime5ClusterManager.hxx:115
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
MWAWDocument::MWAW_K_SPREADSHEET
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
RagTime5ClusterManager::ClusterRoot::m_functionNameLink
Link m_functionNameLink
the function name links
Definition: RagTime5ClusterManager.hxx:356
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
RagTime5Zone::setAsciiFileName
void setAsciiFileName(std::string const &name)
defines the ascii name
Definition: RagTime5StructManager.hxx:116
RagTime5Document::RagTime5Text
friend class RagTime5Text
Definition: RagTime5Document.hxx:87
RagTime5ClusterManager::Cluster::C_Sound
@ C_Sound
Definition: RagTime5ClusterManager.hxx:265
RagTime5Document::RagTime5Chart
friend class RagTime5Chart
Definition: RagTime5Document.hxx:78
RagTime5Zone::m_defPosition
long m_defPosition
the position of the definition in the main zones
Definition: RagTime5StructManager.hxx:130
RagTime5ClusterManager::Cluster::C_FormatStyles
@ C_FormatStyles
Definition: RagTime5ClusterManager.hxx:272
RagTime5ClusterManager::Cluster::C_Pipeline
@ C_Pipeline
Definition: RagTime5ClusterManager.hxx:264
RagTime5StructManager::DataParser::parseData
virtual bool parseData(MWAWInputStreamPtr &, long, RagTime5Zone &, int, libmwaw::DebugStream &)
parse a data
Definition: RagTime5StructManager.hxx:414
RagTime5DocumentInternal::State::m_version
int m_version
the document version
Definition: RagTime5Document.cxx:274
RagTime5ClusterManager::Cluster::C_ClusterC
@ C_ClusterC
Definition: RagTime5ClusterManager.hxx:274
RagTime5Spreadsheet
the main class to read the spreadsheet part of RagTime 56 file
Definition: RagTime5Spreadsheet.hxx:77
RagTime5Zone::m_kinds
std::string m_kinds[2]
the zone types: normal and packing
Definition: RagTime5StructManager.hxx:132
MWAWInputStream
Internal class used to read the file stream Internal class used to read the file stream,...
Definition: MWAWInputStream.hxx:53
RagTime5StructManager.hxx
RagTime5StructManager::Field::T_Unstructured
@ T_Unstructured
Definition: RagTime5StructManager.hxx:245
RagTime5Spreadsheet.hxx
RagTime5DocumentInternal::State::m_dataIdZoneMap
std::map< int, std::shared_ptr< RagTime5Zone > > m_dataIdZoneMap
a map: data id->entry (datafork)
Definition: RagTime5Document.cxx:290
RagTime5Parser
the main class to parse a RagTime 5-6 file
Definition: RagTime5Parser.hxx:65
RagTime5ClusterManager::Link::L_UnicodeList
@ L_UnicodeList
Definition: RagTime5ClusterManager.hxx:116
RagTime5Document::RagTime5Document
RagTime5Document(MWAWParser &parser)
constructor
Definition: RagTime5Document.cxx:309
RagTime5Document::RagTime5StructManager
friend class RagTime5StructManager
Definition: RagTime5Document.hxx:86
RagTime5Zone::ascii
libmwaw::DebugFile & ascii()
returns the current ascii file
Definition: RagTime5StructManager.hxx:109
RagTime5StructManager::FieldParser::m_regroupFields
bool m_regroupFields
a flag use to decide if we output one debug message by field or not
Definition: RagTime5StructManager.hxx:387
RagTime5Document::RagTime5Layout
friend class RagTime5Layout
Definition: RagTime5Document.hxx:81
RagTime5Document::NewPage
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: RagTime5Document.hxx:307
RagTime5StructManager::Field
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:242
RagTime5Document::checkClusterList
bool checkClusterList(std::vector< RagTime5StructManager::ZoneLink > const &list)
check a cluster list
Definition: RagTime5Document.cxx:1117
RagTime5Document::readZoneData
bool readZoneData(RagTime5Zone &zone)
try to read the zone data
Definition: RagTime5Document.cxx:679
RagTime5Document::readString
bool readString(RagTime5Zone &zone, std::string &string)
try to read a string zone ( zone with id1=21,id2=23:24)
Definition: RagTime5Document.cxx:787
RagTime5DocumentInternal::IndexUnicodeParser::m_idToStringMap
std::map< int, librevenge::RVNGString > m_idToStringMap
the data
Definition: RagTime5Document.cxx:159
RagTime5DocumentInternal::ClustListParser::m_fieldSize
int m_fieldSize
the field size
Definition: RagTime5Document.cxx:232
RagTime5Document::createZones
bool createZones()
finds the different objects zones
Definition: RagTime5Document.cxx:500
RagTime5DocumentInternal::IndexUnicodeParser::~IndexUnicodeParser
~IndexUnicodeParser() final
destructor
Definition: RagTime5Document.cxx:164
RagTime5Chart.hxx
RagTime5DocumentInternal::State::m_pageZonesIdMap
std::map< int, std::vector< int > > m_pageZonesIdMap
a map: page->main zone id
Definition: RagTime5Document.cxx:292
RagTime5Document::m_structManager
std::shared_ptr< RagTime5StructManager > m_structManager
the structure manager
Definition: RagTime5Document.hxx:298
RagTime5Document::readLongList
bool readLongList(RagTime5ClusterManager::Link const &link, std::vector< long > &list)
try to read/get the list of long of a L_LongList
Definition: RagTime5Document.cxx:914
RagTime5ClusterManager::ClusterRoot::m_listClusterId
int m_listClusterId
the cluster list id
Definition: RagTime5ClusterManager.hxx:363
RagTime5Document.hxx
MWAWPrinter.hxx
RagTime5ClusterManager::Cluster::C_ChartZone
@ C_ChartZone
Definition: RagTime5ClusterManager.hxx:268
RagTime5Zone::m_entry
MWAWEntry m_entry
the zone entry
Definition: RagTime5StructManager.hxx:134
RagTime5StructManager::DataParser::getZoneName
virtual std::string getZoneName() const
return the debug name corresponding to a zone
Definition: RagTime5StructManager.hxx:402
RagTime5Layout
the main class to read the text part of RagTime 56 file
Definition: RagTime5Layout.hxx:72
RagTime5ClusterManager::ClusterRoot::m_listClusterLink
Link m_listClusterLink[3]
first the main cluster link, second list of field definition link, third in header
Definition: RagTime5ClusterManager.hxx:367
RagTime5Document::sendZones
bool sendZones(MWAWListenerPtr listener)
try to send the different zones
Definition: RagTime5Document.cxx:2580
RagTime5StructManager::DataParser
virtual class use to parse the unstructured data
Definition: RagTime5StructManager.hxx:396
RagTime5ClusterManager::Link::L_UnknownClusterC
@ L_UnknownClusterC
Definition: RagTime5ClusterManager.hxx:118
RagTime5StructManager::DataParser::DataParser
DataParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.cxx:61
RagTime5Document::readChartCluster
std::shared_ptr< RagTime5ClusterManager::Cluster > readChartCluster(RagTime5Zone &zone, int zoneType)
try to read a chart cluster (via the spreadsheet manager)
Definition: RagTime5Document.cxx:430
RagTime5Document::parseMainZoneInfoData
bool parseMainZoneInfoData(RagTime5Zone const &zone)
try to parse the zoneInfo child
Definition: RagTime5Document.cxx:589
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
RagTime5Document::readUnknownClusterCData
bool readUnknownClusterCData(RagTime5ClusterManager::Cluster &cluster)
try to read the unknown clusterC data
Definition: RagTime5Document.cxx:1551
RagTime5Zone::m_level
int m_level
the zone level
Definition: RagTime5StructManager.hxx:126
RagTime5StructManager::Field::T_FieldList
@ T_FieldList
Definition: RagTime5StructManager.hxx:244
RagTime5ClusterManager::Cluster::C_PictureZone
@ C_PictureZone
Definition: RagTime5ClusterManager.hxx:268
RagTime5Document::version
int version() const
returns the document version
Definition: RagTime5Document.cxx:356
RagTime5DocumentInternal::State::m_zoneIdToTypeMap
std::map< int, std::string > m_zoneIdToTypeMap
a map id to type string
Definition: RagTime5Document.cxx:280
RagTime5StructManager::GObjPropFieldParser
basic parser to read image/main graphic position properties
Definition: RagTime5StructManager.hxx:427
RagTime5DocumentInternal::DocInfoFieldParser
Internal: the helper to read doc info parse.
Definition: RagTime5Document.cxx:74
RagTime5ClusterManager::Cluster::C_ColorPattern
@ C_ColorPattern
Definition: RagTime5ClusterManager.hxx:264
RagTime5ClusterManager
basic class used to manage RagTime 5/6 zones
Definition: RagTime5ClusterManager.hxx:58
RagTime5Document::m_layoutParser
std::shared_ptr< RagTime5Layout > m_layoutParser
the layout manager
Definition: RagTime5Document.hxx:287
RagTime5DocumentInternal::ClustListParser::m_linkList
std::vector< RagTime5StructManager::ZoneLink > m_linkList
the list of read cluster
Definition: RagTime5Document.cxx:234
RagTime5Zone::m_childIdToZoneMap
std::map< int, std::shared_ptr< RagTime5Zone > > m_childIdToZoneMap
the child zones
Definition: RagTime5StructManager.hxx:146
RagTime5ClusterManager::Cluster::C_TextStyles
@ C_TextStyles
Definition: RagTime5ClusterManager.hxx:272
RagTime5Document::RagTime5Graph
friend class RagTime5Graph
Definition: RagTime5Document.hxx:80
RagTime5Document::readChildList
bool readChildList(RagTime5ClusterManager::Link const &link, std::vector< RagTime5StructManager::ZoneLink > &childList, bool findN=false)
try to read a cluster child list
Definition: RagTime5Document.cxx:1073
RagTime5StyleManager
basic class used to read/store RagTime 5/6 styles
Definition: RagTime5StyleManager.hxx:60
RagTime5Graph.hxx
RagTime5Document::RagTime5Pipeline
friend class RagTime5Pipeline
Definition: RagTime5Document.hxx:83
RagTime5DocumentInternal::State::State
State()
constructor
Definition: RagTime5Document.cxx:254
RagTime5Document::readScriptComment
bool readScriptComment(RagTime5Zone &zone)
try to read a script comment zone
Definition: RagTime5Document.cxx:1449
RagTime5Document::RagTime5Formula
friend class RagTime5Formula
Definition: RagTime5Document.hxx:79
RagTime5DocumentInternal::DocInfoFieldParser::parseField
bool parseField(RagTime5StructManager::Field &field, RagTime5Zone &zone, int, libmwaw::DebugStream &f) final
parse a field
Definition: RagTime5Document.cxx:84
RagTime5ClusterManager.hxx
RagTime5Document::readTextCluster
std::shared_ptr< RagTime5ClusterManager::Cluster > readTextCluster(RagTime5Zone &zone, int zoneType)
try to read a text cluster (via the text manager)
Definition: RagTime5Document.cxx:460
RagTime5StructManager::ZoneLink::m_dataId
int m_dataId
the data id (or 0)
Definition: RagTime5StructManager.hxx:344
RagTime5ClusterManager::Link::L_LongList
@ L_LongList
Definition: RagTime5ClusterManager.hxx:116
RagTime5Document::unpackZone
bool unpackZone(RagTime5Zone &zone, MWAWEntry const &entry, std::vector< unsigned char > &data)
try to unpack a zone
Definition: RagTime5Document.cxx:2035
RagTime5DocumentInternal::ClustListParser::operator=
ClustListParser & operator=(ClustListParser &orig)
copy operator, not ximplemented
RagTime5StructManager::FieldParser
virtual class use to parse the field data
Definition: RagTime5StructManager.hxx:353
RagTime5Document::numPages
int numPages() const
returns the document number of page
Definition: RagTime5Document.cxx:366
RagTime5ClusterManager::Link::m_N
int m_N
the number of data ( or some flag if m_N & 0x8020)
Definition: RagTime5ClusterManager.hxx:212
RagTime5ClusterManager::NameLink
a link to a name zone in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:222
RagTime5Graph
the main class to read the graphic part of RagTime 56 file
Definition: RagTime5Graph.hxx:80
RagTime5DocumentInternal::ClustListParser::m_idToNameMap
std::map< int, librevenge::RVNGString > m_idToNameMap
the name
Definition: RagTime5Document.cxx:236
RagTime5Document
the main class to read a RagTime v5 file
Definition: RagTime5Document.hxx:76
RagTime5DocumentInternal::State
Internal: the state of a RagTime5Document.
Definition: RagTime5Document.cxx:252
RagTime5DocumentInternal::State::m_buttonFormulaLink
RagTime5ClusterManager::Link m_buttonFormulaLink
the buttons formula link
Definition: RagTime5Document.cxx:288
RagTime5Document::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: RagTime5Document.cxx:2507
RagTime5Document::m_newPage
NewPage m_newPage
the new page callback
Definition: RagTime5Document.hxx:312
RagTime5ClusterManager::Link::getZoneName
std::string getZoneName() const
returns the zone name
Definition: RagTime5ClusterManager.hxx:142
RagTime5DocumentInternal::ClustListParser
Internal: the helper to read a clustList.
Definition: RagTime5Document.cxx:169
RagTime5Document::checkIsSpreadsheet
bool checkIsSpreadsheet()
check if the document is a spreadsheet
Definition: RagTime5Document.cxx:2424
RagTime5Document::m_formulaParser
std::shared_ptr< RagTime5Formula > m_formulaParser
the formula manager
Definition: RagTime5Document.hxx:283
RagTime5Document::readClusterRootData
bool readClusterRootData(RagTime5ClusterManager::ClusterRoot &cluster)
try to read the main cluster
Definition: RagTime5Document.cxx:931
RagTime5Document::readPipelineCluster
std::shared_ptr< RagTime5ClusterManager::Cluster > readPipelineCluster(RagTime5Zone &zone, int zoneType)
try to read a pipeline cluster (via the pipeline manager)
Definition: RagTime5Document.cxx:445
RagTime5DocumentInternal::State::m_zoneInfo
std::shared_ptr< RagTime5Zone > m_zoneInfo
the zone info zone (ie. the first zone)
Definition: RagTime5Document.cxx:282
RagTime5Document::SendFootnote
void(MWAWParser::* SendFootnote)(int zoneId)
callback used to send a footnote
Definition: RagTime5Document.hxx:309
MWAWParagraph.hxx
RagTime5Document::RagTime5Spreadsheet
friend class RagTime5Spreadsheet
Definition: RagTime5Document.hxx:84
RagTime5Document::newPage
void newPage(int number, bool softBreak)
adds a new page
Definition: RagTime5Document.cxx:485
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
RagTime5DocumentInternal::ClustListParser::m_clusterManager
RagTime5ClusterManager & m_clusterManager
the main zone manager
Definition: RagTime5Document.cxx:239
RagTime5ClusterManager::Link::empty
bool empty() const
returns true if all link are empty
Definition: RagTime5ClusterManager.hxx:133
RagTime5StructManager::Field::m_longValue
long m_longValue[2]
the long value
Definition: RagTime5StructManager.hxx:280
RagTime5DocumentInternal::ClustListParser::parseData
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int n, libmwaw::DebugStream &f) final
try to parse a data
Definition: RagTime5Document.cxx:202
RagTime5Document::readDocumentVersion
bool readDocumentVersion(RagTime5Zone &zone)
try to read the document version zone
Definition: RagTime5Document.cxx:2178
MWAWRSRCParser.hxx
RagTime5Document::getStructManager
std::shared_ptr< RagTime5StructManager > getStructManager()
returns the structure manager
Definition: RagTime5Document.cxx:400
MWAWParser::getPageSpan
const MWAWPageSpan & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
RagTime5SSParser
the main class to parse a RagTime 5-6 file containing only a spreadsheet
Definition: RagTime5SSParser.hxx:65
RagTime5ClusterManager::ClusterRoot::m_listUnicodeLink
Link m_listUnicodeLink
a link to a list of unknown index+unicode string
Definition: RagTime5ClusterManager.hxx:361
MWAWPosition.hxx
MWAWDocument::MWAW_K_TEXT
@ MWAW_K_TEXT
word processing file
Definition: MWAWDocument.hxx:82
RagTime5Document::m_spreadsheetParser
std::shared_ptr< RagTime5Spreadsheet > m_spreadsheetParser
the spreadsheet manager
Definition: RagTime5Document.hxx:291
RagTime5Document::updateZoneInput
bool updateZoneInput(RagTime5Zone &zone)
try to update a zone: create a new input if the zone is stored in different positions,...
Definition: RagTime5Document.cxx:1982
RagTime5Document::readButtonCluster
std::shared_ptr< RagTime5ClusterManager::Cluster > readButtonCluster(RagTime5Zone &zone, int zoneType)
try to read a button cluster (via the graphic manager)
Definition: RagTime5Document.cxx:425
RagTime5StructManager::Field::m_fileType
unsigned long m_fileType
the file type
Definition: RagTime5StructManager.hxx:276
RagTime5StructManager::FieldParser::parseField
virtual bool parseField(Field &field, RagTime5Zone &, int, libmwaw::DebugStream &f)
parse a field
Definition: RagTime5StructManager.hxx:381
RagTime5ClusterManager::ClusterRoot::m_linkUnknown
Link m_linkUnknown
other link: scripts and field 6
Definition: RagTime5ClusterManager.hxx:370
RagTime5Document::readStructZone
bool readStructZone(RagTime5ClusterManager::Link const &link, RagTime5StructManager::FieldParser &parser, int headerSz, RagTime5ClusterManager::NameLink *nameLink=nullptr)
try to read a structured zone
Definition: RagTime5Document.cxx:1722
RagTime5Document::setVersion
void setVersion(int vers)
sets the document version
Definition: RagTime5Document.cxx:361
RagTime5Zone::getKindLastPart
std::string getKindLastPart(bool main=true) const
returns the main type
Definition: RagTime5StructManager.hxx:83
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:47
RagTime5StructManager::Field::T_Long
@ T_Long
Definition: RagTime5StructManager.hxx:244
RagTime5ClusterManager::Cluster::C_GraphicZone
@ C_GraphicZone
Definition: RagTime5ClusterManager.hxx:268
RagTime5Document::findZonesKind
bool findZonesKind()
try to find the zone's kind
Definition: RagTime5Document.cxx:554
RagTime5Zone::m_extra
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:154
RagTime5Document::m_styleManager
std::shared_ptr< RagTime5StyleManager > m_styleManager
the style manager
Definition: RagTime5Document.hxx:300
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
RagTime5DocumentInternal::ClustListParser::ClustListParser
ClustListParser(RagTime5ClusterManager &clusterManager, int fieldSize, std::string const &zoneName)
constructor
Definition: RagTime5Document.cxx:171
RagTime5ClusterManager::Cluster::m_hiLoEndian
bool m_hiLoEndian
the cluster hiLo endian
Definition: RagTime5ClusterManager.hxx:302
RagTime5Zone
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:50
RagTime5ClusterManager::Cluster::m_formulaLink
Link m_formulaLink
the formula cluster links (def and pos)
Definition: RagTime5ClusterManager.hxx:314
RagTime5ClusterManager::Cluster::C_TextZone
@ C_TextZone
Definition: RagTime5ClusterManager.hxx:268
RagTime5ClusterManager::ClusterRoot::m_styleClusterIds
int m_styleClusterIds[8]
the list of style cluster ( graph, units, unitsbis, text, format, unknown, graphcolor,...
Definition: RagTime5ClusterManager.hxx:348
RagTime5Document::readUnicodeString
bool readUnicodeString(RagTime5Zone &zone, std::string const &what="")
try to read a unicode string zone
Definition: RagTime5Document.cxx:817
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
RagTime5DocumentInternal::State::m_numPages
int m_numPages
the number of page of the final document
Definition: RagTime5Document.cxx:297
RagTime5Zone::getZoneName
std::string getZoneName() const
returns the zone name
Definition: RagTime5StructManager.cxx:1663
RagTime5Document::getStyleManager
std::shared_ptr< RagTime5StyleManager > getStyleManager()
returns the style manager
Definition: RagTime5Document.cxx:405
RagTime5ClusterManager::Link::L_FieldsList
@ L_FieldsList
Definition: RagTime5ClusterManager.hxx:117
RagTime5DocumentInternal::IndexUnicodeParser::IndexUnicodeParser
IndexUnicodeParser(RagTime5Document &, bool readIndex, std::string const &zoneName)
constructor
Definition: RagTime5Document.cxx:117
RagTime5Document::m_chartParser
std::shared_ptr< RagTime5Chart > m_chartParser
the chart manager
Definition: RagTime5Document.hxx:281
RagTime5Zone::getInput
MWAWInputStreamPtr getInput()
returns the current input
Definition: RagTime5StructManager.hxx:94
RagTime5ClusterManager::NameLink::m_posToNamesLinks
Link m_posToNamesLinks[2]
the corresponding link (for big list)
Definition: RagTime5ClusterManager.hxx:253
RagTime5StructManager::readUnicodeString
static bool readUnicodeString(MWAWInputStreamPtr input, long endPos, librevenge::RVNGString &string)
try to read a unicode string
Definition: RagTime5StructManager.cxx:303
RagTime5StructManager::FieldParser::getZoneName
virtual std::string getZoneName() const
return the debug name corresponding to a zone
Definition: RagTime5StructManager.hxx:363
RagTime5StructManager::FieldParser::FieldParser
FieldParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.hxx:355
MWAWPictMac.hxx
RagTime5Document::operator=
RagTime5Document & operator=(RagTime5Document const &)=delete
MWAWGraphicShape.hxx
RagTime5Document::readListZone
bool readListZone(RagTime5ClusterManager::Link const &link)
try to read a list zone
Definition: RagTime5Document.cxx:1585
MWAWDebug.hxx
RagTime5ClusterManager::Cluster::C_GraphicStyles
@ C_GraphicStyles
Definition: RagTime5ClusterManager.hxx:272
RagTime5Document::getFormulaParser
std::shared_ptr< RagTime5Formula > getFormulaParser()
returns the formula parser
Definition: RagTime5Document.cxx:410
RagTime5Zone::m_entriesList
std::vector< MWAWEntry > m_entriesList
the list of original entries
Definition: RagTime5StructManager.hxx:144
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:56
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
RagTime5ClusterManager::Link::m_longList
std::vector< long > m_longList
a list of long used to store decal
Definition: RagTime5ClusterManager.hxx:218
RagTime5Document::getClusterType
RagTime5ClusterManager::Cluster::Type getClusterType(int zId) const
returns the cluster type corresponding to zone id or C_Unknown (if the zone is not a cluster or was n...
Definition: RagTime5Document.cxx:472
RagTime5ClusterManager::Cluster::C_ButtonZone
@ C_ButtonZone
Definition: RagTime5ClusterManager.hxx:268
RagTime5ClusterManager::Cluster::C_ColorStyles
@ C_ColorStyles
Definition: RagTime5ClusterManager.hxx:272
RagTime5StyleManager.hxx
RagTime5ClusterManager::Cluster::C_FormulaPos
@ C_FormulaPos
Definition: RagTime5ClusterManager.hxx:264
RagTime5Document::getDataZone
std::shared_ptr< RagTime5Zone > getDataZone(int dataId) const
returns the zone corresponding to a data id (or 0)
Definition: RagTime5Document.cxx:465
RagTime5ClusterManager::Cluster::m_nameLink
NameLink m_nameLink
the name link
Definition: RagTime5ClusterManager.hxx:312
RagTime5DocumentInternal::State::m_sendZoneSet
std::set< int > m_sendZoneSet
a set used to avoid looping when sending zone
Definition: RagTime5Document.cxx:294
RagTime5ClusterManager::ClusterRoot::m_graphicTypeLink
Link m_graphicTypeLink
the graphic type id
Definition: RagTime5ClusterManager.hxx:358
RagTime5Document::SubDocument
friend class RagTime5DocumentInternal::SubDocument
Definition: RagTime5Document.hxx:91
RagTime5Pipeline
the main class to read the text part of RagTime 56 file
Definition: RagTime5Pipeline.hxx:72
RagTime5Document::readLongListWithSize
bool readLongListWithSize(int dataId, int fSz, std::vector< long > &list, std::string const &zoneName="")
try to read a int/long zone data
Definition: RagTime5Document.cxx:867
RagTime5Text
the main class to read the text part of RagTime 56 file
Definition: RagTime5Text.hxx:75
RagTime5ClusterManager::Cluster::m_linksList
std::vector< Link > m_linksList
the link list
Definition: RagTime5ClusterManager.hxx:318
RagTime5DocumentInternal::IndexUnicodeParser::parseData
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int n, libmwaw::DebugStream &f) final
try to parse a data
Definition: RagTime5Document.cxx:127
RagTime5ClusterManager::Cluster::Type
Type
the cluster type
Definition: RagTime5ClusterManager.hxx:263
RagTime5Document::m_state
std::shared_ptr< RagTime5DocumentInternal::State > m_state
the state
Definition: RagTime5Document.hxx:279
MWAWHeader.hxx
RagTime5ClusterManager::Cluster::m_dataLink
Link m_dataLink
the main data link
Definition: RagTime5ClusterManager.hxx:310
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
RagTime5Layout.hxx
RagTime5Formula
the main class to read the formula part of RagTime 56 file
Definition: RagTime5Formula.hxx:73
RagTime5Document::readClusterGProp
bool readClusterGProp(RagTime5ClusterManager::Cluster &cluster)
try to read the cluster with contains main graphic object properties
Definition: RagTime5Document.cxx:1526
RagTime5Document::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: RagTime5Document.hxx:122
RagTime5Document::readClusterLinkList
bool readClusterLinkList(RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, std::vector< RagTime5StructManager::ZoneLink > &listLinks)
try to read a cluster link zone
Definition: RagTime5Document.cxx:1217
RagTime5ClusterManager::Link::L_List
@ L_List
Definition: RagTime5ClusterManager.hxx:117
RagTime5DocumentInternal::DocInfoFieldParser::~DocInfoFieldParser
~DocInfoFieldParser() final
destructor
Definition: RagTime5Document.cxx:110
RagTime5ClusterManager::ClusterRoot
the cluster for root
Definition: RagTime5ClusterManager.hxx:329
RagTime5DocumentInternal::State::m_mainTypeId
int m_mainTypeId
the main type id
Definition: RagTime5Document.cxx:286
RagTime5ClusterManager::ClusterRoot::m_docInfoLink
Link m_docInfoLink
the doc info link
Definition: RagTime5ClusterManager.hxx:354
RagTime5ClusterManager::NameLink::empty
bool empty() const
returns true if all link are empty
Definition: RagTime5ClusterManager.hxx:238
MWAWParser
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:99
MWAWGraphicStyle.hxx
RagTime5DocumentInternal::ClustListParser::getIdList
std::vector< int > getIdList() const
returns the not null list dataId list
Definition: RagTime5Document.cxx:186
RagTime5DocumentInternal
Internal: the structures of a RagTime5Document.
Definition: RagTime5Document.cxx:71
RagTime5ClusterManager::Cluster::m_zoneId
int m_zoneId
the zone id
Definition: RagTime5ClusterManager.hxx:300
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
MWAWTextListener.hxx
RagTime5Zone::addErrorInDebugFile
void addErrorInDebugFile(std::string const &zoneName)
mark a zone as bad
Definition: RagTime5StructManager.cxx:1683
RagTime5Document::m_parser
MWAWParser * m_parser
the main parser
Definition: RagTime5Document.hxx:275
RagTime5ClusterManager::Cluster::C_ClusterGProp
@ C_ClusterGProp
Definition: RagTime5ClusterManager.hxx:265
RagTime5Document::init
void init()
inits all internal variables
Definition: RagTime5Document.cxx:334
RagTime5Document::sendButtonZoneAsText
bool sendButtonZoneAsText(MWAWListenerPtr listener, int buttonId)
try to send a button content as text
Definition: RagTime5Document.cxx:390
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
RagTime5ClusterManager::Cluster::C_SpreadsheetZone
@ C_SpreadsheetZone
Definition: RagTime5ClusterManager.hxx:268
RagTime5Document::getMainParser
MWAWParser & getMainParser()
returns the main parser
Definition: RagTime5Document.hxx:102
RagTime5Document::updateZone
bool updateZone(std::shared_ptr< RagTime5Zone > &zone)
try to update a zone: information + input
Definition: RagTime5Document.cxx:1909
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
RagTime5ClusterManager::getClusterDebugName
std::string getClusterDebugName(int id)
returns "data"+id+"A" ( followed by the cluster type and name if know)
Definition: RagTime5ClusterManager.cxx:230
RagTime5Document::getClusterManager
std::shared_ptr< RagTime5ClusterManager > getClusterManager()
returns the cluster manager
Definition: RagTime5Document.cxx:395
RagTime5DocumentInternal::DocInfoFieldParser::m_document
RagTime5Document & m_document
the main parser
Definition: RagTime5Document.cxx:107
RagTime5DocumentInternal::IndexUnicodeParser::m_readIndex
bool m_readIndex
a flag to know if we need to read the index
Definition: RagTime5Document.cxx:157
RagTime5Document::m_textParser
std::shared_ptr< RagTime5Text > m_textParser
the text manager
Definition: RagTime5Document.hxx:293
RagTime5ClusterManager::Link::m_fileType
unsigned long m_fileType[2]
the zone type in file
Definition: RagTime5ClusterManager.hxx:216
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
RagTime5Document::RagTime5ClusterManager
friend class RagTime5ClusterManager
Definition: RagTime5Document.hxx:88
RagTime5StructManager
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:174
RagTime5Document::RagTime5StyleManager
friend class RagTime5StyleManager
Definition: RagTime5Document.hxx:90
RagTime5Zone::m_ids
int m_ids[3]
the zone id
Definition: RagTime5StructManager.hxx:140
RagTime5ClusterManager::Cluster::C_Empty
@ C_Empty
Definition: RagTime5ClusterManager.hxx:276
RagTime5Document::readSpreadsheetCluster
std::shared_ptr< RagTime5ClusterManager::Cluster > readSpreadsheetCluster(RagTime5Zone &zone, int zoneType)
try to read a spreadsheet cluster (via the spreadsheet manager)
Definition: RagTime5Document.cxx:455
RagTime5ClusterManager::Link
a link to a small zone (or set of zones) in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:113
RagTime5ClusterManager::Cluster::C_FormulaDef
@ C_FormulaDef
Definition: RagTime5ClusterManager.hxx:264
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
RagTime5DocumentInternal::IndexUnicodeParser::m_indicesMap
std::map< int, int > m_indicesMap
the map n to index if given
Definition: RagTime5Document.cxx:161
RagTime5ClusterManager::Cluster
the cluster data
Definition: RagTime5ClusterManager.hxx:261
RagTime5Document::m_graphParser
std::shared_ptr< RagTime5Graph > m_graphParser
the graph manager
Definition: RagTime5Document.hxx:285
RagTime5Document::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: RagTime5Document.hxx:132
libmwaw
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:50
MWAWStringStream.hxx
RagTime5ClusterManager::Link::m_type
Type m_type
the link type
Definition: RagTime5ClusterManager.hxx:206
MWAWInputStream.hxx
RagTime5Document::findZones
bool findZones(MWAWEntry const &entry)
try to find the list of zones (and stores them in a list)
Definition: RagTime5Document.cxx:2230
RagTime5DocumentInternal::IndexUnicodeParser
Internal: the helper to read index + unicode string for a RagTime5Document.
Definition: RagTime5Document.cxx:115
RagTime5Pipeline.hxx
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWFont.hxx
RagTime5DocumentInternal::State::m_mainClusterId
int m_mainClusterId
the main cluster id
Definition: RagTime5Document.cxx:284
MWAWPictBitmap.hxx
RagTime5Document::getDocumentMetaData
librevenge::RVNGPropertyList getDocumentMetaData() const
returns the document meta data
Definition: RagTime5Document.cxx:351
RagTime5StructManager::FieldParser::parseHeaderField
virtual bool parseHeaderField(Field &field, RagTime5Zone &, int, libmwaw::DebugStream &f)
parse a header field
Definition: RagTime5StructManager.hxx:375
RagTime5ClusterManager::Link::L_Unknown
@ L_Unknown
Definition: RagTime5ClusterManager.hxx:119
RagTime5Document::readPictureCluster
std::shared_ptr< RagTime5ClusterManager::Cluster > readPictureCluster(RagTime5Zone &zone, int zoneType)
try to read a picture cluster (via the graphic manager)
Definition: RagTime5Document.cxx:450
RagTime5Document::useMainZoneInfoData
bool useMainZoneInfoData()
try to read the main zone info zone and the main cluster(and child)
Definition: RagTime5Document.cxx:646
RagTime5Document::readUnicodeStringList
bool readUnicodeStringList(RagTime5ClusterManager::NameLink const &link, std::map< int, librevenge::RVNGString > &idToStringMap)
try to read a list of unicode string zone
Definition: RagTime5Document.cxx:843
RagTime5Document::m_pipelineParser
std::shared_ptr< RagTime5Pipeline > m_pipelineParser
the pipeline manager
Definition: RagTime5Document.hxx:289
RagTime5StructManager::ZoneLink::m_subZoneId
long m_subZoneId[2]
the sub id zones
Definition: RagTime5StructManager.hxx:346
RagTime5Document::readClusterZone
bool readClusterZone(RagTime5Zone &zone, int type=-1)
try to read a cluster zone
Definition: RagTime5Document.cxx:1132
RagTime5ClusterManager::NameLink::m_decalList
std::vector< long > m_decalList
a list of long used to store decal
Definition: RagTime5ClusterManager.hxx:249
MWAWDocument::MWAW_T_RAGTIME
@ MWAW_T_RAGTIME
RagTime: -Mac v2.1-v3.2: done, -all v5.0-v6.5: incomplete, only try to retrieve the picture/shape/tex...
Definition: MWAWDocument.hxx:144
RagTime5DocumentInternal::ClustListParser::~ClustListParser
~ClustListParser() final
destructor
Definition: RagTime5Document.cxx:246
RagTime5Document::readFixedSizeZone
bool readFixedSizeZone(RagTime5ClusterManager::Link const &link, std::string const &name)
try to read a fixed size zone
Definition: RagTime5Document.cxx:1658
RagTime5ClusterManager::Cluster::C_UnitStyles
@ C_UnitStyles
Definition: RagTime5ClusterManager.hxx:272
RagTime5Document::send
bool send(int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0, int cellId=0, double totalWidth=-1)
try to send a cluster zone (mainly unimplemented)
Definition: RagTime5Document.cxx:2609
RagTime5Zone::m_hiLoEndian
bool m_hiLoEndian
true if the endian is hilo
Definition: RagTime5StructManager.hxx:138
RagTime5Document::updatePageSpanList
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
updates the page span list
Definition: RagTime5Document.cxx:383
RagTime5DocumentInternal::DocInfoFieldParser::DocInfoFieldParser
DocInfoFieldParser(RagTime5Document &doc)
constructor
Definition: RagTime5Document.cxx:76
RagTime5DocumentInternal::State::m_zonesEntry
MWAWEntry m_zonesEntry
the main zone entry
Definition: RagTime5Document.cxx:276
RagTime5ClusterManager::Cluster::C_Layout
@ C_Layout
Definition: RagTime5ClusterManager.hxx:264
RagTime5ClusterManager::ClusterRoot::m_clusterIds
int m_clusterIds[1]
other cluster id (unknown cluster b, )
Definition: RagTime5ClusterManager.hxx:351
RagTime5StructManager::ZoneLink
a zone link in RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:303
RagTime5DocumentInternal::ClustListParser::getClusterDebugName
std::string getClusterDebugName(int id) const
return the cluster name
Definition: RagTime5Document.cxx:196
RagTime5StructManager::readDataIdList
static bool readDataIdList(MWAWInputStreamPtr input, int n, std::vector< int > &listIds)
try to read n data id
Definition: RagTime5StructManager.cxx:332
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParser.hxx
RagTime5StructManager::Field::m_type
Type m_type
the field type
Definition: RagTime5StructManager.hxx:274
RagTime5Document::getPipelineContainerType
RagTime5ClusterManager::Cluster::Type getPipelineContainerType(int pipelineId) const
try to return the container's type corresponding to an id
Definition: RagTime5Document.cxx:477
RagTime5Document::m_clusterManager
std::shared_ptr< RagTime5ClusterManager > m_clusterManager
the cluster manager
Definition: RagTime5Document.hxx:296
RagTime5DocumentInternal::State::m_hasLayout
bool m_hasLayout
a flag to know if the file has some layout
Definition: RagTime5Document.cxx:296
RagTime5DocumentInternal::State::m_headerHeight
int m_headerHeight
the header height if known
Definition: RagTime5Document.cxx:299
RagTime5Document::getSpreadsheetParser
std::shared_ptr< RagTime5Spreadsheet > getSpreadsheetParser()
returns the spreadsheet parser
Definition: RagTime5Document.cxx:420
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:98
RagTime5Document::flushExtra
void flushExtra(MWAWListenerPtr listener, bool onlyCheck=false)
flush unsent zone (debugging function)
Definition: RagTime5Document.cxx:2638
RagTime5Text.hxx
RagTime5ClusterManager::Cluster::C_Root
@ C_Root
Definition: RagTime5ClusterManager.hxx:265
RagTime5ClusterManager::Link::m_name
std::string m_name
the link name
Definition: RagTime5ClusterManager.hxx:208
RagTime5Chart
the main class to read the chart part of RagTime 56 file
Definition: RagTime5Chart.hxx:73
RagTime5ClusterManager::Cluster::C_Unknown
@ C_Unknown
Definition: RagTime5ClusterManager.hxx:276
RagTime5ClusterManager::Cluster::m_settingLinks
std::vector< Link > m_settingLinks
the settings links
Definition: RagTime5ClusterManager.hxx:316
RagTime5ClusterManager::Link::m_fieldSize
int m_fieldSize
the field size
Definition: RagTime5ClusterManager.hxx:214
RagTime5Formula.hxx
MWAWStringStream
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:36
RagTime5Document::m_sendFootnote
SendFootnote m_sendFootnote
the send footnote callback
Definition: RagTime5Document.hxx:314