the main class to read a StarOffice sdw file More...
#include <SDWParser.hxx>
Public Member Functions | |
SDWParser (STOFFInputStreamPtr &input, STOFFHeader *header) | |
constructor More... | |
~SDWParser () final | |
destructor More... | |
void | setDocumentPassword (char const *passwd) |
set the document password More... | |
bool | checkHeader (STOFFHeader *header, bool strict=false) override |
checks if the document header is correct (or not) More... | |
void | parse (librevenge::RVNGTextInterface *documentInterface) override |
virtual function used to parse the input More... | |
![]() | |
virtual | ~STOFFParser () |
virtual destructor More... | |
int | version () const |
returns the works version More... | |
STOFFParserStatePtr | getParserState () |
returns the parser state More... | |
STOFFHeader * | getHeader () |
returns the header More... | |
STOFFInputStreamPtr & | getInput () |
returns the actual input More... | |
const STOFFPageSpan & | getPageSpan () const |
returns the actual page dimension More... | |
STOFFPageSpan & | getPageSpan () |
returns the actual page dimension More... | |
STOFFGraphicListenerPtr & | getGraphicListener () |
returns the graphic listener More... | |
STOFFSpreadsheetListenerPtr & | getSpreadsheetListener () |
returns the spreadsheet listener More... | |
STOFFTextListenerPtr & | getTextListener () |
returns the text listener More... | |
libstoff::DebugFile & | ascii () |
a DebugFile used to write what we recognize when we parse the document More... | |
Protected Member Functions | |
void | createDocument (librevenge::RVNGTextInterface *documentInterface) |
creates the listener which will be associated to the document More... | |
bool | createZones () |
parses the different OLE, ... More... | |
![]() | |
STOFFTextParser (STOFFInputStreamPtr &input, STOFFHeader *header) | |
constructor (protected) More... | |
STOFFTextParser (STOFFParserStatePtr &state) | |
constructor using a state More... | |
~STOFFTextParser () override | |
destructor More... | |
![]() | |
STOFFParser (STOFFParserState::Type type, STOFFInputStreamPtr input, STOFFHeader *header) | |
constructor (protected) More... | |
STOFFParser (STOFFParserStatePtr &state) | |
constructor using a state More... | |
void | setVersion (int vers) |
sets the document's version More... | |
void | setGraphicListener (STOFFGraphicListenerPtr &listener) |
sets the graphic listener More... | |
void | resetGraphicListener () |
resets the graphic listener More... | |
void | setSpreadsheetListener (STOFFSpreadsheetListenerPtr &listener) |
sets the spreadsheet listener More... | |
void | resetSpreadsheetListener () |
resets the spreadsheet listener More... | |
void | setTextListener (STOFFTextListenerPtr &listener) |
sets the text listener More... | |
void | resetTextListener () |
resets the text listener More... | |
void | setAsciiName (char const *name) |
Debugging: change the default ascii file. More... | |
const std::string & | asciiName () const |
return the ascii file name More... | |
Protected Attributes | |
const char * | m_password |
the password More... | |
std::shared_ptr< STOFFOLEParser > | m_oleParser |
the ole parser More... | |
std::shared_ptr< SDWParserInternal::State > | m_state |
the state More... | |
Private Member Functions | |
SDWParser (SDWParser const &orig)=delete | |
SDWParser & | operator= (SDWParser const &orig)=delete |
the main class to read a StarOffice sdw file
SDWParser::SDWParser | ( | STOFFInputStreamPtr & | input, |
STOFFHeader * | header | ||
) |
constructor
|
final |
destructor
|
privatedelete |
|
overridevirtual |
|
protected |
creates the listener which will be associated to the document
Referenced by parse().
|
protected |
parses the different OLE, ...
Referenced by parse().
|
overridevirtual |
virtual function used to parse the input
Implements STOFFTextParser.
|
inline |
set the document password
Referenced by STOFFDocumentInternal::getTextParserFromHeader().
|
protected |
the ole parser
Referenced by createZones(), and parse().
|
protected |
the password
Referenced by createZones(), parse(), and setDocumentPassword().
|
protected |
the state
Referenced by checkHeader(), createDocument(), createZones(), and parse().