virtual class which defines the ancestor of all main zone parser More...
#include <STOFFParser.hxx>
Public Member Functions | |
virtual | ~STOFFParser () |
virtual destructor More... | |
virtual bool | checkHeader (STOFFHeader *header, bool strict=false)=0 |
virtual function used to check if the document header is correct (or not) More... | |
int | version () const |
returns the works version More... | |
STOFFParserStatePtr | getParserState () |
returns the parser state More... | |
STOFFHeader * | getHeader () |
returns the header More... | |
STOFFInputStreamPtr & | getInput () |
returns the actual input More... | |
const STOFFPageSpan & | getPageSpan () const |
returns the actual page dimension More... | |
STOFFPageSpan & | getPageSpan () |
returns the actual page dimension More... | |
STOFFGraphicListenerPtr & | getGraphicListener () |
returns the graphic listener More... | |
STOFFSpreadsheetListenerPtr & | getSpreadsheetListener () |
returns the spreadsheet listener More... | |
STOFFTextListenerPtr & | getTextListener () |
returns the text listener More... | |
libstoff::DebugFile & | ascii () |
a DebugFile used to write what we recognize when we parse the document More... | |
Protected Member Functions | |
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... | |
const std::string & | asciiName () const |
return the ascii file name More... | |
Private Member Functions | |
STOFFParser (const STOFFParser &) | |
private copy constructor: forbidden More... | |
STOFFParser & | operator= (const STOFFParser &) |
private operator=: forbidden More... | |
Private Attributes | |
STOFFParserStatePtr | m_parserState |
the parser state More... | |
std::string | m_asciiName |
the debug file name More... | |
virtual class which defines the ancestor of all main zone parser
|
virtual |
virtual destructor
|
protected |
constructor (protected)
|
inlineexplicitprotected |
constructor using a state
|
private |
private copy constructor: forbidden
|
inline |
a DebugFile used to write what we recognize when we parse the document
Referenced by SDAParser::parse(), SDXParser::parse(), SDWParser::parse(), SDGParser::parse(), and SDCParser::parse().
|
inlineprotected |
return the ascii file name
|
pure virtual |
|
inline |
returns the graphic listener
Referenced by SDAParser::parse(), SDGParser::parse(), and resetGraphicListener().
|
inline |
returns the header
|
inline |
returns the actual input
Referenced by SDAParser::checkHeader(), SDGParser::checkHeader(), SDCParser::checkHeader(), SDWParser::checkHeader(), SDXParser::checkHeader(), SDCParser::createZones(), SDGParser::createZones(), SDWParser::createZones(), SDXParser::createZones(), SDAParser::createZones(), SDGParser::parse(), SDWParser::parse(), SDAParser::parse(), SDXParser::parse(), and SDCParser::parse().
|
inline |
returns the actual page dimension
|
inline |
returns the actual page dimension
Referenced by SDCParser::createDocument(), SDWParser::createDocument(), SDGParser::createDocument(), and SDAParser::createDocument().
|
inline |
returns the parser state
Referenced by SDCParser::createDocument(), SDWParser::createDocument(), SDGParser::createDocument(), and SDAParser::createDocument().
|
inline |
returns the spreadsheet listener
Referenced by resetSpreadsheetListener(), and SDCParser::sendSpreadsheet().
|
inline |
returns the text listener
Referenced by SDWParser::parse(), and resetTextListener().
|
private |
private operator=: forbidden
|
protected |
resets the graphic listener
Referenced by SDAParser::parse(), and SDGParser::parse().
|
protected |
resets the spreadsheet listener
Referenced by SDCParser::parse().
|
protected |
resets the text listener
Referenced by SDWParser::parse().
|
inlineprotected |
Debugging: change the default ascii file.
Referenced by SDXParser::init().
|
protected |
sets the graphic listener
Referenced by SDGParser::createDocument(), and SDAParser::createDocument().
|
protected |
sets the spreadsheet listener
Referenced by SDCParser::createDocument().
|
protected |
sets the text listener
Referenced by SDWParser::createDocument().
|
inlineprotected |
sets the document's version
|
inline |
returns the works version
|
private |
the debug file name
Referenced by asciiName(), and setAsciiName().
|
private |
the parser state
Referenced by ascii(), getGraphicListener(), getHeader(), getInput(), getPageSpan(), getParserState(), getSpreadsheetListener(), getTextListener(), resetGraphicListener(), resetSpreadsheetListener(), resetTextListener(), setGraphicListener(), setSpreadsheetListener(), setTextListener(), setVersion(), STOFFParser(), and version().