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.

472 lines
12 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "IB5585HJ.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "IBM 5585-H01"
  11. *MasterUnits: PAIR(1440, 1440)
  12. *ResourceDLL: "PAGESRES.DLL"
  13. *PrinterType: PAGE
  14. *MaxCopies: 255
  15. *FontCartSlots: 1
  16. *PrintRate: 8
  17. *PrintRateUnit: PPM
  18. *rcInstalledOptionNameID: 400
  19. *rcNotInstalledOptionNameID: 401
  20. *% ========== Orientation ==========
  21. *Feature: Orientation
  22. {
  23. *rcNameID: =ORIENTATION_DISPLAY
  24. *DefaultOption: PORTRAIT
  25. *Option: PORTRAIT
  26. {
  27. *rcNameID: =PORTRAIT_DISPLAY
  28. *Command: CmdSelect
  29. {
  30. *Order: DOC_SETUP.3
  31. *Cmd: "<1B>~P<000100>"
  32. }
  33. }
  34. *Option: LANDSCAPE_CC270
  35. {
  36. *rcNameID: =LANDSCAPE_DISPLAY
  37. *Command: CmdSelect
  38. {
  39. *Order: DOC_SETUP.3
  40. *Cmd: "<1B>~P<000103>"
  41. }
  42. }
  43. }
  44. *% ========== InputBin ==========
  45. *Feature: InputBin
  46. {
  47. *rcNameID: =PAPER_SOURCE_DISPLAY
  48. *DefaultOption: Option1
  49. *Option: Option1
  50. {
  51. *rcNameID: 267
  52. *Command: CmdSelect
  53. {
  54. *Order: DOC_SETUP.2
  55. *Cmd: "<1B>~F<00050000000000>"
  56. }
  57. }
  58. *Option: Option2
  59. {
  60. *rcNameID: 268
  61. *Command: CmdSelect
  62. {
  63. *Order: DOC_SETUP.2
  64. *Cmd: "<1B>~F<00050000010000>"
  65. }
  66. }
  67. *Option: Option3
  68. {
  69. *rcNameID: 269
  70. *Installable?: TRUE
  71. *rcInstallableFeatureNameID: 269
  72. *Command: CmdSelect
  73. {
  74. *Order: DOC_SETUP.2
  75. *Cmd: "<1B>~F<00050000020000>"
  76. }
  77. }
  78. }
  79. *% ========== Resolution ==========
  80. *Feature: Resolution
  81. {
  82. *rcNameID: =RESOLUTION_DISPLAY
  83. *DefaultOption: Option1
  84. *Option: Option1
  85. {
  86. *Name: "240 x 240 dots per inch"
  87. *DPI: PAIR(240, 240)
  88. *TextDPI: PAIR(240, 240)
  89. *MinStripBlankPixels: 32
  90. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  91. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  92. *SpotDiameter: 100
  93. *Command: CmdSendBlockData { *Cmd : "<1B>~<84>" %m{NumOfDataBytes + 5}"<00>" %m{(RasterDataWidthInBytes * 8) } %m{RasterDataHeightInPixels }
  94. + }
  95. *Command: CmdSelect
  96. {
  97. *Order: DOC_SETUP.11
  98. *CallbackID: 12
  99. }
  100. }
  101. }
  102. *% ========== PaperSize ==========
  103. *Feature: PaperSize
  104. {
  105. *rcNameID: =PAPER_SIZE_DISPLAY
  106. *DefaultOption: A4
  107. *Option: A4
  108. {
  109. *rcNameID: =A4_DISPLAY
  110. *PrintableArea: PAIR(11334, 16260)
  111. *PrintableOrigin: PAIR(288, 288)
  112. *switch: Orientation
  113. {
  114. *case: PORTRAIT
  115. {
  116. *Command: CmdSelect
  117. {
  118. *Order: DOC_SETUP.5
  119. *Cmd: "<1B>~8<0009011C011C>,J?<8E02>"
  120. }
  121. }
  122. *case: LANDSCAPE_CC270
  123. {
  124. *Command: CmdSelect
  125. {
  126. *Order: DOC_SETUP.5
  127. *Cmd: "<1B>~8<0009011C011C>?<8E>,J<02>"
  128. }
  129. }
  130. }
  131. }
  132. *Option: B4
  133. {
  134. *rcNameID: =B4_DISPLAY
  135. *PrintableArea: PAIR(13998, 20064)
  136. *PrintableOrigin: PAIR(288, 288)
  137. *switch: Orientation
  138. {
  139. *case: PORTRAIT
  140. {
  141. *Command: CmdSelect
  142. {
  143. *Order: DOC_SETUP.5
  144. *Cmd: "<1B>~8<0009011C011C>6<B3>Ne<02>"
  145. }
  146. }
  147. *case: LANDSCAPE_CC270
  148. {
  149. *Command: CmdSelect
  150. {
  151. *Order: DOC_SETUP.5
  152. *Cmd: "<1B>~8<0009011C011C>Ne6<B302>"
  153. }
  154. }
  155. }
  156. }
  157. *Option: B5
  158. {
  159. *rcNameID: =B5_DISPLAY
  160. *PrintableArea: PAIR(9750, 13998)
  161. *PrintableOrigin: PAIR(288, 288)
  162. *switch: Orientation
  163. {
  164. *case: PORTRAIT
  165. {
  166. *Command: CmdSelect
  167. {
  168. *Order: DOC_SETUP.5
  169. *Cmd: "<1B>~8<0009011C011C>&<17>6<B302>"
  170. }
  171. }
  172. *case: LANDSCAPE_CC270
  173. {
  174. *Command: CmdSelect
  175. {
  176. *Order: DOC_SETUP.5
  177. *Cmd: "<1B>~8<0009011C011C>6<B3>&<1702>"
  178. }
  179. }
  180. }
  181. }
  182. *Option: LETTER
  183. {
  184. *rcNameID: =LETTER_DISPLAY
  185. *PrintableArea: PAIR(11664, 15264)
  186. *PrintableOrigin: PAIR(288, 288)
  187. *switch: Orientation
  188. {
  189. *case: PORTRAIT
  190. {
  191. *Command: CmdSelect
  192. {
  193. *Order: DOC_SETUP.5
  194. *Cmd: "<1B>~8<0009011C011C>-<99>;<A902>"
  195. }
  196. }
  197. *case: LANDSCAPE_CC270
  198. {
  199. *Command: CmdSelect
  200. {
  201. *Order: DOC_SETUP.5
  202. *Cmd: "<1B>~8<0009011C011C>;<A9>-<9902>"
  203. }
  204. }
  205. }
  206. }
  207. *Option: JAPANESE_POSTCARD
  208. {
  209. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  210. *PrintableArea: PAIR(5100, 7824)
  211. *PrintableOrigin: PAIR(288, 288)
  212. *switch: Orientation
  213. {
  214. *case: PORTRAIT
  215. {
  216. *Command: CmdSelect
  217. {
  218. *Order: DOC_SETUP.5
  219. *Cmd: "<1B>~8<0009011C011C13EE1E8F02>"
  220. }
  221. }
  222. *case: LANDSCAPE_CC270
  223. {
  224. *Command: CmdSelect
  225. {
  226. *Order: DOC_SETUP.5
  227. *Cmd: "<1B>~8<0009011C011C1E8F13EE02>"
  228. }
  229. }
  230. }
  231. }
  232. *Option: LEGAL
  233. {
  234. *rcNameID: =LEGAL_DISPLAY
  235. *PrintableArea: PAIR(11664, 19584)
  236. *PrintableOrigin: PAIR(288, 288)
  237. *switch: Orientation
  238. {
  239. *case: PORTRAIT
  240. {
  241. *Command: CmdSelect
  242. {
  243. *Order: DOC_SETUP.5
  244. *Cmd: "<1B>~8<0009011C011C>-<99>L<8902>"
  245. }
  246. }
  247. *case: LANDSCAPE_CC270
  248. {
  249. *Command: CmdSelect
  250. {
  251. *Order: DOC_SETUP.5
  252. *Cmd: "<1B>~8<0009011C011C>L<89>-<9902>"
  253. }
  254. }
  255. }
  256. }
  257. *Option: CUSTOMSIZE
  258. {
  259. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  260. *MinSize: PAIR(2880, 2880)
  261. *MaxSize: PAIR(25200, 32767)
  262. *MaxPrintableWidth: 24632
  263. *CustPrintableSizeX: %d{PhysPaperWidth-568}
  264. *CustPrintableSizeY: %d{PhysPaperLength-568}
  265. *CustPrintableOriginX: %d{284}
  266. *CustPrintableOriginY: %d{284}
  267. *CustCursorOriginX: %d{284}
  268. *CustCursorOriginY: %d{284}
  269. *switch: Orientation
  270. {
  271. *case: PORTRAIT
  272. {
  273. *Command: CmdSelect
  274. {
  275. *Order: DOC_SETUP.5
  276. *Cmd: "<1B>~8<0009011C011C>"
  277. +%m{(PhysPaperWidth-568)}
  278. +%m{(PhysPaperLength-568)}
  279. +"<02>"
  280. }
  281. }
  282. *case: LANDSCAPE_CC270
  283. {
  284. *Command: CmdSelect
  285. {
  286. *Order: DOC_SETUP.5
  287. *Cmd: "<1B>~8<0009011C011C>"
  288. +%m{(PhysPaperLength-568)}
  289. +%m{(PhysPaperWidth-568)}
  290. +"<02>"
  291. }
  292. }
  293. }
  294. }
  295. }
  296. *% ========== ImageControl ==========
  297. *Feature: ImageControl
  298. {
  299. *rcNameID: =IMAGECONTROL_DISPLAY
  300. *DefaultOption: Option1
  301. *Option: Option1
  302. {
  303. *rcNameID: 283
  304. *Command: CmdSelect
  305. {
  306. *Order: DOC_SETUP.4
  307. *Cmd: "<1B>~Q<000100>"
  308. }
  309. }
  310. *Option: Option2
  311. {
  312. *rcNameID: 285
  313. *Command: CmdSelect
  314. {
  315. *Order: DOC_SETUP.4
  316. *Cmd: "<1B>~Q<000101>"
  317. }
  318. }
  319. }
  320. *% ========== Halftone ==========
  321. *Feature: Halftone
  322. {
  323. *rcNameID: =HALFTONING_DISPLAY
  324. *DefaultOption: HT_PATSIZE_AUTO
  325. *Option: HT_PATSIZE_AUTO
  326. {
  327. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  328. }
  329. *Option: HT_PATSIZE_SUPERCELL_M
  330. {
  331. *rcNameID: =HT_SUPERCELL_DISPLAY
  332. }
  333. *Option: HT_PATSIZE_6x6_M
  334. {
  335. *rcNameID: =HT_DITHER6X6_DISPLAY
  336. }
  337. *Option: HT_PATSIZE_8x8_M
  338. {
  339. *rcNameID: =HT_DITHER8X8_DISPLAY
  340. }
  341. }
  342. *% ========== Memory ==========
  343. *Feature: Memory
  344. {
  345. *rcNameID: =PRINTER_MEMORY_DISPLAY
  346. *DefaultOption: Option1
  347. *Option: Option1
  348. {
  349. *rcNameID: 410
  350. *MemoryConfigKB: PAIR(1536, 1024)
  351. }
  352. *Option: 2560KB
  353. {
  354. *rcNameID: 411
  355. *MemoryConfigKB: PAIR(2560, 2048)
  356. }
  357. }
  358. *% ========== Job Control Command ==========
  359. *Command: CmdStartDoc
  360. {
  361. *Order: DOC_SETUP.1
  362. *Cmd: "<1B>~<010000>"
  363. }
  364. *Command: CmdEndJob
  365. {
  366. *Order: JOB_FINISH.1
  367. *Cmd: "<1B>~<010000>"
  368. }
  369. *Command: CmdCopies
  370. {
  371. *Order: DOC_SETUP.6
  372. *Cmd: "<1B>~3<000201>" %c[1,255]{NumOfCopies}
  373. }
  374. *% ========== InvalidCombination ==========
  375. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JAPANESE_POSTCARD)
  376. *InvalidCombination: LIST(InputBin.Option1, PaperSize.LEGAL)
  377. *InvalidCombination: LIST(InputBin.Option1, PaperSize.LETTER)
  378. *InvalidCombination: LIST(InputBin.Option1, PaperSize.CUSTOMSIZE)
  379. *InvalidCombination: LIST(InputBin.Option3, PaperSize.JAPANESE_POSTCARD)
  380. *InvalidCombination: LIST(InputBin.Option3, PaperSize.LEGAL)
  381. *InvalidCombination: LIST(InputBin.Option3, PaperSize.LETTER)
  382. *InvalidCombination: LIST(InputBin.Option3, PaperSize.CUSTOMSIZE)
  383. *% ========== Printer Capabilities ==========
  384. *RotateCoordinate?: FALSE
  385. *RotateRaster?: TRUE
  386. *RotateFont?: TRUE
  387. *TextCaps: LIST(TC_OP_STROKE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  388. *MemoryUsage: LIST(FONT)
  389. *% ========== Cursor Control ==========
  390. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  391. *XMoveThreshold: 0
  392. *YMoveThreshold: 0
  393. *XMoveUnit: 1440
  394. *YMoveUnit: 1440
  395. *Command: CmdXMoveAbsolute { *Cmd : "<1B>~<1C000305>" %m{DestX } }
  396. *Command: CmdXMoveRelRight { *Cmd : "<1B>~<1C000306>" %m{DestXRel } }
  397. *Command: CmdYMoveAbsolute
  398. {
  399. *CallbackID: 2
  400. *Params: LIST(DestY)
  401. }
  402. *Command: CmdYMoveRelDown
  403. {
  404. *CallbackID: 3
  405. *Params: LIST(DestYRel)
  406. }
  407. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %m{(LinefeedSpacing / 12) } }
  408. *Command: CmdCR { *Cmd : "<0D>" }
  409. *Command: CmdLF { *Cmd : "<0A>" }
  410. *Command: CmdFF { *Cmd : "<0C>" }
  411. *Command: CmdBackSpace { *Cmd : "<08>" }
  412. *EjectPageWithFF?: TRUE
  413. *% ========== Raster Data Emission ==========
  414. *OutputDataFormat: H_BYTE
  415. *OptimizeLeftBound?: TRUE
  416. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  417. *CursorYAfterSendBlockData: NO_MOVE
  418. *% ========== Device Fonts ==========
  419. *DefaultFont: 1
  420. *DefaultCTT: 0
  421. *CharPosition: BASELINE
  422. *DeviceFonts: LIST(1,2)
  423. *FontCartridge: FC1
  424. {
  425. *rcCartridgeNameID: 280
  426. *Fonts: LIST(5,6)
  427. }
  428. *FontCartridge: FC2
  429. {
  430. *rcCartridgeNameID: 281
  431. *Fonts: LIST(3,4)
  432. }
  433. *% ========== Font Simulation ==========
  434. *Command: CmdBoldOn { *Cmd : "<1B>~<0E000117>" }
  435. *Command: CmdBoldOff { *Cmd : "<1B>~<0E000118>" }
  436. *Command: CmdItalicOn { *Cmd : "<1B>~v<000E1000000000000000000103000000>" }
  437. *Command: CmdItalicOff { *Cmd : "<1B>~v<000E0000000000000000000000000000>" }
  438. *Command: CmdUnderlineOn { *Cmd : "<1B>~<11000101>" }
  439. *Command: CmdUnderlineOff { *Cmd : "<1B>~<11000100>" }
  440. *%========== RectFill ==========
  441. *MinGrayFill: 1
  442. *MaxGrayFill: 1
  443. *% *MinGrayFill: 1
  444. *% *MaxGrayFill: 100
  445. *Command: CmdSetRectWidth
  446. {
  447. *CallbackID: 30
  448. *Params: LIST(RectXSize)
  449. }
  450. *Command: CmdSetRectHeight
  451. {
  452. *CallbackID: 31
  453. *Params: LIST(RectYSize)
  454. }
  455. *% *Command: CmdRectBlackFill { *CallbackID: 32 }
  456. *Command: CmdRectWhiteFill { *CallbackID: 33 }