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.

603 lines
17 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(11880, 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: Halftone
  497. {
  498. *rcNameID: =HALFTONING_DISPLAY
  499. *DefaultOption: HT_PATSIZE_AUTO
  500. *Option: HT_PATSIZE_AUTO
  501. {
  502. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  503. }
  504. *Ifdef: WINNT_50
  505. *Option: HT_PATSIZE_SUPERCELL_M
  506. {
  507. *rcNameID: =HT_SUPERCELL_DISPLAY
  508. }
  509. *Endif:
  510. *Option: HT_PATSIZE_6x6_M
  511. {
  512. *rcNameID: =HT_DITHER6X6_DISPLAY
  513. }
  514. *Option: HT_PATSIZE_8x8_M
  515. {
  516. *rcNameID: =HT_DITHER8X8_DISPLAY
  517. }
  518. }
  519. *Command: CmdStartDoc
  520. {
  521. *Order: DOC_SETUP.1
  522. *Cmd: "<1B>@<1B>t<011B>6<1B>R<00>"
  523. }
  524. *Command: CmdStartPage
  525. {
  526. *Order: PAGE_SETUP.1
  527. *Cmd: "<0D>"
  528. }
  529. *RotateCoordinate?: FALSE
  530. *RotateRaster?: FALSE
  531. *RotateFont?: FALSE
  532. *switch: Orientation
  533. {
  534. *case: PORTRAIT
  535. {
  536. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  537. }
  538. *case: LANDSCAPE_CC270
  539. {
  540. *TextCaps: LIST(TC_RA_ABLE)
  541. }
  542. }
  543. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  544. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  545. *MaxLineSpacing: 255
  546. *XMoveThreshold: 0
  547. *YMoveThreshold: *
  548. *XMoveUnit: 60
  549. *YMoveUnit: 216
  550. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  551. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 2) )} }
  552. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[2,255]{(LinefeedSpacing / 2) } }
  553. *Command: CmdCR { *Cmd : "<0D>" }
  554. *Command: CmdLF { *Cmd : "<0A>" }
  555. *Command: CmdFF { *Cmd : "<0C>" }
  556. *Command: CmdBackSpace { *Cmd : "<08>" }
  557. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  558. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  559. *EjectPageWithFF?: TRUE
  560. *switch: PaperSize
  561. {
  562. *case: CUSTOMSIZE
  563. {
  564. *EjectPageWithFF?: FALSE
  565. *switch: InputBin
  566. {
  567. *case: AUTO
  568. {
  569. *EjectPageWithFF?: TRUE
  570. }
  571. *case: MANUAL
  572. {
  573. *EjectPageWithFF?: TRUE
  574. }
  575. }
  576. }
  577. }
  578. *OutputDataFormat: V_BYTE
  579. *OptimizeLeftBound?: TRUE
  580. *CursorXAfterSendBlockData: AT_GRXDATA_END
  581. *CursorYAfterSendBlockData: NO_MOVE
  582. *DefaultFont: 1
  583. *DefaultCTT: 2
  584. *switch: Orientation
  585. {
  586. *case: PORTRAIT
  587. {
  588. *DeviceFonts: LIST(1,2,3,4,5,6,8,9,10,11,12,13,57,58,59,60,
  589. + 61,62,63,64,65,66,89,90,91,92,93,94)
  590. }
  591. *case: LANDSCAPE_CC270
  592. {
  593. *DeviceFonts: LIST()
  594. }
  595. }
  596. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  597. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  598. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  599. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  600. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  601. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  602. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>P1" }
  603. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>P0" }