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.

291 lines
8.9 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. pclxlcmd.cpp
  5. Abstract:
  6. PCL-XL command definition
  7. Environment:
  8. Windows Whistler
  9. Revision History:
  10. 08/23/99
  11. Created it.
  12. Note:
  13. Please refer to PCL XL Feature Reference Protocol Class 2.0
  14. --*/
  15. #include "xlpdev.h"
  16. #include "pclxlcmd.h"
  17. //
  18. // Binary Stream Tag
  19. //
  20. const BYTE PCLXL_NULL = 0x00;
  21. const BYTE PCLXL_HT = 0x09;
  22. const BYTE PCLXL_LF = 0x0a;
  23. const BYTE PCLXL_VT = 0x0b;
  24. const BYTE PCLXL_FF = 0x0c;
  25. const BYTE PCLXL_CR = 0x0d;
  26. const BYTE PCLXL_SP = 0x20;
  27. const BYTE PCLXL_BeginSession = 0x41;
  28. const BYTE PCLXL_EndSession = 0x42;
  29. const BYTE PCLXL_BeginPage = 0x43;
  30. const BYTE PCLXL_EndPage = 0x44;
  31. const BYTE PCLXL_Comment = 0x47;
  32. const BYTE PCLXL_OpenDataSource = 0x48;
  33. const BYTE PCLXL_CloseDataSource = 0x49;
  34. const BYTE PCLXL_BeginFontHeader = 0x4f;
  35. const BYTE PCLXL_ReadFontHeader = 0x50;
  36. const BYTE PCLXL_EndFontHeader = 0x51;
  37. const BYTE PCLXL_BeginChar = 0x52;
  38. const BYTE PCLXL_ReadChar = 0x53;
  39. const BYTE PCLXL_EndChar = 0x54;
  40. const BYTE PCLXL_RemoveFont = 0x55;
  41. const BYTE PCLXL_BeginStream = 0x5b;
  42. const BYTE PCLXL_ReadStream = 0x5c;
  43. const BYTE PCLXL_EndStream = 0x5d;
  44. const BYTE PCLXL_ExecStream = 0x5e;
  45. const BYTE PCLXL_PopGS = 0x60;
  46. const BYTE PCLXL_PushGS = 0x61;
  47. const BYTE PCLXL_SetClipReplace = 0x62;
  48. const BYTE PCLXL_SetBrushSource = 0x63;
  49. const BYTE PCLXL_SetCharAngle = 0x64;
  50. const BYTE PCLXL_SetCharScale = 0x65;
  51. const BYTE PCLXL_SetCharShear = 0x66;
  52. const BYTE PCLXL_SetClipIntersect = 0x67;
  53. const BYTE PCLXL_SetClipRectangle = 0x68;
  54. const BYTE PCLXL_SetClipToPage = 0x69;
  55. const BYTE PCLXL_SetColorSpace = 0x6a;
  56. const BYTE PCLXL_SetCursor = 0x6b;
  57. const BYTE PCLXL_SetCursorRel = 0x6c;
  58. const BYTE PCLXL_SetHalftoneMethod = 0x6d;
  59. const BYTE PCLXL_SetFillMode = 0x6e;
  60. const BYTE PCLXL_SetFont = 0x6f;
  61. const BYTE PCLXL_SetLineDash = 0x70;
  62. const BYTE PCLXL_SetLineCap = 0x71;
  63. const BYTE PCLXL_SetLineJoin = 0x72;
  64. const BYTE PCLXL_SetMiterLimit = 0x73;
  65. const BYTE PCLXL_SetPageDefaultCTM = 0x74;
  66. const BYTE PCLXL_SetPageOrigin = 0x75;
  67. const BYTE PCLXL_SetPageRotation = 0x76;
  68. const BYTE PCLXL_SetPageScale = 0x77;
  69. const BYTE PCLXL_SetPatternTxMode = 0x78;
  70. const BYTE PCLXL_SetPenSource = 0x79;
  71. const BYTE PCLXL_SetPenWidth = 0x7a;
  72. const BYTE PCLXL_SetROP = 0x7b;
  73. const BYTE PCLXL_SetSourceTxMode = 0x7c;
  74. const BYTE PCLXL_SetCharBoldValue = 0x7d;
  75. const BYTE PCLXL_SetClipMode = 0x7f;
  76. const BYTE PCLXL_SetPathToClip = 0x80;
  77. const BYTE PCLXL_SetCharSubMode = 0x81;
  78. const BYTE PCLXL_CloseSubPath = 0x84;
  79. const BYTE PCLXL_NewPath = 0x85;
  80. const BYTE PCLXL_PaintPath = 0x86;
  81. const BYTE PCLXL_ArcPath = 0x91;
  82. const BYTE PCLXL_BezierPath = 0x93;
  83. const BYTE PCLXL_BezierRelPath = 0x95;
  84. const BYTE PCLXL_Chord = 0x96;
  85. const BYTE PCLXL_ChordPath = 0x97;
  86. const BYTE PCLXL_Ellipse = 0x98;
  87. const BYTE PCLXL_EllipsePath = 0x99;
  88. const BYTE PCLXL_LinePath = 0x9b;
  89. const BYTE PCLXL_LineRelPath = 0x9d;
  90. const BYTE PCLXL_Pie = 0x9e;
  91. const BYTE PCLXL_PiePath = 0x9f;
  92. const BYTE PCLXL_Rectangle = 0xa0;
  93. const BYTE PCLXL_RectanglePath = 0xa1;
  94. const BYTE PCLXL_RoundRectangle = 0xa2;
  95. const BYTE PCLXL_RoundRectanglePath= 0xa3;
  96. const BYTE PCLXL_Text = 0xa8;
  97. const BYTE PCLXL_TextPath = 0xa9;
  98. const BYTE PCLXL_BeginImage = 0xb0;
  99. const BYTE PCLXL_ReadImage = 0xb1;
  100. const BYTE PCLXL_EndImage = 0xb2;
  101. const BYTE PCLXL_BeginRestPattern = 0xb3;
  102. const BYTE PCLXL_ReadRastPattern = 0xb4;
  103. const BYTE PCLXL_EndRastPattern = 0xb5;
  104. const BYTE PCLXL_BeginScan = 0xb6;
  105. const BYTE PCLXL_EndScan = 0xb8;
  106. const BYTE PCLXL_ScanLineRel = 0xb9;
  107. const BYTE PCLXL_ubyte = 0xc0;
  108. const BYTE PCLXL_uint16 = 0xc1;
  109. const BYTE PCLXL_uint32 = 0xc2;
  110. const BYTE PCLXL_sint16 = 0xc3;
  111. const BYTE PCLXL_sint32 = 0xc4;
  112. const BYTE PCLXL_real32 = 0xc5;
  113. const BYTE PCLXL_ubyte_array = 0xc8;
  114. const BYTE PCLXL_uint16_array = 0xc9;
  115. const BYTE PCLXL_uint32_array = 0xca;
  116. const BYTE PCLXL_sint16_array = 0xcb;
  117. const BYTE PCLXL_sint32_array = 0xcc;
  118. const BYTE PCLXL_real32_array = 0xcd;
  119. const BYTE PCLXL_ubyte_xy = 0xd0;
  120. const BYTE PCLXL_uint16_xy = 0xd1;
  121. const BYTE PCLXL_uint32_xy = 0xd2;
  122. const BYTE PCLXL_sint16_xy = 0xd3;
  123. const BYTE PCLXL_sint32_xy = 0xd4;
  124. const BYTE PCLXL_real32_xy = 0xd5;
  125. const BYTE PCLXL_ubyte_box = 0xe0;
  126. const BYTE PCLXL_uint16_box = 0xe1;
  127. const BYTE PCLXL_uint32_box = 0xe2;
  128. const BYTE PCLXL_sint16_box = 0xe3;
  129. const BYTE PCLXL_sint32_box = 0xe4;
  130. const BYTE PCLXL_real32_box = 0xe5;
  131. const BYTE PCLXL_attr_ubyte = 0xf8;
  132. const BYTE PCLXL_attr_uint16 = 0xf9;
  133. const BYTE PCLXL_dataLength = 0xfa;
  134. const BYTE PCLXL_dataLengthByte = 0xfb;
  135. //
  136. // Attribute tag
  137. //
  138. const BYTE PCLXL_PaletteDepth = 0x02;
  139. const BYTE PCLXL_ColorSpace = 0x03;
  140. const BYTE PCLXL_NullBrush = 0x04;
  141. const BYTE PCLXL_NullPen = 0x05;
  142. const BYTE PCLXL_PaleteData = 0x06;
  143. const BYTE PCLXL_PatternSelectID = 0x08;
  144. const BYTE PCLXL_GrayLevel = 0x09;
  145. const BYTE PCLXL_RGBColor = 0x0b;
  146. const BYTE PCLXL_PatternOrigin = 0x0c;
  147. const BYTE PCLXL_NewDestinationSize =0x0d;
  148. const BYTE PCLXL_ColorimetricColorSpace = 0x11;
  149. const BYTE PCLXL_DeviceMatrix = 0x21;
  150. const BYTE PCLXL_DitherMatrixDataType =0x22;
  151. const BYTE PCLXL_DitherOrigin = 0x23;
  152. const BYTE PCLXL_MediaDestination = 0x24;
  153. const BYTE PCLXL_MediaSize = 0x25;
  154. const BYTE PCLXL_MediaSource = 0x26;
  155. const BYTE PCLXL_MediaType = 0x27;
  156. const BYTE PCLXL_Orientation = 0x28;
  157. const BYTE PCLXL_PageAngle = 0x29;
  158. const BYTE PCLXL_PageOrigin = 0x2a;
  159. const BYTE PCLXL_PageScale = 0x2b;
  160. const BYTE PCLXL_ROP3 = 0x2c;
  161. const BYTE PCLXL_TxMode = 0x2d;
  162. const BYTE PCLXL_CustomMediaSize = 0x2f;
  163. const BYTE PCLXL_CustomMediaSizeUnits =0x30;
  164. const BYTE PCLXL_PageCopies = 0x31;
  165. const BYTE PCLXL_DitherMatrixSize = 0x32;
  166. const BYTE PCLXL_DithermatrixDepth = 0x33;
  167. const BYTE PCLXL_SimplexPageMode = 0x34;
  168. const BYTE PCLXL_DuplexPageMode = 0x35;
  169. const BYTE PCLXL_DuplexPageSide = 0x36;
  170. const BYTE PCLXL_ArcDirection = 0x41;
  171. const BYTE PCLXL_BoundingBox = 0x42;
  172. const BYTE PCLXL_DashOffset = 0x43;
  173. const BYTE PCLXL_EllipseDimension =0x44;
  174. const BYTE PCLXL_EndPoint = 0x45;
  175. const BYTE PCLXL_FillMode = 0x46;
  176. const BYTE PCLXL_LineCap = 0x47;
  177. const BYTE PCLXL_LineJoin = 0x48;
  178. const BYTE PCLXL_MiterLength = 0x49;
  179. const BYTE PCLXL_PenDashStyle = 0x4a;
  180. const BYTE PCLXL_PenWidth = 0x4b;
  181. const BYTE PCLXL_Point = 0x4c;
  182. const BYTE PCLXL_NumberOfPoints = 0x4d;
  183. const BYTE PCLXL_SolidLine = 0x4e;
  184. const BYTE PCLXL_StartPoint = 0x4f;
  185. const BYTE PCLXL_PointType = 0x50;
  186. const BYTE PCLXL_ControlPoint1 = 0x51;
  187. const BYTE PCLXL_ControlPoint2 = 0x52;
  188. const BYTE PCLXL_ClipRegion = 0x53;
  189. const BYTE PCLXL_ClipMode = 0x54;
  190. const BYTE PCLXL_ColorDepth = 0x62;
  191. const BYTE PCLXL_BlockHeight = 0x63;
  192. const BYTE PCLXL_ColorMapping = 0x64;
  193. const BYTE PCLXL_CompressMode = 0x65;
  194. const BYTE PCLXL_DestinationBox = 0x66;
  195. const BYTE PCLXL_DestinationSize = 0x67;
  196. const BYTE PCLXL_PatternPersistence =0x68;
  197. const BYTE PCLXL_PatternDefineID = 0x69;
  198. const BYTE PCLXL_SourceHeight = 0x6b;
  199. const BYTE PCLXL_SourceWidth = 0x6c;
  200. const BYTE PCLXL_StartLine = 0x6d;
  201. const BYTE PCLXL_XPairType = 0x6e;
  202. const BYTE PCLXL_NumberOfXPairs = 0x6f;
  203. const BYTE PCLXL_XStart = 0x70;
  204. const BYTE PCLXL_XEnd = 0x71;
  205. const BYTE PCLXL_NumberOfScanLines = 0x72;
  206. const BYTE PCLXL_CommentData = 0x81;
  207. const BYTE PCLXL_DataOrg = 0x82;
  208. const BYTE PCLXL_Measure = 0x86;
  209. const BYTE PCLXL_SourceType = 0x88;
  210. const BYTE PCLXL_UnitsPerMeasure = 0x89;
  211. const BYTE PCLXL_StreamName = 0x8b;
  212. const BYTE PCLXL_StreamDataLength =0x8c;
  213. const BYTE PCLXL_ErrorReport = 0x8f;
  214. const BYTE PCLXL_CharAngle = 0xa1;
  215. const BYTE PCLXL_CharCode = 0xa2;
  216. const BYTE PCLXL_CharDataSize = 0xa3;
  217. const BYTE PCLXL_CharScale = 0xa4;
  218. const BYTE PCLXL_CharShear = 0xa5;
  219. const BYTE PCLXL_CharSize = 0xa6;
  220. const BYTE PCLXL_FontHeaderLength = 0xa7;
  221. const BYTE PCLXL_FontName = 0xa8;
  222. const BYTE PCLXL_FontFormat = 0xa9;
  223. const BYTE PCLXL_SymbolSet = 0xaa;
  224. const BYTE PCLXL_TextData = 0xab;
  225. const BYTE PCLXL_CharSubModeArray = 0xac;
  226. const BYTE PCLXL_XSpacingData = 0xaf;
  227. const BYTE PCLXL_YSpacingData = 0xb0;
  228. const BYTE PCLXL_CharBoldValue = 0xb1;