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 /lib/kotext/KoParagLayout.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 'lib/kotext/KoParagLayout.h')
-rw-r--r-- | lib/kotext/KoParagLayout.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/lib/kotext/KoParagLayout.h b/lib/kotext/KoParagLayout.h index e3098f59..a60d3934 100644 --- a/lib/kotext/KoParagLayout.h +++ b/lib/kotext/KoParagLayout.h @@ -17,11 +17,11 @@ * Boston, MA 02110-1301, USA. */ -#ifndef koparaglayout_h -#define koparaglayout_h +#ifndef koparagtqlayout_h +#define koparagtqlayout_h #include <KoRuler.h> // for KoTabulatorList -#include <qdom.h> +#include <tqdom.h> #include "KoBorder.h" #include <koffice_export.h> class KoSavingContext; @@ -29,7 +29,7 @@ class KoGenStyle; class KoParagCounter; class KoParagStyle; class KoOasisContext; -class QColor; +class TQColor; /** * This class holds the paragraph-specific formatting information @@ -40,7 +40,7 @@ class KOTEXT_EXPORT KoParagLayout { public: KoParagLayout(); - KoParagLayout( const KoParagLayout &layout ) { operator=( layout ); } + KoParagLayout( const KoParagLayout &tqlayout ) { operator=( tqlayout ); } ~KoParagLayout(); @@ -89,14 +89,14 @@ public: double lineSpacingValue() const { return lineSpacing;} void setLineSpacingValue(double _value) { lineSpacing = _value;} - static QString* shadowCssCompat; // used for compat with koffice-1.2 when loading + static TQString* shadowCssCompat; // used for compat with koffice-1.2 when loading bool joinBorder:1; bool unused:7; // for future use char pageBreaking; // Page breaking flags - char direction; // QChar::Direction + char direction; // TQChar::Direction /// Alignment flag (AlignAuto/AlignLeft/AlignRight/AlignJustify) - char alignment; // Qt::AlignmentFlags + char tqalignment; // TQt::AlignmentFlags KoBorder leftBorder, rightBorder, topBorder, bottomBorder; /// The background color of the paragraph @@ -106,7 +106,7 @@ public: * In theory anyway: the background colour isn't used in rendering text * yet, but it's nice to preserve the value. */ - QColor backgroundColor; + TQColor backgroundColor; /** can be 0 if no counter set */ KoParagCounter* counter; @@ -122,48 +122,48 @@ public: const KoTabulatorList& tabList() const { return m_tabList; } //! Assignment operator for KoParagLayout - /** Copy a paragraph layout. + /** Copy a paragraph tqlayout. * * If you're modifying this, you might also need to modify * KoTextParag::setParagLayout */ void operator=( const KoParagLayout & ); - /** Return a set of flags showing the differences between this and 'layout' */ - int compare( const KoParagLayout & layout ) const; + /** Return a set of flags showing the differences between this and 'tqlayout' */ + int compare( const KoParagLayout & tqlayout ) const; - /** Save this parag layout to XML. + /** Save this parag tqlayout to XML. * This format is used by KWord for paragraphs, and by KPresenter+KWord for styles. */ - void saveParagLayout( QDomElement & parentElem, int alignment ) const; + void saveParagLayout( TQDomElement & tqparentElem, int tqalignment ) const; - /** Load this parag layout from XML. + /** Load this parag tqlayout from XML. * This format is used by KWord for paragraphs, and by KPresenter+KWord for styles. */ - static void loadParagLayout( KoParagLayout& layout, const QDomElement& parentElem, int docVersion = 2 ); + static void loadParagLayout( KoParagLayout& tqlayout, const TQDomElement& tqparentElem, int docVersion = 2 ); - /// Load this parag layout from Oasis XML - static void loadOasisParagLayout( KoParagLayout& layout, KoOasisContext& context ); - /// Save this parag layout to Oasis XML + /// Load this parag tqlayout from Oasis XML + static void loadOasisParagLayout( KoParagLayout& tqlayout, KoOasisContext& context ); + /// Save this parag tqlayout to Oasis XML /// @param savingStyle true if this is saved as part of a user style, /// false when saving a paragraph /// @param gs the style where all the properties will be saved to /// @param context the current context void saveOasis( KoGenStyle& gs, KoSavingContext& context, bool savingStyle ) const; - /// Convert an alignment string into an alignment flag (load) - static Qt::AlignmentFlags loadOasisAlignment( const QCString& str ); - /// Convert an alignment flag into an alignment string (save) - static QCString saveOasisAlignment( Qt::AlignmentFlags alignment ); + /// Convert an tqalignment string into an tqalignment flag (load) + static TQt::AlignmentFlags loadOasisAlignment( const TQCString& str ); + /// Convert an tqalignment flag into an tqalignment string (save) + static TQCString saveOasisAlignment( TQt::AlignmentFlags tqalignment ); private: - static int getAttribute(const QDomElement &element, const char *attributeName, int defaultValue) { - QString value = element.attribute( attributeName ); + static int getAttribute(const TQDomElement &element, const char *attributeName, int defaultValue) { + TQString value = element.attribute( attributeName ); return value.isNull() ? defaultValue : value.toInt(); } - static double getAttribute(const QDomElement &element, const char *attributeName, double defaultValue) { - QString value = element.attribute( attributeName ); + static double getAttribute(const TQDomElement &element, const char *attributeName, double defaultValue) { + TQString value = element.attribute( attributeName ); return value.isNull() ? defaultValue : value.toDouble(); } |