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

Node representing an entry in the table row. More...

#include <dochandler.h>

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

Public Member Functions

 RowHandler (IBaseHandler *parent)
 
virtual ~RowHandler ()
 
void startRow (const QXmlAttributes &attrib)
 
void endRow ()
 
void startEntry (const QXmlAttributes &attrib)
 
virtual Kind kind () const
 
virtual IDocIteratorentries () const
 
- Public Member Functions inherited from BaseHandler< RowHandler >
 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< RowHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, RowHandler *obj, void(RowHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, RowHandler *obj, void(RowHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
QList< EntryHandlerm_children
 

Friends

class RowIterator
 

Additional Inherited Members

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

Detailed Description

Node representing an entry in the table row.

Definition at line 1067 of file dochandler.h.

Constructor & Destructor Documentation

RowHandler::RowHandler ( IBaseHandler parent)

Definition at line 1479 of file dochandler.cpp.

1480  : m_parent(parent)
1481 {
1483  addEndHandler("row",this,&RowHandler::endRow);
1484  addStartHandler("entry",this,&RowHandler::startEntry);
1485 }
void startEntry(const QXmlAttributes &attrib)
QList< EntryHandler > m_children
Definition: dochandler.h:1083
void endRow()
void addStartHandler(const char *key)
Definition: basehandler.h:91
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
IBaseHandler * m_parent
Definition: dochandler.h:1082
void addEndHandler(const char *key)
Definition: basehandler.h:101
RowHandler::~RowHandler ( )
virtual

Definition at line 1487 of file dochandler.cpp.

1488 {
1489 }

Member Function Documentation

void RowHandler::endRow ( )

Definition at line 1496 of file dochandler.cpp.

1497 {
1498  m_parent->setDelegate(0);
1499 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:1082
IDocIterator * RowHandler::entries ( ) const
virtual

Definition at line 1508 of file dochandler.cpp.

1509 {
1510  return new RowIterator(*this);
1511 }
friend class RowIterator
Definition: dochandler.h:1069
virtual Kind RowHandler::kind ( ) const
inlinevirtual

Definition at line 1078 of file dochandler.h.

1078 { return DocImpl::Row; }
void RowHandler::startEntry ( const QXmlAttributes attrib)

Definition at line 1501 of file dochandler.cpp.

1502 {
1503  EntryHandler *eh = new EntryHandler(this);
1504  eh->startEntry(attrib);
1505  m_children.append(eh);
1506 }
Node representing an entry in the table entry.
Definition: dochandler.h:1035
void append(const type *d)
Definition: qlist.h:73
QList< EntryHandler > m_children
Definition: dochandler.h:1083
void startEntry(const QXmlAttributes &attrib)
void RowHandler::startRow ( const QXmlAttributes attrib)

Definition at line 1491 of file dochandler.cpp.

1492 {
1493  m_parent->setDelegate(this);
1494 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:1082

Friends And Related Function Documentation

friend class RowIterator
friend

Definition at line 1069 of file dochandler.h.

Member Data Documentation

QList<EntryHandler> RowHandler::m_children
private

Definition at line 1083 of file dochandler.h.

IBaseHandler* RowHandler::m_parent
private

Definition at line 1082 of file dochandler.h.


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