kpresenter

KPrEllipseObject.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) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
00004    Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef kpellipseobject_h
00023 #define kpellipseobject_h
00024 
00025 #include <KoBrush.h>
00026 
00027 #include "KPrObject.h"
00028 #include "global.h"
00029 
00030 class KPrGradient;
00031 class QPainter;
00032 class DCOPObject;
00033 
00034 class KPrEllipseObject : public KPr2DObject
00035 {
00036 public:
00037     KPrEllipseObject();
00038     KPrEllipseObject( const KoPen &_pen, const QBrush &_brush, FillType _fillType,
00039                      const QColor &_gColor1, const QColor &_gColor2, BCType _gType,
00040                      bool _unbalanced, int _xfactor, int _yfactor );
00041     virtual ~KPrEllipseObject() {}
00042 
00043     virtual DCOPObject* dcopObject();
00044 
00045 
00046     KPrEllipseObject &operator=( const KPrEllipseObject & );
00047 
00048     virtual ObjType getType() const
00049         { return OT_ELLIPSE; }
00050     virtual QString getTypeString() const
00051         { return i18n("Ellipse"); }
00052 
00053     virtual KoSize getRealSize() const;
00054 
00055 protected:
00056     virtual const char * getOasisElementName() const;
00057     virtual bool saveOasisObjectAttributes( KPOasisSaveContext &sc ) const;
00058 
00059     virtual void paint( QPainter *_painter,KoTextZoomHandler *_zoomHandler,
00060                         int /* pageNum */, bool drawingShadow, bool drawContour = FALSE );
00061 
00062 };
00063 
00064 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys