kword
KWordFrameSetIface.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_FRAMESET_IFACE_H 00021 #define KWORD_FRAMESET_IFACE_H 00022 00023 #include <KoDocumentIface.h> 00024 #include <dcopref.h> 00025 00026 #include <qstring.h> 00027 #include <qcolor.h> 00028 #include <qbrush.h> 00029 class KWFrameSet; 00030 00031 class KWordFrameSetIface : public DCOPObject 00032 { 00033 K_DCOP 00034 public: 00035 KWordFrameSetIface( KWFrameSet *_frame ); 00036 00037 k_dcop: 00038 virtual bool isAHeader() const; 00039 virtual bool isAFooter() const; 00040 virtual bool isHeaderOrFooter() const; 00041 virtual bool isFootEndNote() const; 00042 00043 virtual bool isMainFrameset() const; 00044 virtual bool isMoveable() const; 00045 virtual bool isVisible() const; 00046 virtual bool isFloating() const; 00047 //use frame(0) 00048 virtual double ptWidth() const; 00049 virtual double ptHeight() const; 00050 virtual double ptPosX() const; 00051 virtual double ptPosY() const; 00052 virtual int zOrder() const; 00053 virtual int pageNumber() const; 00054 virtual QBrush backgroundColor() const; 00055 virtual void setBackgroundColor( const QString &_color ); 00056 00057 virtual double ptMarginLeft()const; 00058 virtual double ptMarginRight()const; 00059 virtual double ptMarginTop()const; 00060 virtual double ptMarginBottom()const; 00061 00062 virtual void setPtMarginLeft(double val); 00063 virtual void setPtMarginRight(double val); 00064 virtual void setPtMarginTop(double val); 00065 virtual void setPtMarginBottom(double val); 00066 00067 virtual QColor leftBorderColor() const; 00068 virtual QColor rightBorderColor() const; 00069 virtual QColor topBorderColor() const; 00070 virtual QColor bottomBorderColor() const; 00071 00072 virtual bool isCopy()const; 00073 virtual bool isProtectSize()const; 00074 virtual void setProtectSize( bool _b ); 00075 //it's for frame 0 00076 QString bottomBorderStyle()const; 00077 QString topBorderStyle()const; 00078 QString leftBorderStyle()const; 00079 QString rightBorderStyle()const; 00080 00081 double rightBorderWidth() const; 00082 double topBorderWidth() const; 00083 double bottomBorderWidth() const; 00084 double leftBorderWidth() const; 00085 00086 void setBottomBorderWitdh( double _width ); 00087 void setTopBorderWitdh( double _width ); 00088 void setLeftBorderWitdh( double _width ); 00089 void setRightBorderWitdh( double _width ); 00090 00091 void setBottomBorderStyle(const QString & _style); 00092 void setTopBorderStyle(const QString & _style); 00093 void setLeftBorderStyle(const QString & _style); 00094 void setRightBorderStyle(const QString & _style); 00095 00096 QString frameSetInfo() const; 00097 void setFrameSetInfo( const QString & _type); 00098 00099 00100 private: 00101 KWFrameSet *m_frame; 00102 }; 00103 00104 #endif