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.

706 lines
17 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IBQW3.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM QuietWriter III"
  10. *MasterUnits: PAIR(240, 240)
  11. *ResourceDLL: "ibqwres.dll"
  12. *PrinterType: SERIAL
  13. *FontCartSlots: 1
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: TRACTOR
  31. *Option: TRACTOR
  32. {
  33. *rcNameID: =TRACTOR_DISPLAY
  34. *Command: CmdSelect
  35. {
  36. *Order: DOC_SETUP.2
  37. *Cmd: "<1B>[F<0300030000>"
  38. }
  39. }
  40. *Option: UPPER
  41. {
  42. *rcNameID: =UPPER_TRAY_DISPLAY
  43. *Command: CmdSelect
  44. {
  45. *Order: DOC_SETUP.2
  46. *Cmd: "<1B>[F<0300030101>"
  47. }
  48. }
  49. *Option: LOWER
  50. {
  51. *rcNameID: =LOWER_TRAY_DISPLAY
  52. *Command: CmdSelect
  53. {
  54. *Order: DOC_SETUP.2
  55. *Cmd: "<1B>[F<0300030102>"
  56. }
  57. }
  58. *Option: ENVFEED
  59. {
  60. *rcNameID: =ENV_FEED_DISPLAY
  61. *Command: CmdSelect
  62. {
  63. *Order: DOC_SETUP.2
  64. *Cmd: "<1B>[F<0300030201>"
  65. }
  66. }
  67. }
  68. *Feature: Resolution
  69. {
  70. *rcNameID: =RESOLUTION_DISPLAY
  71. *DefaultOption: Option1
  72. *Option: Option1
  73. {
  74. *Name: "240 x 240 " =DOTS_PER_INCH
  75. *DPI: PAIR(240, 240)
  76. *TextDPI: PAIR(240, 240)
  77. *PinsPerLogPass: 8
  78. *PinsPerPhysPass: 8
  79. *MinStripBlankPixels: 180
  80. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  81. *SpotDiameter: 170
  82. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  83. }
  84. *Option: Option2
  85. {
  86. *Name: "60 x 60 " =DOTS_PER_INCH
  87. *DPI: PAIR(60, 60)
  88. *TextDPI: PAIR(60, 60)
  89. *PinsPerLogPass: 8
  90. *PinsPerPhysPass: 8
  91. *MinStripBlankPixels: 45
  92. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  93. *SpotDiameter: 100
  94. *Command: CmdSendBlockData { *Cmd : "<1B>K" %l{NumOfDataBytes } }
  95. }
  96. *Option: Option3
  97. {
  98. *Name: "120 x 120 " =DOTS_PER_INCH
  99. *DPI: PAIR(120, 120)
  100. *TextDPI: PAIR(120, 120)
  101. *PinsPerLogPass: 8
  102. *PinsPerPhysPass: 8
  103. *MinStripBlankPixels: 90
  104. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  105. *SpotDiameter: 140
  106. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  107. }
  108. }
  109. *Feature: PaperSize
  110. {
  111. *rcNameID: =PAPER_SIZE_DISPLAY
  112. *DefaultOption: LETTER
  113. *Option: LETTER
  114. {
  115. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  116. *CursorOrigin: PAIR(0, 0)
  117. *Command: CmdSelect
  118. {
  119. *Order: DOC_SETUP.3
  120. *Cmd: "<1B>2<1B>CB"
  121. }
  122. *switch: InputBin
  123. {
  124. *case: TRACTOR
  125. {
  126. *PrintableArea: PAIR(2040, 2640)
  127. *PrintableOrigin: PAIR(0, 0)
  128. }
  129. *case: UPPER
  130. {
  131. *PrintableArea: PAIR(2040, 2520)
  132. *PrintableOrigin: PAIR(0, 60)
  133. }
  134. *case: LOWER
  135. {
  136. *PrintableArea: PAIR(2040, 2520)
  137. *PrintableOrigin: PAIR(0, 60)
  138. }
  139. *case: ENVFEED
  140. {
  141. *PrintableArea: PAIR(2040, 2520)
  142. *PrintableOrigin: PAIR(0, 60)
  143. }
  144. }
  145. }
  146. *Option: LEGAL
  147. {
  148. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  149. *CursorOrigin: PAIR(0, 0)
  150. *Command: CmdSelect
  151. {
  152. *Order: DOC_SETUP.3
  153. *Cmd: "<1B>2<1B>CT"
  154. }
  155. *switch: InputBin
  156. {
  157. *case: TRACTOR
  158. {
  159. *PrintableArea: PAIR(2040, 3360)
  160. *PrintableOrigin: PAIR(0, 0)
  161. }
  162. *case: UPPER
  163. {
  164. *PrintableArea: PAIR(2040, 3240)
  165. *PrintableOrigin: PAIR(0, 60)
  166. }
  167. *case: LOWER
  168. {
  169. *PrintableArea: PAIR(2040, 3240)
  170. *PrintableOrigin: PAIR(0, 60)
  171. }
  172. *case: ENVFEED
  173. {
  174. *PrintableArea: PAIR(2040, 3240)
  175. *PrintableOrigin: PAIR(0, 60)
  176. }
  177. }
  178. }
  179. *Option: A4
  180. {
  181. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  182. *CursorOrigin: PAIR(0, 0)
  183. *Command: CmdSelect
  184. {
  185. *Order: DOC_SETUP.3
  186. *Cmd: "<1B>3<121B>Cu"
  187. }
  188. *switch: InputBin
  189. {
  190. *case: TRACTOR
  191. {
  192. *PrintableArea: PAIR(1985, 2806)
  193. *PrintableOrigin: PAIR(0, 0)
  194. *switch: Resolution
  195. {
  196. *case: Option2
  197. {
  198. *PrintableArea: PAIR(1984, 2804)
  199. }
  200. *case: Option3
  201. {
  202. *PrintableArea: PAIR(1984, 2806)
  203. }
  204. }
  205. }
  206. *case: UPPER
  207. {
  208. *PrintableArea: PAIR(1985, 2686)
  209. *PrintableOrigin: PAIR(0, 60)
  210. *switch: Resolution
  211. {
  212. *case: Option2
  213. {
  214. *PrintableArea: PAIR(1984, 2684)
  215. }
  216. *case: Option3
  217. {
  218. *PrintableArea: PAIR(1984, 2686)
  219. }
  220. }
  221. }
  222. *case: LOWER
  223. {
  224. *PrintableArea: PAIR(1985, 2686)
  225. *PrintableOrigin: PAIR(0, 60)
  226. *switch: Resolution
  227. {
  228. *case: Option2
  229. {
  230. *PrintableArea: PAIR(1984, 2684)
  231. }
  232. *case: Option3
  233. {
  234. *PrintableArea: PAIR(1984, 2686)
  235. }
  236. }
  237. }
  238. *case: ENVFEED
  239. {
  240. *PrintableArea: PAIR(1985, 2686)
  241. *PrintableOrigin: PAIR(0, 60)
  242. *switch: Resolution
  243. {
  244. *case: Option2
  245. {
  246. *PrintableArea: PAIR(1984, 2684)
  247. }
  248. *case: Option3
  249. {
  250. *PrintableArea: PAIR(1984, 2686)
  251. }
  252. }
  253. }
  254. }
  255. }
  256. *Option: B5
  257. {
  258. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  259. *CursorOrigin: PAIR(0, 0)
  260. *Command: CmdSelect
  261. {
  262. *Order: DOC_SETUP.3
  263. *Cmd: "<1B>2<1B>C="
  264. }
  265. *switch: InputBin
  266. {
  267. *case: TRACTOR
  268. {
  269. *PrintableArea: PAIR(1721, 2429)
  270. *PrintableOrigin: PAIR(0, 0)
  271. *switch: Resolution
  272. {
  273. *case: Option2
  274. {
  275. *PrintableArea: PAIR(1720, 2428)
  276. }
  277. *case: Option3
  278. {
  279. *PrintableArea: PAIR(1720, 2428)
  280. }
  281. }
  282. }
  283. *case: UPPER
  284. {
  285. *PrintableArea: PAIR(1721, 2309)
  286. *PrintableOrigin: PAIR(0, 60)
  287. *switch: Resolution
  288. {
  289. *case: Option2
  290. {
  291. *PrintableArea: PAIR(1720, 2308)
  292. }
  293. *case: Option3
  294. {
  295. *PrintableArea: PAIR(1720, 2308)
  296. }
  297. }
  298. }
  299. *case: LOWER
  300. {
  301. *PrintableArea: PAIR(1721, 2309)
  302. *PrintableOrigin: PAIR(0, 60)
  303. *switch: Resolution
  304. {
  305. *case: Option2
  306. {
  307. *PrintableArea: PAIR(1720, 2308)
  308. }
  309. *case: Option3
  310. {
  311. *PrintableArea: PAIR(1720, 2308)
  312. }
  313. }
  314. }
  315. *case: ENVFEED
  316. {
  317. *PrintableArea: PAIR(1721, 2309)
  318. *PrintableOrigin: PAIR(0, 60)
  319. *switch: Resolution
  320. {
  321. *case: Option2
  322. {
  323. *PrintableArea: PAIR(1720, 2308)
  324. }
  325. *case: Option3
  326. {
  327. *PrintableArea: PAIR(1720, 2308)
  328. }
  329. }
  330. }
  331. }
  332. }
  333. *Option: FANFOLD_US
  334. {
  335. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  336. *CursorOrigin: PAIR(0, 0)
  337. *Command: CmdSelect
  338. {
  339. *Order: DOC_SETUP.3
  340. *Cmd: "<1B>2<1B>CB"
  341. }
  342. *switch: InputBin
  343. {
  344. *case: TRACTOR
  345. {
  346. *PrintableArea: PAIR(3168, 2640)
  347. *PrintableOrigin: PAIR(0, 0)
  348. }
  349. *case: UPPER
  350. {
  351. *PrintableArea: PAIR(3168, 2520)
  352. *PrintableOrigin: PAIR(0, 60)
  353. }
  354. *case: LOWER
  355. {
  356. *PrintableArea: PAIR(3168, 2520)
  357. *PrintableOrigin: PAIR(0, 60)
  358. }
  359. *case: ENVFEED
  360. {
  361. *PrintableArea: PAIR(3168, 2520)
  362. *PrintableOrigin: PAIR(0, 60)
  363. }
  364. }
  365. }
  366. *Option: CUSTOMSIZE
  367. {
  368. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  369. *MinSize: PAIR(240, 240)
  370. *MaxSize: PAIR(3360, 32767)
  371. *MaxPrintableWidth: 3168
  372. *MinLeftMargin: 0
  373. *CenterPrintable?: FALSE
  374. *switch: InputBin
  375. {
  376. *case: TRACTOR
  377. {
  378. *TopMargin: 0
  379. *BottomMargin: 0
  380. }
  381. *case: UPPER
  382. {
  383. *TopMargin: 60
  384. *BottomMargin: 60
  385. }
  386. *case: LOWER
  387. {
  388. *TopMargin: 60
  389. *BottomMargin: 60
  390. }
  391. *case: ENVFEED
  392. {
  393. *TopMargin: 60
  394. *BottomMargin: 60
  395. }
  396. }
  397. }
  398. }
  399. *Feature: PrintQuality
  400. {
  401. *rcNameID: =TEXT_QUALITY_DISPLAY
  402. *DefaultOption: NEAR_LETTER_QUALITY
  403. *Option: NEAR_LETTER_QUALITY
  404. {
  405. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  406. *Command: CmdSelect
  407. {
  408. *Order: DOC_SETUP.4
  409. *Cmd: "<1B>I<02>"
  410. }
  411. }
  412. *Option: DRAFT_QUALITY
  413. {
  414. *rcNameID: =DRAFT_QUALITY_DISPLAY
  415. *Command: CmdSelect
  416. {
  417. *Order: DOC_SETUP.4
  418. *Cmd: "<1B>I<01>"
  419. }
  420. }
  421. }
  422. *Feature: Halftone
  423. {
  424. *rcNameID: =HALFTONING_DISPLAY
  425. *DefaultOption: HT_PATSIZE_AUTO
  426. *Option: HT_PATSIZE_AUTO
  427. {
  428. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  429. }
  430. *Ifdef: WINNT_50
  431. *Option: HT_PATSIZE_SUPERCELL_M
  432. {
  433. *rcNameID: =HT_SUPERCELL_DISPLAY
  434. }
  435. *Endif:
  436. *Option: HT_PATSIZE_6x6_M
  437. {
  438. *rcNameID: =HT_DITHER6X6_DISPLAY
  439. }
  440. *Option: HT_PATSIZE_8x8_M
  441. {
  442. *rcNameID: =HT_DITHER8X8_DISPLAY
  443. }
  444. }
  445. *Command: CmdStartDoc
  446. {
  447. *Order: DOC_SETUP.1
  448. *Cmd: "<1B>6<1B>n<021B>[\<04000000F0000D1B>[T<0500000001B5001B>W0"
  449. }
  450. *Command: CmdStartPage
  451. {
  452. *Order: PAGE_SETUP.1
  453. *Cmd: "<0D>"
  454. }
  455. *Command: CmdEndJob
  456. {
  457. *Order: JOB_FINISH.1
  458. *Cmd: "<0D>"
  459. }
  460. *RotateCoordinate?: FALSE
  461. *RotateRaster?: FALSE
  462. *RotateFont?: FALSE
  463. *switch: Orientation
  464. {
  465. *case: PORTRAIT
  466. {
  467. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_RA_ABLE)
  468. }
  469. *case: LANDSCAPE_CC270
  470. {
  471. *TextCaps: LIST(TC_RA_ABLE)
  472. }
  473. }
  474. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  475. *YMoveAttributes: LIST(SEND_CR_FIRST)
  476. *XMoveThreshold: *
  477. *YMoveThreshold: *
  478. *XMoveUnit: 120
  479. *YMoveUnit: 240
  480. *Command: CmdXMoveRelRight { *Cmd : "<1B>d" %l{(DestXRel / 2) } }
  481. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat(DestYRel )} }
  482. *Command: CmdCR { *Cmd : "<0D>" }
  483. *Command: CmdLF { *Cmd : "<0A>" }
  484. *Command: CmdFF { *Cmd : "<0C>" }
  485. *Command: CmdBackSpace { *Cmd : "<08>" }
  486. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<00>" }
  487. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<01>" }
  488. *EjectPageWithFF?: FALSE
  489. *switch: InputBin
  490. {
  491. *case: UPPER
  492. {
  493. *EjectPageWithFF?: TRUE
  494. }
  495. *case: LOWER
  496. {
  497. *EjectPageWithFF?: TRUE
  498. }
  499. *case: ENVFEED
  500. {
  501. *EjectPageWithFF?: TRUE
  502. }
  503. }
  504. *OutputDataFormat: V_BYTE
  505. *OptimizeLeftBound?: FALSE
  506. *CursorXAfterSendBlockData: AT_GRXDATA_END
  507. *CursorYAfterSendBlockData: NO_MOVE
  508. *DefaultFont: 2
  509. *DefaultCTT: 0
  510. *switch: Orientation
  511. {
  512. *case: PORTRAIT
  513. {
  514. *DeviceFonts: LIST(1,2,3,5)
  515. }
  516. *case: LANDSCAPE_CC270
  517. {
  518. *DeviceFonts: LIST()
  519. }
  520. }
  521. *FontCartridge: FC1
  522. {
  523. *rcCartridgeNameID: 258
  524. *PortraitFonts: LIST(29)
  525. *LandscapeFonts: LIST()
  526. }
  527. *FontCartridge: FC2
  528. {
  529. *rcCartridgeNameID: 259
  530. *PortraitFonts: LIST(7,9,10,12)
  531. *LandscapeFonts: LIST()
  532. }
  533. *FontCartridge: FC3
  534. {
  535. *rcCartridgeNameID: 260
  536. *PortraitFonts: LIST(18,20,23,25)
  537. *LandscapeFonts: LIST()
  538. }
  539. *FontCartridge: FC4
  540. {
  541. *rcCartridgeNameID: 261
  542. *PortraitFonts: LIST(28)
  543. *LandscapeFonts: LIST()
  544. }
  545. *FontCartridge: FC5
  546. {
  547. *rcCartridgeNameID: 262
  548. *PortraitFonts: LIST(26,30)
  549. *LandscapeFonts: LIST()
  550. }
  551. *FontCartridge: FC6
  552. {
  553. *rcCartridgeNameID: 263
  554. *PortraitFonts: LIST(27,31)
  555. *LandscapeFonts: LIST()
  556. }
  557. *FontCartridge: FC7
  558. {
  559. *rcCartridgeNameID: 264
  560. *PortraitFonts: LIST(7)
  561. *LandscapeFonts: LIST()
  562. }
  563. *FontCartridge: FC8
  564. {
  565. *rcCartridgeNameID: 265
  566. *PortraitFonts: LIST(30)
  567. *LandscapeFonts: LIST()
  568. }
  569. *FontCartridge: FC9
  570. {
  571. *rcCartridgeNameID: 266
  572. *PortraitFonts: LIST(31)
  573. *LandscapeFonts: LIST()
  574. }
  575. *FontCartridge: FC10
  576. {
  577. *rcCartridgeNameID: 267
  578. *PortraitFonts: LIST(28)
  579. *LandscapeFonts: LIST()
  580. }
  581. *FontCartridge: FC11
  582. {
  583. *rcCartridgeNameID: 268
  584. *PortraitFonts: LIST(9)
  585. *LandscapeFonts: LIST()
  586. }
  587. *FontCartridge: FC12
  588. {
  589. *rcCartridgeNameID: 269
  590. *PortraitFonts: LIST(11)
  591. *LandscapeFonts: LIST()
  592. }
  593. *FontCartridge: FC13
  594. {
  595. *rcCartridgeNameID: 270
  596. *PortraitFonts: LIST(6)
  597. *LandscapeFonts: LIST()
  598. }
  599. *FontCartridge: FC14
  600. {
  601. *rcCartridgeNameID: 271
  602. *PortraitFonts: LIST(8)
  603. *LandscapeFonts: LIST()
  604. }
  605. *FontCartridge: FC15
  606. {
  607. *rcCartridgeNameID: 272
  608. *PortraitFonts: LIST(13)
  609. *LandscapeFonts: LIST()
  610. }
  611. *FontCartridge: FC16
  612. {
  613. *rcCartridgeNameID: 273
  614. *PortraitFonts: LIST(10)
  615. *LandscapeFonts: LIST()
  616. }
  617. *FontCartridge: FC17
  618. {
  619. *rcCartridgeNameID: 274
  620. *PortraitFonts: LIST(16)
  621. *LandscapeFonts: LIST()
  622. }
  623. *FontCartridge: FC18
  624. {
  625. *rcCartridgeNameID: 275
  626. *PortraitFonts: LIST(25)
  627. *LandscapeFonts: LIST()
  628. }
  629. *FontCartridge: FC19
  630. {
  631. *rcCartridgeNameID: 276
  632. *PortraitFonts: LIST(14)
  633. *LandscapeFonts: LIST()
  634. }
  635. *FontCartridge: FC20
  636. {
  637. *rcCartridgeNameID: 277
  638. *PortraitFonts: LIST(18)
  639. *LandscapeFonts: LIST()
  640. }
  641. *FontCartridge: FC21
  642. {
  643. *rcCartridgeNameID: 278
  644. *PortraitFonts: LIST(21)
  645. *LandscapeFonts: LIST()
  646. }
  647. *FontCartridge: FC22
  648. {
  649. *rcCartridgeNameID: 279
  650. *PortraitFonts: LIST(26)
  651. *LandscapeFonts: LIST()
  652. }
  653. *FontCartridge: FC23
  654. {
  655. *rcCartridgeNameID: 280
  656. *PortraitFonts: LIST(27)
  657. *LandscapeFonts: LIST()
  658. }
  659. *FontCartridge: FC24
  660. {
  661. *rcCartridgeNameID: 281
  662. *PortraitFonts: LIST(28)
  663. *LandscapeFonts: LIST()
  664. }
  665. *FontCartridge: FC25
  666. {
  667. *rcCartridgeNameID: 282
  668. *PortraitFonts: LIST(20)
  669. *LandscapeFonts: LIST()
  670. }
  671. *FontCartridge: FC26
  672. {
  673. *rcCartridgeNameID: 283
  674. *PortraitFonts: LIST(24)
  675. *LandscapeFonts: LIST()
  676. }
  677. *FontCartridge: FC27
  678. {
  679. *rcCartridgeNameID: 284
  680. *PortraitFonts: LIST(15)
  681. *LandscapeFonts: LIST()
  682. }
  683. *FontCartridge: FC28
  684. {
  685. *rcCartridgeNameID: 285
  686. *PortraitFonts: LIST(19)
  687. *LandscapeFonts: LIST()
  688. }
  689. *FontCartridge: FC29
  690. {
  691. *rcCartridgeNameID: 286
  692. *PortraitFonts: LIST(29)
  693. *LandscapeFonts: LIST()
  694. }
  695. *FontCartridge: FC30
  696. {
  697. *rcCartridgeNameID: 287
  698. *PortraitFonts: LIST(23)
  699. *LandscapeFonts: LIST()
  700. }
  701. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  702. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  703. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  704. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  705. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>P<01>" }
  706. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>P<00>" }