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

#include <dochandler.h>

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

Public Member Functions

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

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_url
 
StringImpl m_text
 

Additional Inherited Members

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

Detailed Description

Definition at line 577 of file dochandler.h.

Constructor & Destructor Documentation

ULinkHandler::ULinkHandler ( IBaseHandler parent)

Definition at line 737 of file dochandler.cpp.

738  : m_parent(parent)
739 {
740  addEndHandler("ulink",this,&ULinkHandler::endULink);
741 }
void endULink()
Definition: dochandler.cpp:755
IBaseHandler * m_parent
Definition: dochandler.h:592
void addEndHandler(const char *key)
Definition: basehandler.h:101
ULinkHandler::~ULinkHandler ( )
virtual

Definition at line 743 of file dochandler.cpp.

744 {
745 }

Member Function Documentation

void ULinkHandler::endULink ( )

Definition at line 755 of file dochandler.cpp.

756 {
758  m_curString="";
759  m_parent->setDelegate(0);
760  debug(2,"End ulink\n");
761 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:592
StringImpl m_text
Definition: dochandler.h:594
virtual Kind ULinkHandler::kind ( ) const
inlinevirtual

Definition at line 587 of file dochandler.h.

587 { return DocImpl::ULink; }
void ULinkHandler::startULink ( const QXmlAttributes attrib)

Definition at line 747 of file dochandler.cpp.

748 {
749  m_parent->setDelegate(this);
750  debug(2,"Start ulink\n");
751  m_url = attrib.value("url");
752  m_curString="";
753 }
StringImpl m_url
Definition: dochandler.h:593
QString value(int index) const
Definition: qxml.cpp:664
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:592
virtual const IString* ULinkHandler::text ( ) const
inlinevirtual

Definition at line 589 of file dochandler.h.

589 { return &m_text; }
StringImpl m_text
Definition: dochandler.h:594
virtual const IString* ULinkHandler::url ( ) const
inlinevirtual

Definition at line 588 of file dochandler.h.

588 { return &m_url; }
StringImpl m_url
Definition: dochandler.h:593

Member Data Documentation

IBaseHandler* ULinkHandler::m_parent
private

Definition at line 592 of file dochandler.h.

StringImpl ULinkHandler::m_text
private

Definition at line 594 of file dochandler.h.

StringImpl ULinkHandler::m_url
private

Definition at line 593 of file dochandler.h.


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