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

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

#include <dochandler.h>

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

Public Member Functions

 TableHandler (IBaseHandler *parent)
 
virtual ~TableHandler ()
 
void startTable (const QXmlAttributes &attrib)
 
void endTable ()
 
void startRow (const QXmlAttributes &attrib)
 
void startCaption (const QXmlAttributes &attrib)
 
void endCaption ()
 
virtual Kind kind () const
 
virtual IDocIteratorrows () const
 
virtual int numColumns () const
 
virtual const IStringcaption () const
 
- Public Member Functions inherited from BaseHandler< TableHandler >
 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< TableHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, TableHandler *obj, void(TableHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, TableHandler *obj, void(TableHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
QList< RowHandlerm_children
 
int m_numColumns
 
StringImpl m_caption
 

Friends

class TableIterator
 

Additional Inherited Members

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

Detailed Description

Node representing an entry in the table.

Definition at line 1099 of file dochandler.h.

Constructor & Destructor Documentation

TableHandler::TableHandler ( IBaseHandler parent)

Definition at line 1517 of file dochandler.cpp.

1518  : m_parent(parent)
1519 {
1521  addEndHandler("table",this,&TableHandler::endTable);
1524  addEndHandler("caption",this,&TableHandler::endCaption);
1525 }
IBaseHandler * m_parent
Definition: dochandler.h:1118
void endCaption()
QList< RowHandler > m_children
Definition: dochandler.h:1119
void addStartHandler(const char *key)
Definition: basehandler.h:91
void startRow(const QXmlAttributes &attrib)
void setAutoDelete(bool enable)
Definition: qlist.h:99
void startCaption(const QXmlAttributes &attrib)
const bool TRUE
Definition: qglobal.h:371
void addEndHandler(const char *key)
Definition: basehandler.h:101
TableHandler::~TableHandler ( )
virtual

Definition at line 1527 of file dochandler.cpp.

1528 {
1529 }

Member Function Documentation

virtual const IString* TableHandler::caption ( ) const
inlinevirtual

Definition at line 1115 of file dochandler.h.

1115 { return &m_caption; }
StringImpl m_caption
Definition: dochandler.h:1121
void TableHandler::endCaption ( )

Definition at line 1555 of file dochandler.cpp.

1556 {
1558 }
StringImpl m_caption
Definition: dochandler.h:1121
void TableHandler::endTable ( )

Definition at line 1538 of file dochandler.cpp.

1539 {
1540  m_parent->setDelegate(0);
1541 }
IBaseHandler * m_parent
Definition: dochandler.h:1118
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
virtual Kind TableHandler::kind ( ) const
inlinevirtual

Definition at line 1112 of file dochandler.h.

1112 { return DocImpl::Table; }
virtual int TableHandler::numColumns ( ) const
inlinevirtual

Definition at line 1114 of file dochandler.h.

1114 { return m_numColumns; }
IDocIterator * TableHandler::rows ( ) const
virtual

Definition at line 1560 of file dochandler.cpp.

1561 {
1562  return new TableIterator(*this);
1563 }
friend class TableIterator
Definition: dochandler.h:1101
void TableHandler::startCaption ( const QXmlAttributes attrib)

Definition at line 1550 of file dochandler.cpp.

1551 {
1552  m_curString="";
1553 }
void TableHandler::startRow ( const QXmlAttributes attrib)

Definition at line 1543 of file dochandler.cpp.

1544 {
1545  RowHandler *rh = new RowHandler(this);
1546  rh->startRow(attrib);
1547  m_children.append(rh);
1548 }
void append(const type *d)
Definition: qlist.h:73
void startRow(const QXmlAttributes &attrib)
QList< RowHandler > m_children
Definition: dochandler.h:1119
Node representing an entry in the table row.
Definition: dochandler.h:1067
void TableHandler::startTable ( const QXmlAttributes attrib)

Definition at line 1531 of file dochandler.cpp.

1532 {
1533  m_parent->setDelegate(this);
1534  m_numColumns = attrib.value("cols").toInt();
1535  debug(2,"table cols=%d\n",m_numColumns);
1536 }
IBaseHandler * m_parent
Definition: dochandler.h:1118
QString value(int index) const
Definition: qxml.cpp:664
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
int toInt(bool *ok=0, int base=10) const
Definition: qstring.cpp:14045

Friends And Related Function Documentation

friend class TableIterator
friend

Definition at line 1101 of file dochandler.h.

Member Data Documentation

StringImpl TableHandler::m_caption
private

Definition at line 1121 of file dochandler.h.

QList<RowHandler> TableHandler::m_children
private

Definition at line 1119 of file dochandler.h.

int TableHandler::m_numColumns
private

Definition at line 1120 of file dochandler.h.

IBaseHandler* TableHandler::m_parent
private

Definition at line 1118 of file dochandler.h.


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