2 // C++ Interface: saxhandler
4 // Description: Qt SAX2-Handler
7 // Author: Robert Vogl <voglrobe@web.de>, (C) 2005
9 // Copyright: See COPYING file that comes with this distribution
23 typedef map
<QString
, QString
> TagMapT
;
29 class SaxHandler
: public QXmlDefaultHandler
35 // Reimplementations from base class
36 bool startElement(const QString
&namespaceURI
,
37 const QString
&localName
,
39 const QXmlAttributes
&atts
);
41 bool endElement(const QString
&namespaceURI
,
42 const QString
&localName
,
43 const QString
&qName
);
45 bool characters(const QString
&ch
);
47 bool fatalError(const QXmlParseException
&exc
);
49 bool resolveEntity(const QString
&publicId
,
50 const QString
&systemId
,
51 QXmlInputSource
* &ret
);
53 bool externalEntityDecl(const QString
&name
,
54 const QString
&publicId
,
55 const QString
&systemId
);
57 bool internalEntityDecl(const QString
&name
,
58 const QString
&value
);
60 bool skippedEntity(const QString
&name
);
63 * Returns the parser result.
65 void getData( QString
&data
) const;
74 * \param rtf 'true' = Replace DocBook tags with RTF-tags.\n
75 * 'false' = Ignore tags, return text content only.
77 void setRTF(bool rtf
);