~ubuntu-branches/ubuntu/edgy/koffice/edgy-updates

« back to all changes in this revision

Viewing changes to karbon/render/vpainterfactory.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040509113300-xi5t1z4yxe7n03x7
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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., 59 Temple Place - Suite 330,
 
18
   Boston, MA 02111-1307, USA.
 
19
*/
 
20
 
 
21
#ifndef __VPAINTERDACTORY_H__
 
22
#define __VPAINTERDACTORY_H__
 
23
 
 
24
// painter factory
 
25
 
 
26
class VPainter;
 
27
class QPaintDevice;
 
28
 
 
29
class VPainterFactory
 
30
{
 
31
public:
 
32
        VPainterFactory();
 
33
        ~VPainterFactory();
 
34
 
 
35
        VPainter *painter();
 
36
        void setPainter( QPaintDevice *target, int w = 0, int h = 0 );
 
37
 
 
38
        VPainter *editpainter();
 
39
        void setEditPainter( QPaintDevice *target, int w = 0, int h = 0 );
 
40
 
 
41
        void setWireframePainter( QPaintDevice *target, int w = 0, int h = 0 );
 
42
 
 
43
private:
 
44
        VPainter *m_painter;
 
45
        VPainter *m_editpainter;
 
46
};
 
47
 
 
48
#endif