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.

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