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.

416 lines
11 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: "eplq208t.gpd"
  9. *ModelName: "EPSON LQ-2080C"
  10. *MasterUnits: PAIR(360, 360)
  11. *ResourceDLL: "eplqtres.dll"
  12. *PrinterType: SERIAL
  13. *FontCartSlots: 1
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: Option1
  31. *Option: Option1
  32. {
  33. *rcNameID: 258
  34. *OptionID: 258
  35. *Command: CmdSelect
  36. {
  37. *Order: DOC_SETUP.3
  38. *Cmd: "<1B19>0"
  39. }
  40. }
  41. *Option: Option2
  42. {
  43. *rcNameID: 259
  44. *OptionID: 259
  45. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  46. *Command: CmdSelect
  47. {
  48. *Order: DOC_SETUP.3
  49. *Cmd: "<1B19>0"
  50. }
  51. }
  52. *Option: Option3
  53. {
  54. *rcNameID: 260
  55. *OptionID: 260
  56. *Command: CmdSelect
  57. {
  58. *Order: DOC_SETUP.3
  59. *Cmd: "<1B19>4<1B19>1"
  60. }
  61. }
  62. *Option: Option4
  63. {
  64. *rcNameID: 261
  65. *OptionID: 261
  66. *Command: CmdSelect
  67. {
  68. *Order: DOC_SETUP.3
  69. *Cmd: "<1B19>4<1B19>2"
  70. }
  71. }
  72. }
  73. *Feature: Resolution
  74. {
  75. *rcNameID: =RESOLUTION_DISPLAY
  76. *DefaultOption: Option2
  77. *Option: Option1
  78. {
  79. *Name: "360 x 360 " =DOTS_PER_INCH
  80. *DPI: PAIR(360, 360)
  81. *TextDPI: PAIR(360, 360)
  82. *PinsPerLogPass: 48
  83. *PinsPerPhysPass: 24
  84. *MinStripBlankPixels: 360
  85. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  86. *% Warning: this resolution has RES_BO_NO_ADJACENT set in GPC, which is ignored by GPD. Custom code is needed.
  87. *SpotDiameter: 170
  88. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  89. }
  90. *Option: Option2
  91. {
  92. *Name: "180 x 180 " =DOTS_PER_INCH
  93. *DPI: PAIR(180, 180)
  94. *TextDPI: PAIR(180, 180)
  95. *PinsPerLogPass: 24
  96. *PinsPerPhysPass: 24
  97. *MinStripBlankPixels: 180
  98. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  99. *SpotDiameter: 120
  100. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  101. }
  102. }
  103. *Feature: PaperSize
  104. {
  105. *rcNameID: =PAPER_SIZE_DISPLAY
  106. *DefaultOption: LETTER
  107. *Option: LETTER
  108. {
  109. *rcNameID: =LETTER_DISPLAY
  110. *PrintableArea: PAIR(3060, 3615)
  111. *PrintableOrigin: PAIR(0, 120)
  112. *switch: Resolution
  113. {
  114. *case: Option2
  115. {
  116. *% Warning: the following printable length is adjusted (3615->3614) so it is divisible by the resolution Y scale.
  117. *PrintableArea: PAIR(3060, 3614)
  118. }
  119. }
  120. *Command: CmdSelect
  121. {
  122. *Order: DOC_SETUP.4
  123. *Cmd: "<1B>2<1B>CB"
  124. }
  125. }
  126. *Option: Option2
  127. {
  128. *rcNameID: 270
  129. *OptionID: 270
  130. *PageDimensions: PAIR(3060, 1980)
  131. *PrintableArea: PAIR(3060, 1635)
  132. *PrintableOrigin: PAIR(0, 120)
  133. *switch: Resolution
  134. {
  135. *case: Option2
  136. {
  137. *% Warning: the following printable length is adjusted (1635->1634) so it is divisible by the resolution Y scale.
  138. *PrintableArea: PAIR(3060, 1634)
  139. }
  140. }
  141. *Command: CmdSelect
  142. {
  143. *Order: DOC_SETUP.4
  144. *Cmd: "<1B>2<1B>C!"
  145. }
  146. }
  147. *Option: LEGAL
  148. {
  149. *rcNameID: =LEGAL_DISPLAY
  150. *PrintableArea: PAIR(3060, 4695)
  151. *PrintableOrigin: PAIR(0, 120)
  152. *switch: Resolution
  153. {
  154. *case: Option2
  155. {
  156. *% Warning: the following printable length is adjusted (4695->4694) so it is divisible by the resolution Y scale.
  157. *PrintableArea: PAIR(3060, 4694)
  158. }
  159. }
  160. *Command: CmdSelect
  161. {
  162. *Order: DOC_SETUP.4
  163. *Cmd: "<1B>2<1B>CT"
  164. }
  165. }
  166. *Option: A3
  167. {
  168. *rcNameID: =A3_DISPLAY
  169. *PrintableArea: PAIR(4208, 5609)
  170. *PrintableOrigin: PAIR(0, 120)
  171. *switch: Resolution
  172. {
  173. *case: Option2
  174. {
  175. *% Warning: the following printable length is adjusted (5609->5608) so it is divisible by the resolution Y scale.
  176. *PrintableArea: PAIR(4208, 5608)
  177. }
  178. }
  179. *Command: CmdSelect
  180. {
  181. *Order: DOC_SETUP.4
  182. *Cmd: "<1B>2<1B>Cc"
  183. }
  184. }
  185. *Option: A4
  186. {
  187. *rcNameID: =A4_DISPLAY
  188. *PrintableArea: PAIR(2977, 3863)
  189. *PrintableOrigin: PAIR(0, 120)
  190. *switch: Resolution
  191. {
  192. *case: Option2
  193. {
  194. *% Warning: the following printable width is adjusted (2977->2976) so it is divisible by the resolution X scale.
  195. *% Warning: the following printable length is adjusted (3863->3862) so it is divisible by the resolution Y scale.
  196. *PrintableArea: PAIR(2976, 3862)
  197. }
  198. }
  199. *Command: CmdSelect
  200. {
  201. *Order: DOC_SETUP.4
  202. *Cmd: "<1B>2<1B>CF"
  203. }
  204. }
  205. *Option: A5
  206. {
  207. *rcNameID: =A5_DISPLAY
  208. *PrintableArea: PAIR(2099, 2632)
  209. *PrintableOrigin: PAIR(0, 120)
  210. *switch: Resolution
  211. {
  212. *case: Option2
  213. {
  214. *% Warning: the following printable width is adjusted (2099->2098) so it is divisible by the resolution X scale.
  215. *PrintableArea: PAIR(2098, 2632)
  216. }
  217. }
  218. *Command: CmdSelect
  219. {
  220. *Order: DOC_SETUP.4
  221. *Cmd: "<1B>2<1B>C2"
  222. }
  223. }
  224. *Option: B4
  225. {
  226. *rcNameID: =B4_DISPLAY
  227. *PrintableArea: PAIR(3643, 4814)
  228. *PrintableOrigin: PAIR(0, 120)
  229. *switch: Resolution
  230. {
  231. *case: Option2
  232. {
  233. *% Warning: the following printable width is adjusted (3643->3642) so it is divisible by the resolution X scale.
  234. *PrintableArea: PAIR(3642, 4814)
  235. }
  236. }
  237. *Command: CmdSelect
  238. {
  239. *Order: DOC_SETUP.4
  240. *Cmd: "<1B>2<1B>CT"
  241. }
  242. }
  243. *Option: B5
  244. {
  245. *rcNameID: =B5_DISPLAY
  246. *PrintableArea: PAIR(2581, 3298)
  247. *PrintableOrigin: PAIR(0, 120)
  248. *switch: Resolution
  249. {
  250. *case: Option2
  251. {
  252. *% Warning: the following printable width is adjusted (2581->2580) so it is divisible by the resolution X scale.
  253. *PrintableArea: PAIR(2580, 3298)
  254. }
  255. }
  256. *Command: CmdSelect
  257. {
  258. *Order: DOC_SETUP.4
  259. *Cmd: "<1B>2<1B>C="
  260. }
  261. }
  262. *Option: FANFOLD_US
  263. {
  264. *rcNameID: =FANFOLD_US_DISPLAY
  265. *PrintableArea: PAIR(4896, 3615)
  266. *PrintableOrigin: PAIR(0, 120)
  267. *switch: Resolution
  268. {
  269. *case: Option2
  270. {
  271. *% Warning: the following printable length is adjusted (3615->3614) so it is divisible by the resolution Y scale.
  272. *PrintableArea: PAIR(4896, 3614)
  273. }
  274. }
  275. *Command: CmdSelect
  276. {
  277. *Order: DOC_SETUP.4
  278. *Cmd: "<1B>2<1B>CB"
  279. }
  280. }
  281. *Option: CUSTOMSIZE
  282. {
  283. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  284. *MinSize: PAIR(360, 360)
  285. *MaxSize: PAIR(5040, 7920)
  286. *MaxPrintableWidth: 4896
  287. *MinLeftMargin: 0
  288. *CenterPrintable?: FALSE
  289. *TopMargin: 120
  290. *BottomMargin: 225
  291. *CustCursorOriginX: %d{43}
  292. *CustCursorOriginY: %d{120}
  293. *CustPrintableOriginX: %d{43}
  294. *CustPrintableOriginY: %d{120}
  295. *CustPrintableSizeX: %d{PhysPaperWidth-86}
  296. *CustPrintableSizeY: %d{PhysPaperLength-345}
  297. *Command: CmdSelect
  298. {
  299. *Order: DOC_SETUP.4
  300. *Cmd: "<1B>2<1B>C" %c[0,127]{(PhysPaperLength / 60) }
  301. }
  302. }
  303. }
  304. *Feature: PrintQuality
  305. {
  306. *rcNameID: =TEXT_QUALITY_DISPLAY
  307. *DefaultOption: Option2
  308. *Option: Option1
  309. {
  310. *rcNameID: 271
  311. *Command: CmdSelect
  312. {
  313. *Order: DOC_SETUP.2
  314. *Cmd: "<1B>x<00>"
  315. }
  316. }
  317. *Option: Option2
  318. {
  319. *rcNameID: 272
  320. *Command: CmdSelect
  321. {
  322. *Order: DOC_SETUP.2
  323. *Cmd: "<1B>x<01>"
  324. }
  325. }
  326. }
  327. *Feature: Halftone
  328. {
  329. *rcNameID: =HALFTONING_DISPLAY
  330. *DefaultOption: HT_PATSIZE_AUTO
  331. *Option: HT_PATSIZE_AUTO
  332. {
  333. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  334. }
  335. *Option: HT_PATSIZE_SUPERCELL_M
  336. {
  337. *rcNameID: =HT_SUPERCELL_DISPLAY
  338. }
  339. *Option: HT_PATSIZE_6x6_M
  340. {
  341. *rcNameID: =HT_DITHER6X6_DISPLAY
  342. }
  343. *Option: HT_PATSIZE_8x8_M
  344. {
  345. *rcNameID: =HT_DITHER8X8_DISPLAY
  346. }
  347. }
  348. *Command: CmdStartDoc
  349. {
  350. *Order: DOC_SETUP.1
  351. *Cmd: "<1B>@<1B>t<011B>6<1B>R<001B>r<001B>U<01>"
  352. }
  353. *Command: CmdStartPage
  354. {
  355. *Order: PAGE_SETUP.1
  356. *Cmd: "<0D>"
  357. }
  358. *Command: CmdEndJob
  359. {
  360. *Order: JOB_FINISH.1
  361. *Cmd: "<1B>@"
  362. }
  363. *RotateCoordinate?: FALSE
  364. *RotateRaster?: FALSE
  365. *RotateFont?: FALSE
  366. *switch: Orientation
  367. {
  368. *case: PORTRAIT
  369. {
  370. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  371. }
  372. *case: LANDSCAPE_CC270
  373. {
  374. *TextCaps: LIST(TC_RA_ABLE)
  375. }
  376. }
  377. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  378. *YMoveAttributes: LIST(SEND_CR_FIRST)
  379. *MaxLineSpacing: 255
  380. *XMoveThreshold: 0
  381. *YMoveThreshold: *
  382. *XMoveUnit: 60
  383. *YMoveUnit: 180
  384. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,765]{max_repeat((DestX / 6) )} }
  385. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  386. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  387. *Command: CmdCR { *Cmd : "<0D>" }
  388. *Command: CmdLF { *Cmd : "<0A>" }
  389. *Command: CmdFF { *Cmd : "<0C>" }
  390. *Command: CmdBackSpace { *Cmd : "<08>" }
  391. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  392. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  393. *EjectPageWithFF?: TRUE
  394. *OutputDataFormat: V_BYTE
  395. *OptimizeLeftBound?: FALSE
  396. *CursorXAfterSendBlockData: AT_GRXDATA_END
  397. *CursorYAfterSendBlockData: NO_MOVE
  398. *DefaultFont: 3
  399. *DefaultCTT: 2
  400. *switch: Orientation
  401. {
  402. *case: PORTRAIT
  403. {
  404. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
  405. }
  406. *case: LANDSCAPE_CC270
  407. {
  408. *DeviceFonts: LIST()
  409. }
  410. }
  411. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  412. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  413. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  414. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  415. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  416. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }