karbon

vobject_iface.h
1/* This file is part of the KDE project
2 Copyright (C) 2002, The Karbon Developers
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __VOBJECT_IFACE_H__
21#define __VOBJECT_IFACE_H__
22
23#include <KoRect.h>
24
25class VObject;
26class TQDomElement;
27class VFill;
28class VPainter;
29class VStroke;
30class VVisitor;
31
32#include <dcopobject.h>
33#include <dcopref.h>
34
35class VObjectIface : public DCOPObject
36{
37 K_DCOP
38
39public:
40 VObjectIface( VObject *obj );
41
42k_dcop:
43 /*void draw( VPainter*, const KoRect* = 0L ) const {}
44 const KoRect& boundingBox() const { return m_boundingBox; }
45
46 bool boundingBoxIsInvalid() const;
47 void invalidateBoundingBox();
48 void setParent( VObject* parent ) { m_parent = parent; }*/
49
50 DCOPRef parent() const;
51
52 int state() const;
53 void setState( int state );
54
55 /*VStroke* stroke() const { return m_stroke; }
56 VFill* fill() const { return m_fill; }
57 void setStroke( const VStroke& stroke );
58 void setFill( const VFill& fill );
59 void save( TQDomElement& element ) const;
60 void load( const TQDomElement& element );
61 VObject* clone() const = 0;
62 void accept( VVisitor& ) {}
63 void insertInfrontOf( VObject* , VObject* ) { }*/
64
65private:
66 VObject* m_object;
67};
68
69#endif
70
Manages the fill of shapes.
Definition vfill.h:45
The base class for all karbon objects.
Definition vobject.h:50
Manages stroke properties.
Definition vstroke.h:49
The abstract visitor class.
Definition vvisitor.h:51