diff options
Diffstat (limited to 'lib/kofficecore/KoOasisSettings.h')
-rw-r--r-- | lib/kofficecore/KoOasisSettings.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/kofficecore/KoOasisSettings.h b/lib/kofficecore/KoOasisSettings.h index cd1ae112..4a213ca4 100644 --- a/lib/kofficecore/KoOasisSettings.h +++ b/lib/kofficecore/KoOasisSettings.h @@ -22,7 +22,7 @@ #ifndef KOOASISSETTINGS_H #define KOOASISSETTINGS_H -#include <qdom.h> +#include <tqdom.h> #include <koffice_export.h> /** @@ -73,12 +73,12 @@ public: /** * Normal KoOasisSettings constructor, for an OASIS settings.xml */ - explicit KoOasisSettings( const QDomDocument& doc ); + explicit KoOasisSettings( const TQDomDocument& doc ); /** * KoOasisSettings constructor for an OpenOffice-1.1 file */ - KoOasisSettings( const QDomDocument& doc, const char* officeNSURI, const char* configNSURI ); + KoOasisSettings( const TQDomDocument& doc, const char* officeNSURI, const char* configNSURI ); class Items; @@ -86,7 +86,7 @@ public: * Returns the toplevel item-set named @p itemSetName. * If not found, the returned items instance is null. */ - Items itemSet( const QString& itemSetName ) const; + Items itemSet( const TQString& itemSetName ) const; class IndexedMap; class NamedMap; @@ -96,7 +96,7 @@ public: friend class KoOasisSettings; friend class IndexedMap; friend class NamedMap; - Items( const QDomElement& elem, const KoOasisSettings* settings ) + Items( const TQDomElement& elem, const KoOasisSettings* settings ) : m_element( elem ), m_settings( settings ) {} public: bool isNull() const { return m_element.isNull(); } @@ -107,7 +107,7 @@ public: * An indexed map is an array (or sequence), i.e. items are supposed to * be retrieved by index. This is useful for e.g. "view 0", "view 1" etc. */ - IndexedMap indexedMap( const QString& itemMapName ) const; + IndexedMap indexedMap( const TQString& itemMapName ) const; /** * Look for the config-item-map-named named @p mapItemName and return it. @@ -115,21 +115,21 @@ public: * A named map is a map where items are retrieved by entry name, @see selectItemMapEntry * @return false if no such map was found */ - NamedMap namedMap( const QString& itemMapName ) const; - - int parseConfigItemInt( const QString& configName, int defValue = 0 ) const; - double parseConfigItemDouble( const QString& configName, double defValue = 0 ) const; - QString parseConfigItemString( const QString& configName, const QString& defValue = QString::null ) const; - bool parseConfigItemBool( const QString& configName, bool defValue = false ) const; - short parseConfigItemShort( const QString& configName, short defValue = 0 ) const; - long parseConfigItemLong( const QString& configName, long defValue = 0 ) const; + NamedMap namedMap( const TQString& itemMapName ) const; + + int parseConfigItemInt( const TQString& configName, int defValue = 0 ) const; + double parseConfigItemDouble( const TQString& configName, double defValue = 0 ) const; + TQString parseConfigItemString( const TQString& configName, const TQString& defValue = TQString() ) const; + bool parseConfigItemBool( const TQString& configName, bool defValue = false ) const; + short parseConfigItemShort( const TQString& configName, short defValue = 0 ) const; + long parseConfigItemLong( const TQString& configName, long defValue = 0 ) const; private: /// @internal - QString findConfigItem( const QString& item, bool* ok ) const; + TQString findConfigItem( const TQString& item, bool* ok ) const; /// @internal - QString findConfigItem( const QDomElement& element, const QString& item, bool* ok ) const; + TQString findConfigItem( const TQDomElement& element, const TQString& item, bool* ok ) const; - QDomElement m_element; + TQDomElement m_element; const KoOasisSettings* m_settings; }; @@ -139,16 +139,16 @@ public: public: bool isNull() const { return m_element.isNull(); } protected: - Map( const QDomElement& elem, const KoOasisSettings* settings ) + Map( const TQDomElement& elem, const KoOasisSettings* settings ) : m_element( elem ), m_settings( settings ) {} - const QDomElement m_element; + const TQDomElement m_element; const KoOasisSettings* m_settings; }; class KOFFICECORE_EXPORT IndexedMap : public Map { friend class Items; - IndexedMap( const QDomElement& elem, const KoOasisSettings* settings ) + IndexedMap( const TQDomElement& elem, const KoOasisSettings* settings ) : Map( elem, settings ) {} public: /// Returns an entry in an indexed map @@ -158,18 +158,18 @@ public: class KOFFICECORE_EXPORT NamedMap : public Map { friend class Items; - NamedMap( const QDomElement& elem, const KoOasisSettings* settings ) + NamedMap( const TQDomElement& elem, const KoOasisSettings* settings ) : Map( elem, settings ) {} public: /// Returns an entry in a named map - Items entry( const QString& entryName ) const; + Items entry( const TQString& entryName ) const; }; private: friend class Items; friend class IndexedMap; friend class NamedMap; - const QDomElement m_settingsElement; + const TQDomElement m_settingsElement; const char* m_configNSURI; class Private; |