summaryrefslogtreecommitdiffstats
path: root/lib/kformula/contextstyle.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/contextstyle.h')
-rw-r--r--lib/kformula/contextstyle.h184
1 files changed, 92 insertions, 92 deletions
diff --git a/lib/kformula/contextstyle.h b/lib/kformula/contextstyle.h
index 811c580a..be4a8bcf 100644
--- a/lib/kformula/contextstyle.h
+++ b/lib/kformula/contextstyle.h
@@ -21,12 +21,12 @@
#ifndef CONTEXTSTYLE_H
#define CONTEXTSTYLE_H
-//Qt Include
-#include <qcolor.h>
-#include <qfont.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qvaluestack.h>
+//TQt Include
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqvaluestack.h>
//KDE Include
#include <kconfig.h>
@@ -117,45 +117,45 @@ public:
bool syntaxHighlighting() const { return m_syntaxHighlighting; }
void setSyntaxHighlighting( bool highlight ) { m_syntaxHighlighting = highlight; }
- QColor getDefaultColor() const { return defaultColor; }
- QColor getNumberColorPlain() const { return numberColor; }
- QColor getOperatorColorPlain() const { return operatorColor; }
- QColor getErrorColorPlain() const { return errorColor; }
- QColor getEmptyColorPlain() const { return emptyColor; }
- QColor getHelpColorPlain() const { return helpColor; }
- QColor getNumberColor() const;
- QColor getOperatorColor() const;
- QColor getErrorColor() const;
- QColor getEmptyColor() const;
- QColor getHelpColor() const;
-
- void setDefaultColor( const QColor& );
- void setNumberColor( const QColor& );
- void setOperatorColor( const QColor& );
- void setErrorColor( const QColor& );
- void setEmptyColor( const QColor& );
- void setHelpColor( const QColor& );
-
- QString getFontStyle() const { return m_fontStyleName; }
- void setFontStyle( const QString& fontStyle, bool init = true );
-
- QFont getMathFont() const { return mathFont; }
- QFont getBracketFont() const { return bracketFont; }
- QFont getDefaultFont() const { return defaultFont; }
- QFont getNameFont() const { return nameFont; }
- QFont getNumberFont() const { return numberFont; }
- QFont getOperatorFont() const { return operatorFont; }
- QFont getSymbolFont() const { return symbolFont; }
-
- void setMathFont( QFont f ) { defaultFont = f; }
- void setBracketFont( QFont f ) { bracketFont = f; }
- void setDefaultFont( QFont f ) { defaultFont = f; }
- void setNameFont( QFont f ) { nameFont = f; }
- void setNumberFont( QFont f ) { numberFont = f; }
- void setOperatorFont( QFont f ) { operatorFont = f; }
-
- //const QStringList& requestedFonts() const;
- //void setRequestedFonts( const QStringList& list );
+ TQColor getDefaultColor() const { return defaultColor; }
+ TQColor getNumberColorPlain() const { return numberColor; }
+ TQColor getOperatorColorPlain() const { return operatorColor; }
+ TQColor getErrorColorPlain() const { return errorColor; }
+ TQColor getEmptyColorPlain() const { return emptyColor; }
+ TQColor getHelpColorPlain() const { return helpColor; }
+ TQColor getNumberColor() const;
+ TQColor getOperatorColor() const;
+ TQColor getErrorColor() const;
+ TQColor getEmptyColor() const;
+ TQColor getHelpColor() const;
+
+ void setDefaultColor( const TQColor& );
+ void setNumberColor( const TQColor& );
+ void setOperatorColor( const TQColor& );
+ void setErrorColor( const TQColor& );
+ void setEmptyColor( const TQColor& );
+ void setHelpColor( const TQColor& );
+
+ TQString getFontStyle() const { return m_fontStyleName; }
+ void setFontStyle( const TQString& fontStyle, bool init = true );
+
+ TQFont getMathFont() const { return mathFont; }
+ TQFont getBracketFont() const { return bracketFont; }
+ TQFont getDefaultFont() const { return defaultFont; }
+ TQFont getNameFont() const { return nameFont; }
+ TQFont getNumberFont() const { return numberFont; }
+ TQFont getOperatorFont() const { return operatorFont; }
+ TQFont getSymbolFont() const { return symbolFont; }
+
+ void setMathFont( TQFont f ) { defaultFont = f; }
+ void setBracketFont( TQFont f ) { bracketFont = f; }
+ void setDefaultFont( TQFont f ) { defaultFont = f; }
+ void setNameFont( TQFont f ) { nameFont = f; }
+ void setNumberFont( TQFont f ) { numberFont = f; }
+ void setOperatorFont( TQFont f ) { operatorFont = f; }
+
+ //const TQStringList& requestedFonts() const;
+ //void setRequestedFonts( const TQStringList& list );
double getReductionFactor( TextStyle tstyle ) const;
@@ -256,22 +256,22 @@ private:
TextStyleValues textStyleValues[ 4 ];
- QFont mathFont;
- QFont bracketFont;
- QFont defaultFont;
- QFont nameFont;
- QFont numberFont;
- QFont operatorFont;
- QFont symbolFont;
+ TQFont mathFont;
+ TQFont bracketFont;
+ TQFont defaultFont;
+ TQFont nameFont;
+ TQFont numberFont;
+ TQFont operatorFont;
+ TQFont symbolFont;
- //QStringList m_requestedFonts;
+ //TQStringList m_requestedFonts;
- QColor defaultColor;
- QColor numberColor;
- QColor operatorColor;
- QColor errorColor;
- QColor emptyColor;
- QColor helpColor;
+ TQColor defaultColor;
+ TQColor numberColor;
+ TQColor operatorColor;
+ TQColor errorColor;
+ TQColor emptyColor;
+ TQColor helpColor;
/**
* The cursors movement style. You need to notify each cursor
@@ -312,7 +312,7 @@ private:
/**
* true means to center the symbol between its indexes.
- * false means alignment to the right.
+ * false means tqalignment to the right.
*/
bool centerSymbol;
@@ -332,7 +332,7 @@ private:
//SymbolTable table;
FontStyle* m_fontStyle;
- QString m_fontStyleName;
+ TQString m_fontStyleName;
};
// Section 3.3.4.2, default values
@@ -352,9 +352,9 @@ class StyleAttributes {
bool customMathVariant() const ;
CharStyle charStyle() const ;
CharFamily charFamily() const ;
- QColor color() const ;
- QColor background() const ;
- QFont font() const ;
+ TQColor color() const ;
+ TQColor background() const ;
+ TQFont font() const ;
bool fontWeight() const ;
bool customFontWeight() const ;
bool fontStyle() const ;
@@ -380,9 +380,9 @@ class StyleAttributes {
void setCustomMathVariant( bool cmv ) { m_customMathVariant.push( cmv ); }
void setCharStyle( CharStyle cs ) { m_charStyle.push( cs ); }
void setCharFamily( CharFamily cf ) { m_charFamily.push( cf ); }
- void setColor( const QColor& c ) { m_color.push( c ); }
- void setBackground( const QColor& bg ) { m_background.push( bg ); }
- void setFont( const QFont& f ) { m_font.push( f ); }
+ void setColor( const TQColor& c ) { m_color.push( c ); }
+ void setBackground( const TQColor& bg ) { m_background.push( bg ); }
+ void setFont( const TQFont& f ) { m_font.push( f ); }
void setCustomFont( bool cf ) { m_customFontFamily.push ( cf ); }
void setCustomFontWeight( bool cfw ) { m_customFontWeight.push( cfw ); }
void setFontWeight( bool fw ) { m_fontWeight.push( fw ); }
@@ -426,53 +426,53 @@ class StyleAttributes {
private:
// Size of the font in points (mathsize / fontsize)
- QValueStack<double> m_size;
+ TQValueStack<double> m_size;
// Whether a custom mathvariant attribute is in use
- QValueStack<bool> m_customMathVariant;
+ TQValueStack<bool> m_customMathVariant;
// Font style (mathvariant, fontweight, fontstyle)
- QValueStack<CharStyle> m_charStyle;
+ TQValueStack<CharStyle> m_charStyle;
// Font family (mathvariant)
- QValueStack<CharFamily> m_charFamily;
+ TQValueStack<CharFamily> m_charFamily;
// Foreground color (mathcolor, color)
- QValueStack<QColor> m_color;
+ TQValueStack<TQColor> m_color;
// Background color (mathbackground)
- QValueStack<QColor> m_background;
+ TQValueStack<TQColor> m_background;
// Font family (fontfamily)
- QValueStack<QFont> m_font;
+ TQValueStack<TQFont> m_font;
// Whether a custom fontfamily attribute is in use (instead of CharFamily)
- QValueStack<bool> m_customFontFamily;
+ TQValueStack<bool> m_customFontFamily;
// Font Weight (fontweight)
- QValueStack<bool> m_fontWeight;
+ TQValueStack<bool> m_fontWeight;
// Whether a custom fontweight attribute is in use
- QValueStack<bool> m_customFontWeight;
+ TQValueStack<bool> m_customFontWeight;
// Font Style (fontstyle)
- QValueStack<bool> m_fontStyle;
+ TQValueStack<bool> m_fontStyle;
// Whether a custom fontstyle attribute is in use
- QValueStack<bool> m_customFontStyle;
-
- QValueStack<int> m_scriptLevel;
- QValueStack<double> m_scriptSizeMultiplier;
- QValueStack<double> m_scriptMinSize;
- QValueStack<double> m_veryVeryThinMathSpace;
- QValueStack<double> m_veryThinMathSpace;
- QValueStack<double> m_thinMathSpace;
- QValueStack<double> m_mediumMathSpace;
- QValueStack<double> m_thickMathSpace;
- QValueStack<double> m_veryThickMathSpace;
- QValueStack<double> m_veryVeryThickMathSpace;
- QValueStack<bool> m_displayStyle;
- QValueStack<bool> m_customDisplayStyle;
+ TQValueStack<bool> m_customFontStyle;
+
+ TQValueStack<int> m_scriptLevel;
+ TQValueStack<double> m_scriptSizeMultiplier;
+ TQValueStack<double> m_scriptMinSize;
+ TQValueStack<double> m_veryVeryThinMathSpace;
+ TQValueStack<double> m_veryThinMathSpace;
+ TQValueStack<double> m_thinMathSpace;
+ TQValueStack<double> m_mediumMathSpace;
+ TQValueStack<double> m_thickMathSpace;
+ TQValueStack<double> m_veryThickMathSpace;
+ TQValueStack<double> m_veryVeryThickMathSpace;
+ TQValueStack<bool> m_displayStyle;
+ TQValueStack<bool> m_customDisplayStyle;
};
KFORMULA_NAMESPACE_END