summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_style.h
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/kspread_style.h')
-rw-r--r--kspread/kspread_style.h220
1 files changed, 110 insertions, 110 deletions
diff --git a/kspread/kspread_style.h b/kspread/kspread_style.h
index 9b808c2c..df1ed131 100644
--- a/kspread/kspread_style.h
+++ b/kspread/kspread_style.h
@@ -20,15 +20,15 @@
#ifndef __kspread_style__
#define __kspread_style__
-#include <qbrush.h>
-#include <qcolor.h>
-#include <qfont.h>
-#include <qpen.h>
+#include <tqbrush.h>
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqpen.h>
#include "kspread_format.h"
-class QDomDocument;
-class QDomElement;
+class TQDomDocument;
+class TQDomElement;
class KoGenStyles;
class KoOasisStyles;
@@ -121,7 +121,7 @@ public:
* Constructor.
* Creates an automatic style.
* If @p style is a custom or built-in style (e.g. the default style),
- * @p style becomes the parent style. In this case, features are NOT SET.
+ * @p style becomes the tqparent style. In this case, features are NOT SET.
* @param style The style which features are copied.
*/
Style( Style* style );
@@ -135,50 +135,50 @@ public:
bool operator == (const Style& style) const;
inline bool operator!=( const Style& other ) const { return !operator==( other ); }
- static FormatType dateType( const QString &_format );
- static FormatType timeType( const QString &_format );
- static FormatType fractionType( const QString &_format );
+ static FormatType dateType( const TQString &_format );
+ static FormatType timeType( const TQString &_format );
+ static FormatType fractionType( const TQString &_format );
/**
* @return the name of the data style (number, currency, percentage, date,
* boolean, text)
*/
- static QString saveOasisStyleNumeric( KoGenStyle &style, KoGenStyles &mainStyles, FormatType _style,
- const QString &_prefix, const QString &_postfix, int _precision, const QString& symbol );
- static QString saveOasisStyleNumericDate( KoGenStyles &mainStyles, FormatType _style,
- const QString &_prefix, const QString &_suffix );
- static QString saveOasisStyleNumericFraction( KoGenStyles &mainStyles, FormatType _style,
- const QString &_prefix, const QString _suffix );
- static QString saveOasisStyleNumericTime( KoGenStyles& mainStyles, FormatType _style,
- const QString &_prefix, const QString &_suffix );
- static QString saveOasisStyleNumericCustom( KoGenStyles&mainStyles, FormatType _style,
- const QString &_prefix, const QString &_suffix );
- static QString saveOasisStyleNumericScientific( KoGenStyles&mainStyles, FormatType _style,
- const QString &_prefix, const QString _suffix, int _precision );
- static QString saveOasisStyleNumericPercentage( KoGenStyles&mainStyles, FormatType _style, int _precision,
- const QString &_prefix, const QString &_suffix );
- static QString saveOasisStyleNumericMoney( KoGenStyles&mainStyles, FormatType _style,
- const QString& symbol, int _precision,
- const QString &_prefix, const QString &_suffix );
- static QString saveOasisStyleNumericText( KoGenStyles&mainStyles, FormatType _style, int _precision,
- const QString &_prefix, const QString &_suffix );
- static QString saveOasisStyleNumericNumber( KoGenStyles&mainStyles, FormatType _style, int _precision,
- const QString &_prefix, const QString &_suffix );
+ static TQString saveOasisStyleNumeric( KoGenStyle &style, KoGenStyles &mainStyles, FormatType _style,
+ const TQString &_prefix, const TQString &_postfix, int _precision, const TQString& symbol );
+ static TQString saveOasisStyleNumericDate( KoGenStyles &mainStyles, FormatType _style,
+ const TQString &_prefix, const TQString &_suffix );
+ static TQString saveOasisStyleNumericFraction( KoGenStyles &mainStyles, FormatType _style,
+ const TQString &_prefix, const TQString _suffix );
+ static TQString saveOasisStyleNumericTime( KoGenStyles& mainStyles, FormatType _style,
+ const TQString &_prefix, const TQString &_suffix );
+ static TQString saveOasisStyleNumericCustom( KoGenStyles&mainStyles, FormatType _style,
+ const TQString &_prefix, const TQString &_suffix );
+ static TQString saveOasisStyleNumericScientific( KoGenStyles&mainStyles, FormatType _style,
+ const TQString &_prefix, const TQString _suffix, int _precision );
+ static TQString saveOasisStyleNumericPercentage( KoGenStyles&mainStyles, FormatType _style, int _precision,
+ const TQString &_prefix, const TQString &_suffix );
+ static TQString saveOasisStyleNumericMoney( KoGenStyles&mainStyles, FormatType _style,
+ const TQString& symbol, int _precision,
+ const TQString &_prefix, const TQString &_suffix );
+ static TQString saveOasisStyleNumericText( KoGenStyles&mainStyles, FormatType _style, int _precision,
+ const TQString &_prefix, const TQString &_suffix );
+ static TQString saveOasisStyleNumericNumber( KoGenStyles&mainStyles, FormatType _style, int _precision,
+ const TQString &_prefix, const TQString &_suffix );
StyleType type() const { return m_type; }
- void saveXML( QDomDocument & doc, QDomElement & format ) const;
- bool loadXML( QDomElement & format );
+ void saveXML( TQDomDocument & doc, TQDomElement & format ) const;
+ bool loadXML( TQDomElement & format );
/**
* Saves an OASIS automatic style.
* Reimplemented by CustomStyle for OASIS user styles.
- * @return always QString::null
+ * @return always TQString()
*/
- virtual QString saveOasis( KoGenStyle& style, KoGenStyles& mainStyles);
- void loadOasisStyle( KoOasisStyles& oasisStyles, const QDomElement & element );
- static QString saveOasisBackgroundStyle( KoGenStyles &mainStyles, const QBrush &brush );
+ virtual TQString saveOasis( KoGenStyle& style, KoGenStyles& mainStyles);
+ void loadOasisStyle( KoOasisStyles& oasisStyles, const TQDomElement & element );
+ static TQString saveOasisBackgroundStyle( KoGenStyles &mainStyles, const TQBrush &brush );
/**
* Releases this style. The internal reference counter is decremented.
@@ -204,19 +204,19 @@ public:
uint leftPenValue() const { return m_leftPenValue; }
uint topPenValue() const { return m_topPenValue; }
- QPen const & pen() const;
- QColor const & bgColor() const;
- QPen const & rightBorderPen() const;
- QPen const & bottomBorderPen() const;
- QPen const & leftBorderPen() const;
- QPen const & topBorderPen() const;
- QPen const & fallDiagonalPen() const;
- QPen const & goUpDiagonalPen() const;
- QBrush const & backGroundBrush() const;
- QString const & strFormat() const;
- QString const & prefix() const;
- QString const & postfix() const;
- QString const & fontFamily() const;
+ TQPen const & pen() const;
+ TQColor const & bgColor() const;
+ TQPen const & rightBorderPen() const;
+ TQPen const & bottomBorderPen() const;
+ TQPen const & leftBorderPen() const;
+ TQPen const & topBorderPen() const;
+ TQPen const & fallDiagonalPen() const;
+ TQPen const & goUpDiagonalPen() const;
+ TQBrush const & backGroundBrush() const;
+ TQString const & strFormat() const;
+ TQString const & prefix() const;
+ TQString const & postfix() const;
+ TQString const & fontFamily() const;
Format::Align alignX() const;
Format::AlignY alignY() const;
@@ -226,7 +226,7 @@ public:
Format::Currency const & currency() const;
- QFont font() const;
+ TQFont font() const;
uint fontFlags() const;
int fontSize() const;
int precision() const;
@@ -235,41 +235,41 @@ public:
Style * setAlignX( Format::Align alignX );
Style * setAlignY( Format::AlignY alignY );
- Style * setFont( QFont const & f );
- Style * setFontFamily( QString const & fam );
+ Style * setFont( TQFont const & f );
+ Style * setFontFamily( TQString const & fam );
Style * setFontFlags( uint flags );
Style * setFontSize( int size );
- Style * setPen( QPen const & pen );
- Style * setBgColor( QColor const & color );
- Style * setRightBorderPen( QPen const & pen );
- Style * setBottomBorderPen( QPen const & pen );
- Style * setLeftBorderPen( QPen const & pen );
- Style * setTopBorderPen( QPen const & pen );
- Style * setFallDiagonalPen( QPen const & pen );
- Style * setGoUpDiagonalPen( QPen const & pen );
+ Style * setPen( TQPen const & pen );
+ Style * setBgColor( TQColor const & color );
+ Style * setRightBorderPen( TQPen const & pen );
+ Style * setBottomBorderPen( TQPen const & pen );
+ Style * setLeftBorderPen( TQPen const & pen );
+ Style * setTopBorderPen( TQPen const & pen );
+ Style * setFallDiagonalPen( TQPen const & pen );
+ Style * setGoUpDiagonalPen( TQPen const & pen );
Style * setRotateAngle( int angle );
Style * setIndent( double indent );
- Style * setBackGroundBrush( QBrush const & brush );
+ Style * setBackGroundBrush( TQBrush const & brush );
Style * setFloatFormat( Format::FloatFormat format );
Style * setFloatColor( Format::FloatColor color );
Style * setFormatType( FormatType format );
- Style * setStrFormat( QString const & strFormat );
+ Style * setStrFormat( TQString const & strFormat );
Style * setPrecision( int precision );
- Style * setPrefix( QString const & prefix );
- Style * setPostfix( QString const & postfix );
+ Style * setPrefix( TQString const & prefix );
+ Style * setPostfix( TQString const & postfix );
Style * setCurrency( Format::Currency const & currency );
Style * setProperty( Properties p );
Style * clearProperty( Properties p );
- CustomStyle * parent() const;
- QString const & parentName() const { return m_parentName; }
- void setParent( CustomStyle * parent );
+ CustomStyle * tqparent() const;
+ TQString const & tqparentName() const { return m_parentName; }
+ void setParent( CustomStyle * tqparent );
/**
- * Returns the name of a colour. This is the same as returned by QColor::name, but an internal cache
+ * Returns the name of a colour. This is the same as returned by TQColor::name, but an internal cache
* is used to reduce the overhead when asking for the name of the same colour.
*/
- static QString colorName( const QColor& color );
+ static TQString colorName( const TQColor& color );
protected:
/**
@@ -278,13 +278,13 @@ protected:
*/
void saveOasisStyle( KoGenStyle &style, KoGenStyles &mainStyles );
- void loadOasisDataStyle( KoOasisStyles& oasisStyles, const QDomElement& styleStack );
+ void loadOasisDataStyle( KoOasisStyles& oasisStyles, const TQDomElement& styleStack );
void loadOasisParagraphProperties( KoOasisStyles& oasisStyles, const KoStyleStack& styleStack );
void loadOasisTableCellProperties( KoOasisStyles& oasisStyles, const KoStyleStack& styleStack );
void loadOasisTextProperties( KoOasisStyles& oasisStyles, const KoStyleStack& styleStack );
CustomStyle * m_parent;
- QString m_parentName;
+ TQString m_parentName;
StyleType m_type;
uint m_usageCount;
uint m_featuresSet;
@@ -309,52 +309,52 @@ protected:
/**
* The font used to draw the text
*/
- QString m_fontFamily;
+ TQString m_fontFamily;
uint m_fontFlags;
int m_fontSize;
/**
* The pen used to draw the text
*/
- QPen m_textPen;
+ TQPen m_textPen;
/**
* The background color
*/
- QColor m_bgColor;
+ TQColor m_bgColor;
/**
* The pen used to draw the right border
*/
- QPen m_rightBorderPen;
+ TQPen m_rightBorderPen;
/**
* The pen used to draw the bottom border
*/
- QPen m_bottomBorderPen;
+ TQPen m_bottomBorderPen;
/**
* The pen used to draw the left border
*/
- QPen m_leftBorderPen;
+ TQPen m_leftBorderPen;
/**
* The pen used to draw the top border
*/
- QPen m_topBorderPen;
+ TQPen m_topBorderPen;
/**
* The pen used to draw the diagonal
*/
- QPen m_fallDiagonalPen;
+ TQPen m_fallDiagonalPen;
/**
* The pen used to draw the the diagonal which go up
*/
- QPen m_goUpDiagonalPen;
+ TQPen m_goUpDiagonalPen;
/**
* The brush used to draw the background.
*/
- QBrush m_backGroundBrush;
+ TQBrush m_backGroundBrush;
int m_rotateAngle;
/**
@@ -364,7 +364,7 @@ protected:
/**
* Format of the content, e.g. #.##0.00, dd/mmm/yyyy,...
*/
- QString m_strFormat;
+ TQString m_strFormat;
/**
* The precision of the floating point representation
* If precision is -1, this means that no precision is specified.
@@ -374,12 +374,12 @@ protected:
* The prefix of a numeric value ( for example "$" )
* May be empty.
*/
- QString m_prefix;
+ TQString m_prefix;
/**
* The postfix of a numeric value ( for example "DM" )
* May be empty.
*/
- QString m_postfix;
+ TQString m_postfix;
/**
* Currency information:
* about which currency from which country
@@ -411,61 +411,61 @@ public:
* @param style The style which's features are copied.
* @param name The name of this style.
*/
- CustomStyle( Style * style, QString const & name );
- CustomStyle( QString const & name, CustomStyle * parent );
+ CustomStyle( Style * style, TQString const & name );
+ CustomStyle( TQString const & name, CustomStyle * tqparent );
~CustomStyle();
- QString const & name() const { return m_name; }
+ TQString const & name() const { return m_name; }
- void save( QDomDocument & doc, QDomElement & styles );
+ void save( TQDomDocument & doc, TQDomElement & styles );
/**
* @reimp
* Stores an OASIS user style.
* @return the OASIS style's name
*/
- virtual QString saveOasis( KoGenStyle& style, KoGenStyles &mainStyles );
+ virtual TQString saveOasis( KoGenStyle& style, KoGenStyles &mainStyles );
/**
* Loads the style properties from @p style .
- * Determines also the parent's name.
+ * Determines also the tqparent's name.
* @param oasisStyles map of all styles
* @param style the DOM element defining the style
* @param name the style's new name
*/
- void loadOasis( KoOasisStyles& oasisStyles, const QDomElement & style, const QString & name );
+ void loadOasis( KoOasisStyles& oasisStyles, const TQDomElement & style, const TQString & name );
- bool loadXML( QDomElement const & style, QString const & name );
+ bool loadXML( TQDomElement const & style, TQString const & name );
void setType( StyleType type ) { m_type = type; }
- void setName( QString const & name );
+ void setName( TQString const & name );
void refreshParentName();
bool definesAll() const;
void changeAlignX( Format::Align alignX );
void changeAlignY( Format::AlignY alignY );
- void changeFont( QFont const & f );
- void changeFontFamily( QString const & fam );
+ void changeFont( TQFont const & f );
+ void changeFontFamily( TQString const & fam );
void changeFontSize( int size );
void changeFontFlags( uint flags );
- void changePen( QPen const & pen );
- void changeTextColor( QColor const & color );
- void changeBgColor( QColor const & color );
- void changeRightBorderPen( QPen const & pen );
- void changeBottomBorderPen( QPen const & pen );
- void changeLeftBorderPen( QPen const & pen );
- void changeTopBorderPen( QPen const & pen );
- void changeFallBorderPen( QPen const & pen );
- void changeGoUpBorderPen( QPen const & pen );
+ void changePen( TQPen const & pen );
+ void changeTextColor( TQColor const & color );
+ void changeBgColor( TQColor const & color );
+ void changeRightBorderPen( TQPen const & pen );
+ void changeBottomBorderPen( TQPen const & pen );
+ void changeLeftBorderPen( TQPen const & pen );
+ void changeTopBorderPen( TQPen const & pen );
+ void changeFallBorderPen( TQPen const & pen );
+ void changeGoUpBorderPen( TQPen const & pen );
void changeRotateAngle( int angle );
void changeIndent( double indent );
- void changeBackGroundBrush( QBrush const & brush );
+ void changeBackGroundBrush( TQBrush const & brush );
void changeFloatFormat( Format::FloatFormat format );
void changeFloatColor( Format::FloatColor color );
void changeFormatType( FormatType format );
- void changeStrFormat( QString const & strFormat );
+ void changeStrFormat( TQString const & strFormat );
void changePrecision( int precision );
- void changePrefix( QString const & prefix );
- void changePostfix( QString const & postfix );
+ void changePrefix( TQString const & prefix );
+ void changePostfix( TQString const & postfix );
void changeCurrency( Format::Currency const & currency );
void addProperty( Properties p );
@@ -477,7 +477,7 @@ public:
private:
friend class StyleManager;
- QString m_name;
+ TQString m_name;
/**
* Constructor.