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.

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