Debian Codegraph @

converter/other/pclxl.h

raw
1 #ifndef PCLXL_H_INCLUDED
2 #define PCLXL_H_INCLUDED
3
4 /* This file defines elements of Hewlett Packard's PCL-XL printer
5 control language (fka PCL-6)
6 */
7
8 enum ArcDirection {
9 eClockWise = 0,
10 eCounterClockWise = 1
11 };
12
13 enum CharSubModeArray {
14 eNoSubstitution = 0,
15 eVerticalSubstitution = 1
16 };
17
18 enum ClipRegion {
19 eInterior = 0,
20 eExterior = 1
21 };
22
23 enum ColorDepth {
24 e1Bit = 0,
25 e4Bit = 1,
26 e8Bit = 2
27 };
28
29 enum ColrMapping {
30 eDirectPixel = 0,
31 eIndexedPixel = 1
32 };
33
34 enum Colorspace {
35 eGray = 1,
36 eRGB = 2
37 };
38
39 enum Compression {
40 eNoCompression = 0,
41 eRLECompression = 1,
42 eJPEGCompression = 2
43 };
44
45 enum DataOrg {
46 eBinaryHighByteFirst = 0,
47 eBinaryLowByteFirst = 1
48 };
49
50 enum DataSource {
51 eDefaultDataSource = 0
52 };
53
54 enum DataType {
55 eUByte = 0,
56 eSByte = 1,
57 eUint16 = 2,
58 eSint16 = 3
59 };
60
61 enum DitherMatrix {
62 eDeviceBest = 0
63 };
64
65
66 enum DuplexPageMode {
67 eDuplexHorizontalBinding = 0,
68 eDuplexVerticalBinding = 1
69 };
70
71 enum DuplexPageSide {
72 eFrontMediaSide = 0,
73 eBackMediaSide = 1
74 };
75
76 enum ErrorReport {
77 eNoReporting = 0,
78 eBackChannel = 1,
79 eErrorPage = 2,
80 eBackChAndErrPage = 3,
81 eNWBackChannel = 4 ,
82 eNWErrorPage = 5,
83 eNWBackChAndErrPage = 6
84 };
85
86 enum FillMode {
87 eNonZeroWinding = 0,
88 eEvenOdd = 1
89 };
90
91 enum LineCap {
92 eButtCap = 0,
93 eRoundCap = 1,
94 eSquareCap = 2,
95 eTriangleCap = 3
96 };
97
98 enum LineJoin {
99 eMiterJoin = 0,
100 eRoundJoin = 1,
101 eBevelJoin = 2,
102 eNoJoin = 3
103 };
104
105 enum Measure {
106 eInch = 0,
107 eMillimeter = 1,
108 eTenthsOfAMillimeter = 2
109 };
110
111 enum MediaSource {
112 eDefaultMediaSource = 0,
113 eAutoSelect = 1,
114 eManualFeed = 2,
115 eMultiPurposeTray = 3,
116 eUpperCassette = 4,
117 eLowerCassette = 5,
118 eEnvelopeTray = 6,
119 eThirdCassette = 7
120 };
121
122 enum MediaDestination {
123 eDefaultDestination = 0,
124 eFaceDownBin = 1,
125 eFaceUpBin = 2,
126 eJobOffsetBin = 3
127 };
128
129 enum Orientation {
130 ePortraitOrientation = 0,
131 eLandscapeOrientation = 1,
132 eReversePortrait = 2,
133 eReverseLandscape = 3
134 };
135
136 enum PatternPersistence {
137 eTempPattern = 0,
138 ePagePattern = 1,
139 eSessionPattern = 2
140 };
141
142 enum SimplexPageMode {
143 eSimplexFrontSide = 0
144 };
145
146 enum TxMode {
147 eOpaque = 0,
148 eTransparent = 1
149 };
150
151 enum WritingMode{
152 eHorizontal = 0,
153 eVertical = 1
154 };
155
156 enum Attribute {
157 aPaletteDepth = 2,
158 aColorSpace = 3,
159 aNullBrush = 4,
160 aNullPen = 5,
161 aPaletteData = 6,
162 aPatternSelectID = 8,
163 aGrayLevel = 9,
164 aRGBColor = 11,
165 aPatternOrigin = 12,
166 aNewDestinationSize = 13,
167 aPrimaryArray = 14,
168 aPrimaryDepth = 15,
169 aDeviceMatrix = 33,
170 aDitherMatrixDataType= 34,
171 aDitherOrigin = 35,
172 aMediaDestination = 36,
173 aMediaSize = 37,
174 aMediaSource = 38,
175 aMediaType = 39,
176 aOrientation = 40,
177 aPageAngle = 41,
178 aPageOrigin = 42,
179 aPageScale = 43,
180 aROP3 = 44,
181 aTxMode = 45,
182 aCustomMediaSize = 47,
183 aCustomMediaUnits = 48,
184 aPageCopies = 49,
185 aDitherMatrixSize = 50,
186 aDitherMatrixDepth = 51,
187 aSimplexPageMode = 52,
188 aDuplexPageMode = 53,
189 aDuplexPageSide = 54,
190 aArcDirection = 65,
191 aBoundingBox = 66,
192 aDashOffset = 67,
193 aEllipseDimension = 68,
194 aEndPoint = 69,
195 aFillMode = 70,
196 aLineCapStyle = 71,
197 aLineJoinStyle = 72,
198 aMiterLength = 73,
199 aLineDashStyle = 74,
200 aPenWidth = 75,
201 aPoint = 76,
202 aNumberOfPoints = 77,
203 aSolidLine = 78,
204 aStartPoint = 79,
205 aPointType = 80,
206 aControlPoint1 = 81,
207 aControlPoint2 = 82,
208 aClipRegion = 83,
209 aClipMode = 84,
210 aColorDepth = 98,
211 aBlockHeight = 99,
212 aColorMapping = 100,
213 aCompressMode = 101,
214 aDestinationBox = 102,
215 aDestinationSize = 103,
216 aPatternPersistence = 104,
217 aPatternDefineID = 105,
218 aSourceHeight = 107,
219 aSourceWidth = 108,
220 aStartLine = 109,
221 aPadBytesMultiple = 110,
222 aBlockByteLength = 111,
223 aNumberOfScanLines = 115,
224 aColorTreatment = 120,
225 aCommentData = 129,
226 aDataOrg = 130,
227 aMeasure = 134,
228 aSourceType = 136,
229 aUnitsPerMeasure = 137,
230 aStreamName = 139,
231 aStreamDataLength = 140,
232 aErrorReport = 143,
233 aCharAngle = 161,
234 aCharCode = 162,
235 aCharDataSize = 163,
236 aCharScale = 164,
237 aCharShear = 165,
238 aCharSize = 166,
239 aFontHeaderLength = 167,
240 aFontName = 168,
241 aFontFormat = 169,
242 aSymbolSet = 170,
243 aTextData = 171,
244 aCharSubModeArray = 172,
245 aXSpacingData = 175,
246 aYSpacingData = 176,
247 aCharBoldValue = 177
248 };
249
250 enum Operator {
251 oBeginSession = 0x41,
252 oEndSession = 0x42,
253 oBeginPage = 0x43,
254 oEndPage = 0x44,
255 oComment = 0x47,
256 oOpenDataSource = 0x48,
257 oCloseDataSource = 0x49,
258 oBeginFontHeader = 0x4f,
259 oReadFontHeader = 0x50,
260 oEndFontHeader = 0x51,
261 oBeginChar = 0x52,
262 oReadChar = 0x53,
263 oEndChar = 0x54,
264 oRemoveFont = 0x55,
265 oSetCharAttributes = 0x56,
266 oBeginStream = 0x5b,
267 oReadStream = 0x5c,
268 oEndStream = 0x5d,
269 oExecStream = 0x5e,
270 oRemoveStream = 0x5f,
271 oPopGS = 0x60,
272 oPushGS = 0x61,
273 oSetClipReplace = 0x62,
274 oSetBrushSource = 0x63,
275 oSetCharAngle = 0x64,
276 oSetCharScale = 0x65,
277 oSetCharShear = 0x66,
278 oSetClipIntersect = 0x67,
279 oSetClipRectangle = 0x68,
280 oSetClipToPage = 0x69,
281 oSetColorSpace = 0x6a,
282 oSetCursor = 0x6b,
283 oSetCursorRel = 0x6c,
284 oSetHalftoneMethod = 0x6d,
285 oSetFillMode = 0x6e,
286 oSetFont = 0x6f,
287 oSetLineDash = 0x70,
288 oSetLineCap = 0x71,
289 oSetLineJoin = 0x72,
290 oSetMiterLimit = 0x73,
291 oSetPageDefaultCTM = 0x74,
292 oSetPageOrigin = 0x75,
293 oSetPageRotation = 0x76,
294 oSetPageScale = 0x77,
295 oSetPatternTxMode = 0x78,
296 oSetPenSource = 0x79,
297 oSetPenWidth = 0x7a,
298 oSetROP = 0x7b,
299 oSetSourceTxMode = 0x7c,
300 oSetCharBoldValue = 0x7d,
301 oSetClipMode = 0x7f,
302 oSetPathToClip = 0x80,
303 oSetCharSubMode = 0x81,
304 oCloseSubPath = 0x84,
305 oNewPath = 0x85,
306 oPaintPath = 0x86,
307 oArcPath = 0x91,
308 oBezierPath = 0x93,
309 oBezierRelPath = 0x95,
310 oChord = 0x96,
311 oChordPath = 0x97,
312 oEllipse = 0x98,
313 oEllipsePath = 0x99,
314 oLinePath = 0x9b,
315 oLineRelPath = 0x9d,
316 oPie = 0x9e,
317 oPiePath = 0x9f,
318 oRectangle = 0xa0,
319 oRectanglePath = 0xa1,
320 oRoundRectangle = 0xa2,
321 oRoundRectanglePath = 0xa3,
322 oText = 0xa8,
323 oTextPath = 0xa9,
324 oBeginImage = 0xb0,
325 oReadImage = 0xb1,
326 oEndImage = 0xb2,
327 oBeginRastPattern = 0xb3,
328 oReadRastPattern = 0xb4,
329 oEndRastPattern = 0xb5,
330 oBeginScan = 0xb6,
331 oEndScan = 0xb8,
332 oScanLineRel = 0xb9
333 };
334
335 enum MediaSize {
336 eLetterPaper,
337 eLegalPaper,
338 eA4Paper,
339 eExecPaper,
340 eLedgerPaper,
341 eA3Paper,
342 eCOM10Envelope,
343 eMonarchEnvelope,
344 eC5Envelope,
345 eDLEnvelope,
346 eJB4Paper,
347 eJB5Paper,
348 etralala,
349 eB5Envelope,
350 eJPostcard,
351 eJDoublePostcard,
352 eA5Paper,
353 eA6Paper,
354 eJB6Paper
355 };
356
357 struct sPaperFormat {
358 const char *name;
359 int xl_nr;
360 float width,height; /* inch */
361 } xlPaperFormats[] = {
362 {"letter",eLetterPaper,8.5,11.0},
363 {"legal",eLegalPaper,8.5,14},
364 {"a4",eA4Paper,8.26389,11.6944},
365 {"exec",eExecPaper,190/2.54,254/2.54},
366 {"ledger",eLedgerPaper,279/2.54,432/2.54},
367 {"a3",eA3Paper,11.6944,16.5278},
368 {"com10envelope",eCOM10Envelope,105/2.54,241/2.54},
369 {"monarchenvelope",eMonarchEnvelope,98/2.54,191/2.54},
370 {"c5envelope",eC5Envelope,162/2.54,229/2.54},
371 {"dlenvelope",eDLEnvelope,110/2.54,220/2.54},
372 {"jb4",eJB4Paper,257/2.54,364/2.54},
373 {"jb5",eJB5Paper,182/2.54,257/2.54},
374 {"b5envelope",eB5Envelope,176/2.54,250/2.54},
375 {"",-1,0,0},
376 {"jpostcard",eJPostcard,148/2.54,200/2.54},
377 {"jdoublepostcard",eJDoublePostcard,100/2.54,148/2.54},
378 {"a5",eA5Paper, 5.84722,8.26389},
379 {"a6",eA6Paper,4.125,5.84722},
380 {"jb6",eJB6Paper,0,0},
381 {NULL,0,0,0}
382 };
383
384 enum {
385 eSTART,
386 eRLE,
387 eLIT
388 } RLEstates;
389
390 #endif