20#ifndef __kofontdiapreview_h__
21#define __kofontdiapreview_h__
40 KoFontDiaPreview( TQWidget* parent =0, const char* name = 0, WFlags fl = 0 );
43 void setText( const TQString &text );
44 void setFont( const TQFont &font );
45 void setFontColor( const TQColor &textColor );
46 void setBackgroundColor( const TQColor &backgroundColor );
47 void setShadow( double sdx, double sdy, TQColor shadowColor );
48 void setUnderlining( int underlining, int underliningStyle, const TQColor underliningColor, bool wordByWord );
49 void setWordByWord( bool wordByWord );
50 void setStrikethrough( int strikethrough, int strikethroughStylestrikethrough, bool wordByWord );
51 void setCapitalisation( int capitalisation );
52 void setSubSuperscript( int subSuper, int offset, double relativeSize );
56 void drawContents( TQPainter* );
64 TQColor m_backgroundColor;
65 double m_shadowDistanceX;
66 double m_shadowDistanceY;
67 TQColor m_shadowColor;
69 int m_underliningStyle;
70 TQColor m_underliningColor;
73 int m_strikethroughStyle;
77 double m_relativeSize;
79 TQString formatCapitalisation( const TQString & string );
80 void drawUnderline( int x, int y, int width, int thickness, TQColor & color, TQPainter *p );
81 void drawUnderlineWave( int x, int y, int width, int thickness, TQColor & color, TQPainter *p );
82 void drawStrikethrough( int x, int y, int width, int thickness, TQPainter *p );
KoFontDiaPreview(TQWidget *parent=0, const char *name=0, WFlags fl=0) Constructor.
|