summaryrefslogtreecommitdiffstats
path: root/ksayit/src/saxhandler.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:20:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:20:30 +0000
commit28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c (patch)
treea2f011f22aa31d0839c6e2118501b7a6d2f2ae96 /ksayit/src/saxhandler.cpp
parent0285229d858c8f03cde7354c679a752598cf4515 (diff)
downloadtdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.tar.gz
tdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1157633 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksayit/src/saxhandler.cpp')
-rw-r--r--ksayit/src/saxhandler.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/ksayit/src/saxhandler.cpp b/ksayit/src/saxhandler.cpp
index 2f8d49c..9f6354c 100644
--- a/ksayit/src/saxhandler.cpp
+++ b/ksayit/src/saxhandler.cpp
@@ -21,9 +21,9 @@
#include "saxhandler.h"
SaxHandler::SaxHandler()
- : QXmlDefaultHandler()
+ : TQXmlDefaultHandler()
{
- m_output = QString::null;
+ m_output = TQString::null;
m_rtf = true;
m_tagmap["action"] = "B";
m_tagmap["application"] = "B";
@@ -74,21 +74,21 @@ void SaxHandler::setRTF(bool rtf)
}
-bool SaxHandler::startElement(const QString &,
- const QString &,
- const QString & qName,
- const QXmlAttributes & atts )
+bool SaxHandler::startElement(const TQString &,
+ const TQString &,
+ const TQString & qName,
+ const TQXmlAttributes & atts )
{
if ( !m_rtf )
return true;
- QString tag = qName.lower();
+ TQString tag = qName.lower();
TagMapT::iterator it;
it = m_tagmap.find(tag);
if ( it != m_tagmap.end() ){
// tag found in hash table
- QString rtftag = (*it).second;
+ TQString rtftag = (*it).second;
m_output += "<" + rtftag + ">";
}
@@ -96,20 +96,20 @@ bool SaxHandler::startElement(const QString &,
}
-bool SaxHandler::endElement(const QString &,
- const QString &,
- const QString & qName)
+bool SaxHandler::endElement(const TQString &,
+ const TQString &,
+ const TQString & qName)
{
if ( !m_rtf )
return true;
- QString tag = qName.lower();
+ TQString tag = qName.lower();
TagMapT::iterator it;
it = m_tagmap.find(tag);
if ( it != m_tagmap.end() ){
// tag found in hash table
- QString rtftag = (*it).second;
+ TQString rtftag = (*it).second;
m_output += "</" + rtftag.section(" ", 0, 0) + ">";
}
@@ -117,50 +117,50 @@ bool SaxHandler::endElement(const QString &,
}
-bool SaxHandler::characters(const QString & ch)
+bool SaxHandler::characters(const TQString & ch)
{
m_output += ch;
return true;
}
-bool SaxHandler::fatalError(const QXmlParseException &exc)
+bool SaxHandler::fatalError(const TQXmlParseException &exc)
{
- QString err = i18n("Fatal error while parsing XML-Paragraph:\n");
+ TQString err = i18n("Fatal error while parsing XML-Paragraph:\n");
err += i18n("%1, Line: %2").arg(exc.message()).arg(exc.lineNumber());
KMessageBox::error(0, err, i18n("Fatal error") );
return false;
}
-bool SaxHandler::resolveEntity(const QString &publicId,
- const QString &systemId,
- QXmlInputSource* &ret)
+bool SaxHandler::resolveEntity(const TQString &publicId,
+ const TQString &systemId,
+ TQXmlInputSource* &ret)
{
return true;
}
-bool SaxHandler::externalEntityDecl(const QString & name,
- const QString & publicId,
- const QString & systemId)
+bool SaxHandler::externalEntityDecl(const TQString & name,
+ const TQString & publicId,
+ const TQString & systemId)
{
kdDebug(100200) << "externalEntityDecl(): " << name << ", " << publicId << ", " << systemId << endl;
return true;
}
-bool SaxHandler::internalEntityDecl(const QString & name,
- const QString & value)
+bool SaxHandler::internalEntityDecl(const TQString & name,
+ const TQString & value)
{
kdDebug() << "internalEntityDecl(): " << name << ", " << value << endl;
return true;
}
-bool SaxHandler::skippedEntity(const QString &name)
+bool SaxHandler::skippedEntity(const TQString &name)
{
- QString warn = i18n("Unresolved entity found: %1.\n").arg(name);
+ TQString warn = i18n("Unresolved entity found: %1.\n").arg(name);
warn += i18n("KSayIt does not support DocBook files with external entities. ");
warn += i18n("Parsing can continue, but the resulting text will contain gaps.");
@@ -173,7 +173,7 @@ bool SaxHandler::skippedEntity(const QString &name)
}
-void SaxHandler::getData( QString &data ) const
+void SaxHandler::getData( TQString &data ) const
{
data = m_output;
}
@@ -181,7 +181,7 @@ void SaxHandler::getData( QString &data ) const
void SaxHandler::reset()
{
- m_output = QString::null;
+ m_output = TQString::null;
}