23#ifndef __KWORD_TEXTFORMAT_H__
24#define __KWORD_TEXTFORMAT_H__
37typedef enum _EAlign EAlign;
47typedef enum _ETypeUnderline ETypeUnderline;
52 LINESPACING_ONEANDHALF,
59typedef enum _ETypeLinespacing ETypeLinespacing;
75 ETypeUnderline _underline;
80 ETypeLinespacing _linespacingType;
95 _size = Config::instance()->getDefaultFontSize();
110 unsigned int getSize () const { return _size; }
111 unsigned int getWeight () const { return _weight; }
112 EAlign getAlign () const { return _vertalign; }
113 int getColorBlue () const;
114 int getColorGreen() const;
115 int getColorRed () const;
116 ETypeUnderline getUnderlineType() const { return _underline; }
118 int getBkColorBlue () const;
119 int getBkColorGreen() const;
120 int getBkColorRed () const;
122 bool isItalic () const { return (_italic == true); }
123 bool isUnderlined () const { return (_underline != UNDERLINE_NONE); }
124 bool isStrikeout () const { return (_strikeout == true); }
125 bool isColor () const { return (_textcolor != 0); }
126 bool isBkColored () const { return (_backcolor != 0); }
129 void setSize ( const unsigned int t) { _size = t; }
130 void setWeight ( const unsigned int w) { _weight = w; }
131 void setItalic ( bool i) { _italic = i; }
132 void setUnderlined (ETypeUnderline u) { _underline = u; }
133 void setUnderlined (TQString u)
136 _underline = UNDERLINE_DOUBLE;
138 _underline = UNDERLINE_WAVE;
140 _underline = UNDERLINE_SIMPLE;
142 _underline = UNDERLINE_NONE;
144 void setStrikeout ( bool s) { _strikeout = s; }
145 void setPolice (TQString p) { _police = p; }
146 void setAlign ( const int a) { _vertalign = (EAlign) a; }
147 void setColor ( const int, const int, const int);
148 void setBkColor ( const int, const int, const int);
151 void analyseFormat ( const TQDomNode);
152 void analyseParam ( const TQDomNode);
153 void analyseFont ( const TQDomNode);
154 void analyseItalic ( const TQDomNode);
155 void analyseUnderlined( const TQDomNode);
156 void analyseStrikeout ( const TQDomNode);
157 void analyseWeight ( const TQDomNode);
158 void analyseAlign ( const TQDomNode);
159 void analyseColor ( const TQDomNode);
160 void analyseSize ( const TQDomNode);
161 void analyseBackgroundColor( const TQDomNode);
This class holds information formating the textzone.
TextFormat() Constructors.
|