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

Node representing an entry in the index. More...

#include <dochandler.h>

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

Public Member Functions

 IndexEntryHandler (IBaseHandler *parent)
 
virtual ~IndexEntryHandler ()
 
void startIndexEntry (const QXmlAttributes &attrib)
 
void endIndexEntry ()
 
void startPrimaryIE (const QXmlAttributes &attrib)
 
void endPrimaryIE ()
 
void startSecondaryIE (const QXmlAttributes &attrib)
 
void endSecondaryIE ()
 
virtual Kind kind () const
 
virtual const IStringprimary () const
 
virtual const IStringsecondary () const
 
- Public Member Functions inherited from BaseHandler< IndexEntryHandler >
 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< IndexEntryHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, IndexEntryHandler *obj, void(IndexEntryHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, IndexEntryHandler *obj, void(IndexEntryHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_primary
 
StringImpl m_secondary
 

Additional Inherited Members

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

Detailed Description

Node representing an entry in the index.

Definition at line 1006 of file dochandler.h.

Constructor & Destructor Documentation

IndexEntryHandler::IndexEntryHandler ( IBaseHandler parent)

Definition at line 1390 of file dochandler.cpp.

1391  : m_parent(parent)
1392 {
1393  addEndHandler("indexentry",this,&IndexEntryHandler::endIndexEntry);
1397  addEndHandler("secondaryie",this,&IndexEntryHandler::endSecondaryIE);
1398 }
void startPrimaryIE(const QXmlAttributes &attrib)
IBaseHandler * m_parent
Definition: dochandler.h:1024
void addStartHandler(const char *key)
Definition: basehandler.h:91
void addEndHandler(const char *key)
Definition: basehandler.h:101
void startSecondaryIE(const QXmlAttributes &attrib)
IndexEntryHandler::~IndexEntryHandler ( )
virtual

Definition at line 1400 of file dochandler.cpp.

1401 {
1402 }

Member Function Documentation

void IndexEntryHandler::endIndexEntry ( )

Definition at line 1410 of file dochandler.cpp.

1411 {
1412  debug(2,"index entry primary=`%s' secondary=`%s'\n",
1414  m_parent->setDelegate(0);
1415 }
StringImpl m_secondary
Definition: dochandler.h:1026
const char * data() const
Definition: qstring.h:542
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
StringImpl m_primary
Definition: dochandler.h:1025
IBaseHandler * m_parent
Definition: dochandler.h:1024
void IndexEntryHandler::endPrimaryIE ( )

Definition at line 1422 of file dochandler.cpp.

1423 {
1425 }
StringImpl m_primary
Definition: dochandler.h:1025
void IndexEntryHandler::endSecondaryIE ( )

Definition at line 1432 of file dochandler.cpp.

1433 {
1435 }
StringImpl m_secondary
Definition: dochandler.h:1026
virtual Kind IndexEntryHandler::kind ( ) const
inlinevirtual

Definition at line 1019 of file dochandler.h.

virtual const IString* IndexEntryHandler::primary ( ) const
inlinevirtual

Definition at line 1020 of file dochandler.h.

1020 { return &m_primary; }
StringImpl m_primary
Definition: dochandler.h:1025
virtual const IString* IndexEntryHandler::secondary ( ) const
inlinevirtual

Definition at line 1021 of file dochandler.h.

1021 { return &m_secondary; }
StringImpl m_secondary
Definition: dochandler.h:1026
void IndexEntryHandler::startIndexEntry ( const QXmlAttributes attrib)

Definition at line 1404 of file dochandler.cpp.

1405 {
1406  debug(2,"start index entry\n");
1407  m_parent->setDelegate(this);
1408 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:1024
void IndexEntryHandler::startPrimaryIE ( const QXmlAttributes attrib)

Definition at line 1417 of file dochandler.cpp.

1418 {
1419  m_curString="";
1420 }
void IndexEntryHandler::startSecondaryIE ( const QXmlAttributes attrib)

Definition at line 1427 of file dochandler.cpp.

1428 {
1429  m_curString="";
1430 }

Member Data Documentation

IBaseHandler* IndexEntryHandler::m_parent
private

Definition at line 1024 of file dochandler.h.

StringImpl IndexEntryHandler::m_primary
private

Definition at line 1025 of file dochandler.h.

StringImpl IndexEntryHandler::m_secondary
private

Definition at line 1026 of file dochandler.h.


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