kpresenter
KPrPageIface.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KPRESENTER_PAGE_IFACE_H
00022 #define KPRESENTER_PAGE_IFACE_H
00023
00024 #include <KoDocumentIface.h>
00025 #include <dcopref.h>
00026
00027 #include <qstring.h>
00028 #include <qcolor.h>
00029 #include "global.h"
00030 class KPrPage;
00031
00032 class KPrPageIface :public DCOPObject
00033 {
00034 K_DCOP
00035 public:
00036 KPrPageIface( KPrPage *_page, int pgnum );
00037
00038 k_dcop:
00039 virtual DCOPRef object( int num );
00040 virtual DCOPRef selectedObject();
00041 virtual DCOPRef textObject( int num );
00042
00043 virtual DCOPRef groupObjects();
00044
00045 virtual int numTextObject() const;
00046
00047
00048 virtual QString manualTitle()const;
00049 virtual void insertManualTitle(const QString & title);
00050 virtual QString pageTitle( const QString &_title = QString() ) const;
00051
00052 virtual void setNoteText( const QString &_text );
00053 virtual QString noteText( )const;
00054
00055 virtual unsigned int objNums() const;
00056 virtual int numSelected() const;
00057 virtual void ungroupObjects();
00058 virtual void raiseObjs();
00059 virtual void lowerObjs();
00060 virtual void copyObjs();
00061
00062 virtual void slotRepaintVariable();
00063 virtual void recalcPageNum();
00064
00065 virtual void setPageTimer( int pageTimer );
00066 virtual void setPageSoundEffect( bool soundEffect );
00067 virtual void setPageSoundFileName( const QString &fileName );
00068 virtual QString pageSoundFileName()const;
00069
00070 virtual bool pageSoundEffect() const;
00071 virtual int pageTimer() const;
00072 virtual int backYFactor() const;
00073 virtual int backXFactor() const;
00074
00075 virtual int backType()const ;
00076 virtual int backView()const;
00077 virtual QColor backColor1()const;
00078 virtual QColor backColor2()const ;
00079 virtual int backColorType()const;
00080 virtual QString backPixFilename()const;
00081 virtual QString backClipFilename()const;
00082 virtual int pageEffect()const;
00083 virtual QString pageEffectString( )const;
00084 virtual void setPageEffect(const QString & );
00085
00086 virtual bool backUnbalanced()const ;
00087
00088 virtual QRect pageRect()const;
00089
00090 virtual bool isSlideSelected();
00091 virtual void slideSelected(bool _b);
00092 virtual void changePicture( const QString & );
00093
00094 virtual void setBackGroundColor1(const QColor &col);
00095 virtual void setBackGroundColor2(const QColor &col);
00096 virtual void setBackGroundColorType(const QString &type);
00097
00098 DCOPRef insertRectangle(double x,double y, double h, double w);
00099 DCOPRef insertEllipse(double x,double y, double h, double w );
00100 DCOPRef insertPie( double x,double y, double h, double w );
00101 DCOPRef insertLine( double x1, double y1, double x2, double y2 );
00102 DCOPRef insertTextObject( double x, double y, double h, double w );
00103 DCOPRef insertPicture( const QString & file, double x, double y, double h, double w );
00104
00105 void deSelectAllObj();
00106
00107 bool oneObjectTextExist() const ;
00108 bool isOneObjectSelected() const;
00109
00110 bool haveASelectedPartObj() const;
00111 bool haveASelectedGroupObj() const;
00112 void rotateAllObjSelected(float _newAngle);
00113
00114 void moveAllObjectSelected( int diffx,int diffy);
00115 void deleteAllObjectSelected();
00116
00117 void sendBackward();
00118 void bringForward();
00119
00120 bool hasHeader()const;
00121 bool hasFooter()const;
00122 void setHeader( bool b );
00123 void setFooter( bool b );
00124 void setUseMasterBackground( bool useMasterBackground );
00125 bool useMasterBackground() const;
00126
00127 void setDisplayObjectFromMasterPage( bool _b );
00128 bool displayObjectFromMasterPage() const;
00129
00130 void setDisplayBackground( bool _b );
00131 bool displayBackground() const;
00132
00133 private:
00134 KPrPage *m_page;
00135 };
00136
00137 #endif
|