#include <basehandler.h>
Public Types | |
typedef ElementMapper< T >::StartElementHandlerT | StartElementHandlerT |
typedef ElementMapper< T >::EndElementHandlerT | EndElementHandlerT |
Public Types inherited from ElementMapper< T > | |
typedef StartElementHandler | StartElementHandlerT |
typedef EndElementHandler | EndElementHandlerT |
Public Member Functions | |
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) |
QXmlDefaultHandler * | delegate () const |
void | setFallBackHandler (IFallBackHandler *h) |
IFallBackHandler * | fallBackHandler () const |
void | setDocumentLocator (QXmlLocator *locator) |
Public Member Functions inherited from QXmlDefaultHandler | |
QXmlDefaultHandler () | |
virtual | ~QXmlDefaultHandler () |
void | setDocumentLocator (QXmlLocator *locator) |
bool | startDocument () |
bool | endDocument () |
bool | startPrefixMapping (const QString &prefix, const QString &uri) |
bool | endPrefixMapping (const QString &prefix) |
bool | startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts) |
bool | endElement (const QString &namespaceURI, const QString &localName, const QString &qName) |
bool | characters (const QString &ch) |
bool | ignorableWhitespace (const QString &ch) |
bool | processingInstruction (const QString &target, const QString &data) |
bool | skippedEntity (const QString &name) |
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 ¬ationName) |
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< T > | |
ElementMapper () | |
virtual | ~ElementMapper () |
void | addStartHandler (const char *key) |
void | addStartHandler (const char *key, T *obj, void(T::*handler)(const QXmlAttributes &)) |
void | addEndHandler (const char *key) |
void | addEndHandler (const char *key, T *obj, void(T::*handler)()) |
Public Member Functions inherited from IBaseHandler | |
virtual | ~IBaseHandler () |
Protected Attributes | |
QString | m_curString |
QString | m_skipUntil |
int | m_skipCount |
QXmlDefaultHandler * | m_delegateHandler |
IFallBackHandler * | m_fallBackHandler |
Protected Attributes inherited from ElementMapper< T > | |
QDict< StartElementHandlerT > | m_startHandlers |
QDict< EndElementHandlerT > | m_endHandlers |
Additional Inherited Members | |
Static Public Attributes inherited from LocatorContainer | |
static QXmlLocator * | s_theLocator =0 |
Definition at line 126 of file basehandler.h.
typedef ElementMapper<T>::EndElementHandlerT BaseHandler< T >::EndElementHandlerT |
Definition at line 133 of file basehandler.h.
typedef ElementMapper<T>::StartElementHandlerT BaseHandler< T >::StartElementHandlerT |
Definition at line 132 of file basehandler.h.
|
inline |
Definition at line 135 of file basehandler.h.
|
inlinevirtual |
Definition at line 139 of file basehandler.h.
|
inlinevirtual |
called when a number of characters are received by the parser.
ch | the characters. |
Implements QXmlContentHandler.
Definition at line 239 of file basehandler.h.
|
inlinevirtual |
|
inlinevirtual |
The reader calls this function when he has parsed an end element tag.
If this function returns FALSE the reader will stop parsing and will report an error. The reader will use the function errorString() to get the error message that will be used for reporting the error.
See also the namespace description.
Implements QXmlContentHandler.
Definition at line 187 of file basehandler.h.
|
inline |
Definition at line 266 of file basehandler.h.
|
inlinevirtual |
|
inlinevirtual |
The reader calls this function before he starts parsing the document. The argument locator is a pointer to a QXmlLocator which allows the application to get the actual position of the parsing in the document.
Do not destroy the locator; it is destroyed when the reader is destroyed (do not use the locator after the reader got destroyed).
Implements QXmlContentHandler.
Definition at line 271 of file basehandler.h.
|
inline |
Definition at line 261 of file basehandler.h.
|
inlinevirtual |
Some readers may skip entities if they have not seen the declarations (e.g. because they are in an external DTD). If they do so they will report it by calling this function.
If this function returns FALSE the reader will stop parsing and will report an error. The reader will use the function errorString() to get the error message that will be used for reporting the error.
Implements QXmlContentHandler.
Definition at line 223 of file basehandler.h.
|
inlinevirtual |
The reader calls this function when he starts parsing the document. The reader will call this function only once before any other functions in this class or in the QXmlDTDHandler class are called (except QXmlContentHandler::setDocumentLocator()).
If this function returns FALSE the reader will stop parsing and will report an error. The reader will use the function errorString() to get the error message that will be used for reporting the error.
Implements QXmlContentHandler.
Definition at line 144 of file basehandler.h.
|
inlinevirtual |
The reader calls this function when he has parsed a start element tag.
There will be a corresponding endElement() call when the corresponding end element tag was read. The startElement() and endElement() calls are always nested correctly. Empty element tags (e.g. <a/>) are reported by startElement() directly followed by a call to endElement().
The attribute list provided will contain only attributes with explicit values. The attribute list will contain attributes used for namespace declaration (i.e. attributes starting with xmlns) only if the namespace-prefix property of the reader is TRUE.
The argument uri is the namespace URI, or the empty string if the element has no namespace URI or if namespace processing is not being performed, localName is the local name (without prefix), or the empty string if namespace processing is not being performed, qName is the qualified name (with prefix), or the empty string if qualified names are not available and atts are the attributes attached to the element. If there are no attributes, atts is an empty attributes object
If this function returns FALSE the reader will stop parsing and will report an error. The reader will use the function errorString() to get the error message that will be used for reporting the error.
See also the namespace description.
Implements QXmlContentHandler.
Definition at line 149 of file basehandler.h.
|
protected |
Definition at line 278 of file basehandler.h.
|
protected |
Definition at line 281 of file basehandler.h.
|
protected |
Definition at line 282 of file basehandler.h.
|
protected |
Definition at line 280 of file basehandler.h.
|
protected |
Definition at line 279 of file basehandler.h.