20#ifndef KPRESENTER_TEXTOBJECT_IFACE_H
21#define KPRESENTER_TEXTOBJECT_IFACE_H
23#include <KoDocumentIface.h>
25#include "KPrObject2DIface.h"
31class KPrTextObjectIface : public KPrObject2DIface
35 KPrTextObjectIface( KPrTextObject *_textobject );
38 DCOPRef startEditing();
39 bool hasSelection() const;
40 TQString selectedText() const;
41 void selectAll( bool select );
42 void recalcPageNum( );
44 void setBoldText( bool b );
45 void setItalicText( bool b );
46 void setUnderlineText( bool b );
47 void setStrikeOutText( bool b );
48 void setTextColor( const TQColor &col );
49 void setTextPointSize( int s );
50 void setTextSubScript( bool b );
51 void setTextSuperScript( bool b );
52 void setTextDefaultFormat();
53 void setTextBackgroundColor( const TQColor & col);
54 void setTextFamilyFont( const TQString &font);
55 void changeCaseOfText( const TQString & caseType);
56 void setDoubleUnderlineText( bool on);
57 void setUnderlineColor( const TQColor & color );
59 TQColor textColor() const;
60 TQFont textFont() const;
61 TQString textFontFamily() const;
62 TQColor textBackgroundColor() const;
63 TQColor textUnderlineColor() const;
65 bool textItalic() const;
66 bool textBold() const;
67 bool textUnderline() const;
68 bool textStrikeOut() const;
69 bool textSubScript() const;
70 bool textSuperScript() const;
72 void extendTextContentsToHeight();
73 void extendTextObjectToContents();
74 void setProtectContent ( bool _protect );
75 bool isProtectContent() const;
76 bool textDoubleUnderline() const;
78 double ptMarginLeft() const;
79 double ptMarginRight() const;
80 double ptMarginTop() const;
81 double ptMarginBottom() const;
83 void setPtMarginLeft( double val);
84 void setPtMarginRight( double val);
85 void setPtMarginTop( double val);
86 void setPtMarginBottom( double val);
88 void setVerticalAligment( const TQString & type);
89 TQString verticalAlignment() const;
94 double relativeTextSize() const;
95 void setRelativeTextSize( double _size );
97 bool wordByWord() const;
98 void setWordByWord( bool _b );
100 TQString fontAttribute() const;
101 TQString underlineLineStyle() const;
102 TQString strikeOutLineStyle() const;
106 KPrTextObject *m_textobject;
|