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.

574 lines
17 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "IB5573GJ.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "IBM 5573-G02"
  11. *MasterUnits: PAIR(1440, 1440)
  12. *ResourceDLL: "ib557res.dll"
  13. *PrinterType: SERIAL
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. *Command: CmdSelect
  22. {
  23. *Order: DOC_SETUP.4
  24. *Cmd: "<1B>~<0E00010C>"
  25. }
  26. }
  27. *Option: LANDSCAPE_CC270
  28. {
  29. *rcNameID: =LANDSCAPE_DISPLAY
  30. *Command: CmdSelect
  31. {
  32. *Order: DOC_SETUP.4
  33. *Cmd: "<1B>~<0E00010B>"
  34. }
  35. }
  36. }
  37. *Feature: InputBin
  38. {
  39. *rcNameID: =PAPER_SOURCE_DISPLAY
  40. *DefaultOption: Option1
  41. *Option: Option1
  42. {
  43. *rcNameID: 306
  44. }
  45. *Option: Option2
  46. {
  47. *rcNameID: 307
  48. }
  49. }
  50. *Feature: Resolution
  51. {
  52. *rcNameID: =RESOLUTION_DISPLAY
  53. *DefaultOption: Option1
  54. *Option: Option1
  55. {
  56. *Name: "180 x 180 dots per inch"
  57. *DPI: PAIR(180, 180)
  58. *TextDPI: PAIR(180, 180)
  59. *PinsPerLogPass: 24
  60. *PinsPerPhysPass: 24
  61. *MinStripBlankPixels: 32
  62. *RequireUniDir?: TRUE
  63. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  64. *SpotDiameter: 140
  65. *Command: CmdSendBlockData { *Cmd : "<1B>%%1" %m{NumOfDataBytes / 3} }
  66. }
  67. }
  68. *Feature: PaperSize
  69. {
  70. *rcNameID: =PAPER_SIZE_DISPLAY
  71. *DefaultOption: A4
  72. *Option: A4
  73. {
  74. *rcNameID: =A4_DISPLAY
  75. *Command: CmdSelect
  76. {
  77. *Order: DOC_SETUP.5
  78. *Cmd: "<1B>~<0400030000>F"
  79. }
  80. *switch: InputBin
  81. {
  82. *case: Option1
  83. {
  84. *PrintableArea: PAIR(11189, 15834)
  85. *PrintableOrigin: PAIR(360, 360)
  86. *switch: Resolution
  87. {
  88. *case: Option1
  89. {
  90. *% Warning: the following printable width is adjusted (11189->11184) so it is divisible by the resolution X scale.
  91. *% Warning: the following printable length is adjusted (15834->15832) so it is divisible by the resolution Y scale.
  92. *PrintableArea: PAIR(11184, 15832)
  93. }
  94. }
  95. }
  96. *case: Option2
  97. {
  98. *PrintableArea: PAIR(11189, 15834)
  99. *PrintableOrigin: PAIR(360, 360)
  100. *switch: Resolution
  101. {
  102. *case: Option1
  103. {
  104. *% Warning: the following printable width is adjusted (11189->11184) so it is divisible by the resolution X scale.
  105. *% Warning: the following printable length is adjusted (15834->15832) so it is divisible by the resolution Y scale.
  106. *PrintableArea: PAIR(11184, 15832)
  107. }
  108. }
  109. }
  110. }
  111. }
  112. *Option: A5
  113. {
  114. *rcNameID: =A5_DISPLAY
  115. *Command: CmdSelect
  116. {
  117. *Order: DOC_SETUP.5
  118. *Cmd: "<1B>~<0400030000>1"
  119. }
  120. *switch: InputBin
  121. {
  122. *case: Option1
  123. {
  124. *PrintableArea: PAIR(7675, 10909)
  125. *PrintableOrigin: PAIR(360, 360)
  126. *switch: Resolution
  127. {
  128. *case: Option1
  129. {
  130. *% Warning: the following printable width is adjusted (7675->7672) so it is divisible by the resolution X scale.
  131. *% Warning: the following printable length is adjusted (10909->10904) so it is divisible by the resolution Y scale.
  132. *PrintableArea: PAIR(7672, 10904)
  133. }
  134. }
  135. }
  136. *case: Option2
  137. {
  138. *PrintableArea: PAIR(7675, 10909)
  139. *PrintableOrigin: PAIR(360, 360)
  140. *switch: Resolution
  141. {
  142. *case: Option1
  143. {
  144. *% Warning: the following printable width is adjusted (7675->7672) so it is divisible by the resolution X scale.
  145. *% Warning: the following printable length is adjusted (10909->10904) so it is divisible by the resolution Y scale.
  146. *PrintableArea: PAIR(7672, 10904)
  147. }
  148. }
  149. }
  150. }
  151. }
  152. *Option: Option3
  153. {
  154. *rcNameID: 261
  155. *PageDimensions: PAIR(11909, 8395)
  156. *Command: CmdSelect
  157. {
  158. *Order: DOC_SETUP.5
  159. *Cmd: "<1B>~<0400030000>%""
  160. }
  161. *switch: InputBin
  162. {
  163. *case: Option1
  164. {
  165. *PrintableArea: PAIR(11189, 7395)
  166. *PrintableOrigin: PAIR(360, 360)
  167. *switch: Resolution
  168. {
  169. *case: Option1
  170. {
  171. *% Warning: the following printable width is adjusted (11189->11184) so it is divisible by the resolution X scale.
  172. *% Warning: the following printable length is adjusted (7395->7392) so it is divisible by the resolution Y scale.
  173. *PrintableArea: PAIR(11184, 7392)
  174. }
  175. }
  176. }
  177. *case: Option2
  178. {
  179. *PrintableArea: PAIR(11189, 7395)
  180. *PrintableOrigin: PAIR(360, 360)
  181. *switch: Resolution
  182. {
  183. *case: Option1
  184. {
  185. *% Warning: the following printable width is adjusted (11189->11184) so it is divisible by the resolution X scale.
  186. *% Warning: the following printable length is adjusted (7395->7392) so it is divisible by the resolution Y scale.
  187. *PrintableArea: PAIR(11184, 7392)
  188. }
  189. }
  190. }
  191. }
  192. }
  193. *Option: B5
  194. {
  195. *rcNameID: =B5_DISPLAY
  196. *Command: CmdSelect
  197. {
  198. *Order: DOC_SETUP.5
  199. *Cmd: "<1B>~<0400030000>%<"
  200. }
  201. *switch: InputBin
  202. {
  203. *case: Option1
  204. {
  205. *PrintableArea: PAIR(9605, 13573)
  206. *PrintableOrigin: PAIR(360, 360)
  207. *switch: Resolution
  208. {
  209. *case: Option1
  210. {
  211. *% Warning: the following printable width is adjusted (9605->9600) so it is divisible by the resolution X scale.
  212. *% Warning: the following printable length is adjusted (13573->13568) so it is divisible by the resolution Y scale.
  213. *PrintableArea: PAIR(9600, 13568)
  214. }
  215. }
  216. }
  217. *case: Option2
  218. {
  219. *PrintableArea: PAIR(9605, 13573)
  220. *PrintableOrigin: PAIR(360, 360)
  221. *switch: Resolution
  222. {
  223. *case: Option1
  224. {
  225. *% Warning: the following printable width is adjusted (9605->9600) so it is divisible by the resolution X scale.
  226. *% Warning: the following printable length is adjusted (13573->13568) so it is divisible by the resolution Y scale.
  227. *PrintableArea: PAIR(9600, 13568)
  228. }
  229. }
  230. }
  231. }
  232. }
  233. *Option: Option5
  234. {
  235. *rcNameID: 264
  236. *PageDimensions: PAIR(14573, 10325)
  237. *Command: CmdSelect
  238. {
  239. *Order: DOC_SETUP.5
  240. *Cmd: "<1B>~<0400030000>+"
  241. }
  242. *switch: InputBin
  243. {
  244. *case: Option1
  245. {
  246. *PrintableArea: PAIR(11520, 9325)
  247. *PrintableOrigin: PAIR(360, 360)
  248. *switch: Resolution
  249. {
  250. *case: Option1
  251. {
  252. *% Warning: the following printable length is adjusted (9325->9320) so it is divisible by the resolution Y scale.
  253. *PrintableArea: PAIR(11520, 9320)
  254. }
  255. }
  256. }
  257. *case: Option2
  258. {
  259. *PrintableArea: PAIR(11520, 9325)
  260. *PrintableOrigin: PAIR(360, 360)
  261. *switch: Resolution
  262. {
  263. *case: Option1
  264. {
  265. *% Warning: the following printable length is adjusted (9325->9320) so it is divisible by the resolution Y scale.
  266. *PrintableArea: PAIR(11520, 9320)
  267. }
  268. }
  269. }
  270. }
  271. }
  272. *Option: LETTER
  273. {
  274. *rcNameID: =LETTER_DISPLAY
  275. *Command: CmdSelect
  276. {
  277. *Order: DOC_SETUP.5
  278. *Cmd: "<1B>~<04000202>B"
  279. }
  280. *switch: InputBin
  281. {
  282. *case: Option1
  283. {
  284. *PrintableArea: PAIR(11520, 14840)
  285. *PrintableOrigin: PAIR(360, 360)
  286. }
  287. *case: Option2
  288. {
  289. *PrintableArea: PAIR(11520, 14840)
  290. *PrintableOrigin: PAIR(360, 360)
  291. }
  292. }
  293. }
  294. *Option: JAPANESE_POSTCARD
  295. {
  296. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  297. *Command: CmdSelect
  298. {
  299. *Order: DOC_SETUP.5
  300. *Cmd: "<1B>~<0400030000>%""
  301. }
  302. *switch: InputBin
  303. {
  304. *case: Option1
  305. {
  306. *PrintableArea: PAIR(4954, 7395)
  307. *PrintableOrigin: PAIR(360, 360)
  308. *switch: Resolution
  309. {
  310. *case: Option1
  311. {
  312. *% Warning: the following printable width is adjusted (4954->4952) so it is divisible by the resolution X scale.
  313. *% Warning: the following printable length is adjusted (7395->7392) so it is divisible by the resolution Y scale.
  314. *PrintableArea: PAIR(4952, 7392)
  315. }
  316. }
  317. }
  318. *case: Option2
  319. {
  320. *PrintableArea: PAIR(4954, 7395)
  321. *PrintableOrigin: PAIR(360, 360)
  322. *switch: Resolution
  323. {
  324. *case: Option1
  325. {
  326. *% Warning: the following printable width is adjusted (4954->4952) so it is divisible by the resolution X scale.
  327. *% Warning: the following printable length is adjusted (7395->7392) so it is divisible by the resolution Y scale.
  328. *PrintableArea: PAIR(4952, 7392)
  329. }
  330. }
  331. }
  332. }
  333. }
  334. *Option: Option8
  335. {
  336. *rcNameID: 266
  337. *PageDimensions: PAIR(8391, 5669)
  338. *Command: CmdSelect
  339. {
  340. *Order: DOC_SETUP.5
  341. *Cmd: "<1B>~<040003000017>"
  342. }
  343. *switch: InputBin
  344. {
  345. *case: Option1
  346. {
  347. *PrintableArea: PAIR(7632, 4616)
  348. *PrintableOrigin: PAIR(360, 360)
  349. }
  350. *case: Option2
  351. {
  352. *PrintableArea: PAIR(7632, 4616)
  353. *PrintableOrigin: PAIR(360, 360)
  354. }
  355. }
  356. }
  357. *Option: Option9
  358. {
  359. *rcNameID: 267
  360. *PageDimensions: PAIR(12240, 15840)
  361. *Command: CmdSelect
  362. {
  363. *Order: DOC_SETUP.5
  364. *Cmd: "<1B>~<040002020B>"
  365. }
  366. *switch: InputBin
  367. {
  368. *case: Option1
  369. {
  370. *PrintableArea: PAIR(10800, 15120)
  371. *PrintableOrigin: PAIR(360, 360)
  372. }
  373. *case: Option2
  374. {
  375. *PrintableArea: PAIR(10800, 15840)
  376. *PrintableOrigin: PAIR(360, 0)
  377. }
  378. }
  379. }
  380. *Option: Option10
  381. {
  382. *rcNameID: 268
  383. *PageDimensions: PAIR(14400, 15840)
  384. *Command: CmdSelect
  385. {
  386. *Order: DOC_SETUP.5
  387. *Cmd: "<1B>~<040002020B>"
  388. }
  389. *switch: InputBin
  390. {
  391. *case: Option1
  392. {
  393. *PrintableArea: PAIR(11520, 15120)
  394. *PrintableOrigin: PAIR(360, 360)
  395. }
  396. *case: Option2
  397. {
  398. *PrintableArea: PAIR(11520, 15840)
  399. *PrintableOrigin: PAIR(360, 0)
  400. }
  401. }
  402. }
  403. *Option: CUSTOMSIZE
  404. {
  405. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  406. *MinSize: PAIR(2880, 2880)
  407. *MaxSize: PAIR(14400, 31680)
  408. *MaxPrintableWidth: 11520
  409. *switch: InputBin
  410. {
  411. *case: Option1
  412. {
  413. *CustPrintableSizeX: %d{min(11520, PhysPaperWidth)}
  414. *CustPrintableSizeY: %d{PhysPaperLength-(410+410)}
  415. *CustPrintableOriginX: %d{400}
  416. *CustPrintableOriginY: %d{400}
  417. *CustCursorOriginX: %d{400}
  418. *CustCursorOriginY: %d{400}
  419. }
  420. *case: Option2
  421. {
  422. *CustPrintableSizeX: %d{min(11520, PhysPaperWidth)}
  423. *CustPrintableSizeY: %d{PhysPaperLength-(410+410)}
  424. *CustPrintableOriginX: %d{400}
  425. *CustPrintableOriginY: %d{400}
  426. *CustCursorOriginX: %d{400}
  427. *CustCursorOriginY: %d{400}
  428. }
  429. }
  430. *Command: CmdSelect
  431. {
  432. *Order: DOC_SETUP.5
  433. *Cmd: "<1B>~<04000300>" %m[0,132]{(PhysPaperLength / 240) }
  434. }
  435. }
  436. }
  437. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A4)
  438. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A5)
  439. *InvalidCombination: LIST(InputBin.Option2, PaperSize.Option3)
  440. *InvalidCombination: LIST(InputBin.Option2, PaperSize.B5)
  441. *InvalidCombination: LIST(InputBin.Option2, PaperSize.Option5)
  442. *InvalidCombination: LIST(InputBin.Option2, PaperSize.LETTER)
  443. *InvalidCombination: LIST(InputBin.Option2, PaperSize.JAPANESE_POSTCARD)
  444. *InvalidCombination: LIST(InputBin.Option2, PaperSize.Option8)
  445. *Feature: PrintQuality
  446. {
  447. *rcNameID: =TEXT_QUALITY_DISPLAY
  448. *DefaultOption: Option1
  449. *Option: Option1
  450. {
  451. *rcNameID: 308
  452. *Command: CmdSelect
  453. {
  454. *Order: DOC_SETUP.3
  455. *Cmd: "<1B>%%B<1B>~<0E0001021B>~<0E00011A>"
  456. }
  457. }
  458. *Option: Option2
  459. {
  460. *rcNameID: 309
  461. *Command: CmdSelect
  462. {
  463. *Order: DOC_SETUP.3
  464. *Cmd: "<1B>%%U<1B>~<0E0001021B>~<0E00011A>"
  465. }
  466. }
  467. *Option: Option3
  468. {
  469. *rcNameID: 310
  470. *Command: CmdSelect
  471. {
  472. *Order: DOC_SETUP.3
  473. *Cmd: "<1B>%%B<1B>~<0E0001011B>~<0E00011A>"
  474. }
  475. }
  476. *Option: Option4
  477. {
  478. *rcNameID: 311
  479. *Command: CmdSelect
  480. {
  481. *Order: DOC_SETUP.3
  482. *Cmd: "<1B>%%U<1B>~<0E0001011B>~<0E00011A>"
  483. }
  484. }
  485. *Option: Option5
  486. {
  487. *rcNameID: 312
  488. *Command: CmdSelect
  489. {
  490. *Order: DOC_SETUP.3
  491. *Cmd: "<1B>%%B<1B>~<0E0001021B>~<0E000119>"
  492. }
  493. }
  494. }
  495. *Feature: Halftone
  496. {
  497. *rcNameID: =HALFTONING_DISPLAY
  498. *DefaultOption: HT_PATSIZE_AUTO
  499. *Option: HT_PATSIZE_AUTO
  500. {
  501. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  502. }
  503. *Option: HT_PATSIZE_SUPERCELL_M
  504. {
  505. *rcNameID: =HT_SUPERCELL_DISPLAY
  506. }
  507. *Option: HT_PATSIZE_6x6_M
  508. {
  509. *rcNameID: =HT_DITHER6X6_DISPLAY
  510. }
  511. *Option: HT_PATSIZE_8x8_M
  512. {
  513. *rcNameID: =HT_DITHER8X8_DISPLAY
  514. }
  515. }
  516. *Command: CmdStartDoc
  517. {
  518. *Order: DOC_SETUP.1
  519. *Cmd: "<1B7E12000111><1B>~<0100001B>~<020001>K<1B>~<030001>K"
  520. }
  521. *Command: CmdStartPage
  522. {
  523. *Order: PAGE_SETUP.1
  524. *Cmd: "<0D>"
  525. }
  526. *Command: CmdEndJob
  527. {
  528. *Order: JOB_FINISH.1
  529. *Cmd: "<1B>~<010000>"
  530. }
  531. *Command: CmdEndPage
  532. {
  533. *Order: PAGE_FINISH.1
  534. *Cmd: "<0D>"
  535. }
  536. *RotateCoordinate?: FALSE
  537. *RotateRaster?: FALSE
  538. *RotateFont?: FALSE
  539. *TextCaps: LIST(TC_OP_STROKE,TC_RA_ABLE)
  540. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  541. *YMoveAttributes: LIST(SEND_CR_FIRST)
  542. *XMoveThreshold: *
  543. *YMoveThreshold: *
  544. *XMoveUnit: 180
  545. *YMoveUnit: 120
  546. *Command: CmdXMoveRelRight { *Cmd : "<1B>%%3" %m[1,2448]{max_repeat((DestXRel / 8) )} }
  547. *Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %m[1,255]{max_repeat((DestYRel / 12) )} }
  548. *Command: CmdCR { *Cmd : "<0D>" }
  549. *Command: CmdLF { *Cmd : "<0A>" }
  550. *Command: CmdFF { *Cmd : "<0C>" }
  551. *Command: CmdBackSpace { *Cmd : "<08>" }
  552. *EjectPageWithFF?: TRUE
  553. *OutputDataFormat: V_BYTE
  554. *OptimizeLeftBound?: FALSE
  555. *CursorXAfterSendBlockData: AT_GRXDATA_END
  556. *CursorYAfterSendBlockData: NO_MOVE
  557. *DefaultFont: 4
  558. *DefaultCTT: 0
  559. *CharPosition: BASELINE
  560. *switch: Orientation
  561. {
  562. *case: PORTRAIT
  563. {
  564. *DeviceFonts: LIST(1,2,3,4,5)
  565. }
  566. *case: LANDSCAPE_CC270
  567. {
  568. *DeviceFonts: LIST()
  569. }
  570. }
  571. *Command: CmdBoldOn { *Cmd : "<1B>~<0E000117>" }
  572. *Command: CmdBoldOff { *Cmd : "<1B>~<0E000118>" }
  573. *Command: CmdUnderlineOn { *Cmd : "<1B>~<0E00010E>" }
  574. *Command: CmdUnderlineOff { *Cmd : "<1B>~<0E00010F>" }