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

#include <dochandler.h>

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

Public Member Functions

 RefHandler (IBaseHandler *parent)
 
virtual ~RefHandler ()
 
void startRef (const QXmlAttributes &attrib)
 
void endRef ()
 
virtual Kind kind () const
 
virtual const IStringrefId () const
 
virtual TargetKind targetKind () const
 
virtual const IStringexternal () const
 
virtual const IStringtext () const
 
- Public Member Functions inherited from BaseHandler< RefHandler >
 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< RefHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, RefHandler *obj, void(RefHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, RefHandler *obj, void(RefHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_refId
 
StringImpl m_extId
 
StringImpl m_linkText
 
TargetKind m_targetKind
 

Additional Inherited Members

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

Detailed Description

Definition at line 623 of file dochandler.h.

Constructor & Destructor Documentation

RefHandler::RefHandler ( IBaseHandler parent)

Definition at line 819 of file dochandler.cpp.

820  : m_parent(parent)
821 {
822  addEndHandler("ref",this,&RefHandler::endRef);
823 }
void endRef()
Definition: dochandler.cpp:841
void addEndHandler(const char *key)
Definition: basehandler.h:101
IBaseHandler * m_parent
Definition: dochandler.h:639
RefHandler::~RefHandler ( )
virtual

Definition at line 825 of file dochandler.cpp.

826 {
827 }

Member Function Documentation

void RefHandler::endRef ( )

Definition at line 841 of file dochandler.cpp.

842 {
844  m_parent->setDelegate(0);
845  debug(2,"End ref: text=`%s'\n",m_linkText.data());
846 }
StringImpl m_linkText
Definition: dochandler.h:642
const char * data() const
Definition: qstring.h:542
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:639
virtual const IString* RefHandler::external ( ) const
inlinevirtual

Definition at line 635 of file dochandler.h.

635 { return &m_extId; }
StringImpl m_extId
Definition: dochandler.h:641
virtual Kind RefHandler::kind ( ) const
inlinevirtual

Definition at line 632 of file dochandler.h.

632 { return DocImpl::Ref; }
virtual const IString* RefHandler::refId ( ) const
inlinevirtual

Definition at line 633 of file dochandler.h.

633 { return &m_refId; }
StringImpl m_refId
Definition: dochandler.h:640
void RefHandler::startRef ( const QXmlAttributes attrib)

Definition at line 829 of file dochandler.cpp.

830 {
831  m_parent->setDelegate(this);
832  m_refId = attrib.value("refid");
833  m_extId = attrib.value("external");
834  ASSERT(attrib.value("kindref")=="compound" ||
835  attrib.value("kindref")=="member");
836  m_targetKind = attrib.value("kindref")=="compound" ? Compound : Member;
837  debug(2,"Start ref refId=%s\n",m_refId.data());
838  m_curString="";
839 }
QString value(int index) const
Definition: qxml.cpp:664
StringImpl m_refId
Definition: dochandler.h:640
const char * data() const
Definition: qstring.h:542
StringImpl m_extId
Definition: dochandler.h:641
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
Definition: types.h:38
TargetKind m_targetKind
Definition: dochandler.h:643
#define ASSERT(x)
Definition: qglobal.h:590
IBaseHandler * m_parent
Definition: dochandler.h:639
virtual TargetKind RefHandler::targetKind ( ) const
inlinevirtual

Definition at line 634 of file dochandler.h.

634 { return m_targetKind; }
TargetKind m_targetKind
Definition: dochandler.h:643
virtual const IString* RefHandler::text ( ) const
inlinevirtual

Definition at line 636 of file dochandler.h.

636 { return &m_linkText; }
StringImpl m_linkText
Definition: dochandler.h:642

Member Data Documentation

StringImpl RefHandler::m_extId
private

Definition at line 641 of file dochandler.h.

StringImpl RefHandler::m_linkText
private

Definition at line 642 of file dochandler.h.

IBaseHandler* RefHandler::m_parent
private

Definition at line 639 of file dochandler.h.

StringImpl RefHandler::m_refId
private

Definition at line 640 of file dochandler.h.

TargetKind RefHandler::m_targetKind
private

Definition at line 643 of file dochandler.h.


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