summaryrefslogtreecommitdiffstats
path: root/src/translators/xslthandler.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/translators/xslthandler.h
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/translators/xslthandler.h')
-rw-r--r--src/translators/xslthandler.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/translators/xslthandler.h b/src/translators/xslthandler.h
index f51b47c..a7f4a76 100644
--- a/src/translators/xslthandler.h
+++ b/src/translators/xslthandler.h
@@ -14,7 +14,7 @@
#ifndef XSLTHANDLER_H
#define XSLTHANDLER_H
-#include <qmap.h>
+#include <tqmap.h>
extern "C" {
// for xmlDocPtr
@@ -24,7 +24,7 @@ extern "C" {
}
class KURL;
-class QDomDocument;
+class TQDomDocument;
namespace Tellico {
@@ -43,16 +43,16 @@ public:
~XMLOutputBuffer();
bool isValid() const { return (m_buf != 0); }
xmlOutputBuffer* buffer() const { return m_buf; }
- QString result() const { return m_res; }
+ TQString result() const { return m_res; }
private:
xmlOutputBuffer* m_buf;
- QString m_res;
+ TQString m_res;
};
/**
* @param xsltFile The XSLT file
*/
- XSLTHandler(const QCString& xsltFile);
+ XSLTHandler(const TQCString& xsltFile);
/**
* @param xsltURL The XSLT URL
*/
@@ -61,7 +61,7 @@ public:
* @param xsltDoc The XSLT DOM document
* @param xsltFile The XSLT file, should be a url?
*/
- XSLTHandler(const QDomDocument& xsltDoc, const QCString& xsltFile, bool translate=false);
+ XSLTHandler(const TQDomDocument& xsltDoc, const TQCString& xsltFile, bool translate=false);
/**
*/
~XSLTHandler();
@@ -73,17 +73,17 @@ public:
* @param dom The XSLT DOM document
* @param xsltFile The XSLT file, should be a url?
*/
- void setXSLTDoc(const QDomDocument& dom, const QCString& xsltFile, bool translate=false);
+ void setXSLTDoc(const TQDomDocument& dom, const TQCString& xsltFile, bool translate=false);
/**
* Adds a param
*/
- void addParam(const QCString& name, const QCString& value);
+ void addParam(const TQCString& name, const TQCString& value);
/**
* Adds a string param
*/
- void addStringParam(const QCString& name, const QCString& value);
- void removeParam(const QCString& name);
- const QCString& param(const QCString& name);
+ void addStringParam(const TQCString& name, const TQCString& value);
+ void removeParam(const TQCString& name);
+ const TQCString& param(const TQCString& name);
/**
* Processes text through the XSLT transformation.
*
@@ -91,19 +91,19 @@ public:
* @param encodedUTF8 Whether the text is encoded in utf-8 or not
* @return The transformed text
*/
- QString applyStylesheet(const QString& text);
+ TQString applyStylesheet(const TQString& text);
- static QDomDocument& setLocaleEncoding(QDomDocument& dom);
+ static TQDomDocument& setLocaleEncoding(TQDomDocument& dom);
private:
void init();
- QString process();
+ TQString process();
xsltStylesheetPtr m_stylesheet;
xmlDocPtr m_docIn;
xmlDocPtr m_docOut;
- QMap<QCString, QCString> m_params;
+ TQMap<TQCString, TQCString> m_params;
static int s_initCount;
};