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.

699 lines
19 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *Include: "StdNames.gpd"
  6. *MasterUnits: PAIR(720, 432)
  7. *ResourceDLL: "br9res.dll"
  8. *PrintRate: 300
  9. *PrintRateUnit: CPS
  10. *PrinterType: SERIAL
  11. *Feature: Orientation
  12. {
  13. *rcNameID: =ORIENTATION_DISPLAY
  14. *DefaultOption: PORTRAIT
  15. *Option: PORTRAIT
  16. {
  17. *rcNameID: =PORTRAIT_DISPLAY
  18. }
  19. *Option: LANDSCAPE_CC270
  20. {
  21. *rcNameID: =LANDSCAPE_DISPLAY
  22. }
  23. }
  24. *Feature: InputBin
  25. {
  26. *rcNameID: =PAPER_SOURCE_DISPLAY
  27. *DefaultOption: TRACTOR
  28. *Option: TRACTOR
  29. {
  30. *rcNameID: =TRACTOR_DISPLAY
  31. *Command: CmdSelect
  32. {
  33. *Order: DOC_SETUP.3
  34. *Cmd: "<1B1900>"
  35. }
  36. }
  37. *Option: AUTO
  38. {
  39. *rcNameID: =AUTO_DISPLAY
  40. *Command: CmdSelect
  41. {
  42. *Order: DOC_SETUP.3
  43. *Cmd: "<1B1904>"
  44. }
  45. }
  46. *Option: MANUAL
  47. {
  48. *rcNameID: =MANUAL_FEED_DISPLAY
  49. }
  50. }
  51. *Feature: Resolution
  52. {
  53. *rcNameID: =RESOLUTION_DISPLAY
  54. *DefaultOption: Option1
  55. *Option: Option1
  56. {
  57. *Name: "120 x 144 " =DOTS_PER_INCH
  58. *DPI: PAIR(120, 144)
  59. *TextDPI: PAIR(120, 144)
  60. *PinsPerLogPass: 16
  61. *PinsPerPhysPass: 8
  62. *MinStripBlankPixels: 120
  63. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  64. *SpotDiameter: 100
  65. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  66. }
  67. *Option: Option2
  68. {
  69. *Name: "240 x 144 " =DOTS_PER_INCH
  70. *DPI: PAIR(240, 144)
  71. *TextDPI: PAIR(240, 144)
  72. *PinsPerLogPass: 16
  73. *PinsPerPhysPass: 8
  74. *MinStripBlankPixels: 240
  75. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  76. *SpotDiameter: 170
  77. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  78. }
  79. *Option: Option3
  80. {
  81. *Name: "120 x 72 " =DOTS_PER_INCH
  82. *DPI: PAIR(120, 72)
  83. *TextDPI: PAIR(120, 72)
  84. *PinsPerLogPass: 8
  85. *PinsPerPhysPass: 8
  86. *MinStripBlankPixels: 120
  87. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  88. *SpotDiameter: 100
  89. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  90. }
  91. }
  92. *Feature: PaperSize
  93. {
  94. *rcNameID: =PAPER_SIZE_DISPLAY
  95. *DefaultOption: LETTER
  96. *Option: LETTER
  97. {
  98. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  99. *Command: CmdSelect
  100. {
  101. *Order: DOC_SETUP.4
  102. *Cmd: "<1B>C<000B>"
  103. }
  104. *switch: InputBin
  105. {
  106. *case: TRACTOR
  107. {
  108. *PrintableArea: PAIR(6120, 4752)
  109. *PrintableOrigin: PAIR(0, 0)
  110. }
  111. *case: AUTO
  112. {
  113. *PrintableArea: PAIR(6120, 4104)
  114. *PrintableOrigin: PAIR(0, 360)
  115. }
  116. *case: MANUAL
  117. {
  118. *PrintableArea: PAIR(6120, 4104)
  119. *PrintableOrigin: PAIR(0, 360)
  120. }
  121. }
  122. }
  123. *Option: LEGAL
  124. {
  125. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  126. *Command: CmdSelect
  127. {
  128. *Order: DOC_SETUP.4
  129. *Cmd: "<1B>C<000E>"
  130. }
  131. *switch: InputBin
  132. {
  133. *case: TRACTOR
  134. {
  135. *PrintableArea: PAIR(6120, 6048)
  136. *PrintableOrigin: PAIR(0, 0)
  137. }
  138. *case: AUTO
  139. {
  140. *PrintableArea: PAIR(6120, 5400)
  141. *PrintableOrigin: PAIR(0, 360)
  142. }
  143. *case: MANUAL
  144. {
  145. *PrintableArea: PAIR(6120, 5400)
  146. *PrintableOrigin: PAIR(0, 360)
  147. }
  148. }
  149. }
  150. *Option: A5
  151. {
  152. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  153. *Command: CmdSelect
  154. {
  155. *Order: DOC_SETUP.4
  156. *Cmd: "<1B>2<1B>C2"
  157. }
  158. *switch: InputBin
  159. {
  160. *case: TRACTOR
  161. {
  162. *PrintableArea: PAIR(4198, 3573)
  163. *PrintableOrigin: PAIR(0, 0)
  164. *switch: Resolution
  165. {
  166. *case: Option1
  167. {
  168. *PrintableArea: PAIR(4194, 3573)
  169. }
  170. *case: Option2
  171. {
  172. *PrintableArea: PAIR(4197, 3573)
  173. }
  174. *case: Option3
  175. {
  176. *PrintableArea: PAIR(4194, 3570)
  177. }
  178. }
  179. }
  180. *case: AUTO
  181. {
  182. *PrintableArea: PAIR(4198, 2925)
  183. *PrintableOrigin: PAIR(0, 360)
  184. *switch: Resolution
  185. {
  186. *case: Option1
  187. {
  188. *PrintableArea: PAIR(4194, 2925)
  189. }
  190. *case: Option2
  191. {
  192. *PrintableArea: PAIR(4197, 2925)
  193. }
  194. *case: Option3
  195. {
  196. *PrintableArea: PAIR(4194, 2922)
  197. }
  198. }
  199. }
  200. *case: MANUAL
  201. {
  202. *PrintableArea: PAIR(4198, 2925)
  203. *PrintableOrigin: PAIR(0, 360)
  204. *switch: Resolution
  205. {
  206. *case: Option1
  207. {
  208. *PrintableArea: PAIR(4194, 2925)
  209. }
  210. *case: Option2
  211. {
  212. *PrintableArea: PAIR(4197, 2925)
  213. }
  214. *case: Option3
  215. {
  216. *PrintableArea: PAIR(4194, 2922)
  217. }
  218. }
  219. }
  220. }
  221. }
  222. *Option: A4
  223. {
  224. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  225. *Command: CmdSelect
  226. {
  227. *Order: DOC_SETUP.4
  228. *Cmd: "<1B>2<1B>CF"
  229. }
  230. *switch: InputBin
  231. {
  232. *case: TRACTOR
  233. {
  234. *PrintableArea: PAIR(5954, 5050)
  235. *PrintableOrigin: PAIR(0, 0)
  236. *switch: Resolution
  237. {
  238. *case: Option1
  239. {
  240. *PrintableArea: PAIR(5952, 5049)
  241. }
  242. *case: Option2
  243. {
  244. *PrintableArea: PAIR(5952, 5049)
  245. }
  246. *case: Option3
  247. {
  248. *PrintableArea: PAIR(5952, 5046)
  249. }
  250. }
  251. }
  252. *case: AUTO
  253. {
  254. *PrintableArea: PAIR(5954, 4402)
  255. *PrintableOrigin: PAIR(0, 360)
  256. *switch: Resolution
  257. {
  258. *case: Option1
  259. {
  260. *PrintableArea: PAIR(5952, 4401)
  261. }
  262. *case: Option2
  263. {
  264. *PrintableArea: PAIR(5952, 4401)
  265. }
  266. *case: Option3
  267. {
  268. *PrintableArea: PAIR(5952, 4398)
  269. }
  270. }
  271. }
  272. *case: MANUAL
  273. {
  274. *PrintableArea: PAIR(5954, 4402)
  275. *PrintableOrigin: PAIR(0, 360)
  276. *switch: Resolution
  277. {
  278. *case: Option1
  279. {
  280. *PrintableArea: PAIR(5952, 4401)
  281. }
  282. *case: Option2
  283. {
  284. *PrintableArea: PAIR(5952, 4401)
  285. }
  286. *case: Option3
  287. {
  288. *PrintableArea: PAIR(5952, 4398)
  289. }
  290. }
  291. }
  292. }
  293. }
  294. *Option: A3
  295. {
  296. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  297. *Command: CmdSelect
  298. {
  299. *Order: DOC_SETUP.4
  300. *Cmd: "<1B>2<1B>Cc"
  301. }
  302. *switch: InputBin
  303. {
  304. *case: TRACTOR
  305. {
  306. *PrintableArea: PAIR(8417, 7145)
  307. *PrintableOrigin: PAIR(0, 0)
  308. *switch: Resolution
  309. {
  310. *case: Option1
  311. {
  312. *PrintableArea: PAIR(8412, 7143)
  313. }
  314. *case: Option2
  315. {
  316. *PrintableArea: PAIR(8415, 7143)
  317. }
  318. *case: Option3
  319. {
  320. *PrintableArea: PAIR(8412, 7140)
  321. }
  322. }
  323. }
  324. *case: AUTO
  325. {
  326. *PrintableArea: PAIR(8417, 6497)
  327. *PrintableOrigin: PAIR(0, 360)
  328. *switch: Resolution
  329. {
  330. *case: Option1
  331. {
  332. *PrintableArea: PAIR(8412, 6495)
  333. }
  334. *case: Option2
  335. {
  336. *PrintableArea: PAIR(8415, 6495)
  337. }
  338. *case: Option3
  339. {
  340. *PrintableArea: PAIR(8412, 6492)
  341. }
  342. }
  343. }
  344. *case: MANUAL
  345. {
  346. *PrintableArea: PAIR(8417, 6497)
  347. *PrintableOrigin: PAIR(0, 360)
  348. *switch: Resolution
  349. {
  350. *case: Option1
  351. {
  352. *PrintableArea: PAIR(8412, 6495)
  353. }
  354. *case: Option2
  355. {
  356. *PrintableArea: PAIR(8415, 6495)
  357. }
  358. *case: Option3
  359. {
  360. *PrintableArea: PAIR(8412, 6492)
  361. }
  362. }
  363. }
  364. }
  365. }
  366. *Option: B5
  367. {
  368. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  369. *Command: CmdSelect
  370. {
  371. *Order: DOC_SETUP.4
  372. *Cmd: "<1B>2<1B>C%<"
  373. }
  374. *switch: InputBin
  375. {
  376. *case: TRACTOR
  377. {
  378. *PrintableArea: PAIR(5162, 4372)
  379. *PrintableOrigin: PAIR(0, 0)
  380. *switch: Resolution
  381. {
  382. *case: Option1
  383. {
  384. *PrintableArea: PAIR(5160, 4371)
  385. }
  386. *case: Option2
  387. {
  388. *PrintableArea: PAIR(5160, 4371)
  389. }
  390. *case: Option3
  391. {
  392. *PrintableArea: PAIR(5160, 4368)
  393. }
  394. }
  395. }
  396. *case: AUTO
  397. {
  398. *PrintableArea: PAIR(5162, 3724)
  399. *PrintableOrigin: PAIR(0, 360)
  400. *switch: Resolution
  401. {
  402. *case: Option1
  403. {
  404. *PrintableArea: PAIR(5160, 3723)
  405. }
  406. *case: Option2
  407. {
  408. *PrintableArea: PAIR(5160, 3723)
  409. }
  410. *case: Option3
  411. {
  412. *PrintableArea: PAIR(5160, 3720)
  413. }
  414. }
  415. }
  416. *case: MANUAL
  417. {
  418. *PrintableArea: PAIR(5162, 3724)
  419. *PrintableOrigin: PAIR(0, 360)
  420. *switch: Resolution
  421. {
  422. *case: Option1
  423. {
  424. *PrintableArea: PAIR(5160, 3723)
  425. }
  426. *case: Option2
  427. {
  428. *PrintableArea: PAIR(5160, 3723)
  429. }
  430. *case: Option3
  431. {
  432. *PrintableArea: PAIR(5160, 3720)
  433. }
  434. }
  435. }
  436. }
  437. }
  438. *Option: Option7
  439. {
  440. *rcNameID: 258
  441. *PageDimensions: PAIR(6120, 5184)
  442. *Command: CmdSelect
  443. {
  444. *Order: DOC_SETUP.4
  445. *Cmd: "<1B>C<000C>"
  446. }
  447. *switch: InputBin
  448. {
  449. *case: TRACTOR
  450. {
  451. *PrintableArea: PAIR(6120, 5184)
  452. *PrintableOrigin: PAIR(0, 0)
  453. }
  454. *case: AUTO
  455. {
  456. *PrintableArea: PAIR(6120, 4536)
  457. *PrintableOrigin: PAIR(0, 360)
  458. }
  459. *case: MANUAL
  460. {
  461. *PrintableArea: PAIR(6120, 4536)
  462. *PrintableOrigin: PAIR(0, 360)
  463. }
  464. }
  465. }
  466. *Option: FANFOLD_US
  467. {
  468. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  469. *Command: CmdSelect
  470. {
  471. *Order: DOC_SETUP.4
  472. *Cmd: "<1B>C<000B>"
  473. }
  474. *switch: InputBin
  475. {
  476. *case: TRACTOR
  477. {
  478. *PrintableArea: PAIR(9792, 4752)
  479. *PrintableOrigin: PAIR(0, 0)
  480. }
  481. *case: AUTO
  482. {
  483. *PrintableArea: PAIR(9792, 4104)
  484. *PrintableOrigin: PAIR(0, 360)
  485. }
  486. *case: MANUAL
  487. {
  488. *PrintableArea: PAIR(9792, 4104)
  489. *PrintableOrigin: PAIR(0, 360)
  490. }
  491. }
  492. }
  493. *Option: CUSTOMSIZE
  494. {
  495. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  496. *MinSize: PAIR(720, 432)
  497. *MaxSize: PAIR(10080, 9504)
  498. *MaxPrintableWidth: 9792
  499. *MinLeftMargin: 0
  500. *CenterPrintable?: FALSE
  501. *switch: InputBin
  502. {
  503. *case: TRACTOR
  504. {
  505. *TopMargin: 0
  506. *BottomMargin: 0
  507. }
  508. *case: AUTO
  509. {
  510. *TopMargin: 360
  511. *BottomMargin: 288
  512. }
  513. *case: MANUAL
  514. {
  515. *TopMargin: 360
  516. *BottomMargin: 288
  517. }
  518. }
  519. *Command: CmdSelect
  520. {
  521. *Order: DOC_SETUP.4
  522. *Cmd: "<1B>2"
  523. }
  524. }
  525. }
  526. *Feature: PrintQuality
  527. {
  528. *rcNameID: =TEXT_QUALITY_DISPLAY
  529. *DefaultOption: LETTER_QUALITY
  530. *Option: LETTER_QUALITY
  531. {
  532. *rcNameID: =LETTER_QUALITY_DISPLAY
  533. *Command: CmdSelect
  534. {
  535. *Order: DOC_SETUP.2
  536. *Cmd: "<1B>x1"
  537. }
  538. }
  539. *Option: NEAR_LETTER_QUALITY
  540. {
  541. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  542. *Command: CmdSelect
  543. {
  544. *Order: DOC_SETUP.2
  545. *Cmd: "<1B>x1"
  546. }
  547. }
  548. *Option: DRAFT_QUALITY
  549. {
  550. *rcNameID: =DRAFT_QUALITY_DISPLAY
  551. *Command: CmdSelect
  552. {
  553. *Order: DOC_SETUP.2
  554. *Cmd: "<1B>x0"
  555. }
  556. }
  557. }
  558. *Feature: ColorMode
  559. {
  560. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  561. *DefaultOption: Color
  562. *Option: Mono
  563. {
  564. *rcNameID: =MONO_DISPLAY
  565. *DevNumOfPlanes: 1
  566. *DevBPP: 1
  567. *Color? : FALSE
  568. }
  569. *Option: Color
  570. {
  571. *rcNameID: =COLOR_DISPLAY
  572. *DevNumOfPlanes: 4
  573. *DevBPP: 1
  574. *DrvBPP: 4
  575. EXTERN_GLOBAL: *UseExpColorSelectCmd? : TRUE
  576. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  577. *Command: CmdSendYellowData { *Cmd : "<1B>r<04>" }
  578. *Command: CmdSendMagentaData { *Cmd : "<1B>r<01>" }
  579. *Command: CmdSendCyanData { *Cmd : "<1B>r<02>" }
  580. *Command: CmdSendBlackData { *Cmd : "<1B>r<00>" }
  581. *Command: CmdSelectBlackColor { *Cmd : "<1B>r<00>" }
  582. *Command: CmdSelectRedColor { *Cmd : "<1B>r<05>" }
  583. *Command: CmdSelectGreenColor { *Cmd : "<1B>r<06>" }
  584. *Command: CmdSelectYellowColor { *Cmd : "<1B>r<04>" }
  585. *Command: CmdSelectBlueColor { *Cmd : "<1B>r<03>" }
  586. *Command: CmdSelectMagentaColor { *Cmd : "<1B>r<01>" }
  587. *Command: CmdSelectCyanColor { *Cmd : "<1B>r<02>" }
  588. *Command: CmdSelect
  589. {
  590. *Order: DOC_SETUP.5
  591. *Cmd: "<1B>r<00>"
  592. }
  593. }
  594. }
  595. *Feature: Halftone
  596. {
  597. *rcNameID: =HALFTONING_DISPLAY
  598. *DefaultOption: HT_PATSIZE_AUTO
  599. *Option: HT_PATSIZE_AUTO
  600. {
  601. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  602. }
  603. *Ifdef: WINNT_50
  604. *Option: HT_PATSIZE_SUPERCELL_M
  605. {
  606. *rcNameID: =HT_SUPERCELL_DISPLAY
  607. }
  608. *Endif:
  609. *Option: HT_PATSIZE_6x6_M
  610. {
  611. *rcNameID: =HT_DITHER6X6_DISPLAY
  612. }
  613. *Option: HT_PATSIZE_8x8_M
  614. {
  615. *rcNameID: =HT_DITHER8X8_DISPLAY
  616. }
  617. }
  618. *Command: CmdStartDoc
  619. {
  620. *Order: DOC_SETUP.1
  621. *Cmd: "<1B>@<0D1B>t<011B>6<1B>R<001B>P<1B>Q<88>"
  622. }
  623. *Command: CmdStartPage
  624. {
  625. *Order: PAGE_SETUP.1
  626. *Cmd: "<0D>"
  627. }
  628. *Command: CmdEndJob
  629. {
  630. *Order: JOB_FINISH.1
  631. *Cmd: "<1B>@"
  632. }
  633. *RotateCoordinate?: FALSE
  634. *RotateRaster?: FALSE
  635. *RotateFont?: FALSE
  636. *switch: Orientation
  637. {
  638. *case: PORTRAIT
  639. {
  640. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  641. }
  642. *case: LANDSCAPE_CC270
  643. {
  644. *TextCaps: LIST(TC_RA_ABLE)
  645. }
  646. }
  647. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  648. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  649. *MaxLineSpacing: 255
  650. *XMoveThreshold: 0
  651. *YMoveThreshold: *
  652. *XMoveUnit: 60
  653. *YMoveUnit: 216
  654. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  655. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 2) )} }
  656. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[2,255]{(LinefeedSpacing / 2) } }
  657. *Command: CmdCR { *Cmd : "<0D>" }
  658. *Command: CmdLF { *Cmd : "<0A>" }
  659. *Command: CmdFF { *Cmd : "<0C>" }
  660. *Command: CmdBackSpace { *Cmd : "<08>" }
  661. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  662. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  663. *EjectPageWithFF?: FALSE
  664. *switch: InputBin
  665. {
  666. *case: AUTO
  667. {
  668. *EjectPageWithFF?: TRUE
  669. }
  670. *case: MANUAL
  671. {
  672. *EjectPageWithFF?: TRUE
  673. }
  674. }
  675. *OutputDataFormat: V_BYTE
  676. *OptimizeLeftBound?: TRUE
  677. *CursorXAfterSendBlockData: AT_GRXDATA_END
  678. *CursorYAfterSendBlockData: NO_MOVE
  679. *DefaultFont: 1
  680. *DefaultCTT: 10
  681. *switch: Orientation
  682. {
  683. *case: PORTRAIT
  684. {
  685. *DeviceFonts: LIST(1,2,3,4,5,6,7,15,16,17,18,19,20,21)
  686. }
  687. *case: LANDSCAPE_CC270
  688. {
  689. *DeviceFonts: LIST()
  690. }
  691. }
  692. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  693. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  694. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  695. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  696. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  697. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  698. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p1" }
  699. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p0" }