kword

KWordTextFrameSetIface.h
1/* This file is part of the KDE project
2 Copyright (C) 2002, Laurent MONTEL <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 KWORD_TEXTFRAMESET_IFACE_H
21#define KWORD_TEXTFRAMESET_IFACE_H
22
23#include <KoDocumentIface.h>
24#include <dcopref.h>
25
26#include <tqstring.h>
27#include <tqcolor.h>
28#include <tqfont.h>
29#include "KWordFrameSetIface.h"
30class KWTextFrameSet;
31class KWordViewIface;
32
33class KWordTextFrameSetIface : public KWordFrameSetIface
34{
35 K_DCOP
36public:
37 KWordTextFrameSetIface( KWTextFrameSet *_frametext );
38
39k_dcop:
40 virtual DCOPRef startEditing();
41 bool hasSelection() const;
42 int numberOfParagraphs();
43 int paragraphsSelected();
44 TQString name() const;
45 TQString selectedText() const;
46 void selectAll( bool select );
47 void setBoldText( bool b );
48 void setItalicText( bool b );
49 void setUnderlineText( bool b );
50 void setDoubleUnderlineText(bool on);
51 void setStrikeOutText( bool b );
52 void setTextColor( const TQColor &col );
53 void setTextPointSize( int s );
54 void setTextSubScript( bool b );
55 void setTextSuperScript( bool b );
56 void setTextDefaultFormat();
57 void setTextBackgroundColor(const TQColor & col);
58 void setTextFamilyFont(const TQString &font);
59 void setUnderlineColor( const TQColor & color );
60
61 void changeCaseOfText( const TQString & caseType);
62
63 TQColor textColor() const;
64 TQFont textFont() const;
65 TQString textFontFamily()const;
66 TQColor textBackgroundColor()const;
67 TQColor textUnderlineColor() const;
68
69
70 bool textItalic() const;
71 bool textBold() const;
72 bool textUnderline()const;
73 bool textDoubleUnderline()const;
74
75 bool textStrikeOut()const;
76 bool textSubScript() const;
77 bool textSuperScript() const;
78 void setProtectContent ( bool _protect );
79 bool isProtectContent() const;
80
81
82 //bool textShadow() const;
83 //void setTextShadow( bool b );
84
85 double relativeTextSize() const;
86 void setRelativeTextSize( double _size );
87
88 bool wordByWord() const;
89 void setWordByWord( bool _b );
90
91 TQString fontAttibute()const;
92
93 TQString underlineLineStyle() const;
94 TQString strikeOutLineStyle()const;
95
96
97private:
98 KWTextFrameSet *m_frametext;
99
100};
101
102#endif
Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.