105 virtual bool checkHeader(
MWAWHeader *header,
bool strict=
false) = 0;
110 return m_parserState->m_version;
115 return m_parserState;
120 return m_parserState->m_header;
125 return m_parserState->m_input;
132 return m_parserState->m_graphicListener;
137 return m_parserState->m_presentationListener;
142 return m_parserState->m_spreadsheetListener;
147 return m_parserState->m_textListener;
152 return m_parserState->m_fontConverter;
157 return m_parserState->m_fontManager;
172 return m_parserState->m_pageSpan.getFormLength();
177 return m_parserState->m_pageSpan.getFormWidth();
182 return m_parserState->m_pageSpan.getPageLength();
187 return m_parserState->m_pageSpan.getPageWidth();
192 return m_parserState->m_rsrcParser;
197 return m_parserState->m_asciiFile;
208 m_parserState->m_version = vers;
213 void resetGraphicListener();
217 void resetPresentationListener();
221 void resetSpreadsheetListener();
225 void resetTextListener();
256 virtual void parse(librevenge::RVNGDrawingInterface *documentInterface) = 0;
271 virtual void parse(librevenge::RVNGPresentationInterface *documentInterface) = 0;
286 virtual void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) = 0;
301 virtual void parse(librevenge::RVNGTextInterface *documentInterface) = 0;
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
shared_ptr< MWAWFontManager > MWAWFontManagerPtr
a smart pointer of MWAWFontManager
Definition: libmwaw_internal.hxx:499
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
MWAWPresentationParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:276
MWAWTextParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:304
MWAWDocument::Kind m_kind
the document kind
Definition: MWAWParser.hxx:63
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
MWAWParserState & operator=(MWAWParserState const &orig)
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:67
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:206
shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:511
MWAWGraphicParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:259
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
MWAWHeader * getHeader()
returns the header
Definition: MWAWParser.hxx:118
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
MWAWParserState(Type type, MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
Constructor.
Definition: MWAWParser.cxx:45
MWAWParserStatePtr m_parserState
the parser state
Definition: MWAWParser.hxx:244
MWAWTextListenerPtr m_textListener
the text listener
Definition: MWAWParser.hxx:86
MWAWParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:203
~MWAWParserState()
destructor
Definition: MWAWParser.cxx:59
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
Definition: MWAWParser.hxx:53
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWFontManagerPtr & getFontManager()
returns the font manager
Definition: MWAWParser.hxx:155
a class to define the parser state
Definition: MWAWParser.hxx:49
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MWAWParser.hxx:91
int m_version
the actual version
Definition: MWAWParser.hxx:88
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:515
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
MWAWPresentationListenerPtr & getPresentationListener()
returns the presentation listener
Definition: MWAWParser.hxx:135
double getFormWidth() const
returns the form width
Definition: MWAWParser.hxx:175
int version() const
returns the works version
Definition: MWAWParser.hxx:108
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:295
MWAWPageSpan m_pageSpan
the actual document size
Definition: MWAWParser.hxx:71
virtual class which defines the ancestor of all presentation zone parser
Definition: MWAWParser.hxx:265
MWAWPresentationParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:274
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
MWAWFontManagerPtr m_fontManager
the font manager
Definition: MWAWParser.hxx:76
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:250
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
Kind
an enum to define the kind of document
Definition: MWAWDocument.hxx:80
MWAWPageSpan & getPageSpan()
returns the actual page dimension
Definition: MWAWParser.hxx:165
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:495
Definition: MWAWParser.hxx:53
Definition: MWAWParser.hxx:53
Type
the parser state type
Definition: MWAWParser.hxx:53
MWAWSpreadsheetParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:291
MWAWGraphicParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:261
MWAWGraphicListenerPtr m_graphicListener
the graphic listener
Definition: MWAWParser.hxx:78
std::string m_asciiName
the debug file name
Definition: MWAWParser.hxx:246
double getPageLength() const
returns the page length (form length without margin )
Definition: MWAWParser.hxx:180
MWAWRSRCParserPtr m_rsrcParser
the resource parser
Definition: MWAWParser.hxx:69
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
MWAWSpreadsheetParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:289
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:99
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:74
MWAWInputStreamPtr m_input
the input
Definition: MWAWParser.hxx:65
int m_pageSpan
the number of page
Definition: MWAWPageSpan.hxx:306
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:280
MWAWListenerPtr getMainListener()
returns the main listener
Definition: MWAWParser.cxx:79
MWAWTextParser(MWAWParserStatePtr state)
constructor using a state
Definition: MWAWParser.hxx:306
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:507
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123