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

Node representing list of items. More...

#include <dochandler.h>

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

Public Member Functions

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

Private Attributes

IBaseHandlerm_parent
 
QList< DocImplm_children
 

Friends

class OrderedListIterator
 

Additional Inherited Members

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

Detailed Description

Node representing list of items.

Definition at line 296 of file dochandler.h.

Constructor & Destructor Documentation

OrderedListHandler::OrderedListHandler ( IBaseHandler parent)

Definition at line 416 of file dochandler.cpp.

416  : m_parent(parent)
417 {
421 }
QList< DocImpl > m_children
Definition: dochandler.h:312
IBaseHandler * m_parent
Definition: dochandler.h:311
virtual void startOrderedListItem(const QXmlAttributes &attrib)
Definition: dochandler.cpp:437
void addStartHandler(const char *key)
Definition: basehandler.h:91
virtual void endOrderedList()
Definition: dochandler.cpp:432
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
void addEndHandler(const char *key)
Definition: basehandler.h:101
OrderedListHandler::~OrderedListHandler ( )
virtual

Definition at line 423 of file dochandler.cpp.

424 {
425 }

Member Function Documentation

IDocIterator * OrderedListHandler::elements ( ) const
virtual

Definition at line 444 of file dochandler.cpp.

445 {
446  return new OrderedListIterator(*this);
447 }
friend class OrderedListIterator
Definition: dochandler.h:298
void OrderedListHandler::endOrderedList ( )
virtual

Definition at line 432 of file dochandler.cpp.

433 {
434  m_parent->setDelegate(0);
435 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:311
virtual Kind OrderedListHandler::kind ( ) const
inlinevirtual

Definition at line 307 of file dochandler.h.

void OrderedListHandler::startOrderedList ( const QXmlAttributes attrib)
virtual

Definition at line 427 of file dochandler.cpp.

428 {
429  m_parent->setDelegate(this);
430 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:311
void OrderedListHandler::startOrderedListItem ( const QXmlAttributes attrib)
virtual

Definition at line 437 of file dochandler.cpp.

438 {
439  ListItemHandler *liHandler = new ListItemHandler(this);
440  liHandler->startListItem(attrib);
441  m_children.append(liHandler);
442 }
QList< DocImpl > m_children
Definition: dochandler.h:312
Node representing a list item.
Definition: dochandler.h:264
void append(const type *d)
Definition: qlist.h:73
virtual void startListItem(const QXmlAttributes &attrib)
Definition: dochandler.cpp:388

Friends And Related Function Documentation

friend class OrderedListIterator
friend

Definition at line 298 of file dochandler.h.

Member Data Documentation

QList<DocImpl> OrderedListHandler::m_children
private

Definition at line 312 of file dochandler.h.

IBaseHandler* OrderedListHandler::m_parent
private

Definition at line 311 of file dochandler.h.


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