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.

708 lines
20 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *Include: "StdNames.gpd"
  6. *MasterUnits: PAIR(720, 720)
  7. *ResourceDLL: "str24res.dll"
  8. *PrinterType: SERIAL
  9. *Feature: Orientation
  10. {
  11. *rcNameID: =ORIENTATION_DISPLAY
  12. *DefaultOption: PORTRAIT
  13. *Option: PORTRAIT
  14. {
  15. *rcNameID: =PORTRAIT_DISPLAY
  16. }
  17. *Option: LANDSCAPE_CC270
  18. {
  19. *rcNameID: =LANDSCAPE_DISPLAY
  20. }
  21. }
  22. *Feature: InputBin
  23. {
  24. *rcNameID: =PAPER_SOURCE_DISPLAY
  25. *DefaultOption: TRACTOR
  26. *Option: TRACTOR
  27. {
  28. *rcNameID: =TRACTOR_DISPLAY
  29. }
  30. *Option: AUTO
  31. {
  32. *rcNameID: =AUTO_DISPLAY
  33. *Command: CmdSelect
  34. {
  35. *Order: DOC_SETUP.3
  36. *Cmd: "<1B1904>"
  37. }
  38. }
  39. *Option: MANUAL
  40. {
  41. *rcNameID: =MANUAL_FEED_DISPLAY
  42. *Command: CmdSelect
  43. {
  44. *Order: DOC_SETUP.3
  45. *Cmd: "<1B1900>"
  46. }
  47. }
  48. }
  49. *Feature: Resolution
  50. {
  51. *rcNameID: =RESOLUTION_DISPLAY
  52. *DefaultOption: Option1
  53. *Option: Option1
  54. {
  55. *Name: "180 x 180 " =DOTS_PER_INCH
  56. *DPI: PAIR(180, 180)
  57. *TextDPI: PAIR(180, 180)
  58. *PinsPerLogPass: 24
  59. *PinsPerPhysPass: 24
  60. *MinStripBlankPixels: 90
  61. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  62. *SpotDiameter: 170
  63. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  64. }
  65. *Option: Option2
  66. {
  67. *Name: "360 x 360 " =DOTS_PER_INCH
  68. *DPI: PAIR(360, 360)
  69. *TextDPI: PAIR(360, 360)
  70. *PinsPerLogPass: 48
  71. *PinsPerPhysPass: 24
  72. *MinStripBlankPixels: 180
  73. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  74. *SpotDiameter: 170
  75. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  76. }
  77. *Option: Option3
  78. {
  79. *Name: "360 x 180 " =DOTS_PER_INCH
  80. *DPI: PAIR(360, 180)
  81. *TextDPI: PAIR(360, 180)
  82. *PinsPerLogPass: 24
  83. *PinsPerPhysPass: 24
  84. *MinStripBlankPixels: 180
  85. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  86. *SpotDiameter: 170
  87. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  88. }
  89. *Option: Option4
  90. {
  91. *Name: "120 x 180 " =DOTS_PER_INCH
  92. *DPI: PAIR(120, 180)
  93. *TextDPI: PAIR(120, 180)
  94. *PinsPerLogPass: 24
  95. *PinsPerPhysPass: 24
  96. *MinStripBlankPixels: 60
  97. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  98. *SpotDiameter: 170
  99. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  100. }
  101. }
  102. *Feature: PaperSize
  103. {
  104. *rcNameID: =PAPER_SIZE_DISPLAY
  105. *DefaultOption: LETTER
  106. *Option: LETTER
  107. {
  108. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  109. *Command: CmdSelect
  110. {
  111. *Order: DOC_SETUP.4
  112. *Cmd: "<1B>2<1B>CB"
  113. }
  114. *switch: InputBin
  115. {
  116. *case: TRACTOR
  117. {
  118. *PrintableArea: PAIR(5760, 7920)
  119. *PrintableOrigin: PAIR(0, 0)
  120. }
  121. *case: AUTO
  122. {
  123. *PrintableArea: PAIR(5760, 7355)
  124. *PrintableOrigin: PAIR(0, 160)
  125. *switch: Resolution
  126. {
  127. *case: Option1
  128. {
  129. *PrintableArea: PAIR(5760, 7352)
  130. }
  131. *case: Option2
  132. {
  133. *PrintableArea: PAIR(5760, 7354)
  134. }
  135. *case: Option3
  136. {
  137. *PrintableArea: PAIR(5760, 7352)
  138. }
  139. *case: Option4
  140. {
  141. *PrintableArea: PAIR(5760, 7352)
  142. }
  143. }
  144. }
  145. *case: MANUAL
  146. {
  147. *PrintableArea: PAIR(5760, 7355)
  148. *PrintableOrigin: PAIR(0, 160)
  149. *switch: Resolution
  150. {
  151. *case: Option1
  152. {
  153. *PrintableArea: PAIR(5760, 7352)
  154. }
  155. *case: Option2
  156. {
  157. *PrintableArea: PAIR(5760, 7354)
  158. }
  159. *case: Option3
  160. {
  161. *PrintableArea: PAIR(5760, 7352)
  162. }
  163. *case: Option4
  164. {
  165. *PrintableArea: PAIR(5760, 7352)
  166. }
  167. }
  168. }
  169. }
  170. }
  171. *Option: LEGAL
  172. {
  173. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  174. *Command: CmdSelect
  175. {
  176. *Order: DOC_SETUP.4
  177. *Cmd: "<1B>2<1B>CT"
  178. }
  179. *switch: InputBin
  180. {
  181. *case: TRACTOR
  182. {
  183. *PrintableArea: PAIR(5760, 10080)
  184. *PrintableOrigin: PAIR(0, 0)
  185. }
  186. *case: AUTO
  187. {
  188. *PrintableArea: PAIR(5760, 9515)
  189. *PrintableOrigin: PAIR(0, 160)
  190. *switch: Resolution
  191. {
  192. *case: Option1
  193. {
  194. *PrintableArea: PAIR(5760, 9512)
  195. }
  196. *case: Option2
  197. {
  198. *PrintableArea: PAIR(5760, 9514)
  199. }
  200. *case: Option3
  201. {
  202. *PrintableArea: PAIR(5760, 9512)
  203. }
  204. *case: Option4
  205. {
  206. *PrintableArea: PAIR(5760, 9512)
  207. }
  208. }
  209. }
  210. *case: MANUAL
  211. {
  212. *PrintableArea: PAIR(5760, 9515)
  213. *PrintableOrigin: PAIR(0, 160)
  214. *switch: Resolution
  215. {
  216. *case: Option1
  217. {
  218. *PrintableArea: PAIR(5760, 9512)
  219. }
  220. *case: Option2
  221. {
  222. *PrintableArea: PAIR(5760, 9514)
  223. }
  224. *case: Option3
  225. {
  226. *PrintableArea: PAIR(5760, 9512)
  227. }
  228. *case: Option4
  229. {
  230. *PrintableArea: PAIR(5760, 9512)
  231. }
  232. }
  233. }
  234. }
  235. }
  236. *Option: A4
  237. {
  238. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  239. *Command: CmdSelect
  240. {
  241. *Order: DOC_SETUP.4
  242. *Cmd: "<1B>3<121B>Cu"
  243. }
  244. *switch: InputBin
  245. {
  246. *case: TRACTOR
  247. {
  248. *PrintableArea: PAIR(5760, 8417)
  249. *PrintableOrigin: PAIR(0, 0)
  250. *switch: Resolution
  251. {
  252. *case: Option1
  253. {
  254. *PrintableArea: PAIR(5760, 8416)
  255. }
  256. *case: Option2
  257. {
  258. *PrintableArea: PAIR(5760, 8416)
  259. }
  260. *case: Option3
  261. {
  262. *PrintableArea: PAIR(5760, 8416)
  263. }
  264. *case: Option4
  265. {
  266. *PrintableArea: PAIR(5760, 8416)
  267. }
  268. }
  269. }
  270. *case: AUTO
  271. {
  272. *PrintableArea: PAIR(5760, 7852)
  273. *PrintableOrigin: PAIR(0, 160)
  274. }
  275. *case: MANUAL
  276. {
  277. *PrintableArea: PAIR(5760, 7852)
  278. *PrintableOrigin: PAIR(0, 160)
  279. }
  280. }
  281. }
  282. *Option: B4
  283. {
  284. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  285. *Command: CmdSelect
  286. {
  287. *Order: DOC_SETUP.4
  288. *Cmd: "<1B>2<1B>CT"
  289. }
  290. *switch: InputBin
  291. {
  292. *case: TRACTOR
  293. {
  294. *PrintableArea: PAIR(5760, 10037)
  295. *PrintableOrigin: PAIR(0, 0)
  296. *switch: Resolution
  297. {
  298. *case: Option1
  299. {
  300. *PrintableArea: PAIR(5760, 10036)
  301. }
  302. *case: Option2
  303. {
  304. *PrintableArea: PAIR(5760, 10036)
  305. }
  306. *case: Option3
  307. {
  308. *PrintableArea: PAIR(5760, 10036)
  309. }
  310. *case: Option4
  311. {
  312. *PrintableArea: PAIR(5760, 10036)
  313. }
  314. }
  315. }
  316. *case: AUTO
  317. {
  318. *PrintableArea: PAIR(5760, 9472)
  319. *PrintableOrigin: PAIR(0, 160)
  320. }
  321. *case: MANUAL
  322. {
  323. *PrintableArea: PAIR(5760, 9472)
  324. *PrintableOrigin: PAIR(0, 160)
  325. }
  326. }
  327. }
  328. *Option: B5
  329. {
  330. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  331. *Command: CmdSelect
  332. {
  333. *Order: DOC_SETUP.4
  334. *Cmd: "<1B>2<1B>C="
  335. }
  336. *switch: InputBin
  337. {
  338. *case: TRACTOR
  339. {
  340. *PrintableArea: PAIR(5162, 7286)
  341. *PrintableOrigin: PAIR(0, 0)
  342. *switch: Resolution
  343. {
  344. *case: Option1
  345. {
  346. *PrintableArea: PAIR(5160, 7284)
  347. }
  348. *case: Option3
  349. {
  350. *PrintableArea: PAIR(5162, 7284)
  351. }
  352. *case: Option4
  353. {
  354. *PrintableArea: PAIR(5160, 7284)
  355. }
  356. }
  357. }
  358. *case: AUTO
  359. {
  360. *PrintableArea: PAIR(5162, 6721)
  361. *PrintableOrigin: PAIR(0, 160)
  362. *switch: Resolution
  363. {
  364. *case: Option1
  365. {
  366. *PrintableArea: PAIR(5160, 6720)
  367. }
  368. *case: Option2
  369. {
  370. *PrintableArea: PAIR(5162, 6720)
  371. }
  372. *case: Option3
  373. {
  374. *PrintableArea: PAIR(5162, 6720)
  375. }
  376. *case: Option4
  377. {
  378. *PrintableArea: PAIR(5160, 6720)
  379. }
  380. }
  381. }
  382. *case: MANUAL
  383. {
  384. *PrintableArea: PAIR(5162, 6721)
  385. *PrintableOrigin: PAIR(0, 160)
  386. *switch: Resolution
  387. {
  388. *case: Option1
  389. {
  390. *PrintableArea: PAIR(5160, 6720)
  391. }
  392. *case: Option2
  393. {
  394. *PrintableArea: PAIR(5162, 6720)
  395. }
  396. *case: Option3
  397. {
  398. *PrintableArea: PAIR(5162, 6720)
  399. }
  400. *case: Option4
  401. {
  402. *PrintableArea: PAIR(5160, 6720)
  403. }
  404. }
  405. }
  406. }
  407. }
  408. *Option: EXECUTIVE
  409. {
  410. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  411. *Command: CmdSelect
  412. {
  413. *Order: DOC_SETUP.4
  414. *Cmd: "<1B>2<1B>C?"
  415. }
  416. *switch: InputBin
  417. {
  418. *case: TRACTOR
  419. {
  420. *PrintableArea: PAIR(5220, 7560)
  421. *PrintableOrigin: PAIR(0, 0)
  422. }
  423. *case: AUTO
  424. {
  425. *PrintableArea: PAIR(5220, 6995)
  426. *PrintableOrigin: PAIR(0, 160)
  427. *switch: Resolution
  428. {
  429. *case: Option1
  430. {
  431. *PrintableArea: PAIR(5220, 6992)
  432. }
  433. *case: Option2
  434. {
  435. *PrintableArea: PAIR(5220, 6994)
  436. }
  437. *case: Option3
  438. {
  439. *PrintableArea: PAIR(5220, 6992)
  440. }
  441. *case: Option4
  442. {
  443. *PrintableArea: PAIR(5220, 6992)
  444. }
  445. }
  446. }
  447. *case: MANUAL
  448. {
  449. *PrintableArea: PAIR(5220, 6995)
  450. *PrintableOrigin: PAIR(0, 160)
  451. *switch: Resolution
  452. {
  453. *case: Option1
  454. {
  455. *PrintableArea: PAIR(5220, 6992)
  456. }
  457. *case: Option2
  458. {
  459. *PrintableArea: PAIR(5220, 6994)
  460. }
  461. *case: Option3
  462. {
  463. *PrintableArea: PAIR(5220, 6992)
  464. }
  465. *case: Option4
  466. {
  467. *PrintableArea: PAIR(5220, 6992)
  468. }
  469. }
  470. }
  471. }
  472. }
  473. *Option: Option7
  474. {
  475. *rcNameID: 259
  476. *PageDimensions: PAIR(6120, 8640)
  477. *Command: CmdSelect
  478. {
  479. *Order: DOC_SETUP.4
  480. *Cmd: "<1B>2<1B>CH"
  481. }
  482. *switch: InputBin
  483. {
  484. *case: TRACTOR
  485. {
  486. *PrintableArea: PAIR(5760, 8640)
  487. *PrintableOrigin: PAIR(0, 0)
  488. }
  489. *case: AUTO
  490. {
  491. *PrintableArea: PAIR(5760, 8075)
  492. *PrintableOrigin: PAIR(0, 160)
  493. *switch: Resolution
  494. {
  495. *case: Option1
  496. {
  497. *PrintableArea: PAIR(5760, 8072)
  498. }
  499. *case: Option2
  500. {
  501. *PrintableArea: PAIR(5760, 8074)
  502. }
  503. *case: Option3
  504. {
  505. *PrintableArea: PAIR(5760, 8072)
  506. }
  507. *case: Option4
  508. {
  509. *PrintableArea: PAIR(5760, 8072)
  510. }
  511. }
  512. }
  513. *case: MANUAL
  514. {
  515. *PrintableArea: PAIR(5760, 8075)
  516. *PrintableOrigin: PAIR(0, 160)
  517. *switch: Resolution
  518. {
  519. *case: Option1
  520. {
  521. *PrintableArea: PAIR(5760, 8072)
  522. }
  523. *case: Option2
  524. {
  525. *PrintableArea: PAIR(5760, 8074)
  526. }
  527. *case: Option3
  528. {
  529. *PrintableArea: PAIR(5760, 8072)
  530. }
  531. *case: Option4
  532. {
  533. *PrintableArea: PAIR(5760, 8072)
  534. }
  535. }
  536. }
  537. }
  538. }
  539. *Option: CUSTOMSIZE
  540. {
  541. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  542. *MinSize: PAIR(720, 720)
  543. *MaxSize: PAIR(8424, 15840)
  544. *MaxPrintableWidth: 5760
  545. *MinLeftMargin: 0
  546. *CenterPrintable?: FALSE
  547. *switch: InputBin
  548. {
  549. *case: TRACTOR
  550. {
  551. *TopMargin: 0
  552. *BottomMargin: 0
  553. }
  554. *case: AUTO
  555. {
  556. *TopMargin: 160
  557. *BottomMargin: 405
  558. }
  559. *case: MANUAL
  560. {
  561. *TopMargin: 160
  562. *BottomMargin: 405
  563. }
  564. }
  565. *Command: CmdSelect
  566. {
  567. *Order: DOC_SETUP.4
  568. *Cmd: "<1B>2"
  569. }
  570. }
  571. }
  572. *Feature: PrintQuality
  573. {
  574. *rcNameID: =TEXT_QUALITY_DISPLAY
  575. *DefaultOption: LETTER_QUALITY
  576. *Option: LETTER_QUALITY
  577. {
  578. *rcNameID: =LETTER_QUALITY_DISPLAY
  579. *Command: CmdSelect
  580. {
  581. *Order: DOC_SETUP.2
  582. *Cmd: "<1B>x1"
  583. }
  584. }
  585. *Option: DRAFT_QUALITY
  586. {
  587. *rcNameID: =DRAFT_QUALITY_DISPLAY
  588. *Command: CmdSelect
  589. {
  590. *Order: DOC_SETUP.2
  591. *Cmd: "<1B>x0"
  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>@<1B>t<011B>6<1B>[T<0400000003>R<1B>r<00>"
  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: 180
  654. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  655. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 4) )} }
  656. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 4) } }
  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?: TRUE
  664. *switch: PaperSize
  665. {
  666. *case: CUSTOMSIZE
  667. {
  668. *EjectPageWithFF?: FALSE
  669. *switch: InputBin
  670. {
  671. *case: AUTO
  672. {
  673. *EjectPageWithFF?: TRUE
  674. }
  675. *case: MANUAL
  676. {
  677. *EjectPageWithFF?: TRUE
  678. }
  679. }
  680. }
  681. }
  682. *OutputDataFormat: V_BYTE
  683. *OptimizeLeftBound?: TRUE
  684. *CursorXAfterSendBlockData: AT_GRXDATA_END
  685. *CursorYAfterSendBlockData: NO_MOVE
  686. *DefaultFont: 1
  687. *DefaultCTT: 1
  688. *switch: Orientation
  689. {
  690. *case: PORTRAIT
  691. {
  692. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,25,26,27,28,29,30,31,32,
  693. + 33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,183,
  694. + 184,185,186,187,188,189,190)
  695. }
  696. *case: LANDSCAPE_CC270
  697. {
  698. *DeviceFonts: LIST()
  699. }
  700. }
  701. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  702. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  703. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  704. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  705. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  706. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  707. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>P1" }
  708. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>P0" }