1 /* This file is part of the Calligra project
2 * Copyright (c) 2003 Stefan Taferner <taferner@kde.org>
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 version 2 as published by the Free Software Foundation.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Library General Public License for more details.
13 * You should have received a copy of the GNU Library General Public License
14 * along with this library; see the file COPYING.LIB. If not, write to
15 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
23 static const struct MetaFuncRec
{
26 void (QWinMetaFile::*method
)(long, short *);
28 { "SETBKCOLOR", 0x0201, &QWinMetaFile::setBkColor
},
29 { "SETBKMODE", 0x0102, &QWinMetaFile::setBkMode
},
30 { "SETMAPMODE", 0x0103, &QWinMetaFile::noop
},
31 { "SETROP2", 0x0104, &QWinMetaFile::setRop
},
32 { "SETRELABS", 0x0105, &QWinMetaFile::noop
},
33 { "SETPOLYFILLMODE", 0x0106, &QWinMetaFile::setPolyFillMode
},
34 { "SETSTRETCHBLTMODE", 0x0107, &QWinMetaFile::noop
},
35 { "SETTEXTCHAREXTRA", 0x0108, &QWinMetaFile::noop
},
36 { "SETTEXTCOLOR", 0x0209, &QWinMetaFile::setTextColor
},
37 { "SETTEXTJUSTIFICATION", 0x020A, &QWinMetaFile::noop
},
38 { "SETWINDOWORG", 0x020B, &QWinMetaFile::setWindowOrg
},
39 { "SETWINDOWEXT", 0x020C, &QWinMetaFile::setWindowExt
},
40 { "SETVIEWPORTORG", 0x020D, &QWinMetaFile::noop
},
41 { "SETVIEWPORTEXT", 0x020E, &QWinMetaFile::noop
},
42 { "OFFSETWINDOWORG", 0x020F, &QWinMetaFile::noop
},
43 { "SCALEWINDOWEXT", 0x0410, &QWinMetaFile::noop
},
44 { "OFFSETVIEWPORTORG", 0x0211, &QWinMetaFile::noop
},
45 { "SCALEVIEWPORTEXT", 0x0412, &QWinMetaFile::noop
},
46 { "LINETO", 0x0213, &QWinMetaFile::lineTo
},
47 { "MOVETO", 0x0214, &QWinMetaFile::moveTo
},
48 { "EXCLUDECLIPRECT", 0x0415, &QWinMetaFile::excludeClipRect
},
49 { "INTERSECTCLIPRECT", 0x0416, &QWinMetaFile::intersectClipRect
},
50 { "ARC", 0x0817, &QWinMetaFile::arc
},
51 { "ELLIPSE", 0x0418, &QWinMetaFile::ellipse
},
52 { "FLOODFILL", 0x0419, &QWinMetaFile::noop
},
53 { "PIE", 0x081A, &QWinMetaFile::pie
},
54 { "RECTANGLE", 0x041B, &QWinMetaFile::rectangle
},
55 { "ROUNDRECT", 0x061C, &QWinMetaFile::roundRect
},
56 { "PATBLT", 0x061D, &QWinMetaFile::noop
},
57 { "SAVEDC", 0x001E, &QWinMetaFile::saveDC
},
58 { "SETPIXEL", 0x041F, &QWinMetaFile::setPixel
},
59 { "OFFSETCLIPRGN", 0x0220, &QWinMetaFile::noop
},
60 { "TEXTOUT", 0x0521, &QWinMetaFile::textOut
},
61 { "BITBLT", 0x0922, &QWinMetaFile::noop
},
62 { "STRETCHBLT", 0x0B23, &QWinMetaFile::noop
},
63 { "POLYGON", 0x0324, &QWinMetaFile::polygon
},
64 { "POLYLINE", 0x0325, &QWinMetaFile::polyline
},
65 { "ESCAPE", 0x0626, &QWinMetaFile::noop
},
66 { "RESTOREDC", 0x0127, &QWinMetaFile::restoreDC
},
67 { "FILLREGION", 0x0228, &QWinMetaFile::noop
},
68 { "FRAMEREGION", 0x0429, &QWinMetaFile::noop
},
69 { "INVERTREGION", 0x012A, &QWinMetaFile::noop
},
70 { "PAINTREGION", 0x012B, &QWinMetaFile::noop
},
71 { "SELECTCLIPREGION", 0x012C, &QWinMetaFile::noop
},
72 { "SELECTOBJECT", 0x012D, &QWinMetaFile::selectObject
},
73 { "SETTEXTALIGN", 0x012E, &QWinMetaFile::setTextAlign
},
74 { "CHORD", 0x0830, &QWinMetaFile::chord
},
75 { "SETMAPPERFLAGS", 0x0231, &QWinMetaFile::noop
},
76 { "EXTTEXTOUT", 0x0a32, &QWinMetaFile::extTextOut
},
77 { "SETDIBTODEV", 0x0d33, &QWinMetaFile::noop
},
78 { "SELECTPALETTE", 0x0234, &QWinMetaFile::noop
},
79 { "REALIZEPALETTE", 0x0035, &QWinMetaFile::noop
},
80 { "ANIMATEPALETTE", 0x0436, &QWinMetaFile::noop
},
81 { "SETPALENTRIES", 0x0037, &QWinMetaFile::noop
},
82 { "POLYPOLYGON", 0x0538, &QWinMetaFile::polyPolygon
},
83 { "RESIZEPALETTE", 0x0139, &QWinMetaFile::noop
},
84 { "DIBBITBLT", 0x0940, &QWinMetaFile::dibBitBlt
},
85 { "DIBSTRETCHBLT", 0x0b41, &QWinMetaFile::dibStretchBlt
},
86 { "DIBCREATEPATTERNBRUSH", 0x0142, &QWinMetaFile::dibCreatePatternBrush
},
87 { "STRETCHDIB", 0x0f43, &QWinMetaFile::stretchDib
},
88 { "EXTFLOODFILL", 0x0548, &QWinMetaFile::noop
},
89 { "DELETEOBJECT", 0x01f0, &QWinMetaFile::deleteObject
},
90 { "CREATEPALETTE", 0x00f7, &QWinMetaFile::createEmptyObject
},
91 { "CREATEPATTERNBRUSH", 0x01F9, &QWinMetaFile::createEmptyObject
},
92 { "CREATEPENINDIRECT", 0x02FA, &QWinMetaFile::createPenIndirect
},
93 { "CREATEFONTINDIRECT", 0x02FB, &QWinMetaFile::createFontIndirect
},
94 { "CREATEBRUSHINDIRECT", 0x02FC, &QWinMetaFile::createBrushIndirect
},
95 { "CREATEREGION", 0x06FF, &QWinMetaFile::createEmptyObject
},
96 { "END", 0, &QWinMetaFile::end
},
97 // always the latest in the table : in case of unknown function
98 { NULL
, 0, &QWinMetaFile::noop
},
101 #endif /*metafunc_h*/