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.

659 lines
18 KiB

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