kword

KWordFrameSetIface.h
1/* This file is part of the KDE project
2 Copyright (C) 2002, Laurent MONTEL <lmontel@mandrakesoft.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KWORD_FRAMESET_IFACE_H
21#define KWORD_FRAMESET_IFACE_H
22
23#include <KoDocumentIface.h>
24#include <dcopref.h>
25
26#include <tqstring.h>
27#include <tqcolor.h>
28#include <tqbrush.h>
29class KWFrameSet;
30
31class KWordFrameSetIface : public DCOPObject
32{
33 K_DCOP
34public:
35 KWordFrameSetIface( KWFrameSet *_frame );
36
37k_dcop:
38 virtual bool isAHeader() const;
39 virtual bool isAFooter() const;
40 virtual bool isHeaderOrFooter() const;
41 virtual bool isFootEndNote() const;
42
43 virtual bool isMainFrameset() const;
44 virtual bool isMoveable() const;
45 virtual bool isVisible() const;
46 virtual bool isFloating() const;
47 //use frame(0)
48 virtual double ptWidth() const;
49 virtual double ptHeight() const;
50 virtual double ptPosX() const;
51 virtual double ptPosY() const;
52 virtual int zOrder() const;
53 virtual int pageNumber() const;
54 virtual TQBrush backgroundColor() const;
55 virtual void setBackgroundColor( const TQString &_color );
56
57 virtual double ptMarginLeft()const;
58 virtual double ptMarginRight()const;
59 virtual double ptMarginTop()const;
60 virtual double ptMarginBottom()const;
61
62 virtual void setPtMarginLeft(double val);
63 virtual void setPtMarginRight(double val);
64 virtual void setPtMarginTop(double val);
65 virtual void setPtMarginBottom(double val);
66
67 virtual TQColor leftBorderColor() const;
68 virtual TQColor rightBorderColor() const;
69 virtual TQColor topBorderColor() const;
70 virtual TQColor bottomBorderColor() const;
71
72 virtual bool isCopy()const;
73 virtual bool isProtectSize()const;
74 virtual void setProtectSize( bool _b );
75 //it's for frame 0
76 TQString bottomBorderStyle()const;
77 TQString topBorderStyle()const;
78 TQString leftBorderStyle()const;
79 TQString rightBorderStyle()const;
80
81 double rightBorderWidth() const;
82 double topBorderWidth() const;
83 double bottomBorderWidth() const;
84 double leftBorderWidth() const;
85
86 void setBottomBorderWitdh( double _width );
87 void setTopBorderWitdh( double _width );
88 void setLeftBorderWitdh( double _width );
89 void setRightBorderWitdh( double _width );
90
91 void setBottomBorderStyle(const TQString & _style);
92 void setTopBorderStyle(const TQString & _style);
93 void setLeftBorderStyle(const TQString & _style);
94 void setRightBorderStyle(const TQString & _style);
95
96 TQString frameSetInfo() const;
97 void setFrameSetInfo( const TQString & _type);
98
99
100private:
101 KWFrameSet *m_frame;
102};
103
104#endif
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
Definition KWFrameSet.h:62