summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoDocumentInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore/KoDocumentInfo.h')
-rw-r--r--lib/kofficecore/KoDocumentInfo.h190
1 files changed, 97 insertions, 93 deletions
diff --git a/lib/kofficecore/KoDocumentInfo.h b/lib/kofficecore/KoDocumentInfo.h
index 30e74cf7..b94a2de0 100644
--- a/lib/kofficecore/KoDocumentInfo.h
+++ b/lib/kofficecore/KoDocumentInfo.h
@@ -21,142 +21,145 @@
#ifndef KO_DOCUMENT_INFO_H
#define KO_DOCUMENT_INFO_H
-#include <qobject.h>
-#include <qmap.h>
+#include <tqobject.h>
+#include <tqmap.h>
#include <kconfig.h>
#include <koffice_export.h>
-class QString;
-class QStringList;
-class QDomDocument;
-class QDomElement;
-class QDomNode;
-class QDateTime;
+class TQString;
+class TQStringList;
+class TQDomDocument;
+class TQDomElement;
+class TQDomNode;
+class TQDateTime;
class KoStore;
class KoDocumentInfoPage;
class KoXmlWriter;
-class KOFFICECORE_EXPORT KoDocumentInfo : public QObject
+class KOFFICECORE_EXPORT KoDocumentInfo : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoDocumentInfo( QObject* parent = 0, const char* name = 0 );
+ KoDocumentInfo( TQObject* tqparent = 0, const char* name = 0 );
virtual ~KoDocumentInfo();
- bool load( const QDomDocument& doc );
- bool loadOasis( const QDomDocument& metaDoc );
+ bool load( const TQDomDocument& doc );
+ bool loadOasis( const TQDomDocument& metaDoc );
- QDomDocument save();
+ TQDomDocument save();
bool saveOasis( KoStore* store );
/**
* This info has an accessor because it's the most commonly used.
* Equivalent to page("about")->title() (but checking that the page exists)
*/
- QString title() const;
- QString creator() const;
+ TQString title() const;
+ TQString creator() const;
- KoDocumentInfoPage* page( const QString& name ) const;
- QStringList pages() const;
+ KoDocumentInfoPage* page( const TQString& name ) const;
+ TQStringList pages() const;
void documentInfochanged() { emit sigDocumentInfoModifed();}
signals:
void sigDocumentInfoModifed();
};
-class KOFFICECORE_EXPORT KoDocumentInfoPage : public QObject
+class KOFFICECORE_EXPORT KoDocumentInfoPage : public TQObject
{
public:
- KoDocumentInfoPage( QObject *parent, const char* name );
+ KoDocumentInfoPage( TQObject *tqparent, const char* name );
- virtual bool load( const QDomElement& e ) = 0;
- virtual QDomElement save( QDomDocument& doc ) = 0;
- virtual bool loadOasis( const QDomNode& metaDoc ) = 0;
+ virtual bool load( const TQDomElement& e ) = 0;
+ virtual TQDomElement save( TQDomDocument& doc ) = 0;
+ virtual bool loadOasis( const TQDomNode& metaDoc ) = 0;
virtual bool saveOasis( KoXmlWriter &xmlWriter ) = 0;
};
class KOFFICECORE_EXPORT KoDocumentInfoAuthor : public KoDocumentInfoPage
{
Q_OBJECT
+ TQ_OBJECT
public:
KoDocumentInfoAuthor( KoDocumentInfo* info );
~KoDocumentInfoAuthor();
- virtual bool load( const QDomElement& e );
- virtual QDomElement save( QDomDocument& doc );
- virtual bool loadOasis( const QDomNode& metaDoc );
+ virtual bool load( const TQDomElement& e );
+ virtual TQDomElement save( TQDomDocument& doc );
+ virtual bool loadOasis( const TQDomNode& metaDoc );
virtual bool saveOasis( KoXmlWriter &xmlWriter );
- QString fullName() const;
- QString initial() const;
- QString title() const;
- QString company() const;
- QString email() const;
- QString telephoneHome() const;
- QString telephoneWork() const;
- QString fax() const;
- QString country() const;
- QString postalCode() const;
- QString city() const;
- QString street() const;
- QString position() const;
-
- void setFullName( const QString& n );
- void setTitle( const QString& n );
- void setCompany( const QString& n );
- void setEmail( const QString& n );
- void setTelephoneHome( const QString& n );
- void setTelephoneWork( const QString& n );
- void setFax( const QString& n );
- void setCountry( const QString& n );
- void setPostalCode( const QString& n );
- void setCity( const QString& n );
- void setStreet( const QString& n );
- void setInitial( const QString& n );
- void setPosition( const QString& n );
+ TQString fullName() const;
+ TQString initial() const;
+ TQString title() const;
+ TQString company() const;
+ TQString email() const;
+ TQString telephoneHome() const;
+ TQString telephoneWork() const;
+ TQString fax() const;
+ TQString country() const;
+ TQString postalCode() const;
+ TQString city() const;
+ TQString street() const;
+ TQString position() const;
+
+ void setFullName( const TQString& n );
+ void setTitle( const TQString& n );
+ void setCompany( const TQString& n );
+ void setEmail( const TQString& n );
+ void setTelephoneHome( const TQString& n );
+ void setTelephoneWork( const TQString& n );
+ void setFax( const TQString& n );
+ void setCountry( const TQString& n );
+ void setPostalCode( const TQString& n );
+ void setCity( const TQString& n );
+ void setStreet( const TQString& n );
+ void setInitial( const TQString& n );
+ void setPosition( const TQString& n );
void initParameters();
private:
- QString m_fullName;
- QString m_title;
- QString m_company;
- QString m_email;
- QString m_telephoneHome;
- QString m_telephoneWork;
- QString m_fax;
- QString m_country;
- QString m_postalCode;
- QString m_city;
- QString m_street;
- QString m_initial;
- QString m_position;
+ TQString m_fullName;
+ TQString m_title;
+ TQString m_company;
+ TQString m_email;
+ TQString m_telephoneHome;
+ TQString m_telephoneWork;
+ TQString m_fax;
+ TQString m_country;
+ TQString m_postalCode;
+ TQString m_city;
+ TQString m_street;
+ TQString m_initial;
+ TQString m_position;
KConfig *m_emailCfg;
};
class KOFFICECORE_EXPORT KoDocumentInfoAbout : public KoDocumentInfoPage
{
Q_OBJECT
+ TQ_OBJECT
public:
KoDocumentInfoAbout( KoDocumentInfo* info );
- virtual bool load( const QDomElement& e );
- virtual QDomElement save( QDomDocument& doc );
- virtual bool loadOasis( const QDomNode& metaDoc );
+ virtual bool load( const TQDomElement& e );
+ virtual TQDomElement save( TQDomDocument& doc );
+ virtual bool loadOasis( const TQDomNode& metaDoc );
virtual bool saveOasis( KoXmlWriter &xmlWriter );
- QString title() const;
- QString abstract() const;
- QString subject() const;
- QString keywords() const;
- QString initialCreator() const;
- QString editingCycles() const;
- QString creationDate() const;
- QString modificationDate() const;
+ TQString title() const;
+ TQString abstract() const;
+ TQString subject() const;
+ TQString keywords() const;
+ TQString initialCreator() const;
+ TQString editingCycles() const;
+ TQString creationDate() const;
+ TQString modificationDate() const;
- void setKeywords( const QString &n );
- void setSubject( const QString& n );
+ void setKeywords( const TQString &n );
+ void setSubject( const TQString& n );
- void setTitle( const QString& n );
- void setAbstract( const QString& n );
+ void setTitle( const TQString& n );
+ void setAbstract( const TQString& n );
void saveParameters();
public slots:
@@ -164,13 +167,13 @@ public slots:
private:
KoDocumentInfo* m_docInfo;
- QString m_title;
- QString m_abstract;
- QString m_keywords;
- QString m_subject;
- QString m_initialCreator;
- QDateTime m_creationDate;
- QDateTime m_modificationDate;
+ TQString m_title;
+ TQString m_abstract;
+ TQString m_keywords;
+ TQString m_subject;
+ TQString m_initialCreator;
+ TQDateTime m_creationDate;
+ TQDateTime m_modificationDate;
int m_editingCycles;
bool m_firstSave;
};
@@ -178,19 +181,20 @@ private:
class KOFFICECORE_EXPORT KoDocumentInfoUserMetadata : public KoDocumentInfoPage
{
Q_OBJECT
+ TQ_OBJECT
public:
KoDocumentInfoUserMetadata( KoDocumentInfo* info );
- virtual bool load( const QDomElement& e );
- virtual QDomElement save( QDomDocument& doc );
- virtual bool loadOasis( const QDomNode& metaDoc );
+ virtual bool load( const TQDomElement& e );
+ virtual TQDomElement save( TQDomDocument& doc );
+ virtual bool loadOasis( const TQDomNode& metaDoc );
virtual bool saveOasis( KoXmlWriter &xmlWriter );
- QMap<QString, QString>* metadataList() { return &m_metaList; }
+ TQMap<TQString, TQString>* metadataList() { return &m_metaList; }
private:
- QMap<QString, QString> m_metaList;
- QStringList m_reserved;
+ TQMap<TQString, TQString> m_metaList;
+ TQStringList m_reserved;
};
#endif