20#ifndef KPRESENTER_PAGE_IFACE_H
21#define KPRESENTER_PAGE_IFACE_H
23#include <KoDocumentIface.h>
31class KPrPageIface : public DCOPObject
35 KPrPageIface( KPrPage *_page, int pgnum );
38 virtual DCOPRef object( int num );
39 virtual DCOPRef selectedObject();
40 virtual DCOPRef textObject( int num );
42 virtual DCOPRef groupObjects();
44 virtual int numTextObject() const;
47 virtual TQString manualTitle() const;
48 virtual void insertManualTitle( const TQString & title);
49 virtual TQString pageTitle( const TQString &_title = TQString() ) const;
51 virtual void setNoteText( const TQString &_text );
52 virtual TQString noteText( ) const;
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();
61 virtual void slotRepaintVariable();
62 virtual void recalcPageNum();
64 virtual void setPageTimer( int pageTimer );
65 virtual void setPageSoundEffect( bool soundEffect );
66 virtual void setPageSoundFileName( const TQString &fileName );
67 virtual TQString pageSoundFileName() const;
69 virtual bool pageSoundEffect() const;
70 virtual int pageTimer() const;
71 virtual int backYFactor() const;
72 virtual int backXFactor() const;
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 & );
85 virtual bool backUnbalanced() const ;
87 virtual TQRect pageRect() const;
89 virtual bool isSlideSelected();
90 virtual void slideSelected( bool _b);
91 virtual void changePicture( const TQString & );
93 virtual void setBackGroundColor1( const TQColor &col);
94 virtual void setBackGroundColor2( const TQColor &col);
95 virtual void setBackGroundColorType( const TQString &type);
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 );
104 void deSelectAllObj();
106 bool oneObjectTextExist() const ;
107 bool isOneObjectSelected() const;
109 bool haveASelectedPartObj() const;
110 bool haveASelectedGroupObj() const;
111 void rotateAllObjSelected( float _newAngle);
113 void moveAllObjectSelected( int diffx, int diffy);
114 void deleteAllObjectSelected();
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;
126 void setDisplayObjectFromMasterPage( bool _b );
127 bool displayObjectFromMasterPage() const;
129 void setDisplayBackground( bool _b );
130 bool displayBackground() const;
|