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