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

Node representing table of contents list. More...

#include <dochandler.h>

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

Public Member Functions

 TocListHandler (IBaseHandler *parent)
 
virtual ~TocListHandler ()
 
virtual void startTocList (const QXmlAttributes &attrib)
 
virtual void endTocList ()
 
virtual void startTocItem (const QXmlAttributes &attrib)
 
virtual Kind kind () const
 
virtual IDocIteratorelements () const
 
- Public Member Functions inherited from BaseHandler< TocListHandler >
 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< TocListHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, TocListHandler *obj, void(TocListHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, TocListHandler *obj, void(TocListHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
QList< DocImplm_children
 

Friends

class TocListIterator
 

Additional Inherited Members

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

Detailed Description

Node representing table of contents list.

Definition at line 327 of file dochandler.h.

Constructor & Destructor Documentation

TocListHandler::TocListHandler ( IBaseHandler parent)

Definition at line 490 of file dochandler.cpp.

490  : m_parent(parent)
491 {
493  addEndHandler("toclist",this,&TocListHandler::endTocList);
495 }
virtual void startTocItem(const QXmlAttributes &attrib)
Definition: dochandler.cpp:511
QList< DocImpl > m_children
Definition: dochandler.h:343
IBaseHandler * m_parent
Definition: dochandler.h:342
virtual void endTocList()
Definition: dochandler.cpp:506
void addStartHandler(const char *key)
Definition: basehandler.h:91
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
void addEndHandler(const char *key)
Definition: basehandler.h:101
TocListHandler::~TocListHandler ( )
virtual

Definition at line 497 of file dochandler.cpp.

498 {
499 }

Member Function Documentation

IDocIterator * TocListHandler::elements ( ) const
virtual

Definition at line 518 of file dochandler.cpp.

519 {
520  return new TocListIterator(*this);
521 }
friend class TocListIterator
Definition: dochandler.h:329
void TocListHandler::endTocList ( )
virtual

Definition at line 506 of file dochandler.cpp.

507 {
508  m_parent->setDelegate(0);
509 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:342
virtual Kind TocListHandler::kind ( ) const
inlinevirtual

Definition at line 338 of file dochandler.h.

338 { return DocImpl::TocList; }
void TocListHandler::startTocItem ( const QXmlAttributes attrib)
virtual

Definition at line 511 of file dochandler.cpp.

512 {
513  TocItemHandler *tiHandler = new TocItemHandler(this);
514  tiHandler->startTocItem(attrib);
515  m_children.append(tiHandler);
516 }
void append(const type *d)
Definition: qlist.h:73
virtual void startTocItem(const QXmlAttributes &attrib)
Definition: dochandler.cpp:536
QList< DocImpl > m_children
Definition: dochandler.h:343
Node representing a table of contents item.
Definition: dochandler.h:358
void TocListHandler::startTocList ( const QXmlAttributes attrib)
virtual

Definition at line 501 of file dochandler.cpp.

502 {
503  m_parent->setDelegate(this);
504 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:342

Friends And Related Function Documentation

friend class TocListIterator
friend

Definition at line 329 of file dochandler.h.

Member Data Documentation

QList<DocImpl> TocListHandler::m_children
private

Definition at line 343 of file dochandler.h.

IBaseHandler* TocListHandler::m_parent
private

Definition at line 342 of file dochandler.h.


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