lib

KoHighlightingTab.h
1/* This file is part of the KDE project
2 Copyright (C) 2001,2002,2003 Montel Laurent <lmontel@mandrakesoft.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __kohighlightingtab_h__
21#define __kohighlightingtab_h__
22
23#include <kohighlightingtabbase.h>
24#include <KoTextFormat.h>
25
26#include <tqcolor.h>
27
28class KoHighlightingTab : public KoHighlightingTabBase
29{
30 TQ_OBJECT
31
32
33public:
34 KoHighlightingTab( TQWidget* parent=0, const char* name=0, WFlags fl=0 );
35 ~KoHighlightingTab();
36
37 KoTextFormat::UnderlineType getUnderline() const;
38 KoTextFormat::UnderlineStyle getUnderlineStyle() const;
39 TQColor getUnderlineColor() const;
40 KoTextFormat::StrikeOutType getStrikethrough() const;
41 KoTextFormat::StrikeOutStyle getStrikethroughStyle() const;
42 bool getWordByWord() const;
43 KoTextFormat::AttributeStyle getCapitalisation() const;
44
45 void setUnderline( KoTextFormat::UnderlineType item );
46 void setUnderlineStyle( KoTextFormat::UnderlineStyle item );
47 void setUnderlineColor( const TQColor &color );
48 void setStrikethrough( int item );
49 void setStrikethroughStyle( int item );
50 void setWordByWord( bool state );
51 void setCapitalisation( int item );
52
53signals:
54 void underlineChanged( int item );
55 void underlineStyleChanged( int item );
56 void underlineColorChanged( const TQColor & );
57 void strikethroughChanged( int item );
58 void strikethroughStyleChanged( int item );
59 void wordByWordChanged( bool state );
60 void capitalisationChanged( int item );
61
62protected slots:
63 void slotUnderlineChanged( int item );
64 void slotStrikethroughChanged( int item );
65};
66
67#endif
68