lib
KoHighlightingTab.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __kohighlightingtab_h__
00021 #define __kohighlightingtab_h__
00022
00023 #include <kohighlightingtabbase.h>
00024 #include <KoTextFormat.h>
00025
00026 #include <qcolor.h>
00027
00028 class KoHighlightingTab : public KoHighlightingTabBase
00029 {
00030 Q_OBJECT
00031
00032 public:
00033 KoHighlightingTab( QWidget* parent=0, const char* name=0, WFlags fl=0 );
00034 ~KoHighlightingTab();
00035
00036 KoTextFormat::UnderlineType getUnderline() const;
00037 KoTextFormat::UnderlineStyle getUnderlineStyle() const;
00038 QColor getUnderlineColor() const;
00039 KoTextFormat::StrikeOutType getStrikethrough() const;
00040 KoTextFormat::StrikeOutStyle getStrikethroughStyle() const;
00041 bool getWordByWord() const;
00042 KoTextFormat::AttributeStyle getCapitalisation() const;
00043
00044 void setUnderline( KoTextFormat::UnderlineType item );
00045 void setUnderlineStyle( KoTextFormat::UnderlineStyle item );
00046 void setUnderlineColor( const QColor &color );
00047 void setStrikethrough( int item );
00048 void setStrikethroughStyle( int item );
00049 void setWordByWord( bool state );
00050 void setCapitalisation( int item );
00051
00052 signals:
00053 void underlineChanged( int item );
00054 void underlineStyleChanged( int item );
00055 void underlineColorChanged( const QColor & );
00056 void strikethroughChanged( int item );
00057 void strikethroughStyleChanged( int item );
00058 void wordByWordChanged( bool state );
00059 void capitalisationChanged( int item );
00060
00061 protected slots:
00062 void slotUnderlineChanged( int item );
00063 void slotStrikethroughChanged( int item );
00064 };
00065
00066 #endif
00067
|