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

#include <dochandler.h>

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

Public Member Functions

 SimpleSectHandler (IBaseHandler *parent)
 
virtual ~SimpleSectHandler ()
 
virtual void startSimpleSect (const QXmlAttributes &attrib)
 
virtual void endSimpleSect ()
 
virtual void startTitle (const QXmlAttributes &attrib)
 
virtual void startParagraph (const QXmlAttributes &attrib)
 
virtual Kind kind () const
 
virtual Types type () const
 
virtual const IStringtypeString () const
 
virtual IDocTitletitle () const
 
virtual IDocParadescription () const
 
- Public Member Functions inherited from BaseHandler< SimpleSectHandler >
 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< SimpleSectHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, SimpleSectHandler *obj, void(SimpleSectHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, SimpleSectHandler *obj, void(SimpleSectHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
ParagraphHandlerm_paragraph
 
Types m_type
 
StringImpl m_typeString
 
TitleHandlerm_title
 

Additional Inherited Members

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

Detailed Description

Definition at line 689 of file dochandler.h.

Constructor & Destructor Documentation

SimpleSectHandler::SimpleSectHandler ( IBaseHandler parent)

Definition at line 915 of file dochandler.cpp.

916  : m_parent(parent), m_paragraph(0), m_title(0)
917 {
921 }
virtual void startTitle(const QXmlAttributes &attrib)
Definition: dochandler.cpp:941
TitleHandler * m_title
Definition: dochandler.h:712
virtual void startParagraph(const QXmlAttributes &attrib)
Definition: dochandler.cpp:948
virtual void endSimpleSect()
Definition: dochandler.cpp:935
ParagraphHandler * m_paragraph
Definition: dochandler.h:709
void addStartHandler(const char *key)
Definition: basehandler.h:91
IBaseHandler * m_parent
Definition: dochandler.h:708
void addEndHandler(const char *key)
Definition: basehandler.h:101
SimpleSectHandler::~SimpleSectHandler ( )
virtual

Definition at line 923 of file dochandler.cpp.

924 {
925 }

Member Function Documentation

virtual IDocPara* SimpleSectHandler::description ( ) const
inlinevirtual

Definition at line 705 of file dochandler.h.

705 { return m_paragraph; }
ParagraphHandler * m_paragraph
Definition: dochandler.h:709
void SimpleSectHandler::endSimpleSect ( )
virtual

Definition at line 935 of file dochandler.cpp.

936 {
937  debug(2,"end simple section\n");
938  m_parent->setDelegate(0);
939 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:708
virtual Kind SimpleSectHandler::kind ( ) const
inlinevirtual

Definition at line 701 of file dochandler.h.

void SimpleSectHandler::startParagraph ( const QXmlAttributes attrib)
virtual

Definition at line 948 of file dochandler.cpp.

949 {
950  ASSERT(m_paragraph==0);
951  m_paragraph = new ParagraphHandler(this);
952  m_paragraph->startParagraph(attrib);
953 }
Node representing a paragraph of text and commands.
Definition: dochandler.h:196
virtual void startParagraph(const QXmlAttributes &attrib)
ParagraphHandler * m_paragraph
Definition: dochandler.h:709
#define ASSERT(x)
Definition: qglobal.h:590
void SimpleSectHandler::startSimpleSect ( const QXmlAttributes attrib)
virtual

Definition at line 927 of file dochandler.cpp.

928 {
929  m_typeString = attrib.value("kind");
931  debug(2,"start simple section %s\n",m_typeString.data());
932  m_parent->setDelegate(this);
933 }
static TypeNameMapper * s_typeMapper
Definition: dochandler.cpp:81
QString value(int index) const
Definition: qxml.cpp:664
SimpleSectHandler::Types stringToType(const QString &typeStr)
Definition: dochandler.cpp:52
const char * data() const
Definition: qstring.h:542
StringImpl m_typeString
Definition: dochandler.h:711
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:708
void SimpleSectHandler::startTitle ( const QXmlAttributes attrib)
virtual

Definition at line 941 of file dochandler.cpp.

942 {
943  ASSERT(m_title==0);
944  m_title = new TitleHandler(this);
945  m_title->startTitle(attrib);
946 }
TitleHandler * m_title
Definition: dochandler.h:712
virtual void startTitle(const QXmlAttributes &attrib)
Definition: dochandler.cpp:868
#define ASSERT(x)
Definition: qglobal.h:590
virtual IDocTitle* SimpleSectHandler::title ( ) const
inlinevirtual

Definition at line 704 of file dochandler.h.

704 { return m_title; }
TitleHandler * m_title
Definition: dochandler.h:712
virtual Types SimpleSectHandler::type ( ) const
inlinevirtual

Definition at line 702 of file dochandler.h.

702 { return m_type; }
virtual const IString* SimpleSectHandler::typeString ( ) const
inlinevirtual

Definition at line 703 of file dochandler.h.

703 { return &m_typeString; }
StringImpl m_typeString
Definition: dochandler.h:711

Member Data Documentation

ParagraphHandler* SimpleSectHandler::m_paragraph
private

Definition at line 709 of file dochandler.h.

IBaseHandler* SimpleSectHandler::m_parent
private

Definition at line 708 of file dochandler.h.

TitleHandler* SimpleSectHandler::m_title
private

Definition at line 712 of file dochandler.h.

Types SimpleSectHandler::m_type
private

Definition at line 710 of file dochandler.h.

StringImpl SimpleSectHandler::m_typeString
private

Definition at line 711 of file dochandler.h.


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