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.

528 lines
13 KiB

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