38 #ifndef CLARIS_WKS_DOCUMENT
39 # define CLARIS_WKS_DOCUMENT
110 shared_ptr<ClarisWksStruct::DSET>
getZone(
int zId)
const;
114 void newPage(
int page,
bool softBreak=
false);
209 shared_ptr<ClarisWksStruct::DSET>
readDSET(
bool &complete);
222 bool readStructCellZone(
char const *zoneName,
bool hasEntete, std::vector<MWAWVec2i> &res);
224 bool readStringList(
char const *zoneName,
bool hasEntete, std::vector<std::string> &res);
229 void checkOrdering(std::vector<int16_t> &vec16, std::vector<int32_t> &vec32)
const;
236 shared_ptr<ClarisWksDocumentInternal::State>
m_state;
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:502
bool canSendZoneAsGraphic(int number) const
check if we can send a zone as a graphic
Definition: ClarisWksDocument.cxx:403
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:390
shared_ptr< ClarisWksStruct::DSET > readDSET(bool &complete)
reads the zone DSET
Definition: ClarisWksDocument.cxx:827
shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:132
bool readBookmark(long endPos)
Definition: ClarisWksDocument.cxx:1876
the main class to read a AppleWorks/ClarisWorks spreadsheet file
Definition: ClarisWksSSParser.hxx:67
bool readStringList(char const *zoneName, bool hasEntete, std::vector< std::string > &res)
Definition: ClarisWksDocument.cxx:2073
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:252
shared_ptr< ClarisWksDatabase > m_databaseParser
the database parser
Definition: ClarisWksDocument.hxx:248
shared_ptr< ClarisWksText > m_textParser
the text parser
Definition: ClarisWksDocument.hxx:258
the main class to read the text part of Claris Works file
Definition: ClarisWksDatabase.hxx:71
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
updates the page span list
Definition: ClarisWksDocument.cxx:248
the main class to read the text part of Claris Works file
Definition: ClarisWksText.hxx:75
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
shared_ptr< ClarisWksGraph > getGraphParser()
returns the graph parser
Definition: ClarisWksDocument.hxx:142
shared_ptr< ClarisWksGraph > m_graphParser
the graph parser
Definition: ClarisWksDocument.hxx:250
bool readCPRT(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1544
void forceParsed(int zoneId)
indicates that a zone is parser
Definition: ClarisWksDocument.cxx:2498
bool readTNAM(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1971
void newPage(int page, bool softBreak=false)
send a page break
Definition: ClarisWksDocument.cxx:306
shared_ptr< MWAWParserState > m_parserState
the parser state
Definition: ClarisWksDocument.hxx:239
NewPage m_newPage
the new page callback
Definition: ClarisWksDocument.hxx:270
MWAWSection getMainSection() const
returns the main document section
Definition: ClarisWksDocument.cxx:315
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
shared_ptr< ClarisWksTable > getTableParser()
returns the table parser
Definition: ClarisWksDocument.hxx:157
double getTextHeight() const
returns the page height, ie. paper size less margin (in inches) less header/footer size ...
Definition: ClarisWksDocument.cxx:292
bool readPrintInfo()
read the print info zone
Definition: ClarisWksDocument.cxx:2183
Internal: the subdocument of a ClarisWksDocument.
Definition: ClarisWksDocument.cxx:124
shared_ptr< ClarisWksSpreadsheet > m_spreadsheetParser
the spreadsheet parser
Definition: ClarisWksDocument.hxx:254
the main class to read the graphic part of Claris Works file
Definition: ClarisWksGraph.hxx:77
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:256
the main class to read a bitmap AppleWorks/ClarisWorks file
Definition: ClarisWksBMParser.hxx:65
MWAWParser & getMainParser()
returns the main parser
Definition: ClarisWksDocument.hxx:127
MWAWVec2i getDocumentPages()
returns the number of expected pages ( accross pages x down page)
Definition: ClarisWksDocument.cxx:201
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:433
shared_ptr< ClarisWksStyleManager > m_styleManager
the style manager
Definition: ClarisWksDocument.hxx:245
void(MWAWParser::* SendFootnote)(int zoneId)
callback used to send a footnote
Definition: ClarisWksDocument.hxx:267
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:73
void sendFootnote(int zoneId)
ask the main parser to create a document to send a footnote
Definition: ClarisWksDocument.cxx:347
bool readEndTable(long &eof)
reads the end table ( appears in v3.0 : file version ? )
Definition: ClarisWksDocument.cxx:1438
void updateChildPositions()
try to update the child page of each zone
Definition: ClarisWksDocument.cxx:2440
ClarisWksDocument(MWAWParser &parser)
constructor
Definition: ClarisWksDocument.cxx:178
bool readURL(long endPos)
Definition: ClarisWksDocument.cxx:1760
shared_ptr< ClarisWksDatabase > getDatabaseParser()
returns the database parser
Definition: ClarisWksDocument.hxx:137
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:67
shared_ptr< ClarisWksText > getTextParser()
returns the text parser
Definition: ClarisWksDocument.hxx:162
bool readZone()
read a zone
Definition: ClarisWksDocument.cxx:719
shared_ptr< ClarisWksSpreadsheet > getSpreadsheetParser()
returns the spreadsheet parser
Definition: ClarisWksDocument.hxx:152
~ClarisWksDocument()
virtual destructor
Definition: ClarisWksDocument.cxx:194
bool readSNAP(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:2127
bool readDocHeader()
reads the document header
Definition: ClarisWksDocument.cxx:1037
void typeMainZones()
try to type the main zones
Definition: ClarisWksDocument.cxx:2626
bool exploreZonesGraph()
try to find the zone dags structure...
Definition: ClarisWksDocument.cxx:2504
bool exploreZonesGraphRec(int zId, std::set< int > ¬DoneList)
try to find the zone tree graph ( DSF) function
Definition: ClarisWksDocument.cxx:2575
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
Internal: the structures of a ClarisWksDocument.
Definition: ClarisWksDocument.cxx:67
the main class to create presentation Claris Works file
Definition: ClarisWksPRParser.hxx:67
bool createZones()
finds the different objects zones
Definition: ClarisWksDocument.cxx:489
the main class to read the text part of Claris Works file
Definition: ClarisWksPresentation.hxx:70
bool readDocInfo()
reads the document info part ( end of the header)
Definition: ClarisWksDocument.cxx:963
a class which stores section properties
Definition: MWAWSection.hxx:45
bool readZoneA()
try to read a unknown zone which appear to be filled at least in some v2 database file ...
Definition: ClarisWksDocument.cxx:2328
Position
the zone position
Definition: ClarisWksStruct.hxx:62
SendFootnote m_sendFootnote
the send footnote callback
Definition: ClarisWksDocument.hxx:272
bool readStructCellZone(char const *zoneName, bool hasEntete, std::vector< MWAWVec2i > &res)
try to read a structured zone list of cells
Definition: ClarisWksDocument.cxx:2253
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: ClarisWksDocument.hxx:265
shared_ptr< ClarisWksDocumentInternal::State > m_state
the state
Definition: ClarisWksDocument.hxx:236
MWAWPageSpan getFinalPageSpan() const
returns the final page span to use for the document
Definition: ClarisWksDocument.cxx:277
bool readDSUM(MWAWEntry const &entry, bool inHeader)
Definition: ClarisWksDocument.cxx:2016
MWAWParser * m_parser
the main parser
Definition: ClarisWksDocument.hxx:243
bool readMARKList(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1597
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:97
shared_ptr< ClarisWksPresentation > getPresentationParser()
returns the presentation parser
Definition: ClarisWksDocument.hxx:147
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
librevenge::RVNGPropertyList const & getDocumentMetaData() const
returns the document meta data
Definition: ClarisWksDocument.cxx:243
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:615
shared_ptr< ClarisWksStruct::DSET > getZone(int zId) const
return the zone corresponding to an id ( low level)
Definition: ClarisWksDocument.cxx:395
int numPages() const
returns the document number of page
Definition: ClarisWksDocument.cxx:225
bool readEndMark(long endPos)
Definition: ClarisWksDocument.cxx:1929
bool readDocumentMark(long endPos)
Definition: ClarisWksDocument.cxx:1815
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ClarisWksDocument.cxx:297
ClarisWksDocument operator=(ClarisWksDocument const &orig)
void cleanZonesGraph()
remove uneeded edge (mainly header/footer edges in main graph)
Definition: ClarisWksDocument.cxx:2735