karbon

vimage.h
1/* This file is part of the KDE project
2 Copyright (C) 2001, 2002, 2003 The Karbon Developers
3*/
4
5#ifndef __VIMAGE_H__
6#define __VIMAGE_H__
7
8#include "vobject.h"
9#include <koffice_export.h>
10class TQImage;
11
12// all vobjects exist inside a layer.
13
14class KARBONBASE_EXPORT VImage : public VObject
15{
16public:
17 VImage( VObject *parent, const TQString &fname = "" );
18 VImage( const VImage & );
19 virtual ~VImage();
20
21 virtual void draw( VPainter *painter, const KoRect *rect ) const;
22
23 virtual void transform( const TQWMatrix& m );
24 virtual VObject* clone() const;
25
26 virtual void save( TQDomElement& element ) const;
27 virtual void load( const TQDomElement& element );
28
29 virtual void accept( VVisitor& visitor );
30
31private:
32 TQImage *m_image;
33 TQString m_fname;
34 TQWMatrix m_matrix;
35};
36
37#endif
The base class for all karbon objects.
Definition vobject.h:50
virtual VObject * clone() const =0
Create an exact copy of this object.
virtual void accept(VVisitor &)
Accept a VVisitor.
Definition vobject.h:236
virtual void load(const TQDomElement &element)
Load this object's state from xml and initialize this object accordingly.
Definition vobject.cpp:157
virtual void save(TQDomElement &element) const
Save this object's state to xml.
Definition vobject.cpp:102
virtual void draw(VPainter *painter, const KoRect *rect=0L) const
Draw the object to a painting device.
Definition vobject.h:100
The abstract visitor class.
Definition vvisitor.h:51