38 #ifndef CW_MWAW_PARSER
39 # define CW_MWAW_PARSER
45 #include <libwpd/libwpd.h>
54 namespace CWParserInternal
94 void parse(WPXDocumentInterface *documentInterface);
107 shared_ptr<CWStruct::DSET>
getZone(
int zId)
const;
131 bool readStructIntZone(
char const *zoneName,
bool hasEntete,
int fSz, std::vector<int> &res);
182 shared_ptr<CWStruct::DSET>
readDSET(
bool &complete);
200 void checkOrdering(std::vector<int16_t> &vec16, std::vector<int32_t> &vec32)
const;
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: CWParser.cxx:1312
void getHeaderFooterId(int &headerId, int &footerId) const
returns the header/footer id
Definition: CWParser.cxx:219
bool readDSUM(MWAWEntry const &entry, bool inHeader)
Definition: CWParser.cxx:1440
a structure to store the style list and the lookup zone
Definition: CWStyleManager.hxx:59
shared_ptr< CWStruct::DSET > readDSET(bool &complete)
reads the zone DSET
Definition: CWParser.cxx:1116
bool readPrintInfo()
read the print info zone
Definition: CWParser.cxx:2012
CWParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: CWParser.cxx:159
Internal: the subdocument of a CWParser.
Definition: CWParser.cxx:104
bool createZones()
finds the different objects zones
Definition: CWParser.cxx:493
the main class to read the text part of Claris Works file
Definition: CWSpreadsheet.hxx:70
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: CWParser.cxx:225
bool readCPRT(MWAWEntry const &entry)
Definition: CWParser.cxx:1533
the main class to read the text part of Claris Works file
Definition: CWText.hxx:75
void typeMainZones()
try to type the main zones
Definition: CWParser.cxx:584
the main class to read the text part of Claris Works file
Definition: CWTable.hxx:69
shared_ptr< CWGraph > m_graphParser
the graph parser
Definition: CWParser.hxx:218
shared_ptr< CWDatabase > m_databaseParser
the database parser
Definition: CWParser.hxx:215
bool readEndTable()
reads the end table ( appears in v3.0 : file version ? )
Definition: CWParser.cxx:798
the main class to read the graphic part of Claris Works file
Definition: CWGraph.hxx:75
Type
the document type
Definition: CWStruct.hxx:59
void parse(WPXDocumentInterface *documentInterface)
virtual function used to parse the input
Definition: CWParser.cxx:390
the main class to read the text part of Claris Works file
Definition: CWDatabase.hxx:70
bool readDocInfo()
reads the document info part ( end of the header)
Definition: CWParser.cxx:1941
void newPage(int number)
adds a new page
Definition: CWParser.cxx:259
Vec2i getDocumentPages() const
returns the number of expected pages ( accross pages x down page)
Definition: CWParser.cxx:194
bool exploreZonesGraph()
try to find the zone dags structure...
Definition: CWParser.cxx:669
shared_ptr< CWStruct::DSET > getZone(int zId) const
return the zone corresponding to an id ( low level)
Definition: CWParser.cxx:210
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:354
MWAWSection getMainSection() const
returns the columns information
Definition: CWParser.cxx:339
Vec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: CWParser.cxx:204
bool readStructZone(char const *zoneName, bool hasEntete)
try to read a structured zone
Definition: CWParser.cxx:1249
the main class to read the text part of Claris Works file
Definition: CWPresentation.hxx:67
void sendFootnote(int zoneId)
creates a document to send a footnote
Definition: CWParser.cxx:371
shared_ptr< CWPresentation > m_presentationParser
the spreadsheet parser
Definition: CWParser.hxx:221
int typeMainZonesRec(int zId, CWStruct::DSET::Type type, int maxHeight)
try to type the main zones recursif, returns the father id
Definition: CWParser.cxx:641
shared_ptr< CWTable > m_tableParser
the table parser
Definition: CWParser.hxx:230
shared_ptr< CWSpreadsheet > m_spreadsheetParser
the spreadsheet parser
Definition: CWParser.hxx:224
void init()
inits all internal variables
Definition: CWParser.cxx:171
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: CWParser.cxx:1010
bool sendZone(int zoneId, bool asGraphic, MWAWPosition pos=MWAWPosition())
send a zone
Definition: CWParser.cxx:297
the main class to read a Claris Works file
Definition: CWParser.hxx:73
a class which stores section properties
Definition: MWAWSection.hxx:45
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:348
bool readTNAM(MWAWEntry const &entry)
Definition: CWParser.cxx:1489
virtual ~CWParser()
destructor
Definition: CWParser.cxx:167
shared_ptr< CWParserInternal::State > m_state
the state
Definition: CWParser.hxx:209
bool exploreZonesGraphRec(int zId, std::set< int > ¬DoneList)
try to find the zone tree graph ( DSF) function
Definition: CWParser.cxx:757
shared_ptr< CWStyleManager > m_styleManager
the style manager
Definition: CWParser.hxx:227
bool readSNAP(MWAWEntry const &entry)
Definition: CWParser.cxx:1385
void createDocument(WPXDocumentInterface *documentInterface)
creates the listener which will be associated to the document
Definition: CWParser.cxx:434
bool readZone()
read a zone
Definition: CWParser.cxx:895
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:89
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 m_pageSpanSet
a flag to know if pageSpan is filled
Definition: CWParser.hxx:212
bool canSendZoneAsGraphic(int number) const
check if we can send a zone as a graphic
Definition: CWParser.cxx:275
double getTextHeight() const
returns the page height, ie. paper size less margin (in inches) less header/footer size ...
Definition: CWParser.cxx:199
bool readDocHeader()
reads the document header
Definition: CWParser.cxx:1585
shared_ptr< CWText > m_textParser
the text parser
Definition: CWParser.hxx:233
void forceParsed(int zoneId)
indicate that a zone is already parsed
Definition: CWParser.cxx:379