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.

571 lines
16 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: MANUAL
  26. *Option: TRACTOR
  27. {
  28. *rcNameID: =TRACTOR_DISPLAY
  29. }
  30. *Option: Option2
  31. {
  32. *rcNameID: 263
  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: Option2
  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: Option2
  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: Option2
  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: Option2
  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: Option2
  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(8424, 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: Option2
  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: Halftone
  467. {
  468. *rcNameID: =HALFTONING_DISPLAY
  469. *DefaultOption: HT_PATSIZE_AUTO
  470. *Option: HT_PATSIZE_AUTO
  471. {
  472. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  473. }
  474. *Ifdef: WINNT_50
  475. *Option: HT_PATSIZE_SUPERCELL_M
  476. {
  477. *rcNameID: =HT_SUPERCELL_DISPLAY
  478. }
  479. *Endif:
  480. *Option: HT_PATSIZE_6x6_M
  481. {
  482. *rcNameID: =HT_DITHER6X6_DISPLAY
  483. }
  484. *Option: HT_PATSIZE_8x8_M
  485. {
  486. *rcNameID: =HT_DITHER8X8_DISPLAY
  487. }
  488. }
  489. *Command: CmdStartDoc
  490. {
  491. *Order: DOC_SETUP.1
  492. *Cmd: "<1B>@<1B>t<011B>6<1B>R<00>"
  493. }
  494. *Command: CmdStartPage
  495. {
  496. *Order: PAGE_SETUP.1
  497. *Cmd: "<0D>"
  498. }
  499. *RotateCoordinate?: FALSE
  500. *RotateRaster?: FALSE
  501. *RotateFont?: FALSE
  502. *switch: Orientation
  503. {
  504. *case: PORTRAIT
  505. {
  506. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  507. }
  508. *case: LANDSCAPE_CC270
  509. {
  510. *TextCaps: LIST(TC_RA_ABLE)
  511. }
  512. }
  513. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  514. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  515. *MaxLineSpacing: 255
  516. *XMoveThreshold: 0
  517. *YMoveThreshold: *
  518. *XMoveUnit: 60
  519. *YMoveUnit: 216
  520. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  521. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 2) )} }
  522. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[2,255]{(LinefeedSpacing / 2) } }
  523. *Command: CmdCR { *Cmd : "<0D>" }
  524. *Command: CmdLF { *Cmd : "<0A>" }
  525. *Command: CmdFF { *Cmd : "<0C>" }
  526. *Command: CmdBackSpace { *Cmd : "<08>" }
  527. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  528. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  529. *EjectPageWithFF?: TRUE
  530. *switch: PaperSize
  531. {
  532. *case: CUSTOMSIZE
  533. {
  534. *EjectPageWithFF?: FALSE
  535. *switch: InputBin
  536. {
  537. *case: Option2
  538. {
  539. *EjectPageWithFF?: TRUE
  540. }
  541. *case: MANUAL
  542. {
  543. *EjectPageWithFF?: TRUE
  544. }
  545. }
  546. }
  547. }
  548. *OutputDataFormat: V_BYTE
  549. *OptimizeLeftBound?: TRUE
  550. *CursorXAfterSendBlockData: AT_GRXDATA_END
  551. *CursorYAfterSendBlockData: NO_MOVE
  552. *DefaultFont: 1
  553. *DefaultCTT: 2
  554. *switch: Orientation
  555. {
  556. *case: PORTRAIT
  557. {
  558. *DeviceFonts: LIST(1,2,3,4,5,6,8,9,10,11,12,13,64,66,67,68,
  559. + 69,70,71,72,73,74,75,76,77,78,79,80)
  560. }
  561. *case: LANDSCAPE_CC270
  562. {
  563. *DeviceFonts: LIST()
  564. }
  565. }
  566. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  567. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  568. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  569. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  570. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  571. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }