1 /* This file is part of the KDE libraries
2    Copyright (c) 1998 Stefan Taferner
3                  2001/2003 thierry lorthiois (lorthioist@wanadoo.fr)
4                  2011 Inge Wallin (inge@lysator.liu.se)
5 
6    This library is free software; you can redistribute it and/or
7    modify it under the terms of the GNU Library General Public
8    License version 2 as published by the Free Software Foundation.
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 // Own
22 #include "WmfStack.h"
23 
24 // Local
25 #include "WmfAbstractBackend.h"
26 #include "WmfDeviceContext.h"
27 
28 // lib
29 #include "VectorImageDebug.h"
30 
31 
32 /**
33    Namespace for Windows Metafile (WMF) classes
34 */
35 namespace Libwmf
36 {
37 
apply(WmfDeviceContext * dc)38 void KoWmfBrushHandle::apply(WmfDeviceContext *dc)
39 {
40     dc->brush = brush;
41     dc->changedItems |= DCBrush;
42 }
43 
apply(WmfDeviceContext * dc)44 void KoWmfPenHandle::apply(WmfDeviceContext *dc)
45 {
46     debugVectorImage << "Setting pen" << pen;
47     dc->pen = pen;
48     dc->changedItems |= DCPen;
49 }
50 
apply(WmfDeviceContext * dc)51 void KoWmfPatternBrushHandle::apply(WmfDeviceContext *dc)
52 {
53     dc->brush = brush;
54     dc->changedItems |= DCBrush;
55 }
56 
apply(WmfDeviceContext * dc)57 void KoWmfFontHandle::apply(WmfDeviceContext *dc)
58 {
59     dc->font = font;
60     dc->escapement = escapement;
61     dc->orientation = orientation;
62     dc->height = height;
63     dc->changedItems |= DCFont; // Includes the font itself, the rotation and the height;
64 }
65 
66 }
67