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

#include <dochandler.h>

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

Public Member Functions

 DocInternalHandler (IBaseHandler *parent, int level)
 
virtual ~DocInternalHandler ()
 
virtual void startInternal (const QXmlAttributes &attrib)
 
virtual void endInternal ()
 
virtual void startSubSection (const QXmlAttributes &attrib)
 
virtual void startParagraph (const QXmlAttributes &attrib)
 
virtual Kind kind () const
 
virtual IDocIteratorparagraphs () const
 
virtual IDocIteratorsubSections () const
 
- Public Member Functions inherited from BaseHandler< DocInternalHandler >
 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< DocInternalHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, DocInternalHandler *obj, void(DocInternalHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, DocInternalHandler *obj, void(DocInternalHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
QList< DocImplm_paragraphs
 
QList< DocImplm_subsections
 
int m_level
 

Friends

class DocInternalParaIterator
 
class DocInternalSubIterator
 

Additional Inherited Members

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

Detailed Description

Definition at line 1270 of file dochandler.h.

Constructor & Destructor Documentation

DocInternalHandler::DocInternalHandler ( IBaseHandler parent,
int  level 
)

Definition at line 2115 of file dochandler.cpp.

2116  : m_parent(parent), m_level(level)
2117 {
2121  QString sectionKey;
2122  sectionKey.sprintf("sect%d",level+1);
2125 }
QList< DocImpl > m_subsections
Definition: dochandler.h:1290
QString & sprintf(const char *format,...)
Definition: qstring.cpp:12719
IBaseHandler * m_parent
Definition: dochandler.h:1288
QList< DocImpl > m_paragraphs
Definition: dochandler.h:1289
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition: qstring.h:350
virtual void endInternal()
virtual void startSubSection(const QXmlAttributes &attrib)
virtual void startParagraph(const QXmlAttributes &attrib)
void addStartHandler(const char *key)
Definition: basehandler.h:91
QCString utf8() const
Definition: qstring.cpp:14507
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
void addEndHandler(const char *key)
Definition: basehandler.h:101
DocInternalHandler::~DocInternalHandler ( )
virtual

Definition at line 2127 of file dochandler.cpp.

2128 {
2129 }

Member Function Documentation

void DocInternalHandler::endInternal ( )
virtual

Definition at line 2137 of file dochandler.cpp.

2138 {
2139  m_parent->setDelegate(0);
2140  debug(2,"End internal\n");
2141 }
IBaseHandler * m_parent
Definition: dochandler.h:1288
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
virtual Kind DocInternalHandler::kind ( ) const
inlinevirtual

Definition at line 1283 of file dochandler.h.

1283 { return DocImpl::Internal; }
IDocIterator * DocInternalHandler::paragraphs ( ) const
virtual

Definition at line 2157 of file dochandler.cpp.

2158 {
2159  return new DocInternalParaIterator(*this);
2160 }
friend class DocInternalParaIterator
Definition: dochandler.h:1273
void DocInternalHandler::startInternal ( const QXmlAttributes attrib)
virtual

Definition at line 2131 of file dochandler.cpp.

2132 {
2133  m_parent->setDelegate(this);
2134  debug(2,"Start internal\n");
2135 }
IBaseHandler * m_parent
Definition: dochandler.h:1288
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
void DocInternalHandler::startParagraph ( const QXmlAttributes attrib)
virtual

Definition at line 2150 of file dochandler.cpp.

2151 {
2152  ParagraphHandler *parHandler = new ParagraphHandler(this);
2153  parHandler->startParagraph(attrib);
2154  m_paragraphs.append(parHandler);
2155 }
void append(const type *d)
Definition: qlist.h:73
QList< DocImpl > m_paragraphs
Definition: dochandler.h:1289
Node representing a paragraph of text and commands.
Definition: dochandler.h:196
virtual void startParagraph(const QXmlAttributes &attrib)
void DocInternalHandler::startSubSection ( const QXmlAttributes attrib)
virtual

Definition at line 2143 of file dochandler.cpp.

2144 {
2145  DocSectionHandler *secHandler = new DocSectionHandler(this,m_level+1);
2146  secHandler->startDocSection(attrib);
2147  m_subsections.append(secHandler);
2148 }
QList< DocImpl > m_subsections
Definition: dochandler.h:1290
void append(const type *d)
Definition: qlist.h:73
virtual void startDocSection(const QXmlAttributes &attrib)
Node representing a section.
Definition: dochandler.h:1221
IDocIterator * DocInternalHandler::subSections ( ) const
virtual

Definition at line 2162 of file dochandler.cpp.

2163 {
2164  return new DocInternalSubIterator(*this);
2165 }
friend class DocInternalSubIterator
Definition: dochandler.h:1274

Friends And Related Function Documentation

friend class DocInternalParaIterator
friend

Definition at line 1273 of file dochandler.h.

friend class DocInternalSubIterator
friend

Definition at line 1274 of file dochandler.h.

Member Data Documentation

int DocInternalHandler::m_level
private

Definition at line 1291 of file dochandler.h.

QList<DocImpl> DocInternalHandler::m_paragraphs
private

Definition at line 1289 of file dochandler.h.

IBaseHandler* DocInternalHandler::m_parent
private

Definition at line 1288 of file dochandler.h.

QList<DocImpl> DocInternalHandler::m_subsections
private

Definition at line 1290 of file dochandler.h.


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