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

#include <dochandler.h>

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

Public Member Functions

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

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_ref
 
StringImpl m_text
 

Additional Inherited Members

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

Detailed Description

Definition at line 527 of file dochandler.h.

Constructor & Destructor Documentation

LinkHandler::LinkHandler ( IBaseHandler parent)

Definition at line 678 of file dochandler.cpp.

679  : m_parent(parent)
680 {
681  addEndHandler("link",this,&LinkHandler::endLink);
682 }
void endLink()
Definition: dochandler.cpp:696
IBaseHandler * m_parent
Definition: dochandler.h:542
void addEndHandler(const char *key)
Definition: basehandler.h:101
LinkHandler::~LinkHandler ( )
virtual

Definition at line 684 of file dochandler.cpp.

685 {
686 }

Member Function Documentation

void LinkHandler::endLink ( )

Definition at line 696 of file dochandler.cpp.

697 {
699  m_curString="";
700  m_parent->setDelegate(0);
701  debug(2,"End link\n");
702 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:542
StringImpl m_text
Definition: dochandler.h:544
virtual Kind LinkHandler::kind ( ) const
inlinevirtual

Definition at line 537 of file dochandler.h.

537 { return DocImpl::Link; }
virtual const IString* LinkHandler::refId ( ) const
inlinevirtual

Definition at line 538 of file dochandler.h.

538 { return &m_ref; }
StringImpl m_ref
Definition: dochandler.h:543
void LinkHandler::startLink ( const QXmlAttributes attrib)

Definition at line 688 of file dochandler.cpp.

689 {
690  m_parent->setDelegate(this);
691  debug(2,"Start link\n");
692  m_ref = attrib.value("linkend");
693  m_curString="";
694 }
QString value(int index) const
Definition: qxml.cpp:664
StringImpl m_ref
Definition: dochandler.h:543
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:542
virtual const IString* LinkHandler::text ( ) const
inlinevirtual

Definition at line 539 of file dochandler.h.

539 { return &m_text; }
StringImpl m_text
Definition: dochandler.h:544

Member Data Documentation

IBaseHandler* LinkHandler::m_parent
private

Definition at line 542 of file dochandler.h.

StringImpl LinkHandler::m_ref
private

Definition at line 543 of file dochandler.h.

StringImpl LinkHandler::m_text
private

Definition at line 544 of file dochandler.h.


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