34 #ifndef STOFF_PARSER_H 35 #define STOFF_PARSER_H 98 return m_parserState->m_version;
103 return m_parserState;
108 return m_parserState->m_header;
113 return m_parserState->m_input;
128 return m_parserState->m_graphicListener;
133 return m_parserState->m_spreadsheetListener;
138 return m_parserState->m_asciiFile;
149 m_parserState->m_version = vers;
154 void resetGraphicListener();
158 void resetSpreadsheetListener();
187 virtual void parse(librevenge::RVNGTextInterface *documentInterface) = 0;
200 virtual void parse(librevenge::RVNGDrawingInterface *documentInterface) = 0;
213 virtual void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) = 0;
Type
the parser state type
Definition: STOFFParser.hxx:53
bool checkHeader(STOFFInputStreamPtr &input, STOFFHeader &header, bool strict)
Wrapper to check a basic header of a mac file.
Definition: STOFFDocument.cxx:377
STOFFPageSpan & getPageSpan()
returns the actual page dimension
Definition: STOFFParser.hxx:121
int m_pageSpan
the number of page
Definition: STOFFPageSpan.hxx:103
shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:482
STOFFPageSpan m_pageSpan
the actual document size
Definition: STOFFParser.hxx:69
STOFFGraphicParser(STOFFInputStreamPtr input, STOFFHeader *header)
constructor (protected)
Definition: STOFFParser.hxx:203
Definition: STOFFDebug.hxx:198
STOFFGraphicParser(STOFFParserStatePtr state)
constructor using a state
Definition: STOFFParser.hxx:205
STOFFTextParser(STOFFParserStatePtr state)
constructor using a state
Definition: STOFFParser.hxx:192
shared_ptr< STOFFSpreadsheetListener > STOFFSpreadsheetListenerPtr
a smart pointer of STOFFSpreadsheetListener
Definition: libstaroffice_internal.hxx:490
STOFFHeader * m_header
the header
Definition: STOFFParser.hxx:67
STOFFParserStatePtr m_parserState
the parser state
Definition: STOFFParser.hxx:177
Definition: STOFFParser.hxx:53
virtual class which defines the ancestor of all graphic zone parser
Definition: STOFFParser.hxx:196
STOFFGraphicListenerPtr m_graphicListener
the graphic listener
Definition: STOFFParser.hxx:74
STOFFSpreadsheetListenerPtr m_spreadsheetListener
the spreadsheet listener
Definition: STOFFParser.hxx:76
a class to define the parser state
Definition: STOFFParser.hxx:49
STOFFParserState & operator=(STOFFParserState const &orig)
std::string m_asciiName
the debug file name
Definition: STOFFParser.hxx:179
libstoff::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: STOFFParser.hxx:136
Definition: STOFFParser.hxx:53
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: STOFFParser.hxx:160
shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:486
STOFFParser(STOFFParserStatePtr state)
constructor using a state
Definition: STOFFParser.hxx:144
STOFFTextParser(STOFFInputStreamPtr input, STOFFHeader *header)
constructor (protected)
Definition: STOFFParser.hxx:190
STOFFSpreadsheetParser(STOFFInputStreamPtr input, STOFFHeader *header)
constructor (protected)
Definition: STOFFParser.hxx:216
libstoff::DebugFile m_asciiFile
the debug file
Definition: STOFFParser.hxx:79
virtual class which defines the ancestor of all text zone parser
Definition: STOFFParser.hxx:183
STOFFParserStatePtr getParserState()
returns the parser state
Definition: STOFFParser.hxx:101
STOFFHeader * getHeader()
returns the header
Definition: STOFFParser.hxx:106
int version() const
returns the works version
Definition: STOFFParser.hxx:96
Definition: STOFFParser.hxx:53
void setVersion(int vers)
sets the document's version
Definition: STOFFParser.hxx:147
STOFFParserState(Type type, STOFFInputStreamPtr input, STOFFHeader *header)
Constructor.
Definition: STOFFParser.cxx:42
STOFFListManagerPtr m_listManager
the list manager
Definition: STOFFParser.hxx:72
Definition: STOFFParser.hxx:53
Type m_type
the state type
Definition: STOFFParser.hxx:59
Kind
an enum to define the kind of document
Definition: STOFFDocument.hxx:66
int m_version
the actual version
Definition: STOFFParser.hxx:63
STOFFInputStreamPtr & getInput()
returns the actual input
Definition: STOFFParser.hxx:111
shared_ptr< STOFFParserState > STOFFParserStatePtr
a smart pointer of STOFFParserState
Definition: libstaroffice_internal.hxx:488
STOFFSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: STOFFParser.hxx:131
shared_ptr< STOFFGraphicListener > STOFFGraphicListenerPtr
a smart pointer of STOFFGraphicListener
Definition: libstaroffice_internal.hxx:478
STOFFSpreadsheetParser(STOFFParserStatePtr state)
constructor using a state
Definition: STOFFParser.hxx:218
STOFFGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: STOFFParser.hxx:126
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:74
~STOFFParserState()
destructor
Definition: STOFFParser.cxx:54
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: STOFFParser.hxx:209
STOFFPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: STOFFParser.hxx:116
virtual class which defines the ancestor of all main zone parser
Definition: STOFFParser.hxx:87
STOFFInputStreamPtr m_input
the input
Definition: STOFFParser.hxx:65
std::string const & asciiName() const
return the ascii file name
Definition: STOFFParser.hxx:165
STOFFDocument::Kind m_kind
the document kind
Definition: STOFFParser.hxx:61