SDWParser Class Reference

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

#include <SDWParser.hxx>

Inheritance diagram for SDWParser:
STOFFTextParser STOFFParser

Public Member Functions

 SDWParser (STOFFInputStreamPtr input, STOFFHeader *header)
 constructor More...
 
virtual ~SDWParser ()
 destructor More...
 
void setDocumentPassword (char const *passwd)
 set the document password More...
 
bool checkHeader (STOFFHeader *header, bool strict=false)
 checks if the document header is correct (or not) More...
 
void parse (librevenge::RVNGTextInterface *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...
 
libstoff::DebugFileascii ()
 a DebugFile used to write what we recognize when we parse the document More...
 

Protected Member Functions

void init ()
 inits all internal variables More...
 
void createDocument (librevenge::RVNGTextInterface *documentInterface)
 creates the listener which will be associated to the document More...
 
bool createZones ()
 parses the different OLE, ... More...
 
- Protected Member Functions inherited from STOFFTextParser
 STOFFTextParser (STOFFInputStreamPtr input, STOFFHeader *header)
 constructor (protected) More...
 
 STOFFTextParser (STOFFParserStatePtr state)
 constructor using a state 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 listener More...
 
void setSpreadsheetListener (STOFFSpreadsheetListenerPtr &listener)
 sets the spreadsheet listener More...
 
void resetSpreadsheetListener ()
 resets the 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...
 
shared_ptr< STOFFOLEParserm_oleParser
 the ole parser More...
 
shared_ptr< SDWParserInternal::Statem_state
 the state More...
 

Private Member Functions

 SDWParser (SDWParser const &orig)
 
SDWParseroperator= (SDWParser const &orig)
 

Detailed Description

the main class to read a StarOffice sdw file

Constructor & Destructor Documentation

SDWParser::SDWParser ( STOFFInputStreamPtr  input,
STOFFHeader header 
)

constructor

SDWParser::~SDWParser ( )
virtual

destructor

SDWParser::SDWParser ( SDWParser const &  orig)
private

Member Function Documentation

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

checks if the document header is correct (or not)

Implements STOFFParser.

Referenced by parse().

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

creates the listener which will be associated to the document

Referenced by parse().

bool SDWParser::createZones ( )
protected

parses the different OLE, ...

Referenced by parse().

void SDWParser::init ( )
protected

inits all internal variables

Referenced by SDWParser().

SDWParser& SDWParser::operator= ( SDWParser const &  orig)
private
void SDWParser::parse ( librevenge::RVNGTextInterface *  documentInterface)
virtual

virtual function used to parse the input

Implements STOFFTextParser.

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

set the document password

Referenced by STOFFDocumentInternal::getTextParserFromHeader().

Member Data Documentation

shared_ptr<STOFFOLEParser> SDWParser::m_oleParser
protected

the ole parser

Referenced by createZones().

char const* SDWParser::m_password
protected

the password

Referenced by createZones().

shared_ptr<SDWParserInternal::State> SDWParser::m_state
protected

the state

Referenced by checkHeader(), and init().


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

Generated on Thu Mar 10 2016 10:00:12 for libstaroffice by doxygen 1.8.11