kpresenter

KPrPageIface.h

00001 // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
00002 /* This file is part of the KDE project
00003    Copyright (C) 2002,2003,2004 Laurent MONTEL <montel@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
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
KDE Home | KDE Accessibility Home | Description of Access Keys