kpresenter

KPrEllipseObject.h
1/* This file is part of the KDE project
2 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
3 Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef kpellipseobject_h
22#define kpellipseobject_h
23
24#include <KoBrush.h>
25
26#include "KPrObject.h"
27#include "global.h"
28
29class KPrGradient;
30class TQPainter;
31class DCOPObject;
32
33class KPrEllipseObject : public KPr2DObject
34{
35public:
36 KPrEllipseObject();
37 KPrEllipseObject( const KoPen &_pen, const TQBrush &_brush, FillType _fillType,
38 const TQColor &_gColor1, const TQColor &_gColor2, BCType _gType,
39 bool _unbalanced, int _xfactor, int _yfactor );
40 virtual ~KPrEllipseObject() {}
41
42 virtual DCOPObject* dcopObject();
43
44
45 KPrEllipseObject &operator=( const KPrEllipseObject & );
46
47 virtual ObjType getType() const
48 { return OT_ELLIPSE; }
49 virtual TQString getTypeString() const
50 { return i18n("Ellipse"); }
51
52 virtual KoSize getRealSize() const;
53
54protected:
55 virtual const char * getOasisElementName() const;
56 virtual bool saveOasisObjectAttributes( KPOasisSaveContext &sc ) const;
57
58 virtual void paint( TQPainter *_painter,KoTextZoomHandler *_zoomHandler,
59 int /* pageNum */, bool drawingShadow, bool drawContour = false );
60
61};
62
63#endif
Class: KPrGradient.
Definition KPrGradient.h:40