summaryrefslogtreecommitdiffstats
path: root/kjsembed/builtins/saxhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/builtins/saxhandler.cpp')
-rw-r--r--kjsembed/builtins/saxhandler.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kjsembed/builtins/saxhandler.cpp b/kjsembed/builtins/saxhandler.cpp
index ff0334bf..50507ff9 100644
--- a/kjsembed/builtins/saxhandler.cpp
+++ b/kjsembed/builtins/saxhandler.cpp
@@ -23,7 +23,7 @@ namespace KJSEmbed {
namespace BuiltIns {
SaxHandler::SaxHandler( KJS::ExecState *execstate )
- : TQXmlDefaultHandler(), exec(execstate), error( ErrorNone )
+ : TTQXmlDefaultHandler(), exec(execstate), error( ErrorNone )
{
}
@@ -45,7 +45,7 @@ bool SaxHandler::startDocument()
KJS::Identifier funName("startDocument");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::startDocument();
+ return TTQXmlDefaultHandler::startDocument();
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -66,7 +66,7 @@ bool SaxHandler::endDocument()
KJS::Identifier funName("endDocument");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::endDocument();
+ return TTQXmlDefaultHandler::endDocument();
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -78,8 +78,8 @@ bool SaxHandler::endDocument()
return ret.toBoolean( exec );
}
-bool SaxHandler::startElement( const TQString &ns, const TQString &ln, const TQString &qn,
- const TQXmlAttributes &attrs )
+bool SaxHandler::startElement( const TTQString &ns, const TTQString &ln, const TTQString &qn,
+ const TTQXmlAttributes &attrs )
{
if ( !jshandler.isValid() ) {
error = ErrorNoHandler;
@@ -88,7 +88,7 @@ bool SaxHandler::startElement( const TQString &ns, const TQString &ln, const TQS
KJS::Identifier funName("startElement");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::startElement( ns, ln, qn, attrs );
+ return TTQXmlDefaultHandler::startElement( ns, ln, qn, attrs );
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -106,7 +106,7 @@ bool SaxHandler::startElement( const TQString &ns, const TQString &ln, const TQS
return ret.toBoolean( exec );
}
-bool SaxHandler::endElement( const TQString &ns, const TQString &ln, const TQString &qn )
+bool SaxHandler::endElement( const TTQString &ns, const TTQString &ln, const TTQString &qn )
{
if ( !jshandler.isValid() ) {
error = ErrorNoHandler;
@@ -115,7 +115,7 @@ bool SaxHandler::endElement( const TQString &ns, const TQString &ln, const TQStr
KJS::Identifier funName("endElement");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::endElement( ns, ln, qn );
+ return TTQXmlDefaultHandler::endElement( ns, ln, qn );
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -132,7 +132,7 @@ bool SaxHandler::endElement( const TQString &ns, const TQString &ln, const TQStr
return ret.toBoolean( exec );
}
-bool SaxHandler::characters( const TQString &chars )
+bool SaxHandler::characters( const TTQString &chars )
{
if ( !jshandler.isValid() ) {
error = ErrorNoHandler;
@@ -141,7 +141,7 @@ bool SaxHandler::characters( const TQString &chars )
KJS::Identifier funName("characters");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::characters( chars );
+ return TTQXmlDefaultHandler::characters( chars );
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -156,15 +156,15 @@ bool SaxHandler::characters( const TQString &chars )
return ret.toBoolean( exec );
}
-TQString SaxHandler::errorString()
+TTQString SaxHandler::errorString()
{
switch( error ) {
case ErrorNoHandler:
- return TQString("No handler specified");
+ return TTQString("No handler specified");
break;
case ErrorNotCallable:
- return TQString("One of the callbacks of the handler is not callable");
+ return TTQString("One of the callbacks of the handler is not callable");
break;
case ErrorNone:
// This only means that no error occured in the JS dispatch, there
@@ -175,7 +175,7 @@ TQString SaxHandler::errorString()
break;
}
- return TQXmlDefaultHandler::errorString();
+ return TTQXmlDefaultHandler::errorString();
}
} // namespace KJSEmbed::BuiltIns