kpresenter
KPrObject2DIface.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 Laurent MONTEL <lmontel@mandrakesoft.com> 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_OBJ2D_IFACE_H 00022 #define KPRESENTER_OBJ2D_IFACE_H 00023 00024 #include <dcopobject.h> 00025 #include <dcopref.h> 00026 00027 #include <qstring.h> 00028 #include <qcolor.h> 00029 00030 #include "KPrObjectIface.h" 00031 00032 class KPr2DObject; 00033 00034 class KPrObject2DIface : public KPrObjectIface 00035 { 00036 K_DCOP 00037 public: 00038 KPrObject2DIface( KPr2DObject *obj_ ); 00039 00040 k_dcop: 00041 virtual QColor gradientColor1() const; 00042 virtual QColor gradientColor2() const; 00043 virtual void setGUnbalanced( bool b ); 00044 virtual void setGXFactor( int f ); 00045 virtual void setGYFactor( int f ); 00046 virtual int xGradientFactor() const; 00047 virtual int yGradientFactor() const; 00048 virtual QString gradientFillType() const; 00049 virtual void setGradientType( const QString & ); 00050 virtual void setFillType( const QString & ); 00051 virtual void setGradientColor1( const QColor &col ); 00052 virtual void setGradientColor2( const QColor &col ); 00053 00054 private: 00055 KPr2DObject *obj; 00056 00057 }; 00058 00059 #endif