38 #ifndef CLARIS_WKS_DOCUMENT
39 # define CLARIS_WKS_DOCUMENT
51 namespace ClarisWksDocumentInternal
98 shared_ptr<ClarisWksStruct::DSET>
getZone(
int zId)
const;
196 shared_ptr<ClarisWksStruct::DSET>
readDSET(
bool &complete);
210 bool readStructIntZone(
char const *zoneName,
bool hasEntete,
int fSz, std::vector<int> &res);
212 void checkOrdering(std::vector<int16_t> &vec16, std::vector<int32_t> &vec32)
const;
217 shared_ptr<ClarisWksDocumentInternal::State>
m_state;
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:382
bool canSendZoneAsGraphic(int number) const
check if we can send a zone as a graphic
Definition: ClarisWksDocument.cxx:249
the main class to read the text part of Claris Works file
Definition: ClarisWksSpreadsheet.hxx:70
std::vector< int > const & getMainZonesList() const
returns the list of the main zones
Definition: ClarisWksDocument.cxx:230
shared_ptr< ClarisWksStruct::DSET > readDSET(bool &complete)
reads the zone DSET
Definition: ClarisWksDocument.cxx:623
shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:118
bool readBookmark(long endPos)
Definition: ClarisWksDocument.cxx:1657
the main class to read a AppleWorks/ClarisWorks spreadsheet file
Definition: ClarisWksSSParser.hxx:67
the main class to read the text part of Claris Works file
Definition: ClarisWksTable.hxx:69
shared_ptr< ClarisWksPresentation > m_presentationParser
the spreadsheet parser
Definition: ClarisWksDocument.hxx:233
shared_ptr< ClarisWksDatabase > m_databaseParser
the database parser
Definition: ClarisWksDocument.hxx:229
shared_ptr< ClarisWksText > m_textParser
the text parser
Definition: ClarisWksDocument.hxx:239
the main class to read the text part of Claris Works file
Definition: ClarisWksDatabase.hxx:71
void getHeaderFooterId(int &headerId, int &footerId) const
returns the header/footer id
Definition: ClarisWksDocument.cxx:138
void(MWAWParser::* NewPage)(int page)
callback used to send a page break
Definition: ClarisWksDocument.hxx:246
the main class to read the text part of Claris Works file
Definition: ClarisWksText.hxx:73
int typeMainZonesRec(int zId, ClarisWksStruct::DSET::Type type, int maxHeight)
try to type the main zones recursif, returns the father id
Definition: ClarisWksDocument.cxx:2313
shared_ptr< ClarisWksGraph > getGraphParser()
returns the graph parser
Definition: ClarisWksDocument.hxx:128
shared_ptr< ClarisWksGraph > m_graphParser
the graph parser
Definition: ClarisWksDocument.hxx:231
bool readCPRT(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1325
void forceParsed(int zoneId)
indicates that a zone is parser
Definition: ClarisWksDocument.cxx:243
bool readTNAM(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1752
shared_ptr< MWAWParserState > m_parserState
the parser state
Definition: ClarisWksDocument.hxx:220
NewPage m_newPage
the new page callback
Definition: ClarisWksDocument.hxx:251
MWAWSection getMainSection() const
returns the main document section
Definition: ClarisWksDocument.cxx:155
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:196
shared_ptr< ClarisWksTable > getTableParser()
returns the table parser
Definition: ClarisWksDocument.hxx:143
double getTextHeight() const
returns the page height, ie. paper size less margin (in inches) less header/footer size ...
Definition: ClarisWksDocument.cxx:127
bool readPrintInfo()
read the print info zone
Definition: ClarisWksDocument.cxx:1903
shared_ptr< ClarisWksSpreadsheet > m_spreadsheetParser
the spreadsheet parser
Definition: ClarisWksDocument.hxx:235
void newPage(int page)
send a page break
Definition: ClarisWksDocument.cxx:146
the main class to read the graphic part of Claris Works file
Definition: ClarisWksGraph.hxx:76
a structure to store the style list and the lookup zone
Definition: ClarisWksStyleManager.hxx:60
shared_ptr< ClarisWksTable > m_tableParser
the table parser
Definition: ClarisWksDocument.hxx:237
the main class to read a bitmap AppleWorks/ClarisWorks file
Definition: ClarisWksBMParser.hxx:66
MWAWParser & getMainParser()
returns the main parser
Definition: ClarisWksDocument.hxx:113
Vec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ClarisWksDocument.cxx:132
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:270
shared_ptr< ClarisWksStyleManager > m_styleManager
the style manager
Definition: ClarisWksDocument.hxx:226
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:69
void sendFootnote(int zoneId)
ask the main parser to create a document to send a footnote
Definition: ClarisWksDocument.cxx:187
bool readEndTable(long &eof)
reads the end table ( appears in v3.0 : file version ? )
Definition: ClarisWksDocument.cxx:1220
ClarisWksDocument(MWAWParser &parser)
constructor
Definition: ClarisWksDocument.cxx:99
bool readURL(long endPos)
Definition: ClarisWksDocument.cxx:1541
shared_ptr< ClarisWksDatabase > getDatabaseParser()
returns the database parser
Definition: ClarisWksDocument.hxx:123
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:67
shared_ptr< ClarisWksText > getTextParser()
returns the text parser
Definition: ClarisWksDocument.hxx:148
bool readZone()
read a zone
Definition: ClarisWksDocument.cxx:512
shared_ptr< ClarisWksSpreadsheet > getSpreadsheetParser()
returns the spreadsheet parser
Definition: ClarisWksDocument.hxx:138
~ClarisWksDocument()
virtual destructor
Definition: ClarisWksDocument.cxx:115
bool readSNAP(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1847
bool readDocHeader()
reads the document header
Definition: ClarisWksDocument.cxx:832
void typeMainZones()
try to type the main zones
Definition: ClarisWksDocument.cxx:2256
bool exploreZonesGraph()
try to find the zone dags structure...
Definition: ClarisWksDocument.cxx:2123
bool exploreZonesGraphRec(int zId, std::set< int > ¬DoneList)
try to find the zone tree graph ( DSF) function
Definition: ClarisWksDocument.cxx:2212
bool createZones()
finds the different objects zones
Definition: ClarisWksDocument.cxx:313
void(MWAWParser::* SendFootnote)(int zoneId)
callback used to send a footnote
Definition: ClarisWksDocument.hxx:248
the main class to read the text part of Claris Works file
Definition: ClarisWksPresentation.hxx:67
bool readDocInfo()
reads the document info part ( end of the header)
Definition: ClarisWksDocument.cxx:759
a class which stores section properties
Definition: MWAWSection.hxx:45
SendFootnote m_sendFootnote
the send footnote callback
Definition: ClarisWksDocument.hxx:253
shared_ptr< ClarisWksDocumentInternal::State > m_state
the state
Definition: ClarisWksDocument.hxx:217
Type
the document type
Definition: ClarisWksStruct.hxx:55
bool readDSUM(MWAWEntry const &entry, bool inHeader)
Definition: ClarisWksDocument.cxx:1797
bool readStructIntZone(char const *zoneName, bool hasEntete, int fSz, std::vector< int > &res)
try to read a int structured zone where fSz to the int size: 1(int8), 2(int16), 4(int32) ...
Definition: ClarisWksDocument.cxx:2044
MWAWParser * m_parser
the main parser
Definition: ClarisWksDocument.hxx:224
bool readMARKList(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1378
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:95
shared_ptr< ClarisWksPresentation > getPresentationParser()
returns the presentation parser
Definition: ClarisWksDocument.hxx:133
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: ClarisWksDocument.cxx:408
shared_ptr< ClarisWksStruct::DSET > getZone(int zId) const
return the zone corresponding to an id ( low level)
Definition: ClarisWksDocument.cxx:235
bool readEndMark(long endPos)
Definition: ClarisWksDocument.cxx:1710
bool readStructZone(char const *zoneName, bool hasEntete)
try to read a structured zone
Definition: ClarisWksDocument.cxx:1975
bool readDocumentMark(long endPos)
Definition: ClarisWksDocument.cxx:1596
Vec2i getDocumentPages() const
returns the number of expected pages ( accross pages x down page)
Definition: ClarisWksDocument.cxx:122
ClarisWksDocument operator=(ClarisWksDocument const &orig)