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.

315 lines
7.7 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IBPXL24E.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM Proprinter XL24e"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "ibp24res.dll"
  12. *PrinterType: SERIAL
  13. *Feature: Orientation
  14. {
  15. *rcNameID: =ORIENTATION_DISPLAY
  16. *DefaultOption: PORTRAIT
  17. *Option: PORTRAIT
  18. {
  19. *rcNameID: =PORTRAIT_DISPLAY
  20. }
  21. *Option: LANDSCAPE_CC270
  22. {
  23. *rcNameID: =LANDSCAPE_DISPLAY
  24. }
  25. }
  26. *Feature: InputBin
  27. {
  28. *rcNameID: =PAPER_SOURCE_DISPLAY
  29. *DefaultOption: TRACTOR
  30. *Option: TRACTOR
  31. {
  32. *rcNameID: =TRACTOR_DISPLAY
  33. }
  34. *Option: UPPER
  35. {
  36. *rcNameID: =UPPER_TRAY_DISPLAY
  37. }
  38. *Option: MANUAL
  39. {
  40. *rcNameID: =MANUAL_FEED_DISPLAY
  41. }
  42. }
  43. *Feature: Resolution
  44. {
  45. *rcNameID: =RESOLUTION_DISPLAY
  46. *DefaultOption: Option1
  47. *Option: Option1
  48. {
  49. *Name: "180 x 180 " =DOTS_PER_INCH
  50. *DPI: PAIR(180, 180)
  51. *TextDPI: PAIR(180, 180)
  52. *PinsPerLogPass: 24
  53. *PinsPerPhysPass: 24
  54. *MinStripBlankPixels: 135
  55. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  56. *SpotDiameter: 120
  57. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<0B>" }
  58. }
  59. *Option: Option2
  60. {
  61. *Name: "360 x 180 " =DOTS_PER_INCH
  62. *DPI: PAIR(360, 180)
  63. *TextDPI: PAIR(360, 180)
  64. *PinsPerLogPass: 24
  65. *PinsPerPhysPass: 24
  66. *MinStripBlankPixels: 270
  67. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  68. *SpotDiameter: 170
  69. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<0C>" }
  70. }
  71. *Option: Option3
  72. {
  73. *Name: "120 x 180 " =DOTS_PER_INCH
  74. *DPI: PAIR(120, 180)
  75. *TextDPI: PAIR(120, 180)
  76. *PinsPerLogPass: 24
  77. *PinsPerPhysPass: 24
  78. *MinStripBlankPixels: 90
  79. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  80. *SpotDiameter: 100
  81. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<09>" }
  82. }
  83. }
  84. *Feature: PaperSize
  85. {
  86. *rcNameID: =PAPER_SIZE_DISPLAY
  87. *DefaultOption: LETTER
  88. *Option: LETTER
  89. {
  90. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  91. *PrintableArea: PAIR(6000, 7920)
  92. *PrintableOrigin: PAIR(120, 0)
  93. *Command: CmdSelect
  94. {
  95. *Order: DOC_SETUP.8
  96. *Cmd: "<1B>2<1B>CB"
  97. }
  98. }
  99. *Option: LEGAL
  100. {
  101. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  102. *PrintableArea: PAIR(6000, 10080)
  103. *PrintableOrigin: PAIR(120, 0)
  104. *Command: CmdSelect
  105. {
  106. *Order: DOC_SETUP.8
  107. *Cmd: "<1B>2<1B>CT"
  108. }
  109. }
  110. *Option: A4
  111. {
  112. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  113. *PrintableArea: PAIR(5834, 8417)
  114. *PrintableOrigin: PAIR(120, 0)
  115. *switch: Resolution
  116. {
  117. *case: Option1
  118. {
  119. *PrintableArea: PAIR(5832, 8416)
  120. }
  121. *case: Option2
  122. {
  123. *PrintableArea: PAIR(5834, 8416)
  124. }
  125. *case: Option3
  126. {
  127. *PrintableArea: PAIR(5832, 8416)
  128. }
  129. }
  130. *Command: CmdSelect
  131. {
  132. *Order: DOC_SETUP.8
  133. *Cmd: "<1B>3<121B>Cu"
  134. }
  135. }
  136. *Option: A3
  137. {
  138. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  139. *PrintableArea: PAIR(8297, 11909)
  140. *PrintableOrigin: PAIR(120, 0)
  141. *switch: Resolution
  142. {
  143. *case: Option1
  144. {
  145. *PrintableArea: PAIR(8296, 11908)
  146. }
  147. *case: Option2
  148. {
  149. *PrintableArea: PAIR(8296, 11908)
  150. }
  151. *case: Option3
  152. {
  153. *PrintableArea: PAIR(8292, 11908)
  154. }
  155. }
  156. *Command: CmdSelect
  157. {
  158. *Order: DOC_SETUP.8
  159. *Cmd: "<1B>3<121B>C<A8>"
  160. }
  161. }
  162. *Option: B5
  163. {
  164. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  165. *PrintableArea: PAIR(5042, 7286)
  166. *PrintableOrigin: PAIR(120, 0)
  167. *switch: Resolution
  168. {
  169. *case: Option1
  170. {
  171. *PrintableArea: PAIR(5040, 7284)
  172. }
  173. *case: Option2
  174. {
  175. *PrintableArea: PAIR(5042, 7284)
  176. }
  177. *case: Option3
  178. {
  179. *PrintableArea: PAIR(5040, 7284)
  180. }
  181. }
  182. *Command: CmdSelect
  183. {
  184. *Order: DOC_SETUP.8
  185. *Cmd: "<1B>2<1B>C="
  186. }
  187. }
  188. *Option: FANFOLD_US
  189. {
  190. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  191. *PrintableArea: PAIR(9792, 7920)
  192. *PrintableOrigin: PAIR(120, 0)
  193. *Command: CmdSelect
  194. {
  195. *Order: DOC_SETUP.8
  196. *Cmd: "<1B>2<1B>CB"
  197. }
  198. }
  199. *Option: Option7
  200. {
  201. *rcNameID: 258
  202. *PageDimensions: PAIR(6120, 8640)
  203. *PrintableArea: PAIR(6000, 8640)
  204. *PrintableOrigin: PAIR(120, 0)
  205. *Command: CmdSelect
  206. {
  207. *Order: DOC_SETUP.8
  208. *Cmd: "<1B>2<1B>CH"
  209. }
  210. }
  211. *Option: CUSTOMSIZE
  212. {
  213. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  214. *MinSize: PAIR(720, 360)
  215. *MaxSize: PAIR(11880, 32767)
  216. *MaxPrintableWidth: 9792
  217. *MinLeftMargin: 120
  218. *CenterPrintable?: FALSE
  219. }
  220. }
  221. *Feature: Halftone
  222. {
  223. *rcNameID: =HALFTONING_DISPLAY
  224. *DefaultOption: HT_PATSIZE_AUTO
  225. *Option: HT_PATSIZE_AUTO
  226. {
  227. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  228. }
  229. *Ifdef: WINNT_50
  230. *Option: HT_PATSIZE_SUPERCELL_M
  231. {
  232. *rcNameID: =HT_SUPERCELL_DISPLAY
  233. }
  234. *Endif:
  235. *Option: HT_PATSIZE_6x6_M
  236. {
  237. *rcNameID: =HT_DITHER6X6_DISPLAY
  238. }
  239. *Option: HT_PATSIZE_8x8_M
  240. {
  241. *rcNameID: =HT_DITHER8X8_DISPLAY
  242. }
  243. }
  244. *Command: CmdStartDoc
  245. {
  246. *Order: DOC_SETUP.1
  247. *Cmd: "<0D1B>6<121B>W<001B>U<001B>[\<04000000B4001B>2"
  248. }
  249. *Command: CmdStartPage
  250. {
  251. *Order: PAGE_SETUP.1
  252. *Cmd: "<0D>"
  253. }
  254. *Command: CmdEndJob
  255. {
  256. *Order: JOB_FINISH.1
  257. *Cmd: "<0D>"
  258. }
  259. *RotateCoordinate?: FALSE
  260. *RotateRaster?: FALSE
  261. *RotateFont?: FALSE
  262. *switch: Orientation
  263. {
  264. *case: PORTRAIT
  265. {
  266. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_SO_ABLE,TC_RA_ABLE)
  267. }
  268. *case: LANDSCAPE_CC270
  269. {
  270. *TextCaps: LIST(TC_RA_ABLE)
  271. }
  272. }
  273. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  274. *XMoveThreshold: *
  275. *YMoveThreshold: *
  276. *XMoveUnit: 120
  277. *YMoveUnit: 180
  278. *Command: CmdXMoveRelRight { *Cmd : "<1B>d" %l{(DestXRel / 6) } }
  279. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 4) )} }
  280. *Command: CmdCR { *Cmd : "<0D>" }
  281. *Command: CmdLF { *Cmd : "<0A>" }
  282. *Command: CmdFF { *Cmd : "<0C>" }
  283. *Command: CmdBackSpace { *Cmd : "<08>" }
  284. *EjectPageWithFF?: TRUE
  285. *switch: PaperSize
  286. {
  287. *case: CUSTOMSIZE
  288. {
  289. *EjectPageWithFF?: FALSE
  290. *switch: InputBin
  291. {
  292. }
  293. }
  294. }
  295. *OutputDataFormat: V_BYTE
  296. *OptimizeLeftBound?: FALSE
  297. *CursorXAfterSendBlockData: AT_GRXDATA_END
  298. *CursorYAfterSendBlockData: NO_MOVE
  299. *DefaultFont: 4
  300. *DefaultCTT: 1
  301. *switch: Orientation
  302. {
  303. *case: PORTRAIT
  304. {
  305. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11)
  306. }
  307. *case: LANDSCAPE_CC270
  308. {
  309. *DeviceFonts: LIST()
  310. }
  311. }
  312. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  313. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  314. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  315. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }