karbon

vpainterfactory.h
1/* This file is part of the KDE project
2 Copyright (C) 2001, The Karbon Developers
3 Copyright (C) 2002, The Karbon Developers
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __VPAINTERDACTORY_H__
22#define __VPAINTERDACTORY_H__
23
24// painter factory
25#include <koffice_export.h>
26class VPainter;
27class TQPaintDevice;
28
29class KARBONBASE_EXPORT VPainterFactory
30{
31public:
32 VPainterFactory();
33 ~VPainterFactory();
34
35 VPainter *painter();
36 void setPainter( TQPaintDevice *target, int w = 0, int h = 0 );
37
38 VPainter *editpainter();
39 void setEditPainter( TQPaintDevice *target, int w = 0, int h = 0 );
40
41 void setWireframePainter( TQPaintDevice *target, int w = 0, int h = 0 );
42
43private:
44 VPainter *m_painter;
45 VPainter *m_editpainter;
46};
47
48#endif