38 #ifndef CW_MWAW_PARSER
39 # define CW_MWAW_PARSER
45 #include <libwpd/libwpd.h>
56 namespace CWParserInternal
96 void parse(WPXDocumentInterface *documentInterface);
133 bool readStructIntZone(
char const *zoneName,
bool hasEntete,
int fSz, std::vector<int> &res);
150 WPXPropertyList extras = WPXPropertyList(),
151 WPXPropertyList frameExtras = WPXPropertyList());
187 shared_ptr<CWStruct::DSET>
readDSET(
bool &complete);
205 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:1294
void getHeaderFooterId(int &headerId, int &footerId) const
returns the header/footer id
Definition: CWParser.cxx:229
bool readDSUM(MWAWEntry const &entry, bool inHeader)
Definition: CWParser.cxx:1422
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
Definition: ACText.hxx:44
a structure to store the style list and the lookup zone
Definition: CWStyleManager.hxx:64
CWStruct::DSET::Type getZoneType(int zId) const
try to return the type of a zone
Definition: CWParser.cxx:220
shared_ptr< CWStruct::DSET > readDSET(bool &complete)
reads the zone DSET
Definition: CWParser.cxx:1095
bool readPrintInfo()
read the print info zone
Definition: CWParser.cxx:1952
CWParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: CWParser.cxx:164
bool sendZone(int zoneId, MWAWPosition pos=MWAWPosition())
send a zone
Definition: CWParser.cxx:285
Internal: the subdocument of a CWParser.
Definition: CWParser.cxx:100
bool createZones()
finds the different objects zones
Definition: CWParser.cxx:480
float getPatternPercent(int id) const
return the pattern percent which corresponds to an id (or -1)
Definition: CWParser.cxx:215
the main class to read the text part of Claris Works file
Definition: CWSpreadsheet.hxx:73
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:235
bool readCPRT(MWAWEntry const &entry)
Definition: CWParser.cxx:1515
the main class to read the text part of Claris Works file
Definition: CWText.hxx:79
void typeMainZones()
try to type the main zones
Definition: CWParser.cxx:571
the main class to read the text part of Claris Works file
Definition: CWTable.hxx:73
shared_ptr< CWGraph > m_graphParser
the graph parser
Definition: CWParser.hxx:223
shared_ptr< CWDatabase > m_databaseParser
the database parser
Definition: CWParser.hxx:220
the class to store a color
Definition: libmwaw_internal.hxx:161
bool readEndTable()
reads the end table ( appears in v3.0 : file version ? )
Definition: CWParser.cxx:783
the main class to read the graphic part of Claris Works file
Definition: CWGraph.hxx:77
Type
the document type
Definition: CWStruct.hxx:59
void parse(WPXDocumentInterface *documentInterface)
virtual function used to parse the input
Definition: CWParser.cxx:386
the main class to read the text part of Claris Works file
Definition: CWDatabase.hxx:73
void newPage(int number)
adds a new page
Definition: CWParser.cxx:269
bool exploreZonesGraph()
try to find the zone dags structure...
Definition: CWParser.cxx:655
MWAWSection getMainSection() const
returns the columns information
Definition: CWParser.cxx:327
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:1228
the main class to read the text part of Claris Works file
Definition: CWPresentation.hxx:70
void sendFootnote(int zoneId)
creates a document to send a footnote
Definition: CWParser.cxx:359
shared_ptr< CWPresentation > m_presentationParser
the spreadsheet parser
Definition: CWParser.hxx:226
int typeMainZonesRec(int zId, CWStruct::DSET::Type type, int maxHeight)
try to type the main zones recursif, returns the father id
Definition: CWParser.cxx:627
shared_ptr< CWTable > m_tableParser
the table parser
Definition: CWParser.hxx:235
shared_ptr< CWSpreadsheet > m_spreadsheetParser
the spreadsheet parser
Definition: CWParser.hxx:229
void init()
inits all internal variables
Definition: CWParser.cxx:176
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: CWParser.cxx:990
the main class to read a Claris Works file
Definition: CWParser.hxx:75
a class which stores section properties
Definition: MWAWSection.hxx:45
bool readTNAM(MWAWEntry const &entry)
Definition: CWParser.cxx:1471
virtual ~CWParser()
destructor
Definition: CWParser.cxx:172
shared_ptr< CWParserInternal::State > m_state
the state
Definition: CWParser.hxx:214
bool exploreZonesGraphRec(int zId, std::set< int > ¬DoneList)
try to find the zone tree graph ( DSF) function
Definition: CWParser.cxx:743
shared_ptr< CWStyleManager > m_styleManager
the style manager
Definition: CWParser.hxx:232
void sendZoneInFrame(int zoneId, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList(), WPXPropertyList frameExtras=WPXPropertyList())
send a zone in a frame
Definition: CWParser.cxx:367
bool readSNAP(MWAWEntry const &entry)
Definition: CWParser.cxx:1367
void createDocument(WPXDocumentInterface *documentInterface)
creates the listener which will be associated to the document
Definition: CWParser.cxx:421
bool readZone()
read a zone
Definition: CWParser.cxx:880
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:98
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 getColor(int colId, MWAWColor &col) const
returns the color corresponding to colId (if possible)
Definition: CWParser.cxx:210
bool m_pageSpanSet
a flag to know if pageSpan is filled
Definition: CWParser.hxx:217
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:1567
shared_ptr< CWText > m_textParser
the text parser
Definition: CWParser.hxx:238
void forceParsed(int zoneId)
indicate that a zone is already parsed
Definition: CWParser.cxx:375
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
Definition: MWAWParser.hxx:56