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.

281 lines
6.7 KiB

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