SDXParser Class Reference

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

#include <SDXParser.hxx>

Inheritance diagram for SDXParser:
STOFFTextParser STOFFParser

Public Member Functions

 SDXParser (STOFFInputStreamPtr input, STOFFHeader *header)
 constructor
 
virtual ~SDXParser ()
 destructor
 
void setDocumentPassword (char const *passwd)
 set the document password
 
bool checkHeader (STOFFHeader *header, bool strict=false)
 checks if the document header is correct (or not)
 
void parse (librevenge::RVNGTextInterface *documentInterface)
 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 init ()
 inits all internal variables
 
void createDocument (librevenge::RVNGTextInterface *documentInterface)
 creates the listener which will be associated to the document
 
bool createZones ()
 parses the different OLE, ...
 
- Protected Member Functions inherited from STOFFTextParser
 STOFFTextParser (STOFFInputStreamPtr input, STOFFHeader *header)
 constructor (protected)
 
 STOFFTextParser (STOFFParserStatePtr state)
 constructor using a state
 
virtual ~STOFFTextParser ()
 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
 
shared_ptr< STOFFOLEParserm_oleParser
 the ole parser
 
shared_ptr< SDXParserInternal::Statem_state
 the state
 

Private Member Functions

 SDXParser (SDXParser const &orig)
 
SDXParseroperator= (SDXParser const &orig)
 

Detailed Description

the main class to read a StarOffice sdX file

Constructor & Destructor Documentation

◆ SDXParser() [1/2]

SDXParser::SDXParser ( STOFFInputStreamPtr  input,
STOFFHeader header 
)

constructor

◆ ~SDXParser()

SDXParser::~SDXParser ( )
virtual

destructor

◆ SDXParser() [2/2]

SDXParser::SDXParser ( SDXParser const &  orig)
private

Member Function Documentation

◆ checkHeader()

bool SDXParser::checkHeader ( STOFFHeader header,
bool  strict = false 
)
virtual

checks if the document header is correct (or not)

Implements STOFFParser.

Referenced by parse().

◆ createDocument()

void SDXParser::createDocument ( librevenge::RVNGTextInterface *  documentInterface)
protected

creates the listener which will be associated to the document

Referenced by parse().

◆ createZones()

bool SDXParser::createZones ( )
protected

parses the different OLE, ...

Referenced by parse().

◆ init()

void SDXParser::init ( )
protected

inits all internal variables

Referenced by SDXParser().

◆ operator=()

SDXParser & SDXParser::operator= ( SDXParser const &  orig)
private

◆ parse()

void SDXParser::parse ( librevenge::RVNGTextInterface *  documentInterface)
virtual

virtual function used to parse the input

Implements STOFFTextParser.

◆ setDocumentPassword()

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

set the document password

Referenced by STOFFDocumentInternal::getTextParserFromHeader().

Member Data Documentation

◆ m_oleParser

shared_ptr<STOFFOLEParser> SDXParser::m_oleParser
protected

the ole parser

Referenced by createZones().

◆ m_password

char const* SDXParser::m_password
protected

the password

Referenced by createZones(), and setDocumentPassword().

◆ m_state

shared_ptr<SDXParserInternal::State> SDXParser::m_state
protected

the state

Referenced by checkHeader(), and init().


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

Generated on Mon Nov 27 2023 04:05:55 for libstaroffice by doxygen 1.9.8