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.

635 lines
18 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(5760, 4752)
  107. *PrintableOrigin: PAIR(0, 0)
  108. }
  109. *case: AUTO
  110. {
  111. *PrintableArea: PAIR(5760, 4496)
  112. *PrintableOrigin: PAIR(0, 68)
  113. *switch: Resolution
  114. {
  115. *case: Option1
  116. {
  117. *PrintableArea: PAIR(5760, 4494)
  118. *PrintableOrigin: PAIR(0, 69)
  119. }
  120. *case: Option2
  121. {
  122. *PrintableArea: PAIR(5760, 4494)
  123. *PrintableOrigin: PAIR(0, 69)
  124. }
  125. *case: Option3
  126. {
  127. *PrintableArea: PAIR(5760, 4488)
  128. *PrintableOrigin: PAIR(0, 72)
  129. }
  130. }
  131. }
  132. *case: MANUAL
  133. {
  134. *PrintableArea: PAIR(5760, 4496)
  135. *PrintableOrigin: PAIR(0, 68)
  136. *switch: Resolution
  137. {
  138. *case: Option1
  139. {
  140. *PrintableArea: PAIR(5760, 4494)
  141. *PrintableOrigin: PAIR(0, 69)
  142. }
  143. *case: Option2
  144. {
  145. *PrintableArea: PAIR(5760, 4494)
  146. *PrintableOrigin: PAIR(0, 69)
  147. }
  148. *case: Option3
  149. {
  150. *PrintableArea: PAIR(5760, 4488)
  151. *PrintableOrigin: PAIR(0, 72)
  152. }
  153. }
  154. }
  155. }
  156. }
  157. *Option: LEGAL
  158. {
  159. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  160. *Command: CmdSelect
  161. {
  162. *Order: DOC_SETUP.5
  163. *Cmd: "<1B>2<1B>CT"
  164. }
  165. *switch: InputBin
  166. {
  167. *case: TRACTOR
  168. {
  169. *PrintableArea: PAIR(5760, 6048)
  170. *PrintableOrigin: PAIR(0, 0)
  171. }
  172. *case: AUTO
  173. {
  174. *PrintableArea: PAIR(5760, 5792)
  175. *PrintableOrigin: PAIR(0, 68)
  176. *switch: Resolution
  177. {
  178. *case: Option1
  179. {
  180. *PrintableArea: PAIR(5760, 5790)
  181. *PrintableOrigin: PAIR(0, 69)
  182. }
  183. *case: Option2
  184. {
  185. *PrintableArea: PAIR(5760, 5790)
  186. *PrintableOrigin: PAIR(0, 69)
  187. }
  188. *case: Option3
  189. {
  190. *PrintableArea: PAIR(5760, 5784)
  191. *PrintableOrigin: PAIR(0, 72)
  192. }
  193. }
  194. }
  195. *case: MANUAL
  196. {
  197. *PrintableArea: PAIR(5760, 5792)
  198. *PrintableOrigin: PAIR(0, 68)
  199. *switch: Resolution
  200. {
  201. *case: Option1
  202. {
  203. *PrintableArea: PAIR(5760, 5790)
  204. *PrintableOrigin: PAIR(0, 69)
  205. }
  206. *case: Option2
  207. {
  208. *PrintableArea: PAIR(5760, 5790)
  209. *PrintableOrigin: PAIR(0, 69)
  210. }
  211. *case: Option3
  212. {
  213. *PrintableArea: PAIR(5760, 5784)
  214. *PrintableOrigin: PAIR(0, 72)
  215. }
  216. }
  217. }
  218. }
  219. }
  220. *Option: A4
  221. {
  222. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  223. *Command: CmdSelect
  224. {
  225. *Order: DOC_SETUP.5
  226. *Cmd: "<1B>2<1B>CF"
  227. }
  228. *switch: InputBin
  229. {
  230. *case: TRACTOR
  231. {
  232. *PrintableArea: PAIR(5760, 5050)
  233. *PrintableOrigin: PAIR(0, 0)
  234. *switch: Resolution
  235. {
  236. *case: Option1
  237. {
  238. *PrintableArea: PAIR(5760, 5049)
  239. }
  240. *case: Option2
  241. {
  242. *PrintableArea: PAIR(5760, 5049)
  243. }
  244. *case: Option3
  245. {
  246. *PrintableArea: PAIR(5760, 5046)
  247. }
  248. }
  249. }
  250. *case: AUTO
  251. {
  252. *PrintableArea: PAIR(5760, 4794)
  253. *PrintableOrigin: PAIR(0, 68)
  254. *switch: Resolution
  255. {
  256. *case: Option1
  257. {
  258. *PrintableArea: PAIR(5760, 4791)
  259. *PrintableOrigin: PAIR(0, 69)
  260. }
  261. *case: Option2
  262. {
  263. *PrintableArea: PAIR(5760, 4791)
  264. *PrintableOrigin: PAIR(0, 69)
  265. }
  266. *case: Option3
  267. {
  268. *PrintableArea: PAIR(5760, 4788)
  269. *PrintableOrigin: PAIR(0, 72)
  270. }
  271. }
  272. }
  273. *case: MANUAL
  274. {
  275. *PrintableArea: PAIR(5760, 4794)
  276. *PrintableOrigin: PAIR(0, 68)
  277. *switch: Resolution
  278. {
  279. *case: Option1
  280. {
  281. *PrintableArea: PAIR(5760, 4791)
  282. *PrintableOrigin: PAIR(0, 69)
  283. }
  284. *case: Option2
  285. {
  286. *PrintableArea: PAIR(5760, 4791)
  287. *PrintableOrigin: PAIR(0, 69)
  288. }
  289. *case: Option3
  290. {
  291. *PrintableArea: PAIR(5760, 4788)
  292. *PrintableOrigin: PAIR(0, 72)
  293. }
  294. }
  295. }
  296. }
  297. }
  298. *Option: B5
  299. {
  300. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  301. *Command: CmdSelect
  302. {
  303. *Order: DOC_SETUP.5
  304. *Cmd: "<1B>2<1B>C="
  305. }
  306. *switch: InputBin
  307. {
  308. *case: TRACTOR
  309. {
  310. *PrintableArea: PAIR(5162, 4372)
  311. *PrintableOrigin: PAIR(0, 0)
  312. *switch: Resolution
  313. {
  314. *case: Option1
  315. {
  316. *PrintableArea: PAIR(5160, 4371)
  317. }
  318. *case: Option2
  319. {
  320. *PrintableArea: PAIR(5160, 4371)
  321. }
  322. *case: Option3
  323. {
  324. *PrintableArea: PAIR(5160, 4368)
  325. }
  326. }
  327. }
  328. *case: AUTO
  329. {
  330. *PrintableArea: PAIR(5162, 4116)
  331. *PrintableOrigin: PAIR(0, 68)
  332. *switch: Resolution
  333. {
  334. *case: Option1
  335. {
  336. *PrintableArea: PAIR(5160, 4113)
  337. *PrintableOrigin: PAIR(0, 69)
  338. }
  339. *case: Option2
  340. {
  341. *PrintableArea: PAIR(5160, 4113)
  342. *PrintableOrigin: PAIR(0, 69)
  343. }
  344. *case: Option3
  345. {
  346. *PrintableArea: PAIR(5160, 4110)
  347. *PrintableOrigin: PAIR(0, 72)
  348. }
  349. }
  350. }
  351. *case: MANUAL
  352. {
  353. *PrintableArea: PAIR(5162, 4116)
  354. *PrintableOrigin: PAIR(0, 68)
  355. *switch: Resolution
  356. {
  357. *case: Option1
  358. {
  359. *PrintableArea: PAIR(5160, 4113)
  360. *PrintableOrigin: PAIR(0, 69)
  361. }
  362. *case: Option2
  363. {
  364. *PrintableArea: PAIR(5160, 4113)
  365. *PrintableOrigin: PAIR(0, 69)
  366. }
  367. *case: Option3
  368. {
  369. *PrintableArea: PAIR(5160, 4110)
  370. *PrintableOrigin: PAIR(0, 72)
  371. }
  372. }
  373. }
  374. }
  375. }
  376. *Option: Option5
  377. {
  378. *rcNameID: 259
  379. *PageDimensions: PAIR(6120, 5184)
  380. *Command: CmdSelect
  381. {
  382. *Order: DOC_SETUP.5
  383. *Cmd: "<1B>2<1B>CH"
  384. }
  385. *switch: InputBin
  386. {
  387. *case: TRACTOR
  388. {
  389. *PrintableArea: PAIR(5760, 5184)
  390. *PrintableOrigin: PAIR(0, 0)
  391. }
  392. *case: AUTO
  393. {
  394. *PrintableArea: PAIR(5760, 4928)
  395. *PrintableOrigin: PAIR(0, 68)
  396. *switch: Resolution
  397. {
  398. *case: Option1
  399. {
  400. *PrintableArea: PAIR(5760, 4926)
  401. *PrintableOrigin: PAIR(0, 69)
  402. }
  403. *case: Option2
  404. {
  405. *PrintableArea: PAIR(5760, 4926)
  406. *PrintableOrigin: PAIR(0, 69)
  407. }
  408. *case: Option3
  409. {
  410. *PrintableArea: PAIR(5760, 4920)
  411. *PrintableOrigin: PAIR(0, 72)
  412. }
  413. }
  414. }
  415. *case: MANUAL
  416. {
  417. *PrintableArea: PAIR(5760, 4928)
  418. *PrintableOrigin: PAIR(0, 68)
  419. *switch: Resolution
  420. {
  421. *case: Option1
  422. {
  423. *PrintableArea: PAIR(5760, 4926)
  424. *PrintableOrigin: PAIR(0, 69)
  425. }
  426. *case: Option2
  427. {
  428. *PrintableArea: PAIR(5760, 4926)
  429. *PrintableOrigin: PAIR(0, 69)
  430. }
  431. *case: Option3
  432. {
  433. *PrintableArea: PAIR(5760, 4920)
  434. *PrintableOrigin: PAIR(0, 72)
  435. }
  436. }
  437. }
  438. }
  439. }
  440. *Option: CUSTOMSIZE
  441. {
  442. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  443. *MinSize: PAIR(720, 432)
  444. *MaxSize: PAIR(8424, 9504)
  445. *MaxPrintableWidth: 5760
  446. *MinLeftMargin: 0
  447. *CenterPrintable?: FALSE
  448. *switch: InputBin
  449. {
  450. *case: TRACTOR
  451. {
  452. *TopMargin: 0
  453. *BottomMargin: 0
  454. }
  455. *case: AUTO
  456. {
  457. *TopMargin: 68
  458. *BottomMargin: 188
  459. }
  460. *case: MANUAL
  461. {
  462. *TopMargin: 68
  463. *BottomMargin: 188
  464. }
  465. }
  466. *Command: CmdSelect
  467. {
  468. *Order: DOC_SETUP.5
  469. *Cmd: "<1B>2"
  470. }
  471. }
  472. }
  473. *Feature: PrintQuality
  474. {
  475. *rcNameID: =TEXT_QUALITY_DISPLAY
  476. *DefaultOption: NEAR_LETTER_QUALITY
  477. *Option: NEAR_LETTER_QUALITY
  478. {
  479. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  480. *Command: CmdSelect
  481. {
  482. *Order: DOC_SETUP.3
  483. *Cmd: "<1B>x<01>"
  484. }
  485. }
  486. *Option: DRAFT_QUALITY
  487. {
  488. *rcNameID: =DRAFT_QUALITY_DISPLAY
  489. *Command: CmdSelect
  490. {
  491. *Order: DOC_SETUP.3
  492. *Cmd: "<1B>x<00>"
  493. }
  494. }
  495. }
  496. *Feature: ColorMode
  497. {
  498. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  499. *DefaultOption: Color
  500. *Option: Mono
  501. {
  502. *rcNameID: =MONO_DISPLAY
  503. *DevNumOfPlanes: 1
  504. *DevBPP: 1
  505. *Color? : FALSE
  506. }
  507. *Option: Color
  508. {
  509. *rcNameID: =COLOR_DISPLAY
  510. *DevNumOfPlanes: 4
  511. *DevBPP: 1
  512. *DrvBPP: 4
  513. EXTERN_GLOBAL: *UseExpColorSelectCmd? : TRUE
  514. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  515. *Command: CmdSendYellowData { *Cmd : "<1B>r<04>" }
  516. *Command: CmdSendMagentaData { *Cmd : "<1B>r<01>" }
  517. *Command: CmdSendCyanData { *Cmd : "<1B>r<02>" }
  518. *Command: CmdSendBlackData { *Cmd : "<1B>r<00>" }
  519. *Command: CmdSelectBlackColor { *Cmd : "<1B>r<00>" }
  520. *Command: CmdSelectRedColor { *Cmd : "<1B>r<05>" }
  521. *Command: CmdSelectGreenColor { *Cmd : "<1B>r<06>" }
  522. *Command: CmdSelectYellowColor { *Cmd : "<1B>r<04>" }
  523. *Command: CmdSelectBlueColor { *Cmd : "<1B>r<03>" }
  524. *Command: CmdSelectMagentaColor { *Cmd : "<1B>r<01>" }
  525. *Command: CmdSelectCyanColor { *Cmd : "<1B>r<02>" }
  526. }
  527. }
  528. *Feature: Halftone
  529. {
  530. *rcNameID: =HALFTONING_DISPLAY
  531. *DefaultOption: HT_PATSIZE_AUTO
  532. *Option: HT_PATSIZE_AUTO
  533. {
  534. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  535. }
  536. *Ifdef: WINNT_50
  537. *Option: HT_PATSIZE_SUPERCELL_M
  538. {
  539. *rcNameID: =HT_SUPERCELL_DISPLAY
  540. }
  541. *Endif:
  542. *Option: HT_PATSIZE_6x6_M
  543. {
  544. *rcNameID: =HT_DITHER6X6_DISPLAY
  545. }
  546. *Option: HT_PATSIZE_8x8_M
  547. {
  548. *rcNameID: =HT_DITHER8X8_DISPLAY
  549. }
  550. }
  551. *Command: CmdStartDoc
  552. {
  553. *Order: DOC_SETUP.1
  554. *Cmd: "<1B>@<1B>t<011B>6<1B>R<00>"
  555. }
  556. *Command: CmdStartPage
  557. {
  558. *Order: PAGE_SETUP.1
  559. *Cmd: "<0D>"
  560. }
  561. *RotateCoordinate?: FALSE
  562. *RotateRaster?: FALSE
  563. *RotateFont?: FALSE
  564. *switch: Orientation
  565. {
  566. *case: PORTRAIT
  567. {
  568. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  569. }
  570. *case: LANDSCAPE_CC270
  571. {
  572. *TextCaps: LIST(TC_RA_ABLE)
  573. }
  574. }
  575. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  576. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  577. *MaxLineSpacing: 255
  578. *XMoveThreshold: 0
  579. *YMoveThreshold: *
  580. *XMoveUnit: 60
  581. *YMoveUnit: 216
  582. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  583. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 2) )} }
  584. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[2,255]{(LinefeedSpacing / 2) } }
  585. *Command: CmdCR { *Cmd : "<0D>" }
  586. *Command: CmdLF { *Cmd : "<0A>" }
  587. *Command: CmdFF { *Cmd : "<0C>" }
  588. *Command: CmdBackSpace { *Cmd : "<08>" }
  589. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  590. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  591. *EjectPageWithFF?: TRUE
  592. *switch: PaperSize
  593. {
  594. *case: CUSTOMSIZE
  595. {
  596. *EjectPageWithFF?: FALSE
  597. *switch: InputBin
  598. {
  599. *case: AUTO
  600. {
  601. *EjectPageWithFF?: TRUE
  602. }
  603. *case: MANUAL
  604. {
  605. *EjectPageWithFF?: TRUE
  606. }
  607. }
  608. }
  609. }
  610. *OutputDataFormat: V_BYTE
  611. *OptimizeLeftBound?: TRUE
  612. *CursorXAfterSendBlockData: AT_GRXDATA_END
  613. *CursorYAfterSendBlockData: NO_MOVE
  614. *DefaultFont: 1
  615. *DefaultCTT: 2
  616. *switch: Orientation
  617. {
  618. *case: PORTRAIT
  619. {
  620. *DeviceFonts: LIST(1,2,3,4,5,6,8,9,10,11,12,13,57,58,59,60,
  621. + 61,62,63,64,65,66,89,90,91,92,93,94)
  622. }
  623. *case: LANDSCAPE_CC270
  624. {
  625. *DeviceFonts: LIST()
  626. }
  627. }
  628. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  629. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  630. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  631. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  632. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  633. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  634. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>P1" }
  635. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>P0" }