kpresenter
KPrTextObjectIface.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KPRESENTER_TEXTOBJECT_IFACE_H
00022 #define KPRESENTER_TEXTOBJECT_IFACE_H
00023
00024 #include <KoDocumentIface.h>
00025 #include <dcopref.h>
00026 #include "KPrObject2DIface.h"
00027 #include <qstring.h>
00028 #include <qcolor.h>
00029 #include <qfont.h>
00030 class KPrTextObject;
00031
00032 class KPrTextObjectIface : public KPrObject2DIface
00033 {
00034 K_DCOP
00035 public:
00036 KPrTextObjectIface( KPrTextObject *_textobject );
00037
00038 k_dcop:
00039 DCOPRef startEditing();
00040 bool hasSelection() const;
00041 QString selectedText() const;
00042 void selectAll( bool select );
00043 void recalcPageNum( );
00044
00045 void setBoldText( bool b );
00046 void setItalicText( bool b );
00047 void setUnderlineText( bool b );
00048 void setStrikeOutText( bool b );
00049 void setTextColor( const QColor &col );
00050 void setTextPointSize( int s );
00051 void setTextSubScript( bool b );
00052 void setTextSuperScript( bool b );
00053 void setTextDefaultFormat();
00054 void setTextBackgroundColor(const QColor & col);
00055 void setTextFamilyFont(const QString &font);
00056 void changeCaseOfText( const QString & caseType);
00057 void setDoubleUnderlineText(bool on);
00058 void setUnderlineColor( const QColor & color );
00059
00060 QColor textColor() const;
00061 QFont textFont() const;
00062 QString textFontFamily()const;
00063 QColor textBackgroundColor()const;
00064 QColor textUnderlineColor() const;
00065
00066 bool textItalic() const;
00067 bool textBold() const;
00068 bool textUnderline()const;
00069 bool textStrikeOut()const;
00070 bool textSubScript() const;
00071 bool textSuperScript() const;
00072
00073 void extendTextContentsToHeight();
00074 void extendTextObjectToContents();
00075 void setProtectContent ( bool _protect );
00076 bool isProtectContent() const;
00077 bool textDoubleUnderline()const;
00078
00079 double ptMarginLeft()const;
00080 double ptMarginRight()const;
00081 double ptMarginTop()const;
00082 double ptMarginBottom()const;
00083
00084 void setPtMarginLeft(double val);
00085 void setPtMarginRight(double val);
00086 void setPtMarginTop(double val);
00087 void setPtMarginBottom(double val);
00088
00089 void setVerticalAligment( const QString & type);
00090 QString verticalAlignment() const;
00091
00092
00093
00094
00095 double relativeTextSize() const;
00096 void setRelativeTextSize( double _size );
00097
00098 bool wordByWord() const;
00099 void setWordByWord( bool _b );
00100
00101 QString fontAttribute()const;
00102 QString underlineLineStyle() const;
00103 QString strikeOutLineStyle()const;
00104
00105
00106 private:
00107 KPrTextObject *m_textobject;
00108 };
00109
00110 #endif
|