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.

583 lines
16 KiB

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