Basic class used to store a sub document. More...
#include <WPSSubDocument.h>
Public Member Functions | |
WPSSubDocument (WPXInputStreamPtr &input, WPSParser *parser, int id=0) | |
constructor More... | |
virtual | ~WPSSubDocument () |
destructor More... | |
WPXInputStreamPtr & | getInput () |
returns the input More... | |
WPSParser * | parser () const |
returns the parser More... | |
int | id () const |
get the identificator More... | |
void | setId (int i) |
set the identificator More... | |
virtual bool | operator== (shared_ptr< WPSSubDocument > const &doc) const |
an operator = More... | |
bool | operator!= (shared_ptr< WPSSubDocument > const &doc) const |
virtual void | parse (shared_ptr< WPSContentListener > &listener, libwps::SubDocumentType subDocumentType)=0 |
virtual parse function More... | |
Protected Attributes | |
WPXInputStreamPtr | m_input |
WPSParser * | m_parser |
int | m_id |
Private Member Functions | |
WPSSubDocument (const WPSSubDocument &) | |
WPSSubDocument & | operator= (const WPSSubDocument &) |
Basic class used to store a sub document.
WPSSubDocument::WPSSubDocument | ( | WPXInputStreamPtr & | input, |
WPSParser * | parser, | ||
int | id = 0 |
||
) |
constructor
|
virtual |
destructor
|
private |
|
inline |
returns the input
|
inline |
get the identificator
|
inline |
|
private |
|
virtual |
an operator =
Reimplemented in WPS8TextInternal::SubDocument, WPS8ParserInternal::SubDocument, and WPS4ParserInternal::SubDocument.
Referenced by operator!=().
|
pure virtual |
virtual parse function
this function is called to parse the subdocument
Implemented in WPS8TextInternal::SubDocument, WPS8ParserInternal::SubDocument, and WPS4ParserInternal::SubDocument.
|
inline |
returns the parser
|
inline |
set the identificator
|
protected |
Referenced by id(), operator==(), and setId().
|
protected |
Referenced by getInput(), operator==(), and WPS8TextInternal::SubDocument::parse().
|
protected |
Referenced by operator==(), WPS4ParserInternal::SubDocument::parse(), WPS8ParserInternal::SubDocument::parse(), and parser().