SDAParser Class Referencefinal

the main class to read a StarOffice sda/sdd file More...

#include <SDAParser.hxx>

Inheritance diagram for SDAParser:
STOFFGraphicParser STOFFParser

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
Public Member Functions inherited from STOFFParser
virtual ~STOFFParser ()
 virtual destructor
int version () const
 returns the works version
STOFFParserStatePtr getParserState ()
 returns the parser state
STOFFHeadergetHeader ()
 returns the header
STOFFInputStreamPtrgetInput ()
 returns the actual input
STOFFPageSpan const & getPageSpan () const
 returns the actual page dimension
STOFFPageSpangetPageSpan ()
 returns the actual page dimension
STOFFGraphicListenerPtrgetGraphicListener ()
 returns the graphic listener
STOFFSpreadsheetListenerPtrgetSpreadsheetListener ()
 returns the spreadsheet listener
STOFFTextListenerPtrgetTextListener ()
 returns the text listener
libstoff::DebugFileascii ()
 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, ...
Protected Member Functions inherited from STOFFGraphicParser
 STOFFGraphicParser (STOFFInputStreamPtr &input, STOFFHeader *header)
 constructor (protected)
 STOFFGraphicParser (STOFFParserStatePtr &state)
 constructor using a state
 ~STOFFGraphicParser () override
 destructor
Protected Member Functions inherited from STOFFParser
 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< STOFFOLEParserm_oleParser
 the ole parser
std::shared_ptr< SDAParserInternal::Statem_state
 the state

Private Member Functions

 SDAParser (SDAParser const &orig)=delete
SDAParseroperator= (SDAParser const &orig)=delete

Detailed Description

the main class to read a StarOffice sda/sdd file

Constructor & Destructor Documentation

◆ SDAParser() [1/2]

SDAParser::SDAParser ( STOFFInputStreamPtr & input,
STOFFHeader * header )

constructor

Referenced by operator=(), and SDAParser().

◆ ~SDAParser()

SDAParser::~SDAParser ( )
final

destructor

◆ SDAParser() [2/2]

SDAParser::SDAParser ( SDAParser const & orig)
privatedelete

Member Function Documentation

◆ checkHeader()

bool SDAParser::checkHeader ( STOFFHeader * header,
bool strict = false )
overridevirtual

checks if the document header is correct (or not)

Implements STOFFParser.

Referenced by parse(), and parse().

◆ createDocument() [1/2]

void SDAParser::createDocument ( librevenge::RVNGDrawingInterface * documentInterface)
protected

creates the listener which will be associated to the document

Referenced by parse(), and parse().

◆ createDocument() [2/2]

void SDAParser::createDocument ( librevenge::RVNGPresentationInterface * documentInterface)
protected

creates the listener which will be associated to the document

◆ createZones()

bool SDAParser::createZones ( )
protected

parses the different OLE, ...

Referenced by parse(), and parse().

◆ operator=()

SDAParser & SDAParser::operator= ( SDAParser const & orig)
privatedelete

◆ parse() [1/2]

void SDAParser::parse ( librevenge::RVNGDrawingInterface * documentInterface)
finalvirtual

virtual function used to parse the input

Reimplemented from STOFFGraphicParser.

◆ parse() [2/2]

void SDAParser::parse ( librevenge::RVNGPresentationInterface * documentInterface)
finalvirtual

virtual function used to parse the input

Reimplemented from STOFFGraphicParser.

◆ setDocumentPassword()

void SDAParser::setDocumentPassword ( char const * passwd)
inline

Member Data Documentation

◆ m_oleParser

std::shared_ptr<STOFFOLEParser> SDAParser::m_oleParser
protected

the ole parser

Referenced by createZones(), parse(), parse(), and SDAParser().

◆ m_password

char const* SDAParser::m_password
protected

the password

Referenced by createZones(), parse(), parse(), SDAParser(), and setDocumentPassword().

◆ m_state

std::shared_ptr<SDAParserInternal::State> SDAParser::m_state
protected

The documentation for this class was generated from the following files:

Generated on Thu Jun 26 2025 07:06:08 for libstaroffice by doxygen 1.14.0