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.

554 lines
14 KiB

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