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.

323 lines
8.3 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: "tsep420.gpd"
  9. *ModelName: "Toshiba ExpressWriter 420"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "exp24res.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. *Command: CmdSelect
  34. {
  35. *Order: DOC_SETUP.7
  36. *Cmd: "<1B19>0"
  37. }
  38. }
  39. *Option: AUTO
  40. {
  41. *rcNameID: =AUTO_DISPLAY
  42. *Command: CmdSelect
  43. {
  44. *Order: DOC_SETUP.7
  45. *Cmd: "<1B19>4"
  46. }
  47. }
  48. }
  49. *Feature: Resolution
  50. {
  51. *rcNameID: =RESOLUTION_DISPLAY
  52. *DefaultOption: Option1
  53. *Option: Option1
  54. {
  55. *Name: "180 x 180 " =DOTS_PER_INCH
  56. *DPI: PAIR(180, 180)
  57. *TextDPI: PAIR(180, 180)
  58. *PinsPerLogPass: 24
  59. *PinsPerPhysPass: 24
  60. *MinStripBlankPixels: 180
  61. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  62. *SpotDiameter: 141
  63. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  64. }
  65. *Option: Option2
  66. {
  67. *Name: "360 x 180 " =DOTS_PER_INCH
  68. *DPI: PAIR(360, 180)
  69. *TextDPI: PAIR(360, 180)
  70. *PinsPerLogPass: 24
  71. *PinsPerPhysPass: 24
  72. *MinStripBlankPixels: 360
  73. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  74. *SpotDiameter: 141
  75. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  76. }
  77. }
  78. *Feature: PaperSize
  79. {
  80. *rcNameID: =PAPER_SIZE_DISPLAY
  81. *DefaultOption: LETTER
  82. *Option: LETTER
  83. {
  84. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  85. *switch: InputBin
  86. {
  87. *case: TRACTOR
  88. {
  89. *PrintableArea: PAIR(5760, 7920)
  90. *PrintableOrigin: PAIR(0, 0)
  91. }
  92. *case: AUTO
  93. {
  94. *PrintableArea: PAIR(5760, 6960)
  95. *PrintableOrigin: PAIR(0, 600)
  96. }
  97. }
  98. }
  99. *Option: LEGAL
  100. {
  101. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  102. *switch: InputBin
  103. {
  104. *case: TRACTOR
  105. {
  106. *PrintableArea: PAIR(5760, 10080)
  107. *PrintableOrigin: PAIR(0, 0)
  108. }
  109. *case: AUTO
  110. {
  111. *PrintableArea: PAIR(5760, 9120)
  112. *PrintableOrigin: PAIR(0, 600)
  113. }
  114. }
  115. }
  116. *Option: A4
  117. {
  118. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  119. *switch: InputBin
  120. {
  121. *case: TRACTOR
  122. {
  123. *PrintableArea: PAIR(5760, 8417)
  124. *PrintableOrigin: PAIR(0, 0)
  125. *switch: Resolution
  126. {
  127. *case: Option1
  128. {
  129. *PrintableArea: PAIR(5760, 8416)
  130. }
  131. *case: Option2
  132. {
  133. *PrintableArea: PAIR(5760, 8416)
  134. }
  135. }
  136. }
  137. *case: AUTO
  138. {
  139. *PrintableArea: PAIR(5760, 7457)
  140. *PrintableOrigin: PAIR(0, 600)
  141. *switch: Resolution
  142. {
  143. *case: Option1
  144. {
  145. *PrintableArea: PAIR(5760, 7456)
  146. }
  147. *case: Option2
  148. {
  149. *PrintableArea: PAIR(5760, 7456)
  150. }
  151. }
  152. }
  153. }
  154. }
  155. *Option: B5
  156. {
  157. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  158. *switch: InputBin
  159. {
  160. *case: TRACTOR
  161. {
  162. *PrintableArea: PAIR(5162, 7286)
  163. *PrintableOrigin: PAIR(0, 0)
  164. *switch: Resolution
  165. {
  166. *case: Option1
  167. {
  168. *PrintableArea: PAIR(5160, 7284)
  169. }
  170. *case: Option2
  171. {
  172. *PrintableArea: PAIR(5162, 7284)
  173. }
  174. }
  175. }
  176. *case: AUTO
  177. {
  178. *PrintableArea: PAIR(5162, 6326)
  179. *PrintableOrigin: PAIR(0, 600)
  180. *switch: Resolution
  181. {
  182. *case: Option1
  183. {
  184. *PrintableArea: PAIR(5160, 6324)
  185. }
  186. *case: Option2
  187. {
  188. *PrintableArea: PAIR(5162, 6324)
  189. }
  190. }
  191. }
  192. }
  193. }
  194. *Option: CUSTOMSIZE
  195. {
  196. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  197. *MinSize: PAIR(720, 360)
  198. *MaxSize: PAIR(6120, 15840)
  199. *MaxPrintableWidth: 5760
  200. *MinLeftMargin: 0
  201. *CenterPrintable?: FALSE
  202. *switch: InputBin
  203. {
  204. *case: TRACTOR
  205. {
  206. *TopMargin: 0
  207. *BottomMargin: 0
  208. }
  209. *case: AUTO
  210. {
  211. *TopMargin: 600
  212. *BottomMargin: 360
  213. }
  214. }
  215. }
  216. }
  217. *Feature: PrintQuality
  218. {
  219. *rcNameID: =TEXT_QUALITY_DISPLAY
  220. *DefaultOption: LETTER_QUALITY
  221. *Option: LETTER_QUALITY
  222. {
  223. *rcNameID: =LETTER_QUALITY_DISPLAY
  224. *Command: CmdSelect
  225. {
  226. *Order: DOC_SETUP.6
  227. *Cmd: "<1B>x1"
  228. }
  229. }
  230. }
  231. *Feature: Halftone
  232. {
  233. *rcNameID: =HALFTONING_DISPLAY
  234. *DefaultOption: HT_PATSIZE_AUTO
  235. *Option: HT_PATSIZE_AUTO
  236. {
  237. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  238. }
  239. *Ifdef: WINNT_50
  240. *Option: HT_PATSIZE_SUPERCELL_M
  241. {
  242. *rcNameID: =HT_SUPERCELL_DISPLAY
  243. }
  244. *Endif:
  245. *Option: HT_PATSIZE_6x6_M
  246. {
  247. *rcNameID: =HT_DITHER6X6_DISPLAY
  248. }
  249. *Option: HT_PATSIZE_8x8_M
  250. {
  251. *rcNameID: =HT_DITHER8X8_DISPLAY
  252. }
  253. }
  254. *Command: CmdStartDoc
  255. {
  256. *Order: DOC_SETUP.1
  257. *Cmd: "<1B>t1"
  258. }
  259. *Command: CmdStartPage
  260. {
  261. *Order: PAGE_SETUP.1
  262. *Cmd: "<0D>"
  263. }
  264. *Command: CmdEndJob
  265. {
  266. *Order: JOB_FINISH.1
  267. *Cmd: "<0D>"
  268. }
  269. *RotateCoordinate?: FALSE
  270. *RotateRaster?: FALSE
  271. *RotateFont?: FALSE
  272. *switch: Orientation
  273. {
  274. *case: PORTRAIT
  275. {
  276. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  277. }
  278. *case: LANDSCAPE_CC270
  279. {
  280. *TextCaps: LIST(TC_RA_ABLE)
  281. }
  282. }
  283. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  284. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  285. *MaxLineSpacing: 255
  286. *XMoveThreshold: *
  287. *XMoveUnit: 180
  288. *Command: CmdXMoveRelRight { *Cmd : "<1B>\" %l{(DestXRel / 4) } }
  289. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 4) } }
  290. *Command: CmdCR { *Cmd : "<0D>" }
  291. *Command: CmdLF { *Cmd : "<0A>" }
  292. *Command: CmdFF { *Cmd : "<0C>" }
  293. *Command: CmdBackSpace { *Cmd : "<08>" }
  294. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  295. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  296. *EjectPageWithFF?: TRUE
  297. *OutputDataFormat: V_BYTE
  298. *OptimizeLeftBound?: FALSE
  299. *CursorXAfterSendBlockData: AT_GRXDATA_END
  300. *CursorYAfterSendBlockData: NO_MOVE
  301. *DefaultFont: 1
  302. *DefaultCTT: 10
  303. *switch: Orientation
  304. {
  305. *case: PORTRAIT
  306. {
  307. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  308. + 17,18,19,20,21,22,23,24,26,27,28,29,30,32,33,34,
  309. + 35,36,38)
  310. }
  311. *case: LANDSCAPE_CC270
  312. {
  313. *DeviceFonts: LIST()
  314. }
  315. }
  316. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  317. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  318. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  319. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  320. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  321. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  322. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p1" }
  323. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p0" }