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.

828 lines
23 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: "St24eres.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. *Command: CmdSelect
  30. {
  31. *Order: DOC_SETUP.3
  32. *Cmd: "<1B1900>"
  33. }
  34. }
  35. *Option: MANUAL
  36. {
  37. *rcNameID: =MANUAL_FEED_DISPLAY
  38. *Command: CmdSelect
  39. {
  40. *Order: DOC_SETUP.3
  41. *Cmd: "<1B1900>"
  42. }
  43. }
  44. }
  45. *Feature: Resolution
  46. {
  47. *rcNameID: =RESOLUTION_DISPLAY
  48. *DefaultOption: Option3
  49. *Option: Option1
  50. {
  51. *Name: "360 x 360 " =DOTS_PER_INCH
  52. *DPI: PAIR(360, 360)
  53. *TextDPI: PAIR(360, 360)
  54. *PinsPerLogPass: 48
  55. *PinsPerPhysPass: 24
  56. *MinStripBlankPixels: 360
  57. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  58. *SpotDiameter: 170
  59. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{(NumOfDataBytes / 3) } }
  60. }
  61. *Option: Option2
  62. {
  63. *Name: "360 x 180 " =DOTS_PER_INCH
  64. *DPI: PAIR(360, 180)
  65. *TextDPI: PAIR(360, 180)
  66. *PinsPerLogPass: 24
  67. *PinsPerPhysPass: 24
  68. *MinStripBlankPixels: 360
  69. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  70. *SpotDiameter: 170
  71. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  72. }
  73. *Option: Option3
  74. {
  75. *Name: "180 x 180 " =DOTS_PER_INCH
  76. *DPI: PAIR(180, 180)
  77. *TextDPI: PAIR(180, 180)
  78. *PinsPerLogPass: 24
  79. *PinsPerPhysPass: 24
  80. *MinStripBlankPixels: 90
  81. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  82. *SpotDiameter: 170
  83. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  84. }
  85. *Option: Option4
  86. {
  87. *Name: "120 x 180 " =DOTS_PER_INCH
  88. *DPI: PAIR(120, 180)
  89. *TextDPI: PAIR(120, 180)
  90. *PinsPerLogPass: 24
  91. *PinsPerPhysPass: 24
  92. *MinStripBlankPixels: 60
  93. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  94. *SpotDiameter: 170
  95. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  96. }
  97. }
  98. *Feature: PaperSize
  99. {
  100. *rcNameID: =PAPER_SIZE_DISPLAY
  101. *DefaultOption: A4
  102. *Option: LETTER
  103. {
  104. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  105. *Command: CmdSelect
  106. {
  107. *Order: DOC_SETUP.4
  108. *Cmd: "<1B>C<000B>"
  109. }
  110. *switch: InputBin
  111. {
  112. *case: TRACTOR
  113. {
  114. *PrintableArea: PAIR(5976, 7920)
  115. *PrintableOrigin: PAIR(72, 0)
  116. }
  117. *case: MANUAL
  118. {
  119. *PrintableArea: PAIR(5976, 7580)
  120. *PrintableOrigin: PAIR(72, 120)
  121. }
  122. }
  123. }
  124. *% "Letter Transverse 11 x 8.5 in"
  125. *Option: Option2
  126. {
  127. *rcNameID: 258
  128. *OptionID: 258
  129. *PageDimensions: PAIR(7920, 6120)
  130. *Command: CmdSelect
  131. {
  132. *Order: DOC_SETUP.4
  133. *Cmd: "<1B>3Z<1B>C<111B>2"
  134. }
  135. *switch: InputBin
  136. {
  137. *case: TRACTOR
  138. {
  139. *PrintableArea: PAIR(7776, 6120)
  140. *PrintableOrigin: PAIR(72, 0)
  141. }
  142. *case: MANUAL
  143. {
  144. *PrintableArea: PAIR(7776, 5820)
  145. *PrintableOrigin: PAIR(72, 120)
  146. }
  147. }
  148. }
  149. *Option: LEGAL
  150. {
  151. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  152. *Command: CmdSelect
  153. {
  154. *Order: DOC_SETUP.4
  155. *Cmd: "<1B>C<000E>"
  156. }
  157. *switch: InputBin
  158. {
  159. *case: TRACTOR
  160. {
  161. *PrintableArea: PAIR(5976, 10080)
  162. *PrintableOrigin: PAIR(72, 0)
  163. }
  164. *case: MANUAL
  165. {
  166. *PrintableArea: PAIR(5976, 9780)
  167. *PrintableOrigin: PAIR(72, 120)
  168. }
  169. }
  170. }
  171. *Option: EXECUTIVE
  172. {
  173. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  174. *Command: CmdSelect
  175. {
  176. *Order: DOC_SETUP.4
  177. *Cmd: "<1B>3Z<1B>C<151B>2"
  178. }
  179. *switch: InputBin
  180. {
  181. *case: TRACTOR
  182. {
  183. *PrintableArea: PAIR(5076, 7560)
  184. *PrintableOrigin: PAIR(72, 0)
  185. }
  186. *case: MANUAL
  187. {
  188. *PrintableArea: PAIR(5076, 7200)
  189. *PrintableOrigin: PAIR(72, 120)
  190. }
  191. }
  192. }
  193. *Option: A3
  194. {
  195. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  196. *Command: CmdSelect
  197. {
  198. *Order: DOC_SETUP.4
  199. *Cmd: "<1B>3<1F1B>C`<1B>2"
  200. }
  201. *switch: InputBin
  202. {
  203. *case: TRACTOR
  204. {
  205. *PrintableArea: PAIR(7920, 11904)
  206. *PrintableOrigin: PAIR(72, 0)
  207. }
  208. *case: MANUAL
  209. {
  210. *PrintableArea: PAIR(7920, 11604)
  211. *PrintableOrigin: PAIR(72, 120)
  212. }
  213. }
  214. }
  215. *Option: A4
  216. {
  217. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  218. *Command: CmdSelect
  219. {
  220. *Order: DOC_SETUP.4
  221. *Cmd: "<1B>3<D21B>C<0A1B>2"
  222. }
  223. *switch: InputBin
  224. {
  225. *case: TRACTOR
  226. {
  227. *PrintableArea: PAIR(5810, 8418)
  228. *PrintableOrigin: PAIR(72, 0)
  229. *switch: Resolution
  230. {
  231. *case: Option1
  232. {
  233. *PrintableArea: PAIR(5810, 8418)
  234. }
  235. *case: Option2
  236. {
  237. *PrintableArea: PAIR(5810, 8416)
  238. }
  239. *case: Option3
  240. {
  241. *PrintableArea: PAIR(5808, 8416)
  242. }
  243. *case: Option4
  244. {
  245. *PrintableArea: PAIR(5808, 8416)
  246. }
  247. }
  248. }
  249. *case: MANUAL
  250. {
  251. *PrintableArea: PAIR(5810, 8066)
  252. *PrintableOrigin: PAIR(72, 120)
  253. *switch: Resolution
  254. {
  255. *case: Option1
  256. {
  257. *PrintableArea: PAIR(5810, 8066)
  258. }
  259. *case: Option2
  260. {
  261. *PrintableArea: PAIR(5810, 8066)
  262. }
  263. *case: Option3
  264. {
  265. *PrintableArea: PAIR(5808, 8066)
  266. }
  267. *case: Option4
  268. {
  269. *PrintableArea: PAIR(5808, 8066)
  270. }
  271. }
  272. }
  273. }
  274. }
  275. *% "A4 Transverse 297 x 210 mm "
  276. *Option: Option7
  277. {
  278. *rcNameID: 261
  279. *OptionID: 261
  280. *PageDimensions: PAIR(8417, 5934)
  281. *Command: CmdSelect
  282. {
  283. *Order: DOC_SETUP.4
  284. *Cmd: "<1B>30<1B>C<1F1B>2"
  285. }
  286. *switch: InputBin
  287. {
  288. *case: TRACTOR
  289. {
  290. *PrintableArea: PAIR(7920, 5954)
  291. *PrintableOrigin: PAIR(72, 0)
  292. *switch: Resolution
  293. {
  294. *case: Option1
  295. {
  296. *PrintableArea: PAIR(7920, 5954)
  297. }
  298. *case: Option2
  299. {
  300. *PrintableArea: PAIR(7920, 5952)
  301. }
  302. *case: Option3
  303. {
  304. *PrintableArea: PAIR(7920, 5952)
  305. }
  306. *case: Option4
  307. {
  308. *PrintableArea: PAIR(7920, 5952)
  309. }
  310. }
  311. }
  312. *case: MANUAL
  313. {
  314. *PrintableArea: PAIR(7920, 5654)
  315. *PrintableOrigin: PAIR(72, 120)
  316. *switch: Resolution
  317. {
  318. *case: Option1
  319. {
  320. *PrintableArea: PAIR(7920, 5654)
  321. }
  322. *case: Option2
  323. {
  324. *PrintableArea: PAIR(7920, 5652)
  325. }
  326. *case: Option3
  327. {
  328. *PrintableArea: PAIR(7920, 5652)
  329. }
  330. *case: Option4
  331. {
  332. *PrintableArea: PAIR(7920, 5652)
  333. }
  334. }
  335. }
  336. }
  337. }
  338. *Option: A5
  339. {
  340. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  341. *Command: CmdSelect
  342. {
  343. *Order: DOC_SETUP.4
  344. *Cmd: "<1B>2<1B>C2"
  345. }
  346. *switch: InputBin
  347. {
  348. *case: TRACTOR
  349. {
  350. *PrintableArea: PAIR(4050, 5954)
  351. *PrintableOrigin: PAIR(72, 0)
  352. *switch: Resolution
  353. {
  354. *case: Option1
  355. {
  356. *PrintableArea: PAIR(4050, 5954)
  357. }
  358. *case: Option2
  359. {
  360. *PrintableArea: PAIR(4050, 5652)
  361. }
  362. *case: Option3
  363. {
  364. *PrintableArea: PAIR(4048, 5652)
  365. }
  366. *case: Option4
  367. {
  368. *PrintableArea: PAIR(4050, 5652)
  369. }
  370. }
  371. }
  372. *case: MANUAL
  373. {
  374. *PrintableArea: PAIR(4050, 5654)
  375. *PrintableOrigin: PAIR(72, 120)
  376. *switch: Resolution
  377. {
  378. *case: Option1
  379. {
  380. *PrintableArea: PAIR(4050, 5654)
  381. }
  382. *case: Option2
  383. {
  384. *PrintableArea: PAIR(4050, 5652)
  385. }
  386. *case: Option3
  387. {
  388. *PrintableArea: PAIR(4048, 5652)
  389. }
  390. *case: Option4
  391. {
  392. *PrintableArea: PAIR(4050, 5652)
  393. }
  394. }
  395. }
  396. }
  397. }
  398. *Option: B4
  399. {
  400. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  401. *Command: CmdSelect
  402. {
  403. *Order: DOC_SETUP.4
  404. *Cmd: "<1B>3<811B>C<141B>2"
  405. }
  406. *switch: InputBin
  407. {
  408. *case: TRACTOR
  409. {
  410. *PrintableArea: PAIR(7140, 10318)
  411. *PrintableOrigin: PAIR(72, 0)
  412. *switch: Resolution
  413. {
  414. *case: Option1
  415. {
  416. *PrintableArea: PAIR(7140, 10318)
  417. }
  418. *case: Option2
  419. {
  420. *PrintableArea: PAIR(7140, 10316)
  421. }
  422. *case: Option3
  423. {
  424. *PrintableArea: PAIR(7140, 10316)
  425. }
  426. *case: Option4
  427. {
  428. *PrintableArea: PAIR(7140, 10316)
  429. }
  430. }
  431. }
  432. *case: MANUAL
  433. {
  434. *PrintableArea: PAIR(7140, 9980)
  435. *PrintableOrigin: PAIR(72, 120)
  436. *switch: Resolution
  437. {
  438. *case: Option1
  439. {
  440. *PrintableArea: PAIR(7140, 9980)
  441. }
  442. *case: Option2
  443. {
  444. *PrintableArea: PAIR(7140, 9980)
  445. }
  446. *case: Option3
  447. {
  448. *PrintableArea: PAIR(7140, 9980)
  449. }
  450. *case: Option4
  451. {
  452. *PrintableArea: PAIR(7140, 9980)
  453. }
  454. }
  455. }
  456. }
  457. }
  458. *Option: B5
  459. {
  460. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  461. *Command: CmdSelect
  462. {
  463. *Order: DOC_SETUP.4
  464. *Cmd: "<1B>3<181B>CL<1B>2"
  465. }
  466. *switch: InputBin
  467. {
  468. *case: TRACTOR
  469. {
  470. *PrintableArea: PAIR(5014, 7284)
  471. *PrintableOrigin: PAIR(72, 0)
  472. *switch: Resolution
  473. {
  474. *case: Option1
  475. {
  476. *PrintableArea: PAIR(5014, 7284)
  477. }
  478. *case: Option2
  479. {
  480. *PrintableArea: PAIR(5014, 7284)
  481. }
  482. *case: Option3
  483. {
  484. *PrintableArea: PAIR(5012, 7284)
  485. }
  486. *case: Option4
  487. {
  488. *PrintableArea: PAIR(5010, 7284)
  489. }
  490. }
  491. }
  492. *case: MANUAL
  493. {
  494. *PrintableArea: PAIR(5014, 6984)
  495. *PrintableOrigin: PAIR(72, 120)
  496. *switch: Resolution
  497. {
  498. *case: Option1
  499. {
  500. *PrintableArea: PAIR(5014, 6984)
  501. }
  502. *case: Option2
  503. {
  504. *PrintableArea: PAIR(5014, 6984)
  505. }
  506. *case: Option3
  507. {
  508. *PrintableArea: PAIR(5012, 6984)
  509. }
  510. *case: Option4
  511. {
  512. *PrintableArea: PAIR(5010, 6984)
  513. }
  514. }
  515. }
  516. }
  517. }
  518. *% "Fanfold 8.5 x 11 inch"
  519. *Option: Option11
  520. {
  521. *rcNameID: 263
  522. *OptionID: 263
  523. *PageDimensions: PAIR(6120, 7920)
  524. *Command: CmdSelect
  525. {
  526. *Order: DOC_SETUP.4
  527. *Cmd: "<1B>C<000B>"
  528. }
  529. *switch: InputBin
  530. {
  531. *case: TRACTOR
  532. {
  533. *PrintableArea: PAIR(5760, 7920)
  534. *PrintableOrigin: PAIR(360, 0)
  535. }
  536. *case: MANUAL
  537. {
  538. *PrintableArea: PAIR(5760, 7620)
  539. *PrintableOrigin: PAIR(360, 120)
  540. }
  541. }
  542. }
  543. *% "Fanfold 8.5 x 12 inch"
  544. *Option: Option12
  545. {
  546. *rcNameID: 264
  547. *OptionID: 264
  548. *PageDimensions: PAIR(6120, 8640)
  549. *Command: CmdSelect
  550. {
  551. *Order: DOC_SETUP.4
  552. *Cmd: "<1B>C<000C>"
  553. }
  554. *switch: InputBin
  555. {
  556. *case: TRACTOR
  557. {
  558. *PrintableArea: PAIR(5760, 8640)
  559. *PrintableOrigin: PAIR(360, 0)
  560. }
  561. *case: MANUAL
  562. {
  563. *PrintableArea: PAIR(5760, 8340)
  564. *PrintableOrigin: PAIR(360, 120)
  565. }
  566. }
  567. }
  568. *% "Fanfold 12 x 11 inch"
  569. *Option: Option13
  570. {
  571. *rcNameID: 265
  572. *OptionID: 265
  573. *PageDimensions: PAIR(8640, 7920)
  574. *Command: CmdSelect
  575. {
  576. *Order: DOC_SETUP.4
  577. *Cmd: "<1B>C<000B>"
  578. }
  579. *switch: InputBin
  580. {
  581. *case: TRACTOR
  582. {
  583. *PrintableArea: PAIR(7920, 7920)
  584. *PrintableOrigin: PAIR(360, 0)
  585. }
  586. *case: MANUAL
  587. {
  588. *PrintableArea: PAIR(7920, 7620)
  589. *PrintableOrigin: PAIR(360, 120)
  590. }
  591. }
  592. }
  593. *% "Fanfold 12 x 12 inch"
  594. *Option: Option14
  595. {
  596. *rcNameID: 266
  597. *OptionID: 266
  598. *PageDimensions: PAIR(8640, 8640)
  599. *Command: CmdSelect
  600. {
  601. *Order: DOC_SETUP.4
  602. *Cmd: "<1B>C<000C>"
  603. }
  604. *switch: InputBin
  605. {
  606. *case: TRACTOR
  607. {
  608. *PrintableArea: PAIR(7920, 8640)
  609. *PrintableOrigin: PAIR(360, 0)
  610. }
  611. *case: MANUAL
  612. {
  613. *PrintableArea: PAIR(7920, 8340)
  614. *PrintableOrigin: PAIR(360, 120)
  615. }
  616. }
  617. }
  618. *Option: ENV_10
  619. {
  620. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  621. *Command: CmdSelect
  622. {
  623. *Order: DOC_SETUP.5
  624. *Cmd: "<1B>2<1B>C9"
  625. }
  626. *switch: InputBin
  627. {
  628. *case: TRACTOR
  629. {
  630. *PrintableArea: PAIR(2826, 6840)
  631. *PrintableOrigin: PAIR(72, 0)
  632. *switch: Resolution
  633. {
  634. *case: Option1
  635. {
  636. *PrintableArea: PAIR(2826, 6840)
  637. }
  638. *case: Option2
  639. {
  640. *PrintableArea: PAIR(2826, 6840)
  641. }
  642. *case: Option3
  643. {
  644. *PrintableArea: PAIR(2824, 6840)
  645. }
  646. *case: Option4
  647. {
  648. *PrintableArea: PAIR(2826, 6840)
  649. }
  650. }
  651. }
  652. *case: MANUAL
  653. {
  654. *PrintableArea: PAIR(2826, 6528)
  655. *PrintableOrigin: PAIR(72, 120)
  656. *switch: Resolution
  657. {
  658. *case: Option1
  659. {
  660. *PrintableArea: PAIR(2826, 6528)
  661. }
  662. *case: Option2
  663. {
  664. *PrintableArea: PAIR(2826, 6528)
  665. }
  666. *case: Option3
  667. {
  668. *PrintableArea: PAIR(2824, 6528)
  669. }
  670. *case: Option4
  671. {
  672. *PrintableArea: PAIR(2826, 6528)
  673. }
  674. }
  675. }
  676. }
  677. }
  678. *Option: CUSTOMSIZE
  679. {
  680. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  681. *MinSize: PAIR(2880, 3960)
  682. *MaxSize: PAIR(8640, 32767)
  683. *MaxPrintableWidth: 7920
  684. *MinLeftMargin: 57
  685. *CenterPrintable?: FALSE
  686. *switch: InputBin
  687. {
  688. *case: TRACTOR
  689. {
  690. *TopMargin: 0
  691. *BottomMargin: 0
  692. }
  693. *case: MANUAL
  694. {
  695. *TopMargin: 120
  696. *BottomMargin: 180
  697. }
  698. }
  699. *Command: CmdSelect
  700. {
  701. *Order: DOC_SETUP.4
  702. *Cmd: "<1B>2<1B>C" %c[0,127]{max_repeat((PhysPaperLength / 120) )}
  703. }
  704. }
  705. }
  706. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.LETTER)
  707. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.Option2)
  708. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.LEGAL)
  709. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.EXECUTIVE)
  710. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.A3)
  711. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.A4)
  712. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.Option7)
  713. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.A5)
  714. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.B4)
  715. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.B5)
  716. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.ENV_10)
  717. *Feature: PrintQuality
  718. {
  719. *rcNameID: =TEXT_QUALITY_DISPLAY
  720. *DefaultOption: LETTER_QUALITY
  721. *Option: LETTER_QUALITY
  722. {
  723. *rcNameID: =LETTER_QUALITY_DISPLAY
  724. *Command: CmdSelect
  725. {
  726. *Order: DOC_SETUP.2
  727. *Cmd: "<1B>x1"
  728. }
  729. }
  730. *Option: DRAFT_QUALITY
  731. {
  732. *rcNameID: =DRAFT_QUALITY_DISPLAY
  733. *Command: CmdSelect
  734. {
  735. *Order: DOC_SETUP.2
  736. *Cmd: "<1B>x0"
  737. }
  738. }
  739. }
  740. *Feature: Halftone
  741. {
  742. *rcNameID: =HALFTONING_DISPLAY
  743. *DefaultOption: HT_PATSIZE_AUTO
  744. *Option: HT_PATSIZE_AUTO
  745. {
  746. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  747. }
  748. *Ifdef: WINNT_50
  749. *Option: HT_PATSIZE_SUPERCELL_M
  750. {
  751. *rcNameID: =HT_SUPERCELL_DISPLAY
  752. }
  753. *Endif:
  754. *Option: HT_PATSIZE_6x6_M
  755. {
  756. *rcNameID: =HT_DITHER6X6_DISPLAY
  757. }
  758. *Option: HT_PATSIZE_8x8_M
  759. {
  760. *rcNameID: =HT_DITHER8X8_DISPLAY
  761. }
  762. }
  763. *Command: CmdStartDoc
  764. {
  765. *Order: DOC_SETUP.1
  766. *Cmd: "<1B>@<1B>!<001B>t<011B>6<1B>R<00>"
  767. }
  768. *Command: CmdStartPage
  769. {
  770. *Order: PAGE_SETUP.1
  771. *Cmd: "<0D>"
  772. }
  773. *RotateCoordinate?: FALSE
  774. *RotateRaster?: FALSE
  775. *RotateFont?: FALSE
  776. *switch: Orientation
  777. {
  778. *case: PORTRAIT
  779. {
  780. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  781. }
  782. *case: LANDSCAPE_CC270
  783. {
  784. *TextCaps: LIST(TC_RA_ABLE)
  785. }
  786. }
  787. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  788. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  789. *MaxLineSpacing: 255
  790. *XMoveThreshold: 0
  791. *YMoveThreshold: *
  792. *XMoveUnit: 60
  793. *YMoveUnit: 180
  794. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,816]{max_repeat((DestX / 12) )} }
  795. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 4) )} }
  796. *Command: CmdSetLineSpacing { *Cmd : "<1B>+" %c[0,255]{(LinefeedSpacing / 2) } }
  797. *Command: CmdCR { *Cmd : "<0D>" }
  798. *Command: CmdLF { *Cmd : "<0A>" }
  799. *Command: CmdFF { *Cmd : "<0C>" }
  800. *Command: CmdBackSpace { *Cmd : "<08>" }
  801. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  802. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  803. *EjectPageWithFF?: TRUE
  804. *OutputDataFormat: V_BYTE
  805. *OptimizeLeftBound?: FALSE
  806. *CursorXAfterSendBlockData: AT_GRXDATA_END
  807. *CursorYAfterSendBlockData: NO_MOVE
  808. *DefaultFont: 346
  809. *DefaultCTT: 1
  810. *switch: Orientation
  811. {
  812. *case: PORTRAIT
  813. {
  814. *DeviceFonts: LIST(344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,
  815. + 360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,
  816. + 376,377,378,379,380,381,382,383)
  817. }
  818. *case: LANDSCAPE_CC270
  819. {
  820. *DeviceFonts: LIST()
  821. }
  822. }
  823. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  824. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  825. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  826. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  827. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  828. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }