kword
KWordTextFrameSetIface.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2002, Laurent MONTEL <lmontel@mandrakesoft.com> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 * Boston, MA 02110-1301, USA. 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 //bool textShadow() const; 00083 //void setTextShadow( bool b ); 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