ClarisWksDocument.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 /*
35  * Document data used by the Claris Works parser
36  *
37  */
38 #ifndef CLARIS_WKS_DOCUMENT
39 # define CLARIS_WKS_DOCUMENT
40 
41 #include <vector>
42 
43 #include "libmwaw_internal.hxx"
44 
45 #include "MWAWParser.hxx"
46 #include "MWAWPosition.hxx"
47 
48 #include "ClarisWksStruct.hxx"
49 
50 class MWAWSection;
51 
53 {
54 class SubDocument;
55 
56 struct State;
57 }
58 
59 class ClarisWksParser;
60 class ClarisWksBMParser;
61 class ClarisWksPRParser;
62 class ClarisWksSSParser;
63 
64 class ClarisWksDatabase;
65 class ClarisWksGraph;
69 class ClarisWksTable;
70 class ClarisWksText;
71 
74 {
75 public:
76  friend class ClarisWksParser;
77  friend class ClarisWksBMParser;
78  friend class ClarisWksPRParser;
79  friend class ClarisWksSSParser;
82  explicit ClarisWksDocument(MWAWParser &parser);
85 
87  bool checkHeader(MWAWHeader *header, bool strict=false);
88 
90  bool createZones();
91 
93  int numPages() const;
97  librevenge::RVNGPropertyList const &getDocumentMetaData() const;
99  double getTextHeight() const;
101  MWAWVec2f getPageLeftTop() const;
103  void updatePageSpanList(std::vector<MWAWPageSpan> &spanList);
105  void updatePageSpanList(std::vector<MWAWPageSpan> &spanList, MWAWPageSpan &master);
106 
108  MWAWSection getMainSection() const;
110  std::shared_ptr<ClarisWksStruct::DSET> getZone(int zId) const;
112  void updateChildPositions();
114  void newPage(int page, bool softBreak=false);
116  std::vector<int> const &getMainZonesList() const;
118  void forceParsed(int zoneId);
120  bool canSendZoneAsGraphic(int number) const;
122  bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition());
126  void sendFootnote(int zoneId);
127 
130  {
131  return *m_parser;
132  }
134  std::shared_ptr<ClarisWksStyleManager> getStyleManager()
135  {
136  return m_styleManager;
137  }
139  std::shared_ptr<ClarisWksDatabase> getDatabaseParser()
140  {
141  return m_databaseParser;
142  }
144  std::shared_ptr<ClarisWksGraph> getGraphParser()
145  {
146  return m_graphParser;
147  }
149  std::shared_ptr<ClarisWksPresentation> getPresentationParser()
150  {
151  return m_presentationParser;
152  }
154  std::shared_ptr<ClarisWksSpreadsheet> getSpreadsheetParser()
155  {
156  return m_spreadsheetParser;
157  }
159  std::shared_ptr<ClarisWksTable> getTableParser()
160  {
161  return m_tableParser;
162  }
164  std::shared_ptr<ClarisWksText> getTextParser()
165  {
166  return m_textParser;
167  }
168 
170  bool readZone();
172  bool readDocHeader();
174  bool readDocInfo();
176  bool readPrintInfo();
177 
178  // THE NAMED ENTRY
179 
181  bool readEndTable(long &eof);
182 
183  /* sequence of plist of printer : in v6 */
184  bool readCPRT(MWAWEntry const &entry);
185 
186  /* read the list of mark */
187  bool readMARKList(MWAWEntry const &entry);
188  /* read a URL mark */
189  bool readURL(long endPos);
190  /* read a bookmark mark */
191  bool readBookmark(long endPos);
192  /* read a document mark */
193  bool readDocumentMark(long endPos);
194  /* read a end mark */
195  bool readEndMark(long endPos);
196 
197  /* read the document summary */
198  bool readDSUM(MWAWEntry const &entry, bool inHeader);
199  /* SNAP (in v6) : size[4]/size[2] picture... */
200  bool readSNAP(MWAWEntry const &entry);
201  /* read the temporary file name ? */
202  bool readTNAM(MWAWEntry const &entry);
203 
204  //
205  // low level
206  //
207 
211  std::shared_ptr<ClarisWksStruct::DSET> readDSET(bool &complete);
213  void typeMainZones();
215  int typeMainZonesRec(int zId, ClarisWksStruct::DSET::Position type, int maxHeight);
217  bool exploreZonesGraph();
219  bool exploreZonesGraphRec(int zId, std::set<int> &notDoneList);
221  void cleanZonesGraph();
222 
224  bool readStructCellZone(char const *zoneName, bool hasEntete, std::vector<MWAWVec2i> &res);
225  /* read a list of string zone */
226  bool readStringList(char const *zoneName, bool hasEntete, std::vector<std::string> &res);
228  bool readDataLinkList();
229 
231  bool readZoneA();
233  void checkOrdering(std::vector<int16_t> &vec16, std::vector<int32_t> &vec32) const;
234 
235 protected:
239  std::shared_ptr<ClarisWksDocumentInternal::State> m_state;
240 public:
242  std::shared_ptr<MWAWParserState> m_parserState;
243 
244 protected:
248  std::shared_ptr<ClarisWksStyleManager> m_styleManager;
249 
251  std::shared_ptr<ClarisWksDatabase> m_databaseParser;
253  std::shared_ptr<ClarisWksGraph> m_graphParser;
255  std::shared_ptr<ClarisWksPresentation> m_presentationParser;
257  std::shared_ptr<ClarisWksSpreadsheet> m_spreadsheetParser;
259  std::shared_ptr<ClarisWksTable> m_tableParser;
261  std::shared_ptr<ClarisWksText> m_textParser;
262 
263  //
264  // the callback
265  //
266 
268  typedef void (MWAWParser::* NewPage)(int page, bool softBreak);
270  typedef void (MWAWParser::* SendFootnote)(int zoneId);
271 
276 
277 private:
278  ClarisWksDocument(ClarisWksDocument const &orig) = delete;
280 };
281 
282 #endif
283 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWHeader::setKind
void setKind(Kind kind)
sets the document kind
Definition: MWAWHeader.hxx:119
ClarisWksStruct::DSET::m_size
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:178
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
ClarisWksStruct::DSET::m_id
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:199
MWAWDocument::MWAW_K_DATABASE
@ MWAW_K_DATABASE
database
Definition: MWAWDocument.hxx:87
ClarisWksDocumentInternal::State::m_hFZonesList
std::vector< int > m_hFZonesList
the list of header/footer group
Definition: ClarisWksDocument.cxx:131
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
ClarisWksTable
the main class to read the text part of Claris Works file
Definition: ClarisWksTable.hxx:70
ClarisWksDocument::getTableParser
std::shared_ptr< ClarisWksTable > getTableParser()
returns the table parser
Definition: ClarisWksDocument.hxx:159
MWAWDocument::MWAW_K_UNKNOWN
@ MWAW_K_UNKNOWN
unknown
Definition: MWAWDocument.hxx:81
ClarisWksDocumentInternal::State::m_pageSpanSet
bool m_pageSpanSet
a flag to know if pageSpan is filled
Definition: ClarisWksDocument.cxx:102
ClarisWksDocument::m_databaseParser
std::shared_ptr< ClarisWksDatabase > m_databaseParser
the database parser
Definition: ClarisWksDocument.hxx:251
ClarisWksDocument::m_graphParser
std::shared_ptr< ClarisWksGraph > m_graphParser
the graph parser
Definition: ClarisWksDocument.hxx:253
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
ClarisWksDocument::readPrintInfo
bool readPrintInfo()
read the print info zone
Definition: ClarisWksDocument.cxx:2309
ClarisWksDatabase.hxx
MWAWHeaderFooter::HEADER
@ HEADER
Definition: MWAWPageSpan.hxx:48
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
ClarisWksStruct.hxx
ClarisWksStruct::DSET::P_Table
@ P_Table
Definition: ClarisWksStruct.hxx:91
MWAWVariable< int >
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
ClarisWksDocumentInternal::State::State
State()
constructor
Definition: ClarisWksDocument.cxx:73
ClarisWksStruct::Struct::m_headerSize
long m_headerSize
the header size
Definition: ClarisWksStruct.hxx:75
ClarisWksStruct::readStructZone
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:162
ClarisWksDocumentInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: ClarisWksDocument.cxx:149
MWAWDocument::MWAW_K_PAINT
@ MWAW_K_PAINT
bitmap graphic
Definition: MWAWDocument.hxx:84
ClarisWksBMParser
the main class to read a bitmap AppleWorks/ClarisWorks file
Definition: ClarisWksBMParser.hxx:66
ClarisWksDocument::checkOrdering
void checkOrdering(std::vector< int16_t > &vec16, std::vector< int32_t > &vec32) const
small fonction used to check unusual endian ordering of a list of int16_t, int32_t
Definition: ClarisWksDocument.cxx:376
ClarisWksDocument::getZone
std::shared_ptr< ClarisWksStruct::DSET > getZone(int zId) const
return the zone corresponding to an id ( low level)
Definition: ClarisWksDocument.cxx:415
ClarisWksPresentation.hxx
ClarisWksDocumentInternal::State::m_metaData
librevenge::RVNGPropertyList m_metaData
the metadata
Definition: ClarisWksDocument.cxx:111
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
ClarisWksDatabase
the main class to read the text part of Claris Works file
Definition: ClarisWksDatabase.hxx:72
MWAWFontConverter.hxx
libmwaw::appendUnicode
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
MWAWListener::Presentation
@ Presentation
Definition: MWAWListener.hxx:56
ClarisWksStruct::DSET::m_textType
int m_textType
the text type (header/footer,footnote, ...)
Definition: ClarisWksStruct.hxx:209
ClarisWksDocumentInternal::State::m_footerId
int m_footerId
the footer zone if known
Definition: ClarisWksDocument.cxx:113
ClarisWksDocumentInternal::State::m_footerHeight
int m_footerHeight
the footer height if known
Definition: ClarisWksDocument.cxx:115
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
MWAWDocument::Kind
Kind
an enum to define the kind of document
Definition: MWAWDocument.hxx:80
ClarisWksDocumentInternal::State::m_pages
MWAWVec2i m_pages
the number of pages find in the header ( if known )
Definition: ClarisWksDocument.cxx:107
MWAWPrinter.hxx
ClarisWksSpreadsheet.hxx
MWAWDocument::MWAW_K_DRAW
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
ClarisWksDocument::sendZone
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:453
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
ClarisWksDocument::getPageLeftTop
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ClarisWksDocument.cxx:317
ClarisWksDocument::m_presentationParser
std::shared_ptr< ClarisWksPresentation > m_presentationParser
the spreadsheet parser
Definition: ClarisWksDocument.hxx:255
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:92
ClarisWksDocument::ClarisWksDocument
ClarisWksDocument(ClarisWksDocument const &orig)=delete
ClarisWksDocument::m_tableParser
std::shared_ptr< ClarisWksTable > m_tableParser
the table parser
Definition: ClarisWksDocument.hxx:259
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
ClarisWksStruct::DSET::m_endSelection
int m_endSelection
the end of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:206
ClarisWksDocument
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
ClarisWksDocument::readZone
bool readZone()
read a zone
Definition: ClarisWksDocument.cxx:746
ClarisWksDocumentInternal::State
Internal: the state of a ClarisWksDocument.
Definition: ClarisWksDocument.cxx:71
ClarisWksSpreadsheet
the main class to read the text part of Claris Works file
Definition: ClarisWksSpreadsheet.hxx:71
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
ClarisWksDocument::readDocHeader
bool readDocHeader()
reads the document header
Definition: ClarisWksDocument.cxx:1083
ClarisWksDocument::m_state
std::shared_ptr< ClarisWksDocumentInternal::State > m_state
the state
Definition: ClarisWksDocument.hxx:239
ClarisWksStruct::DSET::m_flags
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:212
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
ClarisWksDocumentInternal::State::m_columns
int m_columns
the number of columns
Definition: ClarisWksDocument.cxx:118
ClarisWksDocument::ClarisWksDocument
ClarisWksDocument(MWAWParser &parser)
constructor
Definition: ClarisWksDocument.cxx:191
ClarisWksStruct::DSET::m_beginSelection
int m_beginSelection
the begin of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:204
ClarisWksDocument::exploreZonesGraph
bool exploreZonesGraph()
try to find the zone dags structure...
Definition: ClarisWksDocument.cxx:2586
MWAWDocument::MWAW_T_CLARISWORKS
@ MWAW_T_CLARISWORKS
ClarisWorks/AppleWorks: all versions, export database (as spreadsheet), draw(as text),...
Definition: MWAWDocument.hxx:105
ClarisWksDocument::getMainZonesList
std::vector< int > const & getMainZonesList() const
returns the list of the main zones
Definition: ClarisWksDocument.cxx:410
ClarisWksDocument::readTNAM
bool readTNAM(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1993
ClarisWksDocument::newPage
void newPage(int page, bool softBreak=false)
send a page break
Definition: ClarisWksDocument.cxx:326
MWAWVariable::isSet
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:635
ClarisWksDocument::m_parserState
std::shared_ptr< MWAWParserState > m_parserState
the parser state
Definition: ClarisWksDocument.hxx:242
ClarisWksDocument::typeMainZones
void typeMainZones()
try to type the main zones
Definition: ClarisWksDocument.cxx:2703
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
MWAWPageSpan::setMasterPageName
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:243
MWAWParser::getPageWidth
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
MWAWDocument::MWAW_K_PRESENTATION
@ MWAW_K_PRESENTATION
presentation graphic
Definition: MWAWDocument.hxx:85
ClarisWksPRParser
the main class to create presentation Claris Works file
Definition: ClarisWksPRParser.hxx:68
ClarisWksDocumentInternal::State::m_zonesTypeMap
std::map< int, ClarisWksStruct::DSET::Position > m_zonesTypeMap
the type of each zone
Definition: ClarisWksDocument.cxx:127
MWAWPageSpan::getMarginRight
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:137
ClarisWksDocumentInternal::State::m_headerId
int m_headerId
the header zone if known
Definition: ClarisWksDocument.cxx:112
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
ClarisWksDocument::readCPRT
bool readCPRT(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1566
ClarisWksTable.hxx
ClarisWksStyleManager.hxx
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
libmwaw::Debug::dumpFile
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
libmwaw_internal.hxx
ClarisWksDocument::operator=
ClarisWksDocument operator=(ClarisWksDocument const &orig)=delete
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
MWAWDocument::MWAW_K_TEXT
@ MWAW_K_TEXT
word processing file
Definition: MWAWDocument.hxx:82
ClarisWksPresentation
the main class to read the text part of Claris Works file
Definition: ClarisWksPresentation.hxx:71
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
ClarisWksDocument::m_spreadsheetParser
std::shared_ptr< ClarisWksSpreadsheet > m_spreadsheetParser
the spreadsheet parser
Definition: ClarisWksDocument.hxx:257
ClarisWksDocumentInternal::SubDocument::SubDocument
SubDocument(ClarisWksDocument &doc, MWAWInputStreamPtr const &input, int zoneId)
Definition: ClarisWksDocument.cxx:143
MWAWParser::getFormLength
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
ClarisWksStruct::DSET::P_Header
@ P_Header
Definition: ClarisWksStruct.hxx:91
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
ClarisWksDocument::m_newPage
NewPage m_newPage
the new page callback
Definition: ClarisWksDocument.hxx:273
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
ClarisWksDocument::getSpreadsheetParser
std::shared_ptr< ClarisWksSpreadsheet > getSpreadsheetParser()
returns the spreadsheet parser
Definition: ClarisWksDocument.hxx:154
ClarisWksStruct::DSET::m_fileType
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWSection::m_columns
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
ClarisWksDocumentInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: ClarisWksDocument.cxx:172
ClarisWksDocument::NewPage
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: ClarisWksDocument.hxx:268
ClarisWksDocument.hxx
ClarisWksDocument::getDocumentPages
MWAWVec2i getDocumentPages()
returns the number of expected pages ( accross pages x down page)
Definition: ClarisWksDocument.cxx:222
ClarisWksDocument::getMainParser
MWAWParser & getMainParser()
returns the main parser
Definition: ClarisWksDocument.hxx:129
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
ClarisWksDocumentInternal::State::m_columnsSep
std::vector< int > m_columnsSep
the columns separator in Points
Definition: ClarisWksDocument.cxx:122
ClarisWksDocument::m_sendFootnote
SendFootnote m_sendFootnote
the send footnote callback
Definition: ClarisWksDocument.hxx:275
ClarisWksStruct::Struct::readHeader
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
ClarisWksText
the main class to read the text part of Claris Works file
Definition: ClarisWksText.hxx:76
MWAWVec2< int >
ClarisWksDocumentInternal
Internal: the structures of a ClarisWksDocument.
Definition: ClarisWksDocument.cxx:68
ClarisWksDocument::readDSUM
bool readDSUM(MWAWEntry const &entry, bool inHeader)
Definition: ClarisWksDocument.cxx:2038
MWAWSection
a class which stores section properties
Definition: MWAWSection.hxx:46
MWAWDebug.hxx
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:57
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWParser::getFormWidth
double getFormWidth() const
returns the form width
Definition: MWAWParser.hxx:175
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWParser::getPageSpan
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
ClarisWksDocument::readStructCellZone
bool readStructCellZone(char const *zoneName, bool hasEntete, std::vector< MWAWVec2i > &res)
try to read a structured zone list of cells
Definition: ClarisWksDocument.cxx:2379
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
ClarisWksStruct::DSET
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:87
ClarisWksGraph.hxx
ClarisWksDocumentInternal::State::m_numPages
int m_numPages
the number of pages (computed)
Definition: ClarisWksDocument.cxx:105
ClarisWksDocument::readMARKList
bool readMARKList(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1619
ClarisWksDocumentInternal::State::getZoneType
ClarisWksStruct::DSET::Position getZoneType(int id) const
returns a zone's type
Definition: ClarisWksDocument.cxx:95
ClarisWksDocument::getPresentationParser
std::shared_ptr< ClarisWksPresentation > getPresentationParser()
returns the presentation parser
Definition: ClarisWksDocument.hxx:149
ClarisWksText.hxx
ClarisWksDocument::m_textParser
std::shared_ptr< ClarisWksText > m_textParser
the text parser
Definition: ClarisWksDocument.hxx:261
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
ClarisWksDocument::getStyleManager
std::shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:134
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
MWAWHeaderFooter::FOOTER
@ FOOTER
Definition: MWAWPageSpan.hxx:48
ClarisWksDocument::getMainSection
MWAWSection getMainSection() const
returns the main document section
Definition: ClarisWksDocument.cxx:335
ClarisWksDocument::getFinalPageSpan
MWAWPageSpan getFinalPageSpan() const
returns the final page span to use for the document
Definition: ClarisWksDocument.cxx:297
ClarisWksDocument::sendDatabasePictZone
bool sendDatabasePictZone(int pictId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a database picture
Definition: ClarisWksDocument.cxx:504
ClarisWksGraph
the main class to read the graphic part of Claris Works file
Definition: ClarisWksGraph.hxx:78
ClarisWksDocumentInternal::State::m_zonesMap
std::map< int, std::shared_ptr< ClarisWksStruct::DSET > > m_zonesMap
the map of zone
Definition: ClarisWksDocument.cxx:125
ClarisWksDocument::sendFootnote
void sendFootnote(int zoneId)
ask the main parser to create a document to send a footnote
Definition: ClarisWksDocument.cxx:367
ClarisWksDocumentInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: ClarisWksDocument.cxx:169
ClarisWksDocument::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: ClarisWksDocument.cxx:642
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
ClarisWksStyleManager
a structure to store the style list and the lookup zone
Definition: ClarisWksStyleManager.hxx:61
MWAWPageSpan::getMarginBottom
double getMarginBottom() const
returns the bottom margin
Definition: MWAWPageSpan.hxx:147
ClarisWksDocument::getDocumentMetaData
librevenge::RVNGPropertyList const & getDocumentMetaData() const
returns the document meta data
Definition: ClarisWksDocument.cxx:263
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
ClarisWksDocument::readEndTable
bool readEndTable(long &eof)
reads the end table ( appears in v3.0 : file version ? )
Definition: ClarisWksDocument.cxx:1460
ClarisWksDocumentInternal::SubDocument
Internal: the subdocument of a ClarisWksDocument.
Definition: ClarisWksDocument.cxx:141
ClarisWksStruct::Struct::m_size
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:69
ClarisWksStruct::DSET::Position
Position
the zone position
Definition: ClarisWksStruct.hxx:91
ClarisWksDocument::readDocumentMark
bool readDocumentMark(long endPos)
Definition: ClarisWksDocument.cxx:1837
MWAWParser
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
ClarisWksParser
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:68
ClarisWksDocument::readURL
bool readURL(long endPos)
Definition: ClarisWksDocument.cxx:1782
ClarisWksDocument::updateChildPositions
void updateChildPositions()
try to update the child page of each zone
Definition: ClarisWksDocument.cxx:2524
ClarisWksDocument::readEndMark
bool readEndMark(long endPos)
Definition: ClarisWksDocument.cxx:1951
ClarisWksStruct::DSET::P_Footer
@ P_Footer
Definition: ClarisWksStruct.hxx:91
ClarisWksStruct::DSET::m_numData
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:180
ClarisWksDocument::readSNAP
bool readSNAP(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:2253
ClarisWksDocument::SendFootnote
void(MWAWParser::* SendFootnote)(int zoneId)
callback used to send a footnote
Definition: ClarisWksDocument.hxx:270
ClarisWksDocument::readDSET
std::shared_ptr< ClarisWksStruct::DSET > readDSET(bool &complete)
reads the zone DSET
Definition: ClarisWksDocument.cxx:854
ClarisWksDocument::exploreZonesGraphRec
bool exploreZonesGraphRec(int zId, std::set< int > &notDoneList)
try to find the zone tree graph ( DSF) function
Definition: ClarisWksDocument.cxx:2653
ClarisWksStruct::DSET::m_dataSz
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:182
libmwaw::Right
@ Right
Definition: libmwaw_internal.hxx:176
MWAWSection.hxx
ClarisWksDocument::getTextHeight
double getTextHeight() const
returns the page height, ie. paper size less margin (in inches) less header/footer size
Definition: ClarisWksDocument.cxx:312
ClarisWksDocumentInternal::State::m_rootZonesList
std::vector< int > m_rootZonesList
the list of root zones
Definition: ClarisWksDocument.cxx:129
ClarisWksDocument::~ClarisWksDocument
~ClarisWksDocument()
virtual destructor
Definition: ClarisWksDocument.cxx:215
ClarisWksDocument::cleanZonesGraph
void cleanZonesGraph()
remove uneeded edge (mainly header/footer edges in main graph)
Definition: ClarisWksDocument.cxx:2808
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
ClarisWksStruct::Struct::m_dataSize
long m_dataSize
the data size
Definition: ClarisWksStruct.hxx:73
ClarisWksDocument::canSendZoneAsGraphic
bool canSendZoneAsGraphic(int number) const
check if we can send a zone as a graphic
Definition: ClarisWksDocument.cxx:423
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
ClarisWksDocument::createZones
bool createZones()
finds the different objects zones
Definition: ClarisWksDocument.cxx:519
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
ClarisWksStruct::DSET::P_Main
@ P_Main
Definition: ClarisWksStruct.hxx:91
MWAWPageSpan::setHeaderFooter
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
MWAWListener.hxx
libmwaw::Left
@ Left
Definition: libmwaw_internal.hxx:176
ClarisWksDocument::typeMainZonesRec
int typeMainZonesRec(int zId, ClarisWksStruct::DSET::Position type, int maxHeight)
try to type the main zones recursif, returns the father id
Definition: ClarisWksDocument.cxx:2784
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:66
ClarisWksDocument::readStringList
bool readStringList(char const *zoneName, bool hasEntete, std::vector< std::string > &res)
Definition: ClarisWksDocument.cxx:2095
ClarisWksStruct::DSET::P_Unknown
@ P_Unknown
Definition: ClarisWksStruct.hxx:93
ClarisWksDocumentInternal::SubDocument::m_document
ClarisWksDocument & m_document
the document manager
Definition: ClarisWksDocument.cxx:167
ClarisWksDocument::readBookmark
bool readBookmark(long endPos)
Definition: ClarisWksDocument.cxx:1898
ClarisWksDocument::getGraphParser
std::shared_ptr< ClarisWksGraph > getGraphParser()
returns the graph parser
Definition: ClarisWksDocument.hxx:144
ClarisWksSSParser
the main class to read a AppleWorks/ClarisWorks spreadsheet file
Definition: ClarisWksSSParser.hxx:68
ClarisWksDocument::readZoneA
bool readZoneA()
try to read a unknown zone which appear to be filled at least in some v2 database file
Definition: ClarisWksDocument.cxx:2432
ClarisWksStruct::Struct
a basic structure
Definition: ClarisWksStruct.hxx:53
MWAWInputStream.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
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
ClarisWksDocumentInternal::State::m_pagesVerified
bool m_pagesVerified
true if the number pages of pages has been verified
Definition: ClarisWksDocument.cxx:109
ClarisWksDocument::readDataLinkList
bool readDataLinkList()
try to read a structured zone list of picture definition: v5-v6
Definition: ClarisWksDocument.cxx:2146
ClarisWksDocument::readDocInfo
bool readDocInfo()
reads the document info part ( end of the header)
Definition: ClarisWksDocument.cxx:1010
MWAWBox2< float >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
ClarisWksDocument::getDatabaseParser
std::shared_ptr< ClarisWksDatabase > getDatabaseParser()
returns the database parser
Definition: ClarisWksDocument.hxx:139
ClarisWksDocumentInternal::State::m_zonesSentSet
std::set< MWAWVec2i > m_zonesSentSet
a stack of send zone (id,anchor) used to avoid unsolved potential loop
Definition: ClarisWksDocument.cxx:133
ClarisWksStruct::DSET::m_headerSz
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:184
ClarisWksDocumentInternal::State::m_linkIdToDabasePictIdMap
std::map< int, int > m_linkIdToDabasePictIdMap
a map pict id to database pict id
Definition: ClarisWksDocument.cxx:135
ClarisWksDocumentInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: ClarisWksDocument.cxx:152
ClarisWksDocument::updatePageSpanList
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
updates the page span list
Definition: ClarisWksDocument.cxx:268
ClarisWksDocumentInternal::State::m_columnsWidth
std::vector< int > m_columnsWidth
the columns witdh in Points
Definition: ClarisWksDocument.cxx:120
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParser.hxx
ClarisWksDocument::forceParsed
void forceParsed(int zoneId)
indicates that a zone is parser
Definition: ClarisWksDocument.cxx:2580
ClarisWksStruct::DSET::P_Slide
@ P_Slide
Definition: ClarisWksStruct.hxx:93
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
ClarisWksDocument::getTextParser
std::shared_ptr< ClarisWksText > getTextParser()
returns the text parser
Definition: ClarisWksDocument.hxx:164
ClarisWksDocument::m_styleManager
std::shared_ptr< ClarisWksStyleManager > m_styleManager
the style manager
Definition: ClarisWksDocument.hxx:248
ClarisWksDocument::numPages
int numPages() const
returns the document number of page
Definition: ClarisWksDocument.cxx:245
ClarisWksStruct::Struct::m_numData
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:71
ClarisWksDocument::m_parser
MWAWParser * m_parser
the main parser
Definition: ClarisWksDocument.hxx:246
ClarisWksDocumentInternal::State::m_headerHeight
int m_headerHeight
the header height if known
Definition: ClarisWksDocument.cxx:114

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20