karbon
vpolygon.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __VPOLYGON_H__
00021 #define __VPOLYGON_H__
00022
00023 #include "vcomposite.h"
00024
00025 class VPolygon : public VPath
00026 {
00027 public:
00028 VPolygon( VObject* parent, VState state = edit );
00029 VPolygon( VObject* parent, const QString &points,
00030 const KoPoint& topLeft, double width, double height );
00031
00032 virtual QString name() const;
00033
00034 virtual void save( QDomElement& element ) const;
00035 virtual void saveOasis( KoStore *store, KoXmlWriter *docWriter, KoGenStyles &mainStyles, int &index ) const;
00036 virtual void load( const QDomElement& element );
00037 virtual bool loadOasis( const QDomElement &element, KoOasisLoadingContext &context );
00038
00039 virtual VPath* clone() const;
00040
00041 protected:
00042 void init();
00043
00044 private:
00045 KoPoint m_topLeft;
00046 double m_width;
00047 double m_height;
00048 QString m_points;
00049 };
00050
00051 #endif
00052
|