summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoStyleCollection.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kotext/KoStyleCollection.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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 'lib/kotext/KoStyleCollection.h')
-rw-r--r--lib/kotext/KoStyleCollection.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kotext/KoStyleCollection.h b/lib/kotext/KoStyleCollection.h
index c3cc7770..66a244e5 100644
--- a/lib/kotext/KoStyleCollection.h
+++ b/lib/kotext/KoStyleCollection.h
@@ -19,8 +19,8 @@
#ifndef kostyle_h
#define kostyle_h
-#include <qdom.h>
-#include <qvaluevector.h>
+#include <tqdom.h>
+#include <tqvaluevector.h>
#include "KoParagStyle.h"
#include "KoUserStyleCollection.h"
@@ -41,7 +41,7 @@ struct KoStyleChangeDef {
int paragLayoutChanged;
int formatChanged;
};
-typedef QMap<KoParagStyle *, KoStyleChangeDef> KoStyleChangeDefMap;
+typedef TQMap<KoParagStyle *, KoStyleChangeDef> KoStyleChangeDefMap;
/// TODO rename to KoParagStyleCollection - or should char styles be part of it too?
class KOTEXT_EXPORT KoStyleCollection : public KoUserStyleCollection
@@ -50,10 +50,10 @@ public:
KoStyleCollection();
~KoStyleCollection();
- //const QPtrList<KoParagStyle> & styleList() const { return m_styleList; }
+ //const TQPtrList<KoParagStyle> & styleList() const { return m_styleList; }
// compat method, TODO: remove
- QStringList translatedStyleNames() const { return displayNameList(); }
+ TQStringList translatedStyleNames() const { return displayNameList(); }
/**
* See KoUserStyleCollection::addStyle.
@@ -67,15 +67,15 @@ public:
* Find style based on the internal name @p name.
* Overloaded for convenience.
*/
- KoParagStyle* findStyle( const QString & name ) const {
- return static_cast<KoParagStyle*>( KoUserStyleCollection::findStyle( name, QString::fromLatin1( "Standard" ) ) );
+ KoParagStyle* findStyle( const TQString & name ) const {
+ return static_cast<KoParagStyle*>( KoUserStyleCollection::findStyle( name, TQString::tqfromLatin1( "Standard" ) ) );
}
/**
* Find style based on the display name @p displayName.
* Overloaded for convenience.
*/
- KoParagStyle* findStyleByDisplayName( const QString & name ) const {
+ KoParagStyle* findStyleByDisplayName( const TQString & name ) const {
return static_cast<KoParagStyle*>( KoUserStyleCollection::findStyleByDisplayName( name ) );
}
@@ -100,7 +100,7 @@ public:
void saveOasisOutlineStyles( KoXmlWriter& writer ) const;
/// @return the list of outline styles
- QValueVector<KoParagStyle *> outlineStyles() const;
+ TQValueVector<KoParagStyle *> outlineStyles() const;
/// @return the [first] outline style for a given level. Can be 0 if not found.
KoParagStyle* outlineStyleForLevel( int level ) const;