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