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  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());
124  void sendFootnote(int zoneId);
125 
128  {
129  return *m_parser;
130  }
132  shared_ptr<ClarisWksStyleManager> getStyleManager()
133  {
134  return m_styleManager;
135  }
137  shared_ptr<ClarisWksDatabase> getDatabaseParser()
138  {
139  return m_databaseParser;
140  }
142  shared_ptr<ClarisWksGraph> getGraphParser()
143  {
144  return m_graphParser;
145  }
147  shared_ptr<ClarisWksPresentation> getPresentationParser()
148  {
149  return m_presentationParser;
150  }
152  shared_ptr<ClarisWksSpreadsheet> getSpreadsheetParser()
153  {
154  return m_spreadsheetParser;
155  }
157  shared_ptr<ClarisWksTable> getTableParser()
158  {
159  return m_tableParser;
160  }
162  shared_ptr<ClarisWksText> getTextParser()
163  {
164  return m_textParser;
165  }
166 
168  bool readZone();
170  bool readDocHeader();
172  bool readDocInfo();
174  bool readPrintInfo();
175 
176  // THE NAMED ENTRY
177 
179  bool readEndTable(long &eof);
180 
181  /* sequence of plist of printer : in v6 */
182  bool readCPRT(MWAWEntry const &entry);
183 
184  /* read the list of mark */
185  bool readMARKList(MWAWEntry const &entry);
186  /* read a URL mark */
187  bool readURL(long endPos);
188  /* read a bookmark mark */
189  bool readBookmark(long endPos);
190  /* read a document mark */
191  bool readDocumentMark(long endPos);
192  /* read a end mark */
193  bool readEndMark(long endPos);
194 
195  /* read the document summary */
196  bool readDSUM(MWAWEntry const &entry, bool inHeader);
197  /* SNAP (in v6) : size[4]/size[2] picture... */
198  bool readSNAP(MWAWEntry const &entry);
199  /* read the temporary file name ? */
200  bool readTNAM(MWAWEntry const &entry);
201 
202  //
203  // low level
204  //
205 
209  shared_ptr<ClarisWksStruct::DSET> readDSET(bool &complete);
211  void typeMainZones();
213  int typeMainZonesRec(int zId, ClarisWksStruct::DSET::Position type, int maxHeight);
215  bool exploreZonesGraph();
217  bool exploreZonesGraphRec(int zId, std::set<int> &notDoneList);
219  void cleanZonesGraph();
220 
222  bool readStructCellZone(char const *zoneName, bool hasEntete, std::vector<MWAWVec2i> &res);
223  /* read a list of string zone */
224  bool readStringList(char const *zoneName, bool hasEntete, std::vector<std::string> &res);
225 
227  bool readZoneA();
229  void checkOrdering(std::vector<int16_t> &vec16, std::vector<int32_t> &vec32) const;
230 
231 
232 protected:
236  shared_ptr<ClarisWksDocumentInternal::State> m_state;
237 public:
239  shared_ptr<MWAWParserState> m_parserState;
240 
241 protected:
245  shared_ptr<ClarisWksStyleManager> m_styleManager;
246 
248  shared_ptr<ClarisWksDatabase> m_databaseParser;
250  shared_ptr<ClarisWksGraph> m_graphParser;
252  shared_ptr<ClarisWksPresentation> m_presentationParser;
254  shared_ptr<ClarisWksSpreadsheet> m_spreadsheetParser;
256  shared_ptr<ClarisWksTable> m_tableParser;
258  shared_ptr<ClarisWksText> m_textParser;
259 
260  //
261  // the callback
262  //
263 
265  typedef void (MWAWParser::* NewPage)(int page, bool softBreak);
267  typedef void (MWAWParser::* SendFootnote)(int zoneId);
268 
273 
274 private:
277 };
278 
279 #endif
280 // 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:117
ClarisWksStruct::DSET::m_size
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:135
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:156
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:117
ClarisWksTable
the main class to read the text part of Claris Works file
Definition: ClarisWksTable.hxx:70
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:88
ClarisWksDocument::getPresentationParser
shared_ptr< ClarisWksPresentation > getPresentationParser()
returns the presentation parser
Definition: ClarisWksDocument.hxx:147
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
MWAWDocument::MWAW_K_SPREADSHEET
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
ClarisWksDocument::readPrintInfo
bool readPrintInfo()
read the print info zone
Definition: ClarisWksDocument.cxx:2183
ClarisWksDatabase.hxx
MWAWHeaderFooter::HEADER
@ HEADER
Definition: MWAWPageSpan.hxx:48
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
ClarisWksDocument::ClarisWksDocument
ClarisWksDocument(ClarisWksDocument const &orig)
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
ClarisWksStruct.hxx
ClarisWksStruct::DSET::P_Table
@ P_Table
Definition: ClarisWksStruct.hxx:62
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::readStructZone
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:129
MWAWDocument::MWAW_K_PAINT
@ MWAW_K_PAINT
bitmap graphic
Definition: MWAWDocument.hxx:84
ClarisWksDocument::m_tableParser
shared_ptr< ClarisWksTable > m_tableParser
the table parser
Definition: ClarisWksDocument.hxx:256
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:356
ClarisWksPresentation.hxx
ClarisWksDocumentInternal::State::m_metaData
librevenge::RVNGPropertyList m_metaData
the metadata
Definition: ClarisWksDocument.cxx:97
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
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:166
ClarisWksDocumentInternal::State::m_footerId
int m_footerId
the footer zone if known
Definition: ClarisWksDocument.cxx:99
ClarisWksDocumentInternal::State::m_footerHeight
int m_footerHeight
the footer height if known
Definition: ClarisWksDocument.cxx:101
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:126
MWAWDocument::Kind
Kind
an enum to define the kind of document
Definition: MWAWDocument.hxx:80
ClarisWksDocument::getStyleManager
shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:132
ClarisWksDocumentInternal::State::m_pages
MWAWVec2i m_pages
the number of pages find in the header ( if known )
Definition: ClarisWksDocument.cxx:93
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:433
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
ClarisWksDocument::getPageLeftTop
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ClarisWksDocument.cxx:297
ClarisWksDocument::readDSET
shared_ptr< ClarisWksStruct::DSET > readDSET(bool &complete)
reads the zone DSET
Definition: ClarisWksDocument.cxx:827
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:89
ClarisWksDocument::m_databaseParser
shared_ptr< ClarisWksDatabase > m_databaseParser
the database parser
Definition: ClarisWksDocument.hxx:248
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:163
ClarisWksDocument
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
ClarisWksDocument::readZone
bool readZone()
read a zone
Definition: ClarisWksDocument.cxx:719
ClarisWksDocument::getDatabaseParser
shared_ptr< ClarisWksDatabase > getDatabaseParser()
returns the database parser
Definition: ClarisWksDocument.hxx:137
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:1037
ClarisWksStruct::DSET::m_flags
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:169
ClarisWksDocument::m_textParser
shared_ptr< ClarisWksText > m_textParser
the text parser
Definition: ClarisWksDocument.hxx:258
ClarisWksDocument::m_presentationParser
shared_ptr< ClarisWksPresentation > m_presentationParser
the spreadsheet parser
Definition: ClarisWksDocument.hxx:252
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:104
ClarisWksDocument::ClarisWksDocument
ClarisWksDocument(MWAWParser &parser)
constructor
Definition: ClarisWksDocument.cxx:178
ClarisWksStruct::DSET::m_beginSelection
int m_beginSelection
the begin of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:161
ClarisWksDocument::exploreZonesGraph
bool exploreZonesGraph()
try to find the zone dags structure...
Definition: ClarisWksDocument.cxx:2504
MWAWDocument::MWAW_T_CLARISWORKS
@ MWAW_T_CLARISWORKS
ClarisWorks/AppleWorks: all versions, export database (as spreadsheet), draw(as text),...
Definition: MWAWDocument.hxx:105
ClarisWksDocument::getGraphParser
shared_ptr< ClarisWksGraph > getGraphParser()
returns the graph parser
Definition: ClarisWksDocument.hxx:142
ClarisWksDocument::getMainZonesList
std::vector< int > const & getMainZonesList() const
returns the list of the main zones
Definition: ClarisWksDocument.cxx:390
ClarisWksDocument::readTNAM
bool readTNAM(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1971
ClarisWksDocument::newPage
void newPage(int page, bool softBreak=false)
send a page break
Definition: ClarisWksDocument.cxx:306
ClarisWksDocument::typeMainZones
void typeMainZones()
try to type the main zones
Definition: ClarisWksDocument.cxx:2626
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
MWAWPageSpan::setMasterPageName
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:237
MWAWParser::getPageWidth
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:178
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:113
MWAWPageSpan::getMarginRight
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:131
ClarisWksDocument::m_parserState
shared_ptr< MWAWParserState > m_parserState
the parser state
Definition: ClarisWksDocument.hxx:239
ClarisWksDocumentInternal::State::m_headerId
int m_headerId
the header zone if known
Definition: ClarisWksDocument.cxx:98
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:121
ClarisWksDocument::getTableParser
shared_ptr< ClarisWksTable > getTableParser()
returns the table parser
Definition: ClarisWksDocument.hxx:157
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
ClarisWksDocument::readCPRT
bool readCPRT(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1544
ClarisWksTable.hxx
ClarisWksStyleManager.hxx
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:620
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:197
libmwaw_internal.hxx
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
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:66
MWAWParser::getFormLength
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
ClarisWksStruct::DSET::P_Header
@ P_Header
Definition: ClarisWksStruct.hxx:62
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:615
ClarisWksDocument::m_newPage
NewPage m_newPage
the new page callback
Definition: ClarisWksDocument.hxx:270
ClarisWksDocumentInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: ClarisWksDocument.cxx:159
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
ClarisWksStruct::DSET::m_fileType
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:146
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
ClarisWksDocumentInternal::SubDocument::SubDocument
SubDocument(ClarisWksDocument &doc, MWAWInputStreamPtr input, int zoneId)
Definition: ClarisWksDocument.cxx:127
MWAWSection::m_columns
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:100
ClarisWksDocument::NewPage
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: ClarisWksDocument.hxx:265
ClarisWksDocument.hxx
ClarisWksDocument::m_state
shared_ptr< ClarisWksDocumentInternal::State > m_state
the state
Definition: ClarisWksDocument.hxx:236
ClarisWksDocument::getDocumentPages
MWAWVec2i getDocumentPages()
returns the number of expected pages ( accross pages x down page)
Definition: ClarisWksDocument.cxx:201
ClarisWksDocument::getMainParser
MWAWParser & getMainParser()
returns the main parser
Definition: ClarisWksDocument.hxx:127
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
ClarisWksDocument::m_spreadsheetParser
shared_ptr< ClarisWksSpreadsheet > m_spreadsheetParser
the spreadsheet parser
Definition: ClarisWksDocument.hxx:254
ClarisWksDocumentInternal::State::m_columnsSep
std::vector< int > m_columnsSep
the columns separator in Points
Definition: ClarisWksDocument.cxx:108
ClarisWksDocument::m_sendFootnote
SendFootnote m_sendFootnote
the send footnote callback
Definition: ClarisWksDocument.hxx:272
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:2016
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:72
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:61
ClarisWksDocumentInternal::SubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: ClarisWksDocument.cxx:134
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:2253
ClarisWksStruct::DSET
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:58
ClarisWksGraph.hxx
ClarisWksDocumentInternal::State::m_numPages
int m_numPages
the number of pages (computed)
Definition: ClarisWksDocument.cxx:91
ClarisWksDocument::readMARKList
bool readMARKList(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1597
ClarisWksDocumentInternal::State::getZoneType
ClarisWksStruct::DSET::Position getZoneType(int id) const
returns a zone's type
Definition: ClarisWksDocument.cxx:81
ClarisWksText.hxx
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:218
MWAWHeaderFooter::FOOTER
@ FOOTER
Definition: MWAWPageSpan.hxx:48
ClarisWksDocument::getMainSection
MWAWSection getMainSection() const
returns the main document section
Definition: ClarisWksDocument.cxx:315
ClarisWksDocument::getFinalPageSpan
MWAWPageSpan getFinalPageSpan() const
returns the final page span to use for the document
Definition: ClarisWksDocument.cxx:277
ClarisWksGraph
the main class to read the graphic part of Claris Works file
Definition: ClarisWksGraph.hxx:78
ClarisWksDocumentInternal::SubDocument::~SubDocument
virtual ~SubDocument()
destructor
Definition: ClarisWksDocument.cxx:131
ClarisWksDocument::sendFootnote
void sendFootnote(int zoneId)
ask the main parser to create a document to send a footnote
Definition: ClarisWksDocument.cxx:347
ClarisWksDocumentInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: ClarisWksDocument.cxx:156
ClarisWksDocument::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: ClarisWksDocument.cxx:615
MWAWHeader.hxx
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
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:141
ClarisWksDocument::m_styleManager
shared_ptr< ClarisWksStyleManager > m_styleManager
the style manager
Definition: ClarisWksDocument.hxx:245
ClarisWksDocument::getDocumentMetaData
librevenge::RVNGPropertyList const & getDocumentMetaData() const
returns the document meta data
Definition: ClarisWksDocument.cxx:243
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:1438
ClarisWksDocumentInternal::SubDocument
Internal: the subdocument of a ClarisWksDocument.
Definition: ClarisWksDocument.cxx:125
ClarisWksStruct::DSET::Position
Position
the zone position
Definition: ClarisWksStruct.hxx:62
ClarisWksDocument::readDocumentMark
bool readDocumentMark(long endPos)
Definition: ClarisWksDocument.cxx:1815
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:1760
ClarisWksDocument::updateChildPositions
void updateChildPositions()
try to update the child page of each zone
Definition: ClarisWksDocument.cxx:2440
ClarisWksDocument::readEndMark
bool readEndMark(long endPos)
Definition: ClarisWksDocument.cxx:1929
ClarisWksStruct::DSET::P_Footer
@ P_Footer
Definition: ClarisWksStruct.hxx:62
ClarisWksStruct::DSET::m_numData
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:137
ClarisWksDocument::readSNAP
bool readSNAP(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:2127
ClarisWksDocument::SendFootnote
void(MWAWParser::* SendFootnote)(int zoneId)
callback used to send a footnote
Definition: ClarisWksDocument.hxx:267
ClarisWksDocument::getSpreadsheetParser
shared_ptr< ClarisWksSpreadsheet > getSpreadsheetParser()
returns the spreadsheet parser
Definition: ClarisWksDocument.hxx:152
ClarisWksDocument::getZone
shared_ptr< ClarisWksStruct::DSET > getZone(int zId) const
return the zone corresponding to an id ( low level)
Definition: ClarisWksDocument.cxx:395
ClarisWksDocument::exploreZonesGraphRec
bool exploreZonesGraphRec(int zId, std::set< int > &notDoneList)
try to find the zone tree graph ( DSF) function
Definition: ClarisWksDocument.cxx:2575
ClarisWksStruct::DSET::m_dataSz
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:139
libmwaw::Right
@ Right
Definition: libmwaw_internal.hxx:166
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:292
ClarisWksDocumentInternal::State::m_rootZonesList
std::vector< int > m_rootZonesList
the list of root zones
Definition: ClarisWksDocument.cxx:115
ClarisWksDocument::getTextParser
shared_ptr< ClarisWksText > getTextParser()
returns the text parser
Definition: ClarisWksDocument.hxx:162
ClarisWksDocument::~ClarisWksDocument
~ClarisWksDocument()
virtual destructor
Definition: ClarisWksDocument.cxx:194
ClarisWksDocument::cleanZonesGraph
void cleanZonesGraph()
remove uneeded edge (mainly header/footer edges in main graph)
Definition: ClarisWksDocument.cxx:2735
ClarisWksDocument::operator=
ClarisWksDocument operator=(ClarisWksDocument const &orig)
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
ClarisWksDocument::canSendZoneAsGraphic
bool canSendZoneAsGraphic(int number) const
check if we can send a zone as a graphic
Definition: ClarisWksDocument.cxx:403
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
ClarisWksDocument::createZones
bool createZones()
finds the different objects zones
Definition: ClarisWksDocument.cxx:489
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
ClarisWksStruct::DSET::P_Main
@ P_Main
Definition: ClarisWksStruct.hxx:62
MWAWPageSpan::setHeaderFooter
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:223
MWAWListener.hxx
libmwaw::Left
@ Left
Definition: libmwaw_internal.hxx:166
ClarisWksDocumentInternal::SubDocument::operator==
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: ClarisWksDocument.cxx:145
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:2710
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:2073
ClarisWksStruct::DSET::P_Unknown
@ P_Unknown
Definition: ClarisWksStruct.hxx:64
ClarisWksDocumentInternal::SubDocument::m_document
ClarisWksDocument & m_document
the document manager
Definition: ClarisWksDocument.cxx:154
ClarisWksDocument::readBookmark
bool readBookmark(long endPos)
Definition: ClarisWksDocument.cxx:1876
ClarisWksSSParser
the main class to read a AppleWorks/ClarisWorks spreadsheet file
Definition: ClarisWksSSParser.hxx:68
ClarisWksDocumentInternal::State::m_zonesMap
std::map< int, shared_ptr< ClarisWksStruct::DSET > > m_zonesMap
the map of zone
Definition: ClarisWksDocument.cxx:111
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:2328
MWAWInputStream.hxx
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:82
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
ClarisWksDocumentInternal::State::m_pagesVerified
bool m_pagesVerified
true if the number pages of pages has been verified
Definition: ClarisWksDocument.cxx:95
ClarisWksDocument::readDocInfo
bool readDocInfo()
reads the document info part ( end of the header)
Definition: ClarisWksDocument.cxx:963
ClarisWksDocument::m_graphParser
shared_ptr< ClarisWksGraph > m_graphParser
the graph parser
Definition: ClarisWksDocument.hxx:250
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
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:119
ClarisWksStruct::DSET::m_headerSz
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:141
ClarisWksDocument::updatePageSpanList
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
updates the page span list
Definition: ClarisWksDocument.cxx:248
ClarisWksDocumentInternal::State::m_columnsWidth
std::vector< int > m_columnsWidth
the columns witdh in Points
Definition: ClarisWksDocument.cxx:106
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWListenerPtr
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
MWAWParser.hxx
ClarisWksDocument::forceParsed
void forceParsed(int zoneId)
indicates that a zone is parser
Definition: ClarisWksDocument.cxx:2498
ClarisWksStruct::DSET::P_Slide
@ P_Slide
Definition: ClarisWksStruct.hxx:64
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
ClarisWksDocument::numPages
int numPages() const
returns the document number of page
Definition: ClarisWksDocument.cxx:225
ClarisWksDocument::m_parser
MWAWParser * m_parser
the main parser
Definition: ClarisWksDocument.hxx:243
ClarisWksDocumentInternal::State::m_headerHeight
int m_headerHeight
the header height if known
Definition: ClarisWksDocument.cxx:100

Generated on Wed Jun 17 2020 06:30:09 for libmwaw by doxygen 1.8.18