249 virtual void parse(librevenge::RVNGDrawingInterface *documentInterface) = 0;
262 virtual void parse(librevenge::RVNGPresentationInterface *documentInterface) = 0;
275 virtual void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) = 0;
288 virtual void parse(librevenge::RVNGTextInterface *documentInterface) = 0;
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:441
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:138
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:143
MWAWPresentationParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:267
virtual void parse(librevenge::RVNGPresentationInterface *documentInterface)=0
virtual function used to parse the input
void setPresentationListener(MWAWPresentationListenerPtr &listener)
sets the presentation listener
Definition: MWAWParser.cxx:125
MWAWTextParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:291
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:227
MWAWDocument::Kind m_kind
the document kind
Definition: MWAWParser.hxx:63
MWAWParserState & operator=(MWAWParserState const &orig)
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:178
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
MWAWSpreadsheetListenerPtr m_spreadsheetListener
the spreadsheet listener
Definition: MWAWParser.hxx:84
MWAWHeader * m_header
the header
Definition: MWAWParser.hxx:69
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:199
shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:447
MWAWGraphicParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:252
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:183
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:153
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:163
MWAWHeader * getHeader()
returns the header
Definition: MWAWParser.hxx:116
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:128
MWAWParserState(Type type, MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
Constructor.
Definition: MWAWParser.cxx:44
MWAWParserStatePtr m_parserState
the parser state
Definition: MWAWParser.hxx:239
MWAWTextListenerPtr m_textListener
the text listener
Definition: MWAWParser.hxx:86
MWAWParser & operator=(const MWAWParser &)
private operator=: forbidden
virtual void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)=0
virtual function used to parse the input
MWAWParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:196
~MWAWParserState()
destructor
Definition: MWAWParser.cxx:57
Definition: MWAWParser.hxx:53
MWAWListenerPtr getMainListener()
returns the main listener
Definition: MWAWParser.cxx:109
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:148
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:222
a class to define the parser state
Definition: MWAWParser.hxx:49
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:449
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:141
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MWAWParser.hxx:89
int m_version
the actual version
Definition: MWAWParser.hxx:65
void resetPresentationListener()
resets the listener
Definition: MWAWParser.cxx:130
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:188
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:451
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:111
MWAWPresentationListenerPtr & getPresentationListener()
returns the presentation listener
Definition: MWAWParser.hxx:133
MWAWListManagerPtr m_listManager
the list manager
Definition: MWAWParser.hxx:80
Definition: MWAWParser.hxx:53
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:284
MWAWPageSpan m_pageSpan
the actual document size
Definition: MWAWParser.hxx:73
int version() const
returns the works version
Definition: MWAWParser.hxx:106
virtual class which defines the ancestor of all presentation zone parser
Definition: MWAWParser.hxx:258
MWAWPresentationParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:265
double getPageLength() const
returns the page length (form length without margin )
Definition: MWAWParser.hxx:173
void setSpreadsheetListener(MWAWSpreadsheetListenerPtr &listener)
sets the spreadsheet listener
Definition: MWAWParser.cxx:136
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:114
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:245
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:437
Kind
an enum to define the kind of document
Definition: MWAWDocument.hxx:80
virtual ~MWAWParser()
virtual destructor
Definition: MWAWParser.cxx:100
MWAWPageSpan & getPageSpan()
returns the actual page dimension
Definition: MWAWParser.hxx:158
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:433
Definition: MWAWParser.hxx:53
Definition: MWAWParser.hxx:53
Type
the parser state type
Definition: MWAWParser.hxx:53
virtual void parse(librevenge::RVNGDrawingInterface *documentInterface)=0
virtual function used to parse the input
double getFormWidth() const
returns the form width
Definition: MWAWParser.hxx:168
MWAWSpreadsheetParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:280
MWAWParser(MWAWParserState::Type type, MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.cxx:94
MWAWGraphicParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:254
MWAWGraphicListenerPtr m_graphicListener
the graphic listener
Definition: MWAWParser.hxx:78
std::string m_asciiName
the debug file name
Definition: MWAWParser.hxx:241
MWAWRSRCParserPtr m_rsrcParser
the resource parser
Definition: MWAWParser.hxx:71
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:445
void setFontConverter(MWAWFontConverterPtr fontConverter)
sets the font convertor
Definition: MWAWParser.cxx:104
MWAWSpreadsheetParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:278
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:97
MWAWPresentationListenerPtr m_presentationListener
the presentation listener
Definition: MWAWParser.hxx:82
Type m_type
the state type
Definition: MWAWParser.hxx:61
MWAWFontConverterPtr m_fontConverter
the font converter
Definition: MWAWParser.hxx:76
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:152
MWAWInputStreamPtr m_input
the input
Definition: MWAWParser.hxx:67
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:147
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:271
virtual bool checkHeader(MWAWHeader *header, bool strict=false)=0
virtual function used to check if the document header is correct (or not)
virtual void parse(librevenge::RVNGTextInterface *documentInterface)=0
virtual function used to parse the input
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:119
MWAWListenerPtr getMainListener()
returns the main listener
Definition: MWAWParser.cxx:77
MWAWTextParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:293
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:455
shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:443
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:121