20#ifndef KOTEXTVIEW_IFACE_H
21#define KOTEXTVIEW_IFACE_H
23#include <KoDocumentIface.h>
28#include <KoRichText.h>
29#include <koffice_export.h>
32class KOTEXT_EXPORT KoTextViewIface : public DCOPObject
39 void insertSoftHyphen();
40 void insertNonbreakingSpace();
41 void insertNonbreakingHyphen();
42 void insertText( const TQString &text );
45 void setItalic( bool on);
46 void setUnderline( bool on);
47 void setDoubleUnderline( bool on);
48 void setStrikeOut( bool on);
49 void setPointSize( int s );
50 void setTextSubScript( bool on);
51 void setTextSuperScript( bool on);
52 void setUnderlineColor( const TQColor & color );
53 void setDefaultFormat();
54 void setRelativeTextSize( double _size);
56 TQColor textColor() const;
57 TQString textFontFamily() const;
58 TQColor textBackgroundColor() const;
59 TQColor textUnderlineColor() const;
60 bool textDoubleUnderline() const;
62 bool textItalic() const;
63 bool textBold() const;
64 bool textUnderline() const;
65 bool textStrikeOut() const;
66 bool textSubScript() const;
67 bool textSuperScript() const;
69 double relativeTextSize() const;
70 bool wordByWord() const;
72 void setWordByWord( bool _b );
73 void setTextColor( const TQColor &color);
74 void setTextBackgroundColor( const TQColor &);
75 void setAlign( int align);
76 void setAlign( const TQString &);
78 bool isReadWrite() const ;
79 void setReadWrite( bool b );
84 int cursorParagraph() const;
85 int cursorIndex() const;
87 void moveCursorLeft( bool select);
88 void moveCursorRight( bool select);
89 void moveCursorUp( bool select);
90 void moveCursorDown( bool select);
91 void moveCursorHome( bool select);
92 void moveCursorEnd( bool select);
93 void moveCursorWordRight( bool select);
94 void moveCursorWordLeft( bool select);
95 void moveCursorLineEnd( bool select);
96 void moveCursorLineStart( bool select);
98 bool paragraphHasBorder() const;
101 double lineSpacing() const;
103 double rightMargin() const;
104 double leftMargin() const;
105 double marginFirstLine() const;
106 double spaceAfterParag() const;
107 double spaceBeforeParag() const;
109 void setMarginFirstLine( double pt);
110 void setLineSpacing( double pt);
111 void setLeftMargin( double pt);
112 void setRightMargin( double pt);
113 void setSpaceBeforeParag( double pt);
114 void setSpaceAfterParag( double pt);
117 void setLeftBorder( const TQColor & c, double width );
118 void setRightBorder( const TQColor & c, double width );
120 void setTopBorder( const TQColor & c, double width );
121 void setBottomBorder( const TQColor & c, double width );
123 void setLeftBorderColor( const TQColor & c );
124 void setRightBorderColor( const TQColor & c );
125 void setTopBorderColor( const TQColor & c);
126 void setBottomBorderColor( const TQColor & c );
127 void setLeftBorderWidth( double _witdh );
128 void setRightBorderWidth( double _witdh );
129 void setTopBorderWidth( double _witdh );
130 void setBottomBorderWidth( double _witdh );
134 double leftBorderWidth() const ;
135 double rightBorderWidth() const;
136 double topBorderWidth() const;
137 double bottomBorderWidth() const;
139 TQColor leftBorderColor() const ;
140 TQColor rightBorderColor() const;
141 TQColor topBorderColor() const;
142 TQColor bottomBorderColor() const;
144 void changeCaseOfText( const TQString & caseType);
145 bool isALinkVariable() const;
147 bool changeLinkVariableUrl( const TQString & _url) const;
149 bool changeLinkVariableName( const TQString & _name) const;
153 TQString linkVariableUrl( ) const;
154 TQString linkVariableName( ) const;
156 bool isANoteVariable() const ;
157 TQString noteVariableText() const;
159 bool setNoteVariableText( const TQString & note) const;
161 void removeComment();
162 TQString underlineStyle() const;
163 TQString strikeOutStyle() const;
165 void setLanguage( const TQString & _lang);
166 TQString language() const;
167 void addBookmarks( const TQString &url);
170 void copyTextOfComment();
171 TQString fontAttibute() const;
Object that is created to edit a KoTextObject.
|