kpresenter

KPrPolylineObject.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Toshitaka Fujioka <fujioka@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef kppolylineobject_h
21#define kppolylineobject_h
22
23#include "KPrPointObject.h"
24#include <KoStyleStack.h>
25
26#define RAD_FACTOR 180.0 / M_PI
27
28class TQPainter;
29class DCOPObject;
30
31class KPrPolylineObject : public KPrPointObject
32{
33public:
34 KPrPolylineObject();
35 KPrPolylineObject( const KoPointArray &_points, const KoSize &_size,
36 const KoPen &_pen, LineEnd _lineBegin, LineEnd _lineEnd );
37 virtual ~KPrPolylineObject() {}
38
39 virtual DCOPObject* dcopObject();
40
41 KPrPolylineObject &operator=( const KPrPolylineObject & );
42
43 virtual ObjType getType() const { return OT_POLYLINE; }
44 virtual TQString getTypeString() const { return i18n("Polyline"); }
45
46 virtual TQDomDocumentFragment save( TQDomDocument& doc, double offset );
47 virtual double load( const TQDomElement &element );
48 virtual void loadOasis(const TQDomElement &element, KoOasisContext & context, KPrLoadingInfo *info);
49
50protected:
51 virtual const char * getOasisElementName() const;
52 virtual bool saveOasisObjectAttributes( KPOasisSaveContext &sc ) const;
53};
54
55#endif
Temporary information used only during loading.