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.

723 lines
20 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "EPFX105.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Epson FX-105"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "ep9res.dll"
  12. *PrintRate: 160
  13. *PrintRateUnit: CPS
  14. *PrinterType: SERIAL
  15. *Feature: Orientation
  16. {
  17. *rcNameID: =ORIENTATION_DISPLAY
  18. *DefaultOption: PORTRAIT
  19. *Option: PORTRAIT
  20. {
  21. *rcNameID: =PORTRAIT_DISPLAY
  22. }
  23. *Option: LANDSCAPE_CC270
  24. {
  25. *rcNameID: =LANDSCAPE_DISPLAY
  26. }
  27. }
  28. *Feature: InputBin
  29. {
  30. *rcNameID: =PAPER_SOURCE_DISPLAY
  31. *DefaultOption: TRACTOR
  32. *Option: TRACTOR
  33. {
  34. *rcNameID: =TRACTOR_DISPLAY
  35. }
  36. *Option: MANUAL
  37. {
  38. *rcNameID: =MANUAL_FEED_DISPLAY
  39. }
  40. *Option: Option3
  41. {
  42. *rcNameID: 259
  43. *Command: CmdSelect
  44. {
  45. *Order: DOC_SETUP.3
  46. *Cmd: "<1B19>4<1B19>1"
  47. }
  48. }
  49. }
  50. *Feature: Resolution
  51. {
  52. *rcNameID: =RESOLUTION_DISPLAY
  53. *DefaultOption: Option1
  54. *Option: Option1
  55. {
  56. *Name: "120 x 144 " =DOTS_PER_INCH
  57. *DPI: PAIR(120, 144)
  58. *TextDPI: PAIR(120, 144)
  59. *PinsPerLogPass: 16
  60. *PinsPerPhysPass: 8
  61. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  62. *SpotDiameter: 140
  63. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  64. }
  65. *Option: Option2
  66. {
  67. *Name: "240 x 144 " =DOTS_PER_INCH
  68. *DPI: PAIR(240, 144)
  69. *TextDPI: PAIR(240, 144)
  70. *PinsPerLogPass: 16
  71. *PinsPerPhysPass: 8
  72. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  73. *SpotDiameter: 170
  74. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  75. }
  76. *Option: Option3
  77. {
  78. *Name: "120 x 72 " =DOTS_PER_INCH
  79. *DPI: PAIR(120, 72)
  80. *TextDPI: PAIR(120, 72)
  81. *PinsPerLogPass: 8
  82. *PinsPerPhysPass: 8
  83. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  84. *SpotDiameter: 100
  85. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  86. }
  87. }
  88. *Feature: PaperSize
  89. {
  90. *rcNameID: =PAPER_SIZE_DISPLAY
  91. *DefaultOption: LETTER
  92. *Option: LETTER
  93. {
  94. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  95. *Command: CmdSelect
  96. {
  97. *Order: DOC_SETUP.4
  98. *Cmd: "<1B>2<1B>CB"
  99. }
  100. *switch: InputBin
  101. {
  102. *case: TRACTOR
  103. {
  104. *PrintableArea: PAIR(6120, 4752)
  105. *PrintableOrigin: PAIR(0, 0)
  106. }
  107. *case: MANUAL
  108. {
  109. *PrintableArea: PAIR(6120, 4401)
  110. *PrintableOrigin: PAIR(0, 135)
  111. *switch: Resolution
  112. {
  113. *case: Option3
  114. {
  115. *PrintableArea: PAIR(6120, 4398)
  116. *PrintableOrigin: PAIR(0, 138)
  117. }
  118. }
  119. }
  120. *case: Option3
  121. {
  122. *PrintableArea: PAIR(6120, 4401)
  123. *PrintableOrigin: PAIR(0, 135)
  124. *switch: Resolution
  125. {
  126. *case: Option3
  127. {
  128. *PrintableArea: PAIR(6120, 4398)
  129. *PrintableOrigin: PAIR(0, 138)
  130. }
  131. }
  132. }
  133. }
  134. }
  135. *Option: LEGAL
  136. {
  137. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  138. *Command: CmdSelect
  139. {
  140. *Order: DOC_SETUP.4
  141. *Cmd: "<1B>2<1B>CT"
  142. }
  143. *switch: InputBin
  144. {
  145. *case: TRACTOR
  146. {
  147. *PrintableArea: PAIR(6120, 6048)
  148. *PrintableOrigin: PAIR(0, 0)
  149. }
  150. *case: MANUAL
  151. {
  152. *PrintableArea: PAIR(6120, 5697)
  153. *PrintableOrigin: PAIR(0, 135)
  154. *switch: Resolution
  155. {
  156. *case: Option3
  157. {
  158. *PrintableArea: PAIR(6120, 5694)
  159. *PrintableOrigin: PAIR(0, 138)
  160. }
  161. }
  162. }
  163. *case: Option3
  164. {
  165. *PrintableArea: PAIR(6120, 5697)
  166. *PrintableOrigin: PAIR(0, 135)
  167. *switch: Resolution
  168. {
  169. *case: Option3
  170. {
  171. *PrintableArea: PAIR(6120, 5694)
  172. *PrintableOrigin: PAIR(0, 138)
  173. }
  174. }
  175. }
  176. }
  177. }
  178. *Option: A4
  179. {
  180. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  181. *Command: CmdSelect
  182. {
  183. *Order: DOC_SETUP.4
  184. *Cmd: "<1B>2<1B>CF"
  185. }
  186. *switch: InputBin
  187. {
  188. *case: TRACTOR
  189. {
  190. *PrintableArea: PAIR(5954, 5050)
  191. *PrintableOrigin: PAIR(0, 0)
  192. *switch: Resolution
  193. {
  194. *case: Option1
  195. {
  196. *PrintableArea: PAIR(5952, 5049)
  197. }
  198. *case: Option2
  199. {
  200. *PrintableArea: PAIR(5952, 5049)
  201. }
  202. *case: Option3
  203. {
  204. *PrintableArea: PAIR(5952, 5046)
  205. }
  206. }
  207. }
  208. *case: MANUAL
  209. {
  210. *PrintableArea: PAIR(5954, 4699)
  211. *PrintableOrigin: PAIR(0, 135)
  212. *switch: Resolution
  213. {
  214. *case: Option1
  215. {
  216. *PrintableArea: PAIR(5952, 4698)
  217. }
  218. *case: Option2
  219. {
  220. *PrintableArea: PAIR(5952, 4698)
  221. }
  222. *case: Option3
  223. {
  224. *PrintableArea: PAIR(5952, 4692)
  225. *PrintableOrigin: PAIR(0, 138)
  226. }
  227. }
  228. }
  229. *case: Option3
  230. {
  231. *PrintableArea: PAIR(5954, 4699)
  232. *PrintableOrigin: PAIR(0, 135)
  233. *switch: Resolution
  234. {
  235. *case: Option1
  236. {
  237. *PrintableArea: PAIR(5952, 4698)
  238. }
  239. *case: Option2
  240. {
  241. *PrintableArea: PAIR(5952, 4698)
  242. }
  243. *case: Option3
  244. {
  245. *PrintableArea: PAIR(5952, 4692)
  246. *PrintableOrigin: PAIR(0, 138)
  247. }
  248. }
  249. }
  250. }
  251. }
  252. *Option: A3
  253. {
  254. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  255. *Command: CmdSelect
  256. {
  257. *Order: DOC_SETUP.4
  258. *Cmd: "<1B>2<1B>Cc"
  259. }
  260. *switch: InputBin
  261. {
  262. *case: TRACTOR
  263. {
  264. *PrintableArea: PAIR(8417, 7145)
  265. *PrintableOrigin: PAIR(0, 0)
  266. *switch: Resolution
  267. {
  268. *case: Option1
  269. {
  270. *PrintableArea: PAIR(8412, 7143)
  271. }
  272. *case: Option2
  273. {
  274. *PrintableArea: PAIR(8415, 7143)
  275. }
  276. *case: Option3
  277. {
  278. *PrintableArea: PAIR(8412, 7140)
  279. }
  280. }
  281. }
  282. *case: MANUAL
  283. {
  284. *PrintableArea: PAIR(8417, 6794)
  285. *PrintableOrigin: PAIR(0, 135)
  286. *switch: Resolution
  287. {
  288. *case: Option1
  289. {
  290. *PrintableArea: PAIR(8412, 6792)
  291. }
  292. *case: Option2
  293. {
  294. *PrintableArea: PAIR(8415, 6792)
  295. }
  296. *case: Option3
  297. {
  298. *PrintableArea: PAIR(8412, 6786)
  299. *PrintableOrigin: PAIR(0, 138)
  300. }
  301. }
  302. }
  303. *case: Option3
  304. {
  305. *PrintableArea: PAIR(8417, 6794)
  306. *PrintableOrigin: PAIR(0, 135)
  307. *switch: Resolution
  308. {
  309. *case: Option1
  310. {
  311. *PrintableArea: PAIR(8412, 6792)
  312. }
  313. *case: Option2
  314. {
  315. *PrintableArea: PAIR(8415, 6792)
  316. }
  317. *case: Option3
  318. {
  319. *PrintableArea: PAIR(8412, 6786)
  320. *PrintableOrigin: PAIR(0, 138)
  321. }
  322. }
  323. }
  324. }
  325. }
  326. *Option: A5
  327. {
  328. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  329. *Command: CmdSelect
  330. {
  331. *Order: DOC_SETUP.4
  332. *Cmd: "<1B>2<1B>C2"
  333. }
  334. *switch: InputBin
  335. {
  336. *case: TRACTOR
  337. {
  338. *PrintableArea: PAIR(4198, 3573)
  339. *PrintableOrigin: PAIR(0, 0)
  340. *switch: Resolution
  341. {
  342. *case: Option1
  343. {
  344. *PrintableArea: PAIR(4194, 3573)
  345. }
  346. *case: Option2
  347. {
  348. *PrintableArea: PAIR(4197, 3573)
  349. }
  350. *case: Option3
  351. {
  352. *PrintableArea: PAIR(4194, 3570)
  353. }
  354. }
  355. }
  356. *case: MANUAL
  357. {
  358. *PrintableArea: PAIR(4198, 3222)
  359. *PrintableOrigin: PAIR(0, 135)
  360. *switch: Resolution
  361. {
  362. *case: Option1
  363. {
  364. *PrintableArea: PAIR(4194, 3222)
  365. }
  366. *case: Option2
  367. {
  368. *PrintableArea: PAIR(4197, 3222)
  369. }
  370. *case: Option3
  371. {
  372. *PrintableArea: PAIR(4194, 3216)
  373. *PrintableOrigin: PAIR(0, 138)
  374. }
  375. }
  376. }
  377. *case: Option3
  378. {
  379. *PrintableArea: PAIR(4198, 3222)
  380. *PrintableOrigin: PAIR(0, 135)
  381. *switch: Resolution
  382. {
  383. *case: Option1
  384. {
  385. *PrintableArea: PAIR(4194, 3222)
  386. }
  387. *case: Option2
  388. {
  389. *PrintableArea: PAIR(4197, 3222)
  390. }
  391. *case: Option3
  392. {
  393. *PrintableArea: PAIR(4194, 3216)
  394. *PrintableOrigin: PAIR(0, 138)
  395. }
  396. }
  397. }
  398. }
  399. }
  400. *Option: B5
  401. {
  402. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  403. *Command: CmdSelect
  404. {
  405. *Order: DOC_SETUP.4
  406. *Cmd: "<1B>2<1B>C="
  407. }
  408. *switch: InputBin
  409. {
  410. *case: TRACTOR
  411. {
  412. *PrintableArea: PAIR(5162, 4372)
  413. *PrintableOrigin: PAIR(0, 0)
  414. *switch: Resolution
  415. {
  416. *case: Option1
  417. {
  418. *PrintableArea: PAIR(5160, 4371)
  419. }
  420. *case: Option2
  421. {
  422. *PrintableArea: PAIR(5160, 4371)
  423. }
  424. *case: Option3
  425. {
  426. *PrintableArea: PAIR(5160, 4368)
  427. }
  428. }
  429. }
  430. *case: MANUAL
  431. {
  432. *PrintableArea: PAIR(5162, 4021)
  433. *PrintableOrigin: PAIR(0, 135)
  434. *switch: Resolution
  435. {
  436. *case: Option1
  437. {
  438. *PrintableArea: PAIR(5160, 4020)
  439. }
  440. *case: Option2
  441. {
  442. *PrintableArea: PAIR(5160, 4020)
  443. }
  444. *case: Option3
  445. {
  446. *PrintableArea: PAIR(5160, 4014)
  447. *PrintableOrigin: PAIR(0, 138)
  448. }
  449. }
  450. }
  451. *case: Option3
  452. {
  453. *PrintableArea: PAIR(5162, 4021)
  454. *PrintableOrigin: PAIR(0, 135)
  455. *switch: Resolution
  456. {
  457. *case: Option1
  458. {
  459. *PrintableArea: PAIR(5160, 4020)
  460. }
  461. *case: Option2
  462. {
  463. *PrintableArea: PAIR(5160, 4020)
  464. }
  465. *case: Option3
  466. {
  467. *PrintableArea: PAIR(5160, 4014)
  468. *PrintableOrigin: PAIR(0, 138)
  469. }
  470. }
  471. }
  472. }
  473. }
  474. *Option: FANFOLD_US
  475. {
  476. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  477. *Command: CmdSelect
  478. {
  479. *Order: DOC_SETUP.4
  480. *Cmd: "<1B>2<1B>CB"
  481. }
  482. *switch: InputBin
  483. {
  484. *case: TRACTOR
  485. {
  486. *PrintableArea: PAIR(9792, 4752)
  487. *PrintableOrigin: PAIR(0, 0)
  488. }
  489. *case: MANUAL
  490. {
  491. *PrintableArea: PAIR(9792, 4401)
  492. *PrintableOrigin: PAIR(0, 135)
  493. *switch: Resolution
  494. {
  495. *case: Option3
  496. {
  497. *PrintableArea: PAIR(9792, 4398)
  498. *PrintableOrigin: PAIR(0, 138)
  499. }
  500. }
  501. }
  502. *case: Option3
  503. {
  504. *PrintableArea: PAIR(9792, 4401)
  505. *PrintableOrigin: PAIR(0, 135)
  506. *switch: Resolution
  507. {
  508. *case: Option3
  509. {
  510. *PrintableArea: PAIR(9792, 4398)
  511. *PrintableOrigin: PAIR(0, 138)
  512. }
  513. }
  514. }
  515. }
  516. }
  517. *Option: Option8
  518. {
  519. *rcNameID: 258
  520. *PageDimensions: PAIR(6120, 5184)
  521. *Command: CmdSelect
  522. {
  523. *Order: DOC_SETUP.4
  524. *Cmd: "<1B>2<1B>CH"
  525. }
  526. *switch: InputBin
  527. {
  528. *case: TRACTOR
  529. {
  530. *PrintableArea: PAIR(6120, 5184)
  531. *PrintableOrigin: PAIR(0, 0)
  532. }
  533. *case: MANUAL
  534. {
  535. *PrintableArea: PAIR(6120, 4833)
  536. *PrintableOrigin: PAIR(0, 135)
  537. *switch: Resolution
  538. {
  539. *case: Option3
  540. {
  541. *PrintableArea: PAIR(6120, 4830)
  542. *PrintableOrigin: PAIR(0, 138)
  543. }
  544. }
  545. }
  546. *case: Option3
  547. {
  548. *PrintableArea: PAIR(6120, 4833)
  549. *PrintableOrigin: PAIR(0, 135)
  550. *switch: Resolution
  551. {
  552. *case: Option3
  553. {
  554. *PrintableArea: PAIR(6120, 4830)
  555. *PrintableOrigin: PAIR(0, 138)
  556. }
  557. }
  558. }
  559. }
  560. }
  561. *Option: CUSTOMSIZE
  562. {
  563. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  564. *MinSize: PAIR(720, 432)
  565. *MaxSize: PAIR(10080, 9504)
  566. *MaxPrintableWidth: 9792
  567. *MinLeftMargin: 0
  568. *CenterPrintable?: FALSE
  569. *switch: InputBin
  570. {
  571. *case: TRACTOR
  572. {
  573. *TopMargin: 0
  574. *BottomMargin: 0
  575. }
  576. *case: MANUAL
  577. {
  578. *TopMargin: 135
  579. *BottomMargin: 216
  580. }
  581. *case: Option3
  582. {
  583. *TopMargin: 135
  584. *BottomMargin: 216
  585. }
  586. }
  587. *Command: CmdSelect
  588. {
  589. *Order: DOC_SETUP.4
  590. *Cmd: "<1B>2"
  591. }
  592. }
  593. }
  594. *Feature: PrintQuality
  595. {
  596. *rcNameID: =TEXT_QUALITY_DISPLAY
  597. *DefaultOption: LETTER_QUALITY
  598. *Option: LETTER_QUALITY
  599. {
  600. *rcNameID: =LETTER_QUALITY_DISPLAY
  601. *Command: CmdSelect
  602. {
  603. *Order: DOC_SETUP.2
  604. *Cmd: "<1B>x<01>"
  605. }
  606. }
  607. *Option: DRAFT_QUALITY
  608. {
  609. *rcNameID: =DRAFT_QUALITY_DISPLAY
  610. *Command: CmdSelect
  611. {
  612. *Order: DOC_SETUP.2
  613. *Cmd: "<1B>x<00>"
  614. }
  615. }
  616. }
  617. *Feature: Halftone
  618. {
  619. *rcNameID: =HALFTONING_DISPLAY
  620. *DefaultOption: HT_PATSIZE_AUTO
  621. *Option: HT_PATSIZE_AUTO
  622. {
  623. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  624. }
  625. *Ifdef: WINNT_50
  626. *Option: HT_PATSIZE_SUPERCELL_M
  627. {
  628. *rcNameID: =HT_SUPERCELL_DISPLAY
  629. }
  630. *Endif:
  631. *Option: HT_PATSIZE_6x6_M
  632. {
  633. *rcNameID: =HT_DITHER6X6_DISPLAY
  634. }
  635. *Option: HT_PATSIZE_8x8_M
  636. {
  637. *rcNameID: =HT_DITHER8X8_DISPLAY
  638. }
  639. }
  640. *Command: CmdStartDoc
  641. {
  642. *Order: DOC_SETUP.1
  643. *Cmd: "<1B>@<0D1B>t<011B>6<1B>R<001B>P"
  644. }
  645. *Command: CmdStartPage
  646. {
  647. *Order: PAGE_SETUP.1
  648. *Cmd: "<0D>"
  649. }
  650. *Command: CmdEndJob
  651. {
  652. *Order: JOB_FINISH.1
  653. *Cmd: "<0D>"
  654. }
  655. *RotateCoordinate?: FALSE
  656. *RotateRaster?: FALSE
  657. *RotateFont?: FALSE
  658. *switch: Orientation
  659. {
  660. *case: PORTRAIT
  661. {
  662. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  663. }
  664. *case: LANDSCAPE_CC270
  665. {
  666. *TextCaps: LIST(TC_RA_ABLE)
  667. }
  668. }
  669. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  670. *YMoveAttributes: LIST(SEND_CR_FIRST)
  671. *MaxLineSpacing: 255
  672. *YMoveThreshold: *
  673. *YMoveUnit: 216
  674. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  675. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  676. *Command: CmdCR { *Cmd : "<0D>" }
  677. *Command: CmdLF { *Cmd : "<0A>" }
  678. *Command: CmdFF { *Cmd : "<0C>" }
  679. *Command: CmdBackSpace { *Cmd : "<08>" }
  680. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  681. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  682. *EjectPageWithFF?: TRUE
  683. *switch: PaperSize
  684. {
  685. *case: CUSTOMSIZE
  686. {
  687. *EjectPageWithFF?: FALSE
  688. *switch: InputBin
  689. {
  690. *case: MANUAL
  691. {
  692. *EjectPageWithFF?: TRUE
  693. }
  694. *case: Option3
  695. {
  696. *EjectPageWithFF?: TRUE
  697. }
  698. }
  699. }
  700. }
  701. *OutputDataFormat: V_BYTE
  702. *OptimizeLeftBound?: FALSE
  703. *CursorXAfterSendBlockData: AT_GRXDATA_END
  704. *CursorYAfterSendBlockData: NO_MOVE
  705. *DefaultFont: 35
  706. *DefaultCTT: 2
  707. *switch: Orientation
  708. {
  709. *case: PORTRAIT
  710. {
  711. *DeviceFonts: LIST(35,36,37,38,39,40,41,42,43,44)
  712. }
  713. *case: LANDSCAPE_CC270
  714. {
  715. *DeviceFonts: LIST()
  716. }
  717. }
  718. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  719. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  720. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  721. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  722. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  723. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }