bump product version to 4.1.6.2
[LibreOffice.git] / filter / source / graphicfilter / icgm / classx.cxx
blobd0275da39ec8e9b8ae20e798edd45ffb8de3d949
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include <main.hxx>
22 #include <outact.hxx>
24 // ---------------------------------------------------------------
26 #define ImplSetUnderlineMode() \
28 sal_uInt32 nMode = ImplGetUI16(); \
29 switch ( nMode ) \
30 { \
31 case 1 : pElement->eUnderlineMode = UM_LOW; break; \
32 case 2 : pElement->eUnderlineMode = UM_HIGH; break; \
33 case 4 : pElement->eUnderlineMode = UM_STRIKEOUT; break;\
34 case 8 : pElement->eUnderlineMode = UM_OVERSCORE; break;\
35 default: pElement->eUnderlineMode = UM_OFF; break; \
36 } \
37 pElement->nUnderlineColor = ImplGetBitmapColor();
39 // ---------------------------------------------------------------
41 void CGM::ImplDoClass6()
43 switch ( mnElementID )
45 case 0x01 : /*Escape*/
47 long nIdentifier = ImplGetI( pElement->nIntegerPrecision );
48 switch ( nIdentifier )
50 case 0 : /*inquire function support */break;
51 case -1 : /*set underline mode*/
53 ImplSetUnderlineMode()
55 break;
56 case -2 : /*set script mode */break;
57 case -3 : /*set shadow mode */break;
58 case -6 : /*inquire origin offset */break;
59 case -8 : /*set media size */break;
60 case -10 : /*set character mode */break;
61 case -14 : /*resolution mode */break;
62 case -17 : /*line cap */break;
63 case -18 : /*line join */break;
64 case -19 : /*edge join */break;
65 case -30 : /*media type */break;
66 case -31 : /*number of copies */break;
67 case -32 : /*orientation */break;
68 case -33 : /*device color representation */break;
69 case -34 : /*device font list */break;
70 case -35 : /*color reversal mode */break;
71 case -36 : /*line cap attributes */break;
72 case -37 : /*begin effect */break;
73 case -38 : /*end effect */break;
74 case -39 : /*begin effect definition */break;
75 case -40 : /*end effect definition */break;
76 case -41 : /*end style definition */break;
77 case -42 : /*begin eps data */break;
78 case -43 : /*eps data */break;
79 case -44 : /*end eps data */break;
80 case -45 : /*set background style */break;
81 case -46 : /*set eps mode */break;
82 case -47 : /*fill mode */break;
83 case -48 : /*begin symbol */break;
84 case -49 : /*end symbol */break;
85 case -50 : /*begin layer */break;
86 case -51 : /*end layer */break;
87 case -52 : /*layer visibility */break;
88 case -53 : /*inquire foreign data */break;
89 case -54 : /*set text offset */break;
90 case -55 : /*begin group */break;
91 case -56 : /*end group */break;
92 case -100 : /*begin patch */break;
93 case -101 : /*end patch */break;
94 case -102 : /*begin block text region */break;
95 case -103 : /*end block text region */break;
96 case -120 : /*region margins */break;
97 case -121 : /*region expansions */break;
98 case -122 : /*region anchor */break;
99 case -123 : /*paragraph horizontal align */break;
100 case -124 : /*paragraph vertical align */break;
101 case -125 : /*region line flow */break;
102 case -130 : /*paragraph spacing */break;
103 case -131 : /*paragraph identation */break;
104 case -132 : /*paragraph tabs */break;
105 case -133 : /*paragraph bullet */break;
106 case -134 : /*paragraph bulet level */break;
107 case -135 : /*line horuzontal align */break;
108 case -136 : /*line vertical align */break;
109 case -137 : /*line spacing */break;
110 case -138 : /*word wrap */break;
111 case -150 : /*forward advance distance */break;
112 case -151 : /*word spacing */break;
113 case -152 : /*external leading */break;
114 case -160 : /*set gradient offset */break;
115 case -161 : /*set gradient edge */break;
116 case -162 : /*set gradient angle */break;
117 case -163 : /*set gradient description */break;
118 case -164 : /*set gradient style */break;
119 case -165 : /*set back ground style */break;
120 case -170 : /*geometric pattern draw style */break;
121 case -190 : /*set character width */break;
122 case -191 : /*hyperlink definitions */break;
123 case -192 : /*set color name for pantone */break;
124 case -32746 : /*set text font */break;
125 case -32747 : /*font selection mode */break;
126 case -32752 : /*connecting edge */break;
127 case -32753 : /*set drawing mode */break;
128 case -32754 : /*inquire clip rectangle */break;
129 case -32755 : /*protection region indicator */break;
130 case -32756 : /*end protection region */break;
131 case -32757 : /*begin protection region */break;
132 case -32758 : /*geometric pattern definition */break;
133 case -32759 : /*hatch style definition */break;
134 case -32760 : /*close figure */break;
135 case -32761 : /*end figure*/
137 mpOutAct->EndFigure();
138 mbFigure = sal_False;
140 break;
141 case -32762 : /*begin figure*/
143 mbFigure = sal_True;
144 mpOutAct->BeginFigure();
146 break;
147 case -32763 : /*pop transformatin */break;
148 case -32764 : /*push transformation */break;
149 case -32765 : /*copy segment */break;
150 case -32766 : /*endseg */break;
151 case -32767 : /*begin segment */break;
152 default : break;
154 mnParaSize = mnElementSize;
156 break;
157 case 0x02 : /*Get Escape */break;
158 case 0x11 : /*Set Underline Mode*/
160 ImplSetUnderlineMode();
162 break;
163 case 0x12 : /*Set Script Mode */break;
164 case 0x13 : /*Set Shadow Mode */break;
165 case 0x18 : /*Set Media Size */break;
166 case 0x20 : /*Set Character Mode */break;
167 case 0x24 : /*Resolution Mode */break;
168 case 0x27 : /*Line Cap */break;
169 case 0x28 : /*Line Join */break;
170 case 0x29 : /*Edge Join */break;
171 case 0x40 : /*Media Type */break;
172 case 0x41 : /*Number of Copies */break;
173 case 0x42 : /*Origin */break;
174 case 0x45 : /*Color Reversal Mode */break;
175 case 0x46 : /*Line Cap Attributes */break;
176 case 0x49 : /*Begin Effect Definition */break;
177 case 0x50 : /*End Effect Definition */break;
178 case 0x51 : /*Line End Style Attributes */break;
179 case 0x52 : /*Begin Data */break;
180 case 0x53 : /*Data */break;
181 case 0x54 : /*End Data */break;
182 case 0x55 : /*Set Background Style */break;
183 case 0x56 : /*Set EPS Mode */break;
184 case 0x57 : /*Fill Mode */break;
185 case 0x58 : /*Begin Symbol */break;
186 case 0x59 : /*End Symbol */break;
187 case 0x60 : /*Begin Layer */break;
188 case 0x61 : /*End Layer */break;
189 case 0x62 : /*Layer Visibility */break;
190 case 0x64 : /*Set Text Offset */break;
191 case 0xFF : /*Inquire Function Support */break;
192 case 0xFE : /*Inquire Origin */break;
193 case 0xFD : /*Inquire Foreign Data Mode */break;
194 case 0xFC : /*Inquire Text Extent */break;
195 case 0xFB : /*Inquire DPI */break;
196 default: break;
200 // ---------------------------------------------------------------
202 void CGM::ImplDoClass8()
204 switch ( mnElementID )
206 case 0x01 : /*Copy Segment */break; // NS
207 case 0x02 : /*Inheritance Filter */break; // NS
208 case 0x03 : /*Clip Inheritance */break; // NS
209 case 0x04 : /*Segment Transformation */break;
210 case 0x05 : /*Segment HighLighting */break; // NS
211 case 0x06 : /*Segment Display Priority */break; // NS
212 case 0x07 : /*Segment Pick Priority */break; // NS
213 case 0xfe : /*INQ Current Position */break;
214 case 0xff : /*INQ Inserted Object Extent */break;
215 default: break; // NS
219 // ---------------------------------------------------------------
221 void CGM::ImplDoClass9()
223 switch ( mnElementID )
225 case 0x01 : /*Pixel Array */break; // NS
226 case 0x02 : /*Create Bitmap */break; // NS
227 case 0x03 : /*Delete Bitmap */break; // NS
228 case 0x04 : /*Select Drawing Bitmap */break; // NS
229 case 0x05 : /*Display Bitmap */break; // NS
230 case 0x06 : /*Drawing Mode */break;
231 case 0x07 : /*Mapped Bitmap ForeGrnd Color */break; // NS
232 case 0x08 : /*Fill Bitmap */break; // NS
233 case 0x09 : /*Two Operand BitBlt */break; // NS
234 case 0x0a : /*Three Operand BitBlt */break; // NS
235 default: break;
239 // ---------------------------------------------------------------
241 void CGM::ImplDoClass15()
243 switch ( mnElementID )
245 case 0x01 : /*Inquire Error Stack */break;
246 case 0x02 : /*Pop Error Stack */break;
247 case 0x03 : /*Empty Error Stack */break;
248 default: break;
252 // ---------------------------------------------------------------
254 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */