WPSSubDocument Class Referenceabstract

Basic class used to store a sub document. More...

#include <WPSSubDocument.h>

Inheritance diagram for WPSSubDocument:
WPS4ParserInternal::SubDocument WPS8ParserInternal::SubDocument WPS8TextInternal::SubDocument

Public Member Functions

 WPSSubDocument (WPXInputStreamPtr &input, WPSParser *parser, int id=0)
 constructor More...
 
virtual ~WPSSubDocument ()
 destructor More...
 
WPXInputStreamPtrgetInput ()
 returns the input More...
 
WPSParserparser () 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
 
WPSParserm_parser
 
int m_id
 

Private Member Functions

 WPSSubDocument (const WPSSubDocument &)
 
WPSSubDocumentoperator= (const WPSSubDocument &)
 

Detailed Description

Basic class used to store a sub document.

Constructor & Destructor Documentation

◆ WPSSubDocument() [1/2]

WPSSubDocument::WPSSubDocument ( WPXInputStreamPtr input,
WPSParser parser,
int  id = 0 
)

constructor

◆ ~WPSSubDocument()

WPSSubDocument::~WPSSubDocument ( )
virtual

destructor

◆ WPSSubDocument() [2/2]

WPSSubDocument::WPSSubDocument ( const WPSSubDocument )
private

Member Function Documentation

◆ getInput()

WPXInputStreamPtr& WPSSubDocument::getInput ( )
inline

returns the input

◆ id()

int WPSSubDocument::id ( ) const
inline

get the identificator

◆ operator!=()

bool WPSSubDocument::operator!= ( shared_ptr< WPSSubDocument > const &  doc) const
inline

◆ operator=()

WPSSubDocument& WPSSubDocument::operator= ( const WPSSubDocument )
private

◆ operator==()

bool WPSSubDocument::operator== ( shared_ptr< WPSSubDocument > const &  doc) const
virtual

◆ parse()

virtual void WPSSubDocument::parse ( shared_ptr< WPSContentListener > &  listener,
libwps::SubDocumentType  subDocumentType 
)
pure virtual

virtual parse function

this function is called to parse the subdocument

Implemented in WPS8TextInternal::SubDocument, WPS8ParserInternal::SubDocument, and WPS4ParserInternal::SubDocument.

Referenced by operator!=().

◆ parser()

WPSParser* WPSSubDocument::parser ( ) const
inline

returns the parser

◆ setId()

void WPSSubDocument::setId ( int  i)
inline

set the identificator

Member Data Documentation

◆ m_id

int WPSSubDocument::m_id
protected

Referenced by id(), operator==(), and setId().

◆ m_input

WPXInputStreamPtr WPSSubDocument::m_input
protected

Referenced by getInput(), and operator==().

◆ m_parser


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

Generated on Sat Oct 20 2018 10:26:42 for libwps by doxygen 1.8.13