Public Member Functions | Private Attributes | Friends | List of all members
TocItemHandler Class Reference

Node representing a table of contents item. More...

#include <dochandler.h>

Inheritance diagram for TocItemHandler:
BaseHandler< TocItemHandler > QXmlDefaultHandler ElementMapper< TocItemHandler > LocatorContainer IBaseHandler QXmlContentHandler QXmlErrorHandler QXmlDTDHandler QXmlEntityResolver QXmlLexicalHandler QXmlDeclHandler

Public Member Functions

 TocItemHandler (IBaseHandler *parent)
 
virtual ~TocItemHandler ()
 
virtual void startTocItem (const QXmlAttributes &attrib)
 
virtual void endTocItem ()
 
virtual Kind kind () const
 
virtual const IStringid () const
 
virtual const IStringtitle () const
 
- Public Member Functions inherited from BaseHandler< TocItemHandler >
 BaseHandler ()
 
virtual ~BaseHandler ()
 
virtual bool startDocument ()
 
virtual bool startElement (const QString &namespaceURI, const QString &localName, const QString &name, const QXmlAttributes &attrib)
 
virtual bool endElement (const QString &namespaceURI, const QString &localName, const QString &name)
 
bool skippedEntity (const QString &s)
 
virtual bool characters (const QString &ch)
 
void setDelegate (QXmlDefaultHandler *delegate)
 
QXmlDefaultHandlerdelegate () const
 
void setFallBackHandler (IFallBackHandler *h)
 
IFallBackHandlerfallBackHandler () const
 
void setDocumentLocator (QXmlLocator *locator)
 
- Public Member Functions inherited from QXmlDefaultHandler
 QXmlDefaultHandler ()
 
virtual ~QXmlDefaultHandler ()
 
bool endDocument ()
 
bool startPrefixMapping (const QString &prefix, const QString &uri)
 
bool endPrefixMapping (const QString &prefix)
 
bool ignorableWhitespace (const QString &ch)
 
bool processingInstruction (const QString &target, const QString &data)
 
bool warning (const QXmlParseException &exception)
 
bool error (const QXmlParseException &exception)
 
bool fatalError (const QXmlParseException &exception)
 
bool notationDecl (const QString &name, const QString &publicId, const QString &systemId)
 
bool unparsedEntityDecl (const QString &name, const QString &publicId, const QString &systemId, const QString &notationName)
 
bool resolveEntity (const QString &publicId, const QString &systemId, QXmlInputSource *&ret)
 
bool startDTD (const QString &name, const QString &publicId, const QString &systemId)
 
bool endDTD ()
 
bool startCDATA ()
 
bool endCDATA ()
 
bool comment (const QString &ch)
 
bool attributeDecl (const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value)
 
bool internalEntityDecl (const QString &name, const QString &value)
 
bool externalEntityDecl (const QString &name, const QString &publicId, const QString &systemId)
 
QString errorString ()
 
- Public Member Functions inherited from QXmlContentHandler
virtual ~QXmlContentHandler ()
 
- Public Member Functions inherited from QXmlErrorHandler
virtual ~QXmlErrorHandler ()
 
- Public Member Functions inherited from QXmlDTDHandler
virtual ~QXmlDTDHandler ()
 
- Public Member Functions inherited from QXmlEntityResolver
virtual ~QXmlEntityResolver ()
 
- Public Member Functions inherited from QXmlLexicalHandler
virtual ~QXmlLexicalHandler ()
 
- Public Member Functions inherited from QXmlDeclHandler
virtual ~QXmlDeclHandler ()
 
- Public Member Functions inherited from ElementMapper< TocItemHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, TocItemHandler *obj, void(TocItemHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, TocItemHandler *obj, void(TocItemHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_id
 
StringImpl m_title
 

Friends

class TocItemIterator
 

Additional Inherited Members

- Public Types inherited from BaseHandler< TocItemHandler >
typedef ElementMapper< TocItemHandler >::StartElementHandlerT StartElementHandlerT
 
typedef ElementMapper< TocItemHandler >::EndElementHandlerT EndElementHandlerT
 
- Public Types inherited from ElementMapper< TocItemHandler >
typedef StartElementHandler StartElementHandlerT
 
typedef EndElementHandler EndElementHandlerT
 
- Static Public Attributes inherited from LocatorContainer
static QXmlLocators_theLocator =0
 
- Protected Attributes inherited from BaseHandler< TocItemHandler >
QString m_curString
 
QString m_skipUntil
 
int m_skipCount
 
QXmlDefaultHandlerm_delegateHandler
 
IFallBackHandlerm_fallBackHandler
 
- Protected Attributes inherited from ElementMapper< TocItemHandler >
QDict< StartElementHandlerTm_startHandlers
 
QDict< EndElementHandlerTm_endHandlers
 

Detailed Description

Node representing a table of contents item.

Definition at line 358 of file dochandler.h.

Constructor & Destructor Documentation

TocItemHandler::TocItemHandler ( IBaseHandler parent)

Definition at line 527 of file dochandler.cpp.

527  : m_parent(parent)
528 {
529  addEndHandler("tocitem",this,&TocItemHandler::endTocItem);
530 }
virtual void endTocItem()
Definition: dochandler.cpp:543
IBaseHandler * m_parent
Definition: dochandler.h:373
void addEndHandler(const char *key)
Definition: basehandler.h:101
TocItemHandler::~TocItemHandler ( )
virtual

Definition at line 532 of file dochandler.cpp.

533 {
534 }

Member Function Documentation

void TocItemHandler::endTocItem ( )
virtual

Definition at line 543 of file dochandler.cpp.

544 {
546  m_parent->setDelegate(0);
547 }
StringImpl m_title
Definition: dochandler.h:375
IBaseHandler * m_parent
Definition: dochandler.h:373
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
virtual const IString* TocItemHandler::id ( ) const
inlinevirtual

Definition at line 369 of file dochandler.h.

369 { return &m_id; }
StringImpl m_id
Definition: dochandler.h:374
virtual Kind TocItemHandler::kind ( ) const
inlinevirtual

Definition at line 368 of file dochandler.h.

368 { return DocImpl::TocItem; }
void TocItemHandler::startTocItem ( const QXmlAttributes attrib)
virtual

Definition at line 536 of file dochandler.cpp.

537 {
538  m_parent->setDelegate(this);
539  m_id = attrib.value("id");
540  m_curString="";
541 }
StringImpl m_id
Definition: dochandler.h:374
QString value(int index) const
Definition: qxml.cpp:664
IBaseHandler * m_parent
Definition: dochandler.h:373
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
virtual const IString* TocItemHandler::title ( ) const
inlinevirtual

Definition at line 370 of file dochandler.h.

370 { return &m_title; }
StringImpl m_title
Definition: dochandler.h:375

Friends And Related Function Documentation

friend class TocItemIterator
friend

Definition at line 360 of file dochandler.h.

Member Data Documentation

StringImpl TocItemHandler::m_id
private

Definition at line 374 of file dochandler.h.

IBaseHandler* TocItemHandler::m_parent
private

Definition at line 373 of file dochandler.h.

StringImpl TocItemHandler::m_title
private

Definition at line 375 of file dochandler.h.


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