summaryrefslogtreecommitdiffstats
path: root/karbon/core/vimage.h
blob: d73e4ee70e171c4e7e73c7e0c9efbc1decd3332c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* This file is part of the KDE project
   Copyright (C) 2001, 2002, 2003 The Karbon Developers
*/

#ifndef __VIMAGE_H__
#define __VIMAGE_H__

#include "vobject.h"
#include <koffice_export.h>
class QImage;

// all vobjects exist inside a layer.

class KARBONBASE_EXPORT VImage : public VObject
{
public:
	VImage( VObject *parent, const QString &fname = "" );
	VImage( const VImage & );
	virtual ~VImage();

	virtual void draw( VPainter *painter, const KoRect *rect ) const;

    virtual void transform( const QWMatrix& m );
	virtual VObject* clone() const;

	virtual void save( QDomElement& element ) const;
	virtual void load( const QDomElement& element );

	virtual void accept( VVisitor& visitor );

private:
	QImage *m_image;
	QString m_fname;
	QWMatrix m_matrix;
};

#endif