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

Node representing a documentation block. More...

#include <dochandler.h>

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

Public Member Functions

virtual void startDoc (const QXmlAttributes &attrib)
 
virtual void endDoc ()
 
virtual void startParagraph (const QXmlAttributes &attrib)
 
virtual void startSect1 (const QXmlAttributes &attrib)
 
virtual void startTitle (const QXmlAttributes &attrib)
 
virtual void startInternal (const QXmlAttributes &attrib)
 
 DocHandler (IBaseHandler *parent)
 
virtual ~DocHandler ()
 
virtual Kind kind () const
 
virtual IDocIteratorcontents () const
 
virtual IDocInternalinternal () const
 
- Public Member Functions inherited from BaseHandler< DocHandler >
 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< DocHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, DocHandler *obj, void(DocHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, DocHandler *obj, void(DocHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
QList< DocImplm_children
 
DocInternalHandlerm_internal
 

Friends

class DocIterator
 

Additional Inherited Members

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

Detailed Description

Node representing a documentation block.

Definition at line 1315 of file dochandler.h.

Constructor & Destructor Documentation

DocHandler::DocHandler ( IBaseHandler parent)

Definition at line 2172 of file dochandler.cpp.

2172  : m_parent(parent)
2173 {
2175 
2176  addEndHandler("briefdescription",this,&DocHandler::endDoc);
2177  addEndHandler("detaileddescription",this,&DocHandler::endDoc);
2178  addEndHandler("inbodydescription",this,&DocHandler::endDoc);
2179  //addEndHandler("internal"); // TODO: implement this as a section
2180  addStartHandler("internal",this,&DocHandler::startInternal);
2181 
2183  addStartHandler("sect1",this,&DocHandler::startSect1);
2184  addStartHandler("title",this,&DocHandler::startTitle);
2185  //addStartHandler("internal");
2186 }
virtual void endDoc()
IBaseHandler * m_parent
Definition: dochandler.h:1335
virtual void startTitle(const QXmlAttributes &attrib)
virtual void startParagraph(const QXmlAttributes &attrib)
virtual void startSect1(const QXmlAttributes &attrib)
QList< DocImpl > m_children
Definition: dochandler.h:1336
void addStartHandler(const char *key)
Definition: basehandler.h:91
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
virtual void startInternal(const QXmlAttributes &attrib)
void addEndHandler(const char *key)
Definition: basehandler.h:101
DocHandler::~DocHandler ( )
virtual

Definition at line 2188 of file dochandler.cpp.

2189 {
2190 }

Member Function Documentation

IDocIterator * DocHandler::contents ( ) const
virtual

Definition at line 2231 of file dochandler.cpp.

2232 {
2233  return new DocIterator(*this);
2234 }
friend class DocIterator
Definition: dochandler.h:1317
void DocHandler::endDoc ( )
virtual

Definition at line 2198 of file dochandler.cpp.

2199 {
2200  debug(2,"end dochandler\n");
2201  m_parent->setDelegate(0);
2202 }
IBaseHandler * m_parent
Definition: dochandler.h:1335
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IDocInternal * DocHandler::internal ( ) const
virtual

Definition at line 2236 of file dochandler.cpp.

2237 {
2238  return m_internal;
2239 }
DocInternalHandler * m_internal
Definition: dochandler.h:1337
virtual Kind DocHandler::kind ( ) const
inlinevirtual

Definition at line 1330 of file dochandler.h.

1330 { return DocImpl::Root; }
void DocHandler::startDoc ( const QXmlAttributes attrib)
virtual

Definition at line 2192 of file dochandler.cpp.

2193 {
2194  m_parent->setDelegate(this);
2195  debug(2,"start dochandler\n");
2196 }
IBaseHandler * m_parent
Definition: dochandler.h:1335
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
void DocHandler::startInternal ( const QXmlAttributes attrib)
virtual

Definition at line 2225 of file dochandler.cpp.

2226 {
2227  m_internal = new DocInternalHandler(this,1);
2228  m_internal->startInternal(attrib);
2229 }
DocInternalHandler * m_internal
Definition: dochandler.h:1337
virtual void startInternal(const QXmlAttributes &attrib)
void DocHandler::startParagraph ( const QXmlAttributes attrib)
virtual

Definition at line 2204 of file dochandler.cpp.

2205 {
2206  ParagraphHandler *parHandler = new ParagraphHandler(this);
2207  parHandler->startParagraph(attrib);
2208  m_children.append(parHandler);
2209 }
void append(const type *d)
Definition: qlist.h:73
Node representing a paragraph of text and commands.
Definition: dochandler.h:196
virtual void startParagraph(const QXmlAttributes &attrib)
QList< DocImpl > m_children
Definition: dochandler.h:1336
void DocHandler::startSect1 ( const QXmlAttributes attrib)
virtual

Definition at line 2211 of file dochandler.cpp.

2212 {
2213  DocSectionHandler *secHandler = new DocSectionHandler(this,1);
2214  secHandler->startDocSection(attrib);
2215  m_children.append(secHandler);
2216 }
void append(const type *d)
Definition: qlist.h:73
QList< DocImpl > m_children
Definition: dochandler.h:1336
virtual void startDocSection(const QXmlAttributes &attrib)
Node representing a section.
Definition: dochandler.h:1221
void DocHandler::startTitle ( const QXmlAttributes attrib)
virtual

Definition at line 2218 of file dochandler.cpp.

2219 {
2220  TitleHandler *titleHandler = new TitleHandler(this);
2221  titleHandler->startTitle(attrib);
2222  m_children.append(titleHandler);
2223 }
void append(const type *d)
Definition: qlist.h:73
virtual void startTitle(const QXmlAttributes &attrib)
Definition: dochandler.cpp:868
QList< DocImpl > m_children
Definition: dochandler.h:1336

Friends And Related Function Documentation

friend class DocIterator
friend

Definition at line 1317 of file dochandler.h.

Member Data Documentation

QList<DocImpl> DocHandler::m_children
private

Definition at line 1336 of file dochandler.h.

DocInternalHandler* DocHandler::m_internal
private

Definition at line 1337 of file dochandler.h.

IBaseHandler* DocHandler::m_parent
private

Definition at line 1335 of file dochandler.h.


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