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

Node representing a list item. More...

#include <dochandler.h>

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

Public Member Functions

 ListItemHandler (IBaseHandler *parent)
 
virtual ~ListItemHandler ()
 
virtual void startListItem (const QXmlAttributes &attrib)
 
virtual void endListItem ()
 
virtual void startParagraph (const QXmlAttributes &attrib)
 
virtual Kind kind () const
 
virtual IDocIteratorcontents () const
 
- Public Member Functions inherited from BaseHandler< ListItemHandler >
 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< ListItemHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, ListItemHandler *obj, void(ListItemHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, ListItemHandler *obj, void(ListItemHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
QList< DocImplm_children
 

Friends

class ListItemIterator
 

Additional Inherited Members

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

Detailed Description

Node representing a list item.

Definition at line 264 of file dochandler.h.

Constructor & Destructor Documentation

ListItemHandler::ListItemHandler ( IBaseHandler parent)

Definition at line 374 of file dochandler.cpp.

375  : m_parent(parent)
376 {
378 
380 
382 }
QList< DocImpl > m_children
Definition: dochandler.h:280
virtual void startParagraph(const QXmlAttributes &attrib)
Definition: dochandler.cpp:400
IBaseHandler * m_parent
Definition: dochandler.h:279
virtual void endListItem()
Definition: dochandler.cpp:394
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
ListItemHandler::~ListItemHandler ( )
virtual

Definition at line 384 of file dochandler.cpp.

385 {
386 }

Member Function Documentation

IDocIterator * ListItemHandler::contents ( ) const
virtual

Definition at line 407 of file dochandler.cpp.

408 {
409  return new ListItemIterator(*this);
410 }
friend class ListItemIterator
Definition: dochandler.h:266
void ListItemHandler::endListItem ( )
virtual

Definition at line 394 of file dochandler.cpp.

395 {
396  debug(2,"end list item handler\n");
397  m_parent->setDelegate(0);
398 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:279
virtual Kind ListItemHandler::kind ( ) const
inlinevirtual

Definition at line 275 of file dochandler.h.

275 { return DocImpl::ListItem; }
void ListItemHandler::startListItem ( const QXmlAttributes attrib)
virtual

Definition at line 388 of file dochandler.cpp.

389 {
390  m_parent->setDelegate(this);
391  debug(2,"start list item handler\n");
392 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:279
void ListItemHandler::startParagraph ( const QXmlAttributes attrib)
virtual

Definition at line 400 of file dochandler.cpp.

401 {
402  ParagraphHandler *parHandler = new ParagraphHandler(this);
403  parHandler->startParagraph(attrib);
404  m_children.append(parHandler);
405 }
void append(const type *d)
Definition: qlist.h:73
Node representing a paragraph of text and commands.
Definition: dochandler.h:196
QList< DocImpl > m_children
Definition: dochandler.h:280
virtual void startParagraph(const QXmlAttributes &attrib)

Friends And Related Function Documentation

friend class ListItemIterator
friend

Definition at line 266 of file dochandler.h.

Member Data Documentation

QList<DocImpl> ListItemHandler::m_children
private

Definition at line 280 of file dochandler.h.

IBaseHandler* ListItemHandler::m_parent
private

Definition at line 279 of file dochandler.h.


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