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.

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