lib
KoHighlightingTab.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2001,2002,2003 Montel Laurent <lmontel@mandrakesoft.com> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 * Boston, MA 02110-1301, USA. 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