Go to the documentation of this file.
34 #ifndef STOFF_PARSER_H
35 #define STOFF_PARSER_H
198 virtual void parse(librevenge::RVNGTextInterface *documentInterface) = 0;
213 virtual void parse(librevenge::RVNGDrawingInterface *documentInterface);
215 virtual void parse(librevenge::RVNGPresentationInterface *documentInterface);
230 virtual void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) = 0;
virtual void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)=0
virtual function used to parse the input
void setSpreadsheetListener(STOFFSpreadsheetListenerPtr &listener)
sets the spreadsheet listener
Definition: STOFFParser.cxx:89
Type
the parser state type
Definition: STOFFParser.hxx:53
STOFFParser(STOFFParserState::Type type, STOFFInputStreamPtr input, STOFFHeader *header)
constructor (protected)
Definition: STOFFParser.cxx:67
virtual void parse(librevenge::RVNGTextInterface *documentInterface)=0
virtual function used to parse the input
STOFFTextListenerPtr & getTextListener()
returns the text listener
Definition: STOFFParser.hxx:138
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: STOFFParser.hxx:226
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
STOFFPageSpan & getPageSpan()
returns the actual page dimension
Definition: STOFFParser.hxx:123
STOFFSpreadsheetListenerPtr m_spreadsheetListener
the spreadsheet listener
Definition: STOFFParser.hxx:76
Kind
an enum to define the kind of document
Definition: STOFFDocument.hxx:66
STOFFTextParser(STOFFInputStreamPtr &input, STOFFHeader *header)
constructor (protected)
Definition: STOFFParser.hxx:201
STOFFParserState(Type type, STOFFInputStreamPtr &input, STOFFHeader *header)
Constructor.
Definition: STOFFParser.cxx:43
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
STOFFSpreadsheetParser(STOFFInputStreamPtr &input, STOFFHeader *header)
constructor (protected)
Definition: STOFFParser.hxx:233
a class to define the parser state
Definition: STOFFParser.hxx:49
STOFFParserStatePtr m_parserState
the parser state
Definition: STOFFParser.hxx:188
STOFFPageSpan m_pageSpan
the actual document size
Definition: STOFFParser.hxx:69
std::shared_ptr< STOFFParserState > STOFFParserStatePtr
a smart pointer of STOFFParserState
Definition: libstaroffice_internal.hxx:491
STOFFHeader * m_header
the header
Definition: STOFFParser.hxx:67
std::shared_ptr< STOFFSpreadsheetListener > STOFFSpreadsheetListenerPtr
a smart pointer of STOFFSpreadsheetListener
Definition: libstaroffice_internal.hxx:493
void setTextListener(STOFFTextListenerPtr &listener)
sets the text listener
Definition: STOFFParser.cxx:100
~STOFFGraphicParser() override
destructor
Definition: STOFFParser.cxx:111
STOFFParserState & operator=(STOFFParserState const &orig)
STOFFSpreadsheetParser(STOFFParserStatePtr &state)
constructor using a state
Definition: STOFFParser.hxx:235
~STOFFSpreadsheetParser() override
destructor
Definition: STOFFParser.cxx:125
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: STOFFList.hxx:205
virtual void parse(librevenge::RVNGDrawingInterface *documentInterface)
virtual function used to parse the input
Definition: STOFFParser.cxx:115
virtual bool checkHeader(STOFFHeader *header, bool strict=false)=0
virtual function used to check if the document header is correct (or not)
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
virtual class which defines the ancestor of all graphic/presentation zone parser
Definition: STOFFParser.hxx:209
STOFFDocument::Kind m_kind
the document kind
Definition: STOFFParser.hxx:61
Definition: STOFFParser.hxx:53
void resetGraphicListener()
resets the graphic listener
Definition: STOFFParser.cxx:83
STOFFGraphicParser(STOFFParserStatePtr &state)
constructor using a state
Definition: STOFFParser.hxx:220
std::string m_asciiName
the debug file name
Definition: STOFFParser.hxx:190
~STOFFTextParser() override
destructor
Definition: STOFFParser.cxx:129
int m_version
the actual version
Definition: STOFFParser.hxx:63
STOFFTextListenerPtr m_textListener
the text listener
Definition: STOFFParser.hxx:78
libstoff::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: STOFFParser.hxx:143
Definition: STOFFParser.hxx:53
void resetSpreadsheetListener()
resets the spreadsheet listener
Definition: STOFFParser.cxx:94
void resetTextListener()
resets the text listener
Definition: STOFFParser.cxx:105
int version() const
returns the works version
Definition: STOFFParser.hxx:98
std::shared_ptr< STOFFGraphicListener > STOFFGraphicListenerPtr
a smart pointer of STOFFGraphicListener
Definition: libstaroffice_internal.hxx:481
virtual class which defines the ancestor of all main zone parser
Definition: STOFFParser.hxx:89
libstoff::DebugFile m_asciiFile
the debug file
Definition: STOFFParser.hxx:81
STOFFParser & operator=(const STOFFParser &)
private operator=: forbidden
STOFFGraphicListenerPtr m_graphicListener
the graphic listener
Definition: STOFFParser.hxx:74
STOFFParserStatePtr getParserState()
returns the parser state
Definition: STOFFParser.hxx:103
const std::string & asciiName() const
return the ascii file name
Definition: STOFFParser.hxx:176
const STOFFPageSpan & getPageSpan() const
returns the actual page dimension
Definition: STOFFParser.hxx:118
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: STOFFParser.hxx:171
This class provides all the functions an application would need to parse StarOffice documents.
Definition: STOFFDocument.hxx:55
STOFFGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: STOFFParser.hxx:128
STOFFTextParser(STOFFParserStatePtr &state)
constructor using a state
Definition: STOFFParser.hxx:203
void setVersion(int vers)
sets the document's version
Definition: STOFFParser.hxx:154
virtual class which defines the ancestor of all text zone parser
Definition: STOFFParser.hxx:194
std::shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:489
STOFFHeader * getHeader()
returns the header
Definition: STOFFParser.hxx:108
Type m_type
the state type
Definition: STOFFParser.hxx:59
Definition: STOFFDebug.hxx:210
void setGraphicListener(STOFFGraphicListenerPtr &listener)
sets the graphic listener
Definition: STOFFParser.cxx:78
STOFFListManagerPtr m_listManager
the list manager
Definition: STOFFParser.hxx:72
STOFFInputStreamPtr m_input
the input
Definition: STOFFParser.hxx:65
STOFFInputStreamPtr & getInput()
returns the actual input
Definition: STOFFParser.hxx:113
Definition: STOFFParser.hxx:53
Definition: STOFFParser.hxx:53
STOFFSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: STOFFParser.hxx:133
STOFFGraphicParser(STOFFInputStreamPtr &input, STOFFHeader *header)
constructor (protected)
Definition: STOFFParser.hxx:218
std::shared_ptr< STOFFTextListener > STOFFTextListenerPtr
a smart pointer of STOFFTextListener
Definition: libstaroffice_internal.hxx:497
STOFFParser(STOFFParserStatePtr &state)
constructor using a state
Definition: STOFFParser.hxx:151
virtual ~STOFFParser()
virtual destructor
Definition: STOFFParser.cxx:74
~STOFFParserState()
destructor
Definition: STOFFParser.cxx:63
Generated on Mon Jan 20 2020 23:02:18 for libstaroffice by
doxygen 1.8.16