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