diff options
Diffstat (limited to 'kspread/kspread_format.h')
-rw-r--r-- | kspread/kspread_format.h | 208 |
1 files changed, 104 insertions, 104 deletions
diff --git a/kspread/kspread_format.h b/kspread/kspread_format.h index f46d0bb1..8c3e9bc3 100644 --- a/kspread/kspread_format.h +++ b/kspread/kspread_format.h @@ -22,17 +22,17 @@ #ifndef __kspread_format_h__ #define __kspread_format_h__ -#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 <koffice_export.h> #include "kspread_global.h" -class QDomElement; -class QDomDocument; +class TQDomElement; +class TQDomDocument; class DCOPObject; class KLocale; class KoGenStyle; @@ -93,7 +93,7 @@ public: struct Currency { int type; - QString symbol; + TQString symbol; }; /** @@ -123,26 +123,26 @@ public: // //////////////////////////////// - bool load( const QDomElement & f, Paste::Mode pm, bool paste = false ); - bool loadFormat( const QDomElement & f, Paste::Mode pm = Paste::Normal, bool paste = false ); - QDomElement save( QDomDocument& doc,int _col, int _row,bool force = false, bool copy = false ) const; - QDomElement saveFormat( QDomDocument& doc, bool force = false, bool copy = false ) const; - QDomElement saveFormat( QDomDocument& doc, int _col, int _row, bool force = false, bool copy = false ) const; + bool load( const TQDomElement & f, Paste::Mode pm, bool paste = false ); + bool loadFormat( const TQDomElement & f, Paste::Mode pm = Paste::Normal, bool paste = false ); + TQDomElement save( TQDomDocument& doc,int _col, int _row,bool force = false, bool copy = false ) const; + TQDomElement saveFormat( TQDomDocument& doc, bool force = false, bool copy = false ) const; + TQDomElement saveFormat( TQDomDocument& doc, int _col, int _row, bool force = false, bool copy = false ) const; - void loadOasisStyle(/* const QDomElement& element,*/ KoOasisLoadingContext& context ); + void loadOasisStyle(/* const TQDomElement& element,*/ KoOasisLoadingContext& context ); bool loadOasisStyleProperties(KoStyleStack & styleStack, const KoOasisStyles& oasisStyles ); bool loadFontOasisStyle( KoStyleStack & font ); /** - * @return the OASIS style's name, if it was created. QString::null otherwise. + * @return the OASIS style's name, if it was created. TQString() otherwise. */ - QString saveOasisCellStyle( KoGenStyle ¤tCellStyle, KoGenStyles &mainStyle ); + TQString saveOasisCellStyle( KoGenStyle ¤tCellStyle, KoGenStyles &mainStyle ); //////////////////////////////// // // Properties // //////////////////////////////// - uint propertiesMask() { return m_mask; } // For the cell inspector only. + uint propertiesMask() { return m_tqmask; } // For the cell inspector only. void clearProperties(); void clearProperty( Properties p ); @@ -187,60 +187,60 @@ public: /** * sets the format of the content, e.g. #.##0.00, dd/mmm/yyyy,... */ - void setFormatString( QString const & format ); + void setFormatString( TQString const & format ); void setAlign( Align _align ); void setAlignY( AlignY _alignY ); - void setPrefix( const QString& _prefix ); - void setPostfix( const QString& _postfix ); + void setPrefix( const TQString& _prefix ); + void setPostfix( const TQString& _postfix ); void setPrecision( int _p ); - virtual void setLeftBorderPen( const QPen& _p ); + virtual void setLeftBorderPen( const TQPen& _p ); void setLeftBorderStyle( Qt::PenStyle s ); - void setLeftBorderColor( const QColor & _c ); + void setLeftBorderColor( const TQColor & _c ); void setLeftBorderWidth( int _w ); - virtual void setTopBorderPen( const QPen& _p ); + virtual void setTopBorderPen( const TQPen& _p ); void setTopBorderStyle( Qt::PenStyle s ); - void setTopBorderColor( const QColor & _c ); + void setTopBorderColor( const TQColor & _c ); void setTopBorderWidth( int _w ); - virtual void setRightBorderPen( const QPen& p ); + virtual void setRightBorderPen( const TQPen& p ); void setRightBorderStyle( Qt::PenStyle _s ); - void setRightBorderColor( const QColor & _c ); + void setRightBorderColor( const TQColor & _c ); void setRightBorderWidth( int _w ); - virtual void setBottomBorderPen( const QPen& p ); + virtual void setBottomBorderPen( const TQPen& p ); void setBottomBorderStyle( Qt::PenStyle _s ); - void setBottomBorderColor( const QColor & _c ); + void setBottomBorderColor( const TQColor & _c ); void setBottomBorderWidth( int _w ); - void setFallDiagonalPen( const QPen& _p ); + void setFallDiagonalPen( const TQPen& _p ); void setFallDiagonalStyle( Qt::PenStyle s ); - void setFallDiagonalColor( const QColor & _c ); + void setFallDiagonalColor( const TQColor & _c ); void setFallDiagonalWidth( int _w ); - void setGoUpDiagonalPen( const QPen& _p ); + void setGoUpDiagonalPen( const TQPen& _p ); void setGoUpDiagonalStyle( Qt::PenStyle s ); - void setGoUpDiagonalColor( const QColor & _c ); + void setGoUpDiagonalColor( const TQColor & _c ); void setGoUpDiagonalWidth( int _w ); - void setBackGroundBrush( const QBrush& _p); + void setBackGroundBrush( const TQBrush& _p); void setBackGroundBrushStyle( Qt::BrushStyle s); - void setBackGroundBrushColor( const QColor & _c); + void setBackGroundBrushColor( const TQColor & _c); - void setTextFont( const QFont& _f ); + void setTextFont( const TQFont& _f ); void setTextFontSize( int _s ); - void setTextFontFamily( const QString& _f ); + void setTextFontFamily( const TQString& _f ); void setTextFontBold( bool _b ); void setTextFontItalic( bool _i ); void setTextFontUnderline( bool _i ); void setTextFontStrike( bool _i ); - void setTextPen( const QPen& _p ); - void setTextColor( const QColor & _c ); + void setTextPen( const TQPen& _p ); + void setTextColor( const TQColor & _c ); - void setBgColor( const QColor & _c ); + void setBgColor( const TQColor & _c ); void setFloatFormat( FloatFormat _f ); void setFloatColor( FloatColor _c ); @@ -253,7 +253,7 @@ public: void setAngle(int _angle); - void setComment( const QString& c ); + void setComment( const TQString& c ); void setIndent( double _indent ); @@ -263,7 +263,7 @@ public: void setHideFormula( bool _b ); void setCurrency( Currency const & c ); - void setCurrency( int type, QString const & symbol ); + void setCurrency( int type, TQString const & symbol ); //////////////////////////////// // @@ -271,41 +271,41 @@ public: // //////////////////////////////// - QString const & getFormatString( int col, int row ) const; + TQString const & getFormatString( int col, int row ) const; - virtual const QPen& leftBorderPen( int col, int row ) const; + virtual const TQPen& leftBorderPen( int col, int row ) const; int leftBorderWidth( int col, int row ) const; Qt::PenStyle leftBorderStyle( int col, int row ) const; - const QColor& leftBorderColor( int col, int row ) const; + const TQColor& leftBorderColor( int col, int row ) const; - virtual const QPen& topBorderPen( int col, int row ) const; + virtual const TQPen& topBorderPen( int col, int row ) const; int topBorderWidth( int col, int row ) const; Qt::PenStyle topBorderStyle( int col, int row ) const; - const QColor& topBorderColor( int col, int row ) const; + const TQColor& topBorderColor( int col, int row ) const; - virtual const QPen& rightBorderPen( int col, int row ) const; + virtual const TQPen& rightBorderPen( int col, int row ) const; int rightBorderWidth( int col, int row ) const; Qt::PenStyle rightBorderStyle( int col, int row ) const; - const QColor& rightBorderColor( int col, int row ) const; + const TQColor& rightBorderColor( int col, int row ) const; - virtual const QPen& bottomBorderPen( int col, int row ) const; + virtual const TQPen& bottomBorderPen( int col, int row ) const; int bottomBorderWidth( int col, int row ) const; Qt::PenStyle bottomBorderStyle( int col, int row ) const; - const QColor& bottomBorderColor( int col, int row ) const; + const TQColor& bottomBorderColor( int col, int row ) const; - const QPen& fallDiagonalPen( int col, int row ) const; + const TQPen& fallDiagonalPen( int col, int row ) const; int fallDiagonalWidth( int col, int row ) const; Qt::PenStyle fallDiagonalStyle( int col, int row ) const; - const QColor& fallDiagonalColor( int col, int row ) const; + const TQColor& fallDiagonalColor( int col, int row ) const; - const QPen& goUpDiagonalPen( int col, int row ) const; + const TQPen& goUpDiagonalPen( int col, int row ) const; int goUpDiagonalWidth( int col, int row ) const; Qt::PenStyle goUpDiagonalStyle( int col, int row ) const; - const QColor& goUpDiagonalColor( int col, int row ) const; + const TQColor& goUpDiagonalColor( int col, int row ) const; - const QBrush& backGroundBrush( int col, int row ) const; + const TQBrush& backGroundBrush( int col, int row ) const; Qt::BrushStyle backGroundBrushStyle( int col, int row ) const; - const QColor& backGroundBrushColor(int col, int row ) const; + const TQColor& backGroundBrushColor(int col, int row ) const; uint bottomBorderValue( int col, int row ) const; uint rightBorderValue( int col, int row ) const; @@ -319,11 +319,11 @@ public: /** * @return the prefix of a numeric value ( for example "$" ) */ - QString prefix( int col, int row ) const; + TQString prefix( int col, int row ) const; /** * @return the postfix of a numeric value ( for example "DM" ) */ - QString postfix( int col, int row ) const; + TQString postfix( int col, int row ) const; /** * @return the way of formatting a floating point value */ @@ -333,11 +333,11 @@ public: */ FloatColor floatColor( int col, int row ) const; - const QPen& textPen( int col, int row ) const; + const TQPen& textPen( int col, int row ) const; /** * @return the text color. */ - const QColor& textColor( int col, int row ) const; + const TQColor& textColor( int col, int row ) const; /** * @param _col the column this cell is assumed to be in @@ -345,11 +345,11 @@ public: * * @return the background color. */ - const QColor& bgColor( int col, int row ) const; + const TQColor& bgColor( int col, int row ) const; - const QFont textFont( int col, int row ) const; + const TQFont textFont( int col, int row ) const; int textFontSize( int col, int row ) const; - QString const & textFontFamily( int col, int row ) const; + TQString const & textFontFamily( int col, int row ) const; bool textFontBold( int col, int row ) const; bool textFontItalic( int col, int row ) const; bool textFontUnderline( int col, int row ) const; @@ -366,9 +366,9 @@ public: int getAngle(int col, int row) const; - const QString* comment() const { return m_strComment; }; - QString comment(int col, int row) const; - QString * commentP( int col, int row ) const; + const TQString* comment() const { return m_strComment; }; + TQString comment(int col, int row) const; + TQString * commentP( int col, int row ) const; double getIndent(int col, int row) const; @@ -390,15 +390,15 @@ public: */ bool currencyInfo( Currency & currency) const; - QString getCurrencySymbol() const; - QFont font() const; + TQString getCurrencySymbol() const; + TQFont font() const; bool operator==( const Format& other ) const; inline bool operator!=( const Format& other ) const { return !operator==( other ); } protected: - const QPen& rightBorderPen() const; - const QPen& bottomBorderPen() const; + const TQPen& rightBorderPen() const; + const TQPen& bottomBorderPen() const; /** * If a cell is set, marks its Layout and TextFormat as dirty. @@ -422,7 +422,7 @@ protected: Sheet * m_pSheet; Style * m_pStyle; - uint m_mask; + uint m_tqmask; /** * used m_bNoFallBack when you put default value in a cell and @@ -430,12 +430,12 @@ protected: */ uint m_bNoFallBack; - Q_UINT32 m_flagsMask; + TQ_UINT32 m_flagsMask; /** * Stores a comment string. */ - QString * m_strComment; + TQString * m_strComment; // default column width and row height static double s_columnWidth; @@ -447,13 +447,13 @@ private: /** * Currently just used for better abstraction. */ - const QPen & leftBorderPen() const; - const QPen & topBorderPen() const; - const QPen & fallDiagonalPen() const; - const QPen & goUpDiagonalPen() const; - const QBrush & backGroundBrush() const; - const QFont textFont() const; - const QPen & textPen() const; + const TQPen & leftBorderPen() const; + const TQPen & topBorderPen() const; + const TQPen & fallDiagonalPen() const; + const TQPen & goUpDiagonalPen() const; + const TQBrush & backGroundBrush() const; + const TQFont textFont() const; + const TQPen & textPen() const; Cell* m_pCell; }; @@ -468,9 +468,9 @@ public: DCOPObject* dcopObject(); - QDomElement save( QDomDocument&, int yshift = 0, bool copy = false ) const; - bool load( const QDomElement& row, int yshift = 0, Paste::Mode sp = Paste::Normal, bool paste = false ); - bool loadOasis( const QDomElement& row, QDomElement * rowStyle ); + TQDomElement save( TQDomDocument&, int yshift = 0, bool copy = false ) const; + bool load( const TQDomElement& row, int yshift = 0, Paste::Mode sp = Paste::Normal, bool paste = false ); + bool loadOasis( const TQDomElement& row, TQDomElement * rowStyle ); /** * @param _canvas is needed to get information about the zooming factor. @@ -540,24 +540,24 @@ public: /** * @reimp */ - const QPen& bottomBorderPen( int col, int row ) const; + const TQPen& bottomBorderPen( int col, int row ) const; /** * @reimp */ - void setBottomBorderPen( const QPen& p ); + void setBottomBorderPen( const TQPen& p ); /** * @reimp */ - const QPen& topBorderPen( int col, int row ) const; + const TQPen& topBorderPen( int col, int row ) const; /** * @reimp */ - void setTopBorderPen( const QPen& p ); + void setTopBorderPen( const TQPen& p ); /** * Sets the hide flag */ - void setHide( bool _hide, bool repaint = true ); + void setHide( bool _hide, bool tqrepaint = true ); bool isHide()const { return m_bHide;} bool operator==( const RowFormat& other ) const; @@ -608,8 +608,8 @@ public: ColumnFormat( Sheet *_sheet, int _column ); ~ColumnFormat(); - QDomElement save( QDomDocument&, int xshift = 0, bool copy = false ) const; - bool load( const QDomElement& row, int xshift = 0,Paste::Mode sp = Paste::Normal, bool paste = false ); + TQDomElement save( TQDomDocument&, int xshift = 0, bool copy = false ) const; + bool load( const TQDomElement& row, int xshift = 0,Paste::Mode sp = Paste::Normal, bool paste = false ); DCOPObject* dcopObject(); /** @@ -683,19 +683,19 @@ public: /** * @reimp */ - virtual const QPen& rightBorderPen( int col, int row ) const; + virtual const TQPen& rightBorderPen( int col, int row ) const; /** * @reimp */ - virtual void setRightBorderPen( const QPen& p ); + virtual void setRightBorderPen( const TQPen& p ); /** * @reimp */ - virtual const QPen& leftBorderPen( int col, int row ) const; + virtual const TQPen& leftBorderPen( int col, int row ) const; /** * @reimp */ - virtual void setLeftBorderPen( const QPen& p ); + virtual void setLeftBorderPen( const TQPen& p ); void setHide( bool _hide ); bool isHide()const { return m_bHide;} @@ -757,7 +757,7 @@ class KSPREAD_EXPORT Currency /** * If code doesn't fit to index the index gets ignored */ - Currency(int index, QString const & code); + Currency(int index, TQString const & code); /** * code: e.g. EUR, USD,.. @@ -765,31 +765,31 @@ class KSPREAD_EXPORT Currency * currencyFormat: in Gnumeric the code is: [$EUR] * saves some work in the filter... */ - Currency(QString const & code, currencyFormat format = Native); + Currency(TQString const & code, currencyFormat format = Native); Currency & operator=(int type); Currency & operator=(char const * code); bool operator==(Currency const & cur) const; bool operator==(int type) const; operator int() const; - QString getCode() const; - QString getCountry() const; - QString getName() const; - QString getDisplayCode() const; + TQString getCode() const; + TQString getCountry() const; + TQString getName() const; + TQString getDisplayCode() const; int getIndex() const; - static QString getChooseString(int type, bool & ok); - static QString getDisplaySymbol(int type); - static QString getCurrencyCode( int type); + static TQString getChooseString(int type, bool & ok); + static TQString getDisplaySymbol(int type); + static TQString getCurrencyCode( int type); /** * Code for use in Gnumeric export filter */ - QString getExportCode(currencyFormat format) const; + TQString getExportCode(currencyFormat format) const; private: int m_type; - QString m_code; + TQString m_code; }; } // namespace KSpread |