Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

422 lines
10 KiB

  1. *%%
  2. *%% Macro definition for standard PCLXL commands
  3. *%%
  4. *%% Attribute tags
  5. *Macros: AttributeTag
  6. {
  7. PaletteDepth: "<02>"
  8. ColorSpace: "<03>"
  9. NullBrush: "<04>"
  10. NullPen: "<05>"
  11. PaletteData: "<06>"
  12. PatternSelectID: "<08>"
  13. GrayLevel: "<09>"
  14. RGBColor: "<0b>"
  15. PatternOrigin: "<0c>"
  16. NewDestinationSize: "<0d>"
  17. DeviceMatrix: "<21>"
  18. DitherMatrixDataType: "<22>"
  19. DitherOrigin: "<23>"
  20. MediaDestination: "<24>"
  21. MediaSize: "<2525>"
  22. MediaSource: "<26>"
  23. MediaType: "<27>"
  24. Orientation: "<28>"
  25. PageAngle: "<29>"
  26. PageOrigin: "<2a>"
  27. PageScale: "<2b>"
  28. ROP3: "<2c>"
  29. TxMode: "<2d>"
  30. CustomMediaSize: "<2f>"
  31. CustomMediaSizeUnits: "<30>"
  32. PageCopies: "<31>"
  33. DitherMatrixSize: "<32>"
  34. DitherMatrixDepth: "<33>"
  35. SimplexPageMode: "<34>"
  36. DuplexPageMode: "<35>"
  37. DuplexPageSize: "<36>"
  38. ArgDirection: "<41>"
  39. BoundingBox: "<42>"
  40. DashOffset: "<43>"
  41. EllipseDimension: "<44>"
  42. EndPoint: "<45>"
  43. FillMode: "<46>"
  44. LineCapStyle: "<47>"
  45. LineJointStyle: "<48>"
  46. MiterLength: "<49>"
  47. PenDashStyle: "<4a>"
  48. PenWidth: "<4b>"
  49. Point: "<4c>"
  50. NumberOfPoints: "<4d>"
  51. SolidLine: "<4e>"
  52. StartPoint: "<4f>"
  53. PointType: "<50>"
  54. ControlPoint1: "<51>"
  55. ControlPoint2: "<52>"
  56. ClipRegion: "<53>"
  57. ClipMode: "<54>"
  58. ColorDepth: "<62>"
  59. BlockHeight: "<63>"
  60. ColorMapping: "<64>"
  61. CompressMode: "<65>"
  62. DestinationBox: "<66>"
  63. DestinationSize: "<67>"
  64. PatternPersistence: "<68>"
  65. PatternDefineID: "<69>"
  66. SourceHeight: "<6b>"
  67. SourceWidth: "<6c>"
  68. StartLine: "<6d>"
  69. XPairType: "<6e>"
  70. NumberOfXPairs: "<6f>"
  71. XStart: "<70>"
  72. XEnd: "<71>"
  73. NumberOfScanLines: "<72>"
  74. CommentData: "<81>"
  75. DataOrg: "<82>"
  76. Measure: "<86>"
  77. SourceType: "<88>"
  78. UnitsPerMeasure: "<89>"
  79. StreamName: "<8b>"
  80. StreamDataLength: "<8c>"
  81. ErrorReport: "<8f>"
  82. CharAngle: "<a1>"
  83. CharCode: "<a2>"
  84. CharDataSize: "<a3>"
  85. CharScale: "<a4>"
  86. CharShear: "<a5>"
  87. CharSize: "<a6>"
  88. FontHeaderLength: "<a7>"
  89. FontName: "<a8>"
  90. FontFormat: "<a9>"
  91. SymbolSet: "<aa>"
  92. TextData: "<ab>"
  93. CharSubModeArray: "<ac>"
  94. XSpacingData: "<af>"
  95. YSpacingData: "<b0>"
  96. CharBoldValue: "<b1>"
  97. }
  98. *%% Attribute Enumeration
  99. *Macros: AttributeEnum
  100. {
  101. *%% ArcDirection
  102. eClockWise: "<00>"
  103. eCounterClockWise: "<01>"
  104. *%% CharSubModeArray
  105. eNoSubstitution: "<00>"
  106. eVerticalSubstitution: "<01>"
  107. *%% ClipMode
  108. *%% see FillMode Enumeration
  109. *%% ClipRegion
  110. eInterior: "<00>"
  111. eExterior: "<01>"
  112. *%% ColorDepth
  113. e1Bit: "<00>"
  114. e4Bit: "<01>"
  115. e8Bit: "<02>"
  116. *%% ColorimetricColorSpace
  117. eCRGB: 5
  118. *%% ColorMapping
  119. eDirectPixel: "<00>"
  120. eIndexedPixel: "<01>"
  121. *%% ColorSpace
  122. eGray: "<01>"
  123. eRGB: "<02>"
  124. eSRGB: "<06>"
  125. *%% CompressMode
  126. eNoCompression: "<00>"
  127. eRLECompression: "<01>"
  128. eJPEGCompression: "<02>"
  129. *%% DataOrg
  130. eBinaryHighByteFirst: "<00>"
  131. eBinaryLowByteFirst: "<01>"
  132. *%% DataSource
  133. eDefault: "<00>"
  134. *%% DataType
  135. eUByte: "<00>"
  136. eSByte: "<01>"
  137. eUint16: "<02>"
  138. eSint16: "<03>"
  139. *%% DitherMatrix
  140. eDeviceBest: "<00>"
  141. *%% DuplexPageMode
  142. eDuplexHorizontalBinding: "<00>"
  143. eDuplexVerticalBinding: "<01>"
  144. *%% DuplexPageSide
  145. eFrontMediaSide: "<00>"
  146. eBackMediaSide: "<01>"
  147. *%% ErrorReport
  148. eBackChannel: "<01>"
  149. eErrorPage: "<02>"
  150. eBackChAndErrPage: "<03>"
  151. eNWBackChannel: "<04>"
  152. eNWErrorPage: "<05>"
  153. eNWBackChAndErrPage: "<06>"
  154. *%% FillMode
  155. eNonZeroWinding: "<00>"
  156. eEvenOdd: "<01>"
  157. *%% LineCap
  158. eButtCap: "<00>"
  159. eRoundCap: "<01>"
  160. eSquareCap: "<02>"
  161. eTriangleCap: "<03>"
  162. *%% LineJoin
  163. eMiterJoin: "<00>"
  164. eRoundJoin: "<01>"
  165. eBevelJoin: "<02>"
  166. eNoJoin: "<03>"
  167. *%% Measure
  168. eInch: "<00>"
  169. eMillimeter: "<01>"
  170. eTenthsOfAMillimeter: "<02>"
  171. *%% MediaSize Enumerations
  172. eLetterPaper: "<00>"
  173. eLegalPaper: "<01>"
  174. eA4Paper: "<02>"
  175. eExecPaper: "<03>"
  176. eLedgerPaper: "<04>"
  177. eA3Paper: "<05>"
  178. eCOM10Envelope: "<06>"
  179. eMonarchEnvelope: "<07>"
  180. eC5Envelope: "<08>"
  181. eDLEnvelope: "<09>"
  182. eJB4Paper: "<0a>"
  183. eJB5Paper: "<0b>"
  184. eB5Envelope: "<0c>"
  185. eJPostcard: "<0e>"
  186. eJDoublePostcard: "<0d>"
  187. eA5Paper: "<10>"
  188. eA6Paper: "<11>"
  189. eJB6Paper: "<12>"
  190. *%% MediaSource
  191. eDefaultSource: "<00>"
  192. eAutoSelect: "<01>"
  193. eManualFeed: "<02>"
  194. eMultiPurposeTray: "<03>"
  195. eUpperCassette: "<04>"
  196. eLowerCassette: "<05>"
  197. eEnvelopeTray: "<06>"
  198. eThirdCassette: "<07>"
  199. *%% MediaType
  200. ePlain: "Plain"
  201. ePreprinted: "Preprinted"
  202. eLetterhead: "Letterhead"
  203. eTransparency: "Transparency"
  204. ePrepunched: "Prepunched"
  205. eLabels: "Labels"
  206. eBond: "Bond"
  207. eRecycled: "Recycled"
  208. eColor: "Color"
  209. eCardstock: "Card Stock"
  210. eRough: "Rough"
  211. eVellum: "Vellum"
  212. *%% External Trays
  213. *%% 1-248 8-255
  214. *%% MediaDestination
  215. eDefaultDestination: "<00>"
  216. eFaceDownBin: "<01>"
  217. eFaceUpBin: "<02>"
  218. eJobOffsetBin: "<03>"
  219. *%% External Bins 1-251 5-255
  220. *%% Orientation
  221. ePortraitOrientation: "<00>"
  222. eLandscapeOrientation: "<01>"
  223. eReversePortrait: "<02>"
  224. eReverseLandscape: "<03>"
  225. *%% PatternPersistence
  226. eTempPattern: "<00>"
  227. ePagePattern: "<01>"
  228. eSessionPattern: "<02>"
  229. *%% SymbolSet
  230. *%%
  231. *%% SimplexPageMode
  232. eSimplexFrontSide: "<00>"
  233. *%% TxMode
  234. eOpaque: "<00>"
  235. eTransparent: "<01>"
  236. *%% WritingMode
  237. eHorizontal: "<00>"
  238. eVertical: "<01>"
  239. }
  240. *%% Data Tags
  241. *Macros: DataTag
  242. {
  243. ubyte: "<c0>"
  244. uint16: "<c1>"
  245. uint32: "<c2>"
  246. sint16: "<c3>"
  247. sint32: "<c4>"
  248. real32: "<c5>"
  249. ubyte_array: "<c8>"
  250. uint16_array: "<c9>"
  251. uint32_array: "<ca>"
  252. sint16_array: "<cb>"
  253. sint32_array: "<cc>"
  254. real32_array: "<cd>"
  255. ubyte_xy: "<d0>"
  256. uint16_xy: "<d1>"
  257. uint32_xy: "<d2>"
  258. sint16_xy: "<d3>"
  259. sint32_xy: "<d4>"
  260. real32_xy: "<d5>"
  261. ubyte_box: "<e0>"
  262. uint16_box: "<e1>"
  263. uint32_box: "<e2>"
  264. sint16_box: "<e3>"
  265. sint32_box: "<e4>"
  266. real32_box: "<e5>"
  267. attr_ubyte: "<f8>"
  268. attr_uint16: "<f9>"
  269. dataLength: "<fa>"
  270. dataLengthByte: "<fb>"
  271. }
  272. *%% Operator Tag
  273. *Macros: OperatorTag
  274. {
  275. HT: "<09>"
  276. LF: "<0a>"
  277. VT: "<0b>"
  278. FF: "<0c>"
  279. CR: "<0d>"
  280. BeginSession: "<41>"
  281. EndSession: "<42>"
  282. BeginPage: "<43>"
  283. EndPage: "<44>"
  284. Comment: "<47>"
  285. OpenDataSource: "<48>"
  286. CloseDataSource: "<49>"
  287. BeginFontHeader: "<4f>"
  288. ReadFontHeader: "<50>"
  289. EndFontHeader: "<51>"
  290. BeginChar: "<52>"
  291. ReadChar: "<53>"
  292. EndChar: "<54>"
  293. RemoveFont: "<55>"
  294. BeginStream: "<5b>"
  295. ReadStream: "<5c>"
  296. EndStream: "<5d>"
  297. ExecStream: "<5e>"
  298. PopGS: "<60>"
  299. PushGS: "<61>"
  300. SetClipReplace: "<62>"
  301. SetBrushSource: "<63>"
  302. SetCharAngle: "<64>"
  303. SetCharScale: "<65>"
  304. SetCharShear: "<66>"
  305. SetClipIntersect: "<67>"
  306. SetClipRectangle: "<68>"
  307. SetClipToPage: "<69>"
  308. SetColorSpace: "<6a>"
  309. SetCursor: "<6b>"
  310. SetCursorRel: "<6c>"
  311. SetHalftoneMethod: "<6d>"
  312. SetFillMode: "<6e>"
  313. SetFont: "<6f>"
  314. SetLineDash: "<70>"
  315. SetLineCap: "<71>"
  316. SetLineJoin: "<72>"
  317. SetMiterLimit: "<73>"
  318. SetPageDefaultCTM: "<74>"
  319. SetPageOrigin: "<75>"
  320. SetPageRotation: "<76>"
  321. SetPageScale: "<77>"
  322. SetPatternTxMode: "<78>"
  323. SetPenSource: "<79>"
  324. SetPenWidth: "<7a>"
  325. SetROP: "<7b>"
  326. SetSourceTxMode: "<7c>"
  327. SetCharBoldValue: "<7d>"
  328. SetClipMode: "<7f>"
  329. SetPathToClip: "<80>"
  330. SetCharSubMode: "<81>"
  331. CloseSubPath: "<84>"
  332. NewPath: "<85>"
  333. PaintPath: "<86>"
  334. ArcPath: "<91>"
  335. BezierPath: "<93>"
  336. BezierRelPath: "<95>"
  337. Chord: "<96>"
  338. ChordPath: "<97>"
  339. Ellipse: "<98>"
  340. EllipsePath: "<99>"
  341. LinePath: "<9b>"
  342. LineRelPath: "<9d>"
  343. Pie: "<9e>"
  344. PiePath: "<9f>"
  345. Rectangle: "<a0>"
  346. RectanglePath: "<a1>"
  347. RoundRectangle: "<a2>"
  348. RoundRectanglePath: "<a3>"
  349. Text: "<a8>"
  350. TextPath: "<a9>"
  351. BeginImage: "<b0>"
  352. ReadImage: "<b1>"
  353. EndImage: "<b2>"
  354. BeginRestPattern: "<b3>"
  355. ReadRastPattern: "<b4>"
  356. EndRastPattern: "<b5>"
  357. BeginScan: "<b6>"
  358. EndScan: "<b8>"
  359. ScanLineRel: "<b9>"
  360. }
  361. *Macros: MediaSizeStrings
  362. {
  363. sLetterPaper: =ubyte "<06>" "LETTER"
  364. sLegalPaper: =ubyte "<05>" "LEGAL"
  365. sA4Paper: =ubyte "<02>" "A4"
  366. sExecPaper: =ubyte "<04>" "EXEC"
  367. sLedgerPaper: =ubyte "<06>" "LEDGER"
  368. sA3Paper: =ubyte "<02>" "A3"
  369. sCOM10Envelope: =ubyte "<05>" "COM10"
  370. sMonarchEnvelope: =ubyte "<07>" "MONARCH"
  371. sC5Envelope: =ubyte "<02>" "C5"
  372. sDLEnvelope: =ubyte "<02>" "DL"
  373. sJB4Paper: =ubyte "<06>" "JIS B4"
  374. sJB5Paper: =ubyte "<06>" "JIS B5"
  375. sB5Envelope: =ubyte "<06>" "B5 ENV"
  376. sJPostcard: =ubyte "<05>" "JPOST"
  377. sJDoublePostcard: =ubyte "<06>" "JPOSTD"
  378. sA5Paper: =ubyte "<02>" "A5"
  379. sA6Paper: =ubyte "<02>" "A6"
  380. sJB6Paper: =ubyte "<02>" "JIS B6"
  381. }