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.

304 lines
7.4 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "EPRX80.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Epson RX-80"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "ep9res.dll"
  12. *PrintRate: 100
  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. }
  37. *Feature: Resolution
  38. {
  39. *rcNameID: =RESOLUTION_DISPLAY
  40. *DefaultOption: Option1
  41. *Option: Option1
  42. {
  43. *Name: "120 x 144 " =DOTS_PER_INCH
  44. *DPI: PAIR(120, 144)
  45. *TextDPI: PAIR(120, 144)
  46. *PinsPerLogPass: 16
  47. *PinsPerPhysPass: 8
  48. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  49. *SpotDiameter: 140
  50. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  51. }
  52. *Option: Option2
  53. {
  54. *Name: "240 x 144 " =DOTS_PER_INCH
  55. *DPI: PAIR(240, 144)
  56. *TextDPI: PAIR(240, 144)
  57. *PinsPerLogPass: 16
  58. *PinsPerPhysPass: 8
  59. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  60. *SpotDiameter: 170
  61. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  62. }
  63. *Option: Option3
  64. {
  65. *Name: "120 x 72 " =DOTS_PER_INCH
  66. *DPI: PAIR(120, 72)
  67. *TextDPI: PAIR(120, 72)
  68. *PinsPerLogPass: 8
  69. *PinsPerPhysPass: 8
  70. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  71. *SpotDiameter: 100
  72. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  73. }
  74. }
  75. *Feature: PaperSize
  76. {
  77. *rcNameID: =PAPER_SIZE_DISPLAY
  78. *DefaultOption: LETTER
  79. *Option: LETTER
  80. {
  81. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  82. *PrintableArea: PAIR(5760, 4752)
  83. *PrintableOrigin: PAIR(180, 0)
  84. *Command: CmdSelect
  85. {
  86. *Order: DOC_SETUP.4
  87. *Cmd: "<1B>2<1B>CB"
  88. }
  89. }
  90. *Option: LEGAL
  91. {
  92. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  93. *PrintableArea: PAIR(5760, 6048)
  94. *PrintableOrigin: PAIR(180, 0)
  95. *Command: CmdSelect
  96. {
  97. *Order: DOC_SETUP.4
  98. *Cmd: "<1B>2<1B>CT"
  99. }
  100. }
  101. *Option: A4
  102. {
  103. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  104. *PrintableArea: PAIR(5760, 5050)
  105. *PrintableOrigin: PAIR(180, 0)
  106. *switch: Resolution
  107. {
  108. *case: Option1
  109. {
  110. *PrintableArea: PAIR(5760, 5049)
  111. }
  112. *case: Option2
  113. {
  114. *PrintableArea: PAIR(5760, 5049)
  115. }
  116. *case: Option3
  117. {
  118. *PrintableArea: PAIR(5760, 5046)
  119. }
  120. }
  121. *Command: CmdSelect
  122. {
  123. *Order: DOC_SETUP.4
  124. *Cmd: "<1B>2<1B>CF"
  125. }
  126. }
  127. *Option: A5
  128. {
  129. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  130. *PrintableArea: PAIR(4018, 3573)
  131. *PrintableOrigin: PAIR(180, 0)
  132. *switch: Resolution
  133. {
  134. *case: Option1
  135. {
  136. *PrintableArea: PAIR(4014, 3573)
  137. }
  138. *case: Option2
  139. {
  140. *PrintableArea: PAIR(4017, 3573)
  141. }
  142. *case: Option3
  143. {
  144. *PrintableArea: PAIR(4014, 3570)
  145. }
  146. }
  147. *Command: CmdSelect
  148. {
  149. *Order: DOC_SETUP.4
  150. *Cmd: "<1B>2<1B>C2"
  151. }
  152. }
  153. *Option: B5
  154. {
  155. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  156. *PrintableArea: PAIR(4982, 4372)
  157. *PrintableOrigin: PAIR(180, 0)
  158. *switch: Resolution
  159. {
  160. *case: Option1
  161. {
  162. *PrintableArea: PAIR(4980, 4371)
  163. }
  164. *case: Option2
  165. {
  166. *PrintableArea: PAIR(4980, 4371)
  167. }
  168. *case: Option3
  169. {
  170. *PrintableArea: PAIR(4980, 4368)
  171. }
  172. }
  173. *Command: CmdSelect
  174. {
  175. *Order: DOC_SETUP.4
  176. *Cmd: "<1B>2<1B>C="
  177. }
  178. }
  179. *Option: Option6
  180. {
  181. *rcNameID: 258
  182. *PageDimensions: PAIR(6120, 5184)
  183. *PrintableArea: PAIR(5760, 5184)
  184. *PrintableOrigin: PAIR(180, 0)
  185. *Command: CmdSelect
  186. {
  187. *Order: DOC_SETUP.4
  188. *Cmd: "<1B>2<1B>CH"
  189. }
  190. }
  191. *Option: CUSTOMSIZE
  192. {
  193. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  194. *MinSize: PAIR(720, 432)
  195. *MaxSize: PAIR(6120, 9504)
  196. *MaxPrintableWidth: 5760
  197. *MinLeftMargin: 180
  198. *CenterPrintable?: FALSE
  199. *Command: CmdSelect
  200. {
  201. *Order: DOC_SETUP.4
  202. *Cmd: "<1B>2"
  203. }
  204. }
  205. }
  206. *Feature: Halftone
  207. {
  208. *rcNameID: =HALFTONING_DISPLAY
  209. *DefaultOption: HT_PATSIZE_AUTO
  210. *Option: HT_PATSIZE_AUTO
  211. {
  212. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  213. }
  214. *Ifdef: WINNT_50
  215. *Option: HT_PATSIZE_SUPERCELL_M
  216. {
  217. *rcNameID: =HT_SUPERCELL_DISPLAY
  218. }
  219. *Endif:
  220. *Option: HT_PATSIZE_6x6_M
  221. {
  222. *rcNameID: =HT_DITHER6X6_DISPLAY
  223. }
  224. *Option: HT_PATSIZE_8x8_M
  225. {
  226. *rcNameID: =HT_DITHER8X8_DISPLAY
  227. }
  228. }
  229. *Command: CmdStartDoc
  230. {
  231. *Order: DOC_SETUP.1
  232. *Cmd: "<1B>@<0D1B>t<011B>6<1B>R<001B>P"
  233. }
  234. *Command: CmdStartPage
  235. {
  236. *Order: PAGE_SETUP.1
  237. *Cmd: "<0D>"
  238. }
  239. *Command: CmdEndJob
  240. {
  241. *Order: JOB_FINISH.1
  242. *Cmd: "<0D>"
  243. }
  244. *RotateCoordinate?: FALSE
  245. *RotateRaster?: FALSE
  246. *RotateFont?: FALSE
  247. *switch: Orientation
  248. {
  249. *case: PORTRAIT
  250. {
  251. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  252. }
  253. *case: LANDSCAPE_CC270
  254. {
  255. *TextCaps: LIST(TC_RA_ABLE)
  256. }
  257. }
  258. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  259. *YMoveAttributes: LIST(SEND_CR_FIRST)
  260. *MaxLineSpacing: 255
  261. *YMoveThreshold: *
  262. *YMoveUnit: 216
  263. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  264. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  265. *Command: CmdCR { *Cmd : "<0D>" }
  266. *Command: CmdLF { *Cmd : "<0A>" }
  267. *Command: CmdFF { *Cmd : "<0C>" }
  268. *Command: CmdBackSpace { *Cmd : "<08>" }
  269. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  270. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  271. *EjectPageWithFF?: TRUE
  272. *switch: PaperSize
  273. {
  274. *case: CUSTOMSIZE
  275. {
  276. *EjectPageWithFF?: FALSE
  277. *switch: InputBin
  278. {
  279. }
  280. }
  281. }
  282. *OutputDataFormat: V_BYTE
  283. *OptimizeLeftBound?: FALSE
  284. *CursorXAfterSendBlockData: AT_GRXDATA_END
  285. *CursorYAfterSendBlockData: NO_MOVE
  286. *DefaultFont: 35
  287. *DefaultCTT: 2
  288. *switch: Orientation
  289. {
  290. *case: PORTRAIT
  291. {
  292. *DeviceFonts: LIST(35,36,37,39,40)
  293. }
  294. *case: LANDSCAPE_CC270
  295. {
  296. *DeviceFonts: LIST()
  297. }
  298. }
  299. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  300. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  301. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  302. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  303. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  304. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }