diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /tools/kfile-plugins/ooo/kfile_ooo.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'tools/kfile-plugins/ooo/kfile_ooo.h')
-rw-r--r-- | tools/kfile-plugins/ooo/kfile_ooo.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/tools/kfile-plugins/ooo/kfile_ooo.h b/tools/kfile-plugins/ooo/kfile_ooo.h index 11bff4ac..9c2c3213 100644 --- a/tools/kfile-plugins/ooo/kfile_ooo.h +++ b/tools/kfile-plugins/ooo/kfile_ooo.h @@ -21,21 +21,22 @@ #define __KFILE_OOO_H__ #include <kfilemetainfo.h> -#include <qiodevice.h> -#include <qdom.h> +#include <tqiodevice.h> +#include <tqdom.h> #include <karchive.h> -class QStringList; -class QDomNode; -class QDomElement; +class TQStringList; +class TQDomNode; +class TQDomElement; class KOfficePlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: /** * Constructor */ - KOfficePlugin( QObject *parent, const char *name, const QStringList& args ); + KOfficePlugin( TQObject *tqparent, const char *name, const TQStringList& args ); /** * Read informations from files and store info in KFileMetaInfo. * We currently only parse meta.xml in OOo files. @@ -51,27 +52,27 @@ public: /** * We need a validator, for the langage */ - virtual QValidator* createValidator( const QString& mimetype, - const QString &group, - const QString &key, - QObject* parent, + virtual TQValidator* createValidator( const TQString& mimetype, + const TQString &group, + const TQString &key, + TQObject* tqparent, const char* name) const; private: - bool writeTextNode(QDomDocument & doc, - QDomNode & parentNode, - const QString &nodeName, - const QString &value) const; + bool writeTextNode(TQDomDocument & doc, + TQDomNode & tqparentNode, + const TQString &nodeName, + const TQString &value) const; KFileMimeTypeInfo::GroupInfo* userdefined; - void addAttributeInfo(const QDomElement & elem, KFileMetaInfoGroup & group, - const QString &attributeName); - QIODevice* getData(KArchive &m_zip, int fileMode) const; - bool writeMetaData(const QString & path, const QDomDocument &doc) const; - QDomDocument getMetaDocument(const QString &path) const; - QDomNode getBaseNode(const QDomDocument &doc) const; - void makeMimeTypeInfo(const QString& mimeType); - QString stringFromNode(const QDomNode &node, const QString &name); - void getEditingTime(KFileMetaInfoGroup group1, const char *, QString & txt); - void getDateTime(KFileMetaInfoGroup group1, const char *, QString & txt); + void addAttributeInfo(const TQDomElement & elem, KFileMetaInfoGroup & group, + const TQString &attributeName); + TQIODevice* getData(KArchive &m_zip, int fileMode) const; + bool writeMetaData(const TQString & path, const TQDomDocument &doc) const; + TQDomDocument getMetaDocument(const TQString &path) const; + TQDomNode getBaseNode(const TQDomDocument &doc) const; + void makeMimeTypeInfo(const TQString& mimeType); + TQString stringFromNode(const TQDomNode &node, const TQString &name); + void getEditingTime(KFileMetaInfoGroup group1, const char *, TQString & txt); + void getDateTime(KFileMetaInfoGroup group1, const char *, TQString & txt); }; #endif |