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.

447 lines
11 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "EPFX800.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Epson FX-800"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "ep9res.dll"
  12. *PrintRate: 200
  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.2
  46. *Cmd: "<1B19>4<1B19>1"
  47. }
  48. }
  49. }
  50. *Feature: PaperSize
  51. {
  52. *rcNameID: =PAPER_SIZE_DISPLAY
  53. *DefaultOption: LETTER
  54. *Option: LETTER
  55. {
  56. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  57. *Command: CmdSelect
  58. {
  59. *Order: DOC_SETUP.3
  60. *Cmd: "<1B>2<1B>CB"
  61. }
  62. *switch: InputBin
  63. {
  64. *case: TRACTOR
  65. {
  66. *PrintableArea: PAIR(5760, 4752)
  67. *PrintableOrigin: PAIR(180, 0)
  68. }
  69. *default:
  70. {
  71. *PrintableArea: PAIR(5760, 4401)
  72. *PrintableOrigin: PAIR(180, 135)
  73. *switch: Resolution
  74. {
  75. *case: Option1
  76. {
  77. *PrintableArea: PAIR(5760, 4398)
  78. *PrintableOrigin: PAIR(180, 138)
  79. }
  80. }
  81. }
  82. }
  83. }
  84. *Option: LEGAL
  85. {
  86. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  87. *Command: CmdSelect
  88. {
  89. *Order: DOC_SETUP.3
  90. *Cmd: "<1B>2<1B>CT"
  91. }
  92. *switch: InputBin
  93. {
  94. *case: TRACTOR
  95. {
  96. *PrintableArea: PAIR(5760, 6048)
  97. *PrintableOrigin: PAIR(180, 0)
  98. }
  99. *default:
  100. {
  101. *PrintableArea: PAIR(5760, 5697)
  102. *PrintableOrigin: PAIR(180, 135)
  103. *switch: Resolution
  104. {
  105. *case: Option1
  106. {
  107. *PrintableArea: PAIR(5760, 5694)
  108. *PrintableOrigin: PAIR(180, 138)
  109. }
  110. }
  111. }
  112. }
  113. }
  114. *Option: A4
  115. {
  116. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  117. *Command: CmdSelect
  118. {
  119. *Order: DOC_SETUP.3
  120. *Cmd: "<1B>2<1B>CF"
  121. }
  122. *switch: InputBin
  123. {
  124. *case: TRACTOR
  125. {
  126. *PrintableArea: PAIR(5760, 5049)
  127. *PrintableOrigin: PAIR(180, 0)
  128. *switch: Resolution
  129. {
  130. *case: Option1
  131. {
  132. *PrintableArea: PAIR(5760, 5046)
  133. }
  134. }
  135. }
  136. *default:
  137. {
  138. *PrintableArea: PAIR(5760, 4698)
  139. *PrintableOrigin: PAIR(180, 135)
  140. *switch: Resolution
  141. {
  142. *case: Option1
  143. {
  144. *PrintableArea: PAIR(5760, 4692)
  145. *PrintableOrigin: PAIR(180, 138)
  146. }
  147. }
  148. }
  149. }
  150. }
  151. *Option: A5
  152. {
  153. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  154. *Command: CmdSelect
  155. {
  156. *Order: DOC_SETUP.3
  157. *Cmd: "<1B>2<1B>C2"
  158. }
  159. *switch: InputBin
  160. {
  161. *case: TRACTOR
  162. {
  163. *PrintableOrigin: PAIR(180, 0)
  164. *switch: Resolution
  165. {
  166. *case: Option1
  167. {
  168. *PrintableArea: PAIR(4014, 3570)
  169. }
  170. *case: Option2
  171. {
  172. *PrintableArea: PAIR(4017, 3573)
  173. }
  174. *case: Option3
  175. {
  176. *PrintableArea: PAIR(4014, 3573)
  177. }
  178. }
  179. }
  180. *default:
  181. {
  182. *PrintableOrigin: PAIR(180, 135)
  183. *switch: Resolution
  184. {
  185. *case: Option1
  186. {
  187. *PrintableArea: PAIR(4014, 3216)
  188. *PrintableOrigin: PAIR(180, 138)
  189. }
  190. *case: Option2
  191. {
  192. *PrintableArea: PAIR(4017, 3222)
  193. }
  194. *case: Option3
  195. {
  196. *PrintableArea: PAIR(4014, 3222)
  197. }
  198. }
  199. }
  200. }
  201. }
  202. *Option: B5
  203. {
  204. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  205. *Command: CmdSelect
  206. {
  207. *Order: DOC_SETUP.3
  208. *Cmd: "<1B>2<1B>C="
  209. }
  210. *switch: InputBin
  211. {
  212. *case: TRACTOR
  213. {
  214. *PrintableArea: PAIR(4980, 4371)
  215. *PrintableOrigin: PAIR(180, 0)
  216. *switch: Resolution
  217. {
  218. *case: Option1
  219. {
  220. *PrintableArea: PAIR(4980, 4368)
  221. }
  222. }
  223. }
  224. *default:
  225. {
  226. *PrintableArea: PAIR(4980, 4020)
  227. *PrintableOrigin: PAIR(180, 135)
  228. *switch: Resolution
  229. {
  230. *case: Option1
  231. {
  232. *PrintableArea: PAIR(4980, 4014)
  233. *PrintableOrigin: PAIR(180, 138)
  234. }
  235. }
  236. }
  237. }
  238. }
  239. *Option: Option6
  240. {
  241. *rcNameID: 258
  242. *PageDimensions: PAIR(6120, 5184)
  243. *Command: CmdSelect
  244. {
  245. *Order: DOC_SETUP.3
  246. *Cmd: "<1B>2<1B>CH"
  247. }
  248. *switch: InputBin
  249. {
  250. *case: TRACTOR
  251. {
  252. *PrintableArea: PAIR(5760, 5184)
  253. *PrintableOrigin: PAIR(180, 0)
  254. }
  255. *default:
  256. {
  257. *PrintableArea: PAIR(5760, 4833)
  258. *PrintableOrigin: PAIR(180, 135)
  259. *switch: Resolution
  260. {
  261. *case: Option1
  262. {
  263. *PrintableArea: PAIR(5760, 4830)
  264. *PrintableOrigin: PAIR(180, 138)
  265. }
  266. }
  267. }
  268. }
  269. }
  270. *Option: CUSTOMSIZE
  271. {
  272. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  273. *MinSize: PAIR(720, 432)
  274. *MaxSize: PAIR(6120, 9504)
  275. *MaxPrintableWidth: 5760
  276. *MinLeftMargin: 180
  277. *CenterPrintable?: FALSE
  278. *switch: InputBin
  279. {
  280. *case: TRACTOR
  281. {
  282. *TopMargin: 0
  283. *BottomMargin: 0
  284. }
  285. *default:
  286. {
  287. *TopMargin: 138
  288. *BottomMargin: 216
  289. }
  290. }
  291. *Command: CmdSelect
  292. {
  293. *Order: DOC_SETUP.3
  294. *Cmd: "<1B>2"
  295. }
  296. }
  297. }
  298. *Feature: Resolution
  299. {
  300. *rcNameID: =RESOLUTION_DISPLAY
  301. *DefaultOption: Option1
  302. *Option: Option1
  303. {
  304. *Name: "120 x 72 " =DOTS_PER_INCH
  305. *DPI: PAIR(120, 72)
  306. *TextDPI: PAIR(120, 72)
  307. *PinsPerLogPass: 8
  308. *PinsPerPhysPass: 8
  309. *SpotDiameter: 100
  310. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  311. }
  312. *Option: Option2
  313. {
  314. *Name: "240 x 144 " =DOTS_PER_INCH
  315. *DPI: PAIR(240, 144)
  316. *TextDPI: PAIR(240, 144)
  317. *PinsPerLogPass: 16
  318. *PinsPerPhysPass: 8
  319. *SpotDiameter: 170
  320. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  321. }
  322. *Option: Option3
  323. {
  324. *Name: "120 x 144 " =DOTS_PER_INCH
  325. *DPI: PAIR(120, 144)
  326. *TextDPI: PAIR(120, 144)
  327. *PinsPerLogPass: 16
  328. *PinsPerPhysPass: 8
  329. *SpotDiameter: 140
  330. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  331. }
  332. }
  333. *Feature: Halftone
  334. {
  335. *rcNameID: =HALFTONING_DISPLAY
  336. *DefaultOption: HT_PATSIZE_AUTO
  337. *Option: HT_PATSIZE_AUTO
  338. {
  339. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  340. }
  341. *Ifdef: WINNT_50
  342. *Option: HT_PATSIZE_SUPERCELL_M
  343. {
  344. *rcNameID: =HT_SUPERCELL_DISPLAY
  345. }
  346. *Endif:
  347. *Option: HT_PATSIZE_6x6_M
  348. {
  349. *rcNameID: =HT_DITHER6X6_DISPLAY
  350. }
  351. *Option: HT_PATSIZE_8x8_M
  352. {
  353. *rcNameID: =HT_DITHER8X8_DISPLAY
  354. }
  355. }
  356. *Command: CmdStartDoc
  357. {
  358. *Order: DOC_SETUP.1
  359. *Cmd: "<1B>@<0D1B>t<011B>6<1B>R<001B>x<011B>P"
  360. }
  361. *Command: CmdStartPage
  362. {
  363. *Order: PAGE_SETUP.1
  364. *Cmd: "<0D>"
  365. }
  366. *Command: CmdEndJob
  367. {
  368. *Order: JOB_FINISH.1
  369. *Cmd: "<0D>"
  370. }
  371. *RotateCoordinate?: FALSE
  372. *RotateRaster?: FALSE
  373. *RotateFont?: FALSE
  374. *switch: Orientation
  375. {
  376. *case: PORTRAIT
  377. {
  378. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  379. }
  380. *case: LANDSCAPE_CC270
  381. {
  382. *TextCaps: LIST(TC_RA_ABLE)
  383. }
  384. }
  385. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  386. *YMoveAttributes: LIST(SEND_CR_FIRST)
  387. *MaxLineSpacing: 255
  388. *XMoveThreshold: *
  389. *YMoveThreshold: *
  390. *XMoveUnit: 120
  391. *YMoveUnit: 216
  392. *Command: CmdXMoveRelRight { *Cmd : "<1B>\" %l{(DestXRel / 6) } }
  393. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  394. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  395. *Command: CmdCR { *Cmd : "<0D>" }
  396. *Command: CmdLF { *Cmd : "<0A>" }
  397. *Command: CmdFF { *Cmd : "<0C>" }
  398. *Command: CmdBackSpace { *Cmd : "<08>" }
  399. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  400. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  401. *EjectPageWithFF?: TRUE
  402. *switch: PaperSize
  403. {
  404. *case: CUSTOMSIZE
  405. {
  406. *EjectPageWithFF?: FALSE
  407. *switch: InputBin
  408. {
  409. *case: MANUAL
  410. {
  411. *EjectPageWithFF?: TRUE
  412. }
  413. *case: Option3
  414. {
  415. *EjectPageWithFF?: TRUE
  416. }
  417. }
  418. }
  419. }
  420. *OutputDataFormat: V_BYTE
  421. *OptimizeLeftBound?: FALSE
  422. *StripBlanks: LIST(LEADING,TRAILING)
  423. *CursorXAfterSendBlockData: AT_GRXDATA_END
  424. *CursorYAfterSendBlockData: NO_MOVE
  425. *DefaultFont: 1
  426. *DefaultCTT: 1
  427. *switch: Orientation
  428. {
  429. *case: PORTRAIT
  430. {
  431. *DeviceFonts: LIST(1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,
  432. + 18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,
  433. + 45,46,48,49,50,51)
  434. }
  435. *case: LANDSCAPE_CC270
  436. {
  437. *DeviceFonts: LIST()
  438. }
  439. }
  440. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  441. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  442. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  443. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  444. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  445. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }