kpresenter

KPrPageIface.h
1/* This file is part of the KDE project
2 Copyright (C) 2002,2003,2004 Laurent MONTEL <montel@kde.org>
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 KPRESENTER_PAGE_IFACE_H
21#define KPRESENTER_PAGE_IFACE_H
22
23#include <KoDocumentIface.h>
24#include <dcopref.h>
25
26#include <tqstring.h>
27#include <tqcolor.h>
28#include "global.h"
29class KPrPage;
30
31class KPrPageIface :public DCOPObject
32{
33 K_DCOP
34public:
35 KPrPageIface( KPrPage *_page, int pgnum );
36
37k_dcop:
38 virtual DCOPRef object( int num );
39 virtual DCOPRef selectedObject();
40 virtual DCOPRef textObject( int num );
41
42 virtual DCOPRef groupObjects();
43
44 virtual int numTextObject() const;
45
46
47 virtual TQString manualTitle()const;
48 virtual void insertManualTitle(const TQString & title);
49 virtual TQString pageTitle( const TQString &_title = TQString() ) const;
50
51 virtual void setNoteText( const TQString &_text );
52 virtual TQString noteText( )const;
53
54 virtual unsigned int objNums() const;
55 virtual int numSelected() const;
56 virtual void ungroupObjects();
57 virtual void raiseObjs();
58 virtual void lowerObjs();
59 virtual void copyObjs();
60
61 virtual void slotRepaintVariable();
62 virtual void recalcPageNum();
63
64 virtual void setPageTimer( int pageTimer );
65 virtual void setPageSoundEffect( bool soundEffect );
66 virtual void setPageSoundFileName( const TQString &fileName );
67 virtual TQString pageSoundFileName()const;
68
69 virtual bool pageSoundEffect() const;
70 virtual int pageTimer() const;
71 virtual int backYFactor() const;
72 virtual int backXFactor() const;
73
74 virtual int backType()const ;
75 virtual int backView()const;
76 virtual TQColor backColor1()const;
77 virtual TQColor backColor2()const ;
78 virtual int backColorType()const;
79 virtual TQString backPixFilename()const;
80 virtual TQString backClipFilename()const;
81 virtual int pageEffect()const;
82 virtual TQString pageEffectString( )const;
83 virtual void setPageEffect(const TQString & );
84
85 virtual bool backUnbalanced()const ;
86
87 virtual TQRect pageRect()const;
88
89 virtual bool isSlideSelected();
90 virtual void slideSelected(bool _b);
91 virtual void changePicture( const TQString & );
92
93 virtual void setBackGroundColor1(const TQColor &col);
94 virtual void setBackGroundColor2(const TQColor &col);
95 virtual void setBackGroundColorType(const TQString &type);
96
97 DCOPRef insertRectangle(double x,double y, double h, double w);
98 DCOPRef insertEllipse(double x,double y, double h, double w );
99 DCOPRef insertPie( double x,double y, double h, double w );
100 DCOPRef insertLine( double x1, double y1, double x2, double y2 );
101 DCOPRef insertTextObject( double x, double y, double h, double w );
102 DCOPRef insertPicture( const TQString & file, double x, double y, double h, double w );
103
104 void deSelectAllObj();
105
106 bool oneObjectTextExist() const ;
107 bool isOneObjectSelected() const;
108
109 bool haveASelectedPartObj() const;
110 bool haveASelectedGroupObj() const;
111 void rotateAllObjSelected(float _newAngle);
112
113 void moveAllObjectSelected( int diffx,int diffy);
114 void deleteAllObjectSelected();
115
116 void sendBackward();
117 void bringForward();
118
119 bool hasHeader()const;
120 bool hasFooter()const;
121 void setHeader( bool b );
122 void setFooter( bool b );
123 void setUseMasterBackground( bool useMasterBackground );
124 bool useMasterBackground() const;
125
126 void setDisplayObjectFromMasterPage( bool _b );
127 bool displayObjectFromMasterPage() const;
128
129 void setDisplayBackground( bool _b );
130 bool displayBackground() const;
131
132private:
133 KPrPage *m_page;
134};
135
136#endif