SDGParser Class Referencefinal

the main class to read a StarOffice sdg file More...

#include <SDGParser.hxx>

Inheritance diagram for SDGParser:
STOFFGraphicParser STOFFParser

Public Member Functions

 SDGParser (STOFFInputStreamPtr &input, STOFFHeader *header)
 constructor More...
 
 ~SDGParser () 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::RVNGDrawingInterface *documentInterface) override
 virtual function used to parse the input More...
 
- Public Member Functions inherited from STOFFGraphicParser
virtual void parse (librevenge::RVNGPresentationInterface *documentInterface)
 virtual function used to parse the input More...
 
- Public Member Functions inherited from STOFFParser
virtual ~STOFFParser ()
 virtual destructor More...
 
int version () const
 returns the works version More...
 
STOFFParserStatePtr getParserState ()
 returns the parser state More...
 
STOFFHeadergetHeader ()
 returns the header More...
 
STOFFInputStreamPtrgetInput ()
 returns the actual input More...
 
STOFFPageSpan const & getPageSpan () const
 returns the actual page dimension More...
 
STOFFPageSpangetPageSpan ()
 returns the actual page dimension More...
 
STOFFGraphicListenerPtrgetGraphicListener ()
 returns the graphic listener More...
 
STOFFSpreadsheetListenerPtrgetSpreadsheetListener ()
 returns the spreadsheet listener More...
 
STOFFTextListenerPtrgetTextListener ()
 returns the text listener More...
 
libstoff::DebugFileascii ()
 a DebugFile used to write what we recognize when we parse the document More...
 

Protected Member Functions

void createDocument (librevenge::RVNGDrawingInterface *documentInterface)
 creates the listener which will be associated to the document More...
 
bool createZones ()
 parses the different OLE, ... More...
 
bool readSGA3 (StarZone &zone)
 try to read a SGA3 zone More...
 
bool readBitmap (StarZone &zone)
 try to read a bitmap More...
 
- Protected Member Functions inherited from STOFFGraphicParser
 STOFFGraphicParser (STOFFInputStreamPtr &input, STOFFHeader *header)
 constructor (protected) More...
 
 STOFFGraphicParser (STOFFParserStatePtr &state)
 constructor using a state More...
 
 ~STOFFGraphicParser () override
 destructor More...
 
- Protected Member Functions inherited from STOFFParser
 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...
 
std::string const & asciiName () const
 return the ascii file name More...
 

Protected Attributes

char const * m_password
 the password More...
 
std::shared_ptr< SDGParserInternal::Statem_state
 the state More...
 

Private Member Functions

 SDGParser (SDGParser const &orig)=delete
 
SDGParseroperator= (SDGParser const &orig)=delete
 

Detailed Description

the main class to read a StarOffice sdg file

Constructor & Destructor Documentation

◆ SDGParser() [1/2]

SDGParser::SDGParser ( STOFFInputStreamPtr input,
STOFFHeader header 
)

constructor

◆ ~SDGParser()

SDGParser::~SDGParser ( )
final

destructor

◆ SDGParser() [2/2]

SDGParser::SDGParser ( SDGParser const &  orig)
privatedelete

Member Function Documentation

◆ checkHeader()

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

checks if the document header is correct (or not)

Implements STOFFParser.

Referenced by parse().

◆ createDocument()

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

creates the listener which will be associated to the document

Referenced by parse().

◆ createZones()

bool SDGParser::createZones ( )
protected

parses the different OLE, ...

Referenced by parse().

◆ operator=()

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

◆ parse()

void SDGParser::parse ( librevenge::RVNGDrawingInterface *  documentInterface)
overridevirtual

virtual function used to parse the input

Reimplemented from STOFFGraphicParser.

◆ readBitmap()

bool SDGParser::readBitmap ( StarZone zone)
protected

try to read a bitmap

Referenced by readSGA3().

◆ readSGA3()

bool SDGParser::readSGA3 ( StarZone zone)
protected

try to read a SGA3 zone

Referenced by createZones().

◆ setDocumentPassword()

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

set the document password

Referenced by STOFFDocumentInternal::getGraphicParserFromHeader().

Member Data Documentation

◆ m_password

char const* SDGParser::m_password
protected

the password

Referenced by createZones(), and setDocumentPassword().

◆ m_state

std::shared_ptr<SDGParserInternal::State> SDGParser::m_state
protected

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

Generated on Wed Mar 15 2023 00:00:00 for libstaroffice by doxygen 1.9.1