karbon

vimage.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001, 2002, 2003 The Karbon Developers
00003 */
00004 
00005 #ifndef __VIMAGE_H__
00006 #define __VIMAGE_H__
00007 
00008 #include "vobject.h"
00009 #include <koffice_export.h>
00010 class QImage;
00011 
00012 // all vobjects exist inside a layer.
00013 
00014 class KARBONBASE_EXPORT VImage : public VObject
00015 {
00016 public:
00017     VImage( VObject *parent, const QString &fname = "" );
00018     VImage( const VImage & );
00019     virtual ~VImage();
00020 
00021     virtual void draw( VPainter *painter, const KoRect *rect ) const;
00022 
00023     virtual void transform( const QWMatrix& m );
00024     virtual VObject* clone() const;
00025 
00026     virtual void save( QDomElement& element ) const;
00027     virtual void load( const QDomElement& element );
00028 
00029     virtual void accept( VVisitor& visitor );
00030 
00031 private:
00032     QImage *m_image;
00033     QString m_fname;
00034     QWMatrix m_matrix;
00035 };
00036 
00037 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys