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.

278 lines
6.8 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IBPROX24.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM Proprinter X24"
  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(5760, 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(5760, 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(5760, 8417)
  114. *PrintableOrigin: PAIR(120, 0)
  115. *switch: Resolution
  116. {
  117. *case: Option1
  118. {
  119. *PrintableArea: PAIR(5760, 8416)
  120. }
  121. *case: Option2
  122. {
  123. *PrintableArea: PAIR(5760, 8416)
  124. }
  125. *case: Option3
  126. {
  127. *PrintableArea: PAIR(5760, 8416)
  128. }
  129. }
  130. *Command: CmdSelect
  131. {
  132. *Order: DOC_SETUP.8
  133. *Cmd: "<1B>3<121B>Cu"
  134. }
  135. }
  136. *Option: B5
  137. {
  138. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  139. *PrintableArea: PAIR(5042, 7286)
  140. *PrintableOrigin: PAIR(120, 0)
  141. *switch: Resolution
  142. {
  143. *case: Option1
  144. {
  145. *PrintableArea: PAIR(5040, 7284)
  146. }
  147. *case: Option2
  148. {
  149. *PrintableArea: PAIR(5042, 7284)
  150. }
  151. *case: Option3
  152. {
  153. *PrintableArea: PAIR(5040, 7284)
  154. }
  155. }
  156. *Command: CmdSelect
  157. {
  158. *Order: DOC_SETUP.8
  159. *Cmd: "<1B>2<1B>C="
  160. }
  161. }
  162. *Option: Option5
  163. {
  164. *rcNameID: 258
  165. *PageDimensions: PAIR(6120, 8640)
  166. *PrintableArea: PAIR(5760, 8640)
  167. *PrintableOrigin: PAIR(120, 0)
  168. *Command: CmdSelect
  169. {
  170. *Order: DOC_SETUP.8
  171. *Cmd: "<1B>2<1B>CH"
  172. }
  173. }
  174. *Option: CUSTOMSIZE
  175. {
  176. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  177. *MinSize: PAIR(720, 360)
  178. *MaxSize: PAIR(7920, 32767)
  179. *MaxPrintableWidth: 5760
  180. *MinLeftMargin: 120
  181. *CenterPrintable?: FALSE
  182. }
  183. }
  184. *Feature: Halftone
  185. {
  186. *rcNameID: =HALFTONING_DISPLAY
  187. *DefaultOption: HT_PATSIZE_AUTO
  188. *Option: HT_PATSIZE_AUTO
  189. {
  190. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  191. }
  192. *Ifdef: WINNT_50
  193. *Option: HT_PATSIZE_SUPERCELL_M
  194. {
  195. *rcNameID: =HT_SUPERCELL_DISPLAY
  196. }
  197. *Endif:
  198. *Option: HT_PATSIZE_6x6_M
  199. {
  200. *rcNameID: =HT_DITHER6X6_DISPLAY
  201. }
  202. *Option: HT_PATSIZE_8x8_M
  203. {
  204. *rcNameID: =HT_DITHER8X8_DISPLAY
  205. }
  206. }
  207. *Command: CmdStartDoc
  208. {
  209. *Order: DOC_SETUP.1
  210. *Cmd: "<0D1B>6<121B>W<001B>U<001B>[\<04000000B4001B>2"
  211. }
  212. *Command: CmdStartPage
  213. {
  214. *Order: PAGE_SETUP.1
  215. *Cmd: "<0D>"
  216. }
  217. *Command: CmdEndJob
  218. {
  219. *Order: JOB_FINISH.1
  220. *Cmd: "<0D>"
  221. }
  222. *RotateCoordinate?: FALSE
  223. *RotateRaster?: FALSE
  224. *RotateFont?: FALSE
  225. *switch: Orientation
  226. {
  227. *case: PORTRAIT
  228. {
  229. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_SO_ABLE,TC_RA_ABLE)
  230. }
  231. *case: LANDSCAPE_CC270
  232. {
  233. *TextCaps: LIST(TC_RA_ABLE)
  234. }
  235. }
  236. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  237. *XMoveThreshold: *
  238. *YMoveThreshold: *
  239. *XMoveUnit: 120
  240. *YMoveUnit: 180
  241. *Command: CmdXMoveRelRight { *Cmd : "<1B>d" %l{(DestXRel / 6) } }
  242. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 4) )} }
  243. *Command: CmdCR { *Cmd : "<0D>" }
  244. *Command: CmdLF { *Cmd : "<0A>" }
  245. *Command: CmdFF { *Cmd : "<0C>" }
  246. *Command: CmdBackSpace { *Cmd : "<08>" }
  247. *EjectPageWithFF?: TRUE
  248. *switch: PaperSize
  249. {
  250. *case: CUSTOMSIZE
  251. {
  252. *EjectPageWithFF?: FALSE
  253. *switch: InputBin
  254. {
  255. }
  256. }
  257. }
  258. *OutputDataFormat: V_BYTE
  259. *OptimizeLeftBound?: FALSE
  260. *CursorXAfterSendBlockData: AT_GRXDATA_END
  261. *CursorYAfterSendBlockData: NO_MOVE
  262. *DefaultFont: 4
  263. *DefaultCTT: 1
  264. *switch: Orientation
  265. {
  266. *case: PORTRAIT
  267. {
  268. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11)
  269. }
  270. *case: LANDSCAPE_CC270
  271. {
  272. *DeviceFonts: LIST()
  273. }
  274. }
  275. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  276. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  277. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  278. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }