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.

371 lines
9.3 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "SKSL80IP.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Seikosha SL-80 IP"
  10. *MasterUnits: PAIR(360, 360)
  11. *ResourceDLL: "sek24res.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. }
  34. *Option: AUTO
  35. {
  36. *rcNameID: =AUTO_DISPLAY
  37. }
  38. }
  39. *Feature: Resolution
  40. {
  41. *rcNameID: =RESOLUTION_DISPLAY
  42. *DefaultOption: Option1
  43. *Option: Option1
  44. {
  45. *Name: "360 x 360 " =DOTS_PER_INCH
  46. *DPI: PAIR(360, 360)
  47. *TextDPI: PAIR(360, 360)
  48. *PinsPerLogPass: 48
  49. *PinsPerPhysPass: 24
  50. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  51. *SpotDiameter: 283
  52. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  53. }
  54. *Option: Option2
  55. {
  56. *Name: "360 x 180 " =DOTS_PER_INCH
  57. *DPI: PAIR(360, 180)
  58. *TextDPI: PAIR(360, 180)
  59. *PinsPerLogPass: 24
  60. *PinsPerPhysPass: 24
  61. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  62. *SpotDiameter: 170
  63. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  64. }
  65. *Option: Option3
  66. {
  67. *Name: "180 x 180 " =DOTS_PER_INCH
  68. *DPI: PAIR(180, 180)
  69. *TextDPI: PAIR(180, 180)
  70. *PinsPerLogPass: 24
  71. *PinsPerPhysPass: 24
  72. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  73. *SpotDiameter: 120
  74. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  75. }
  76. }
  77. *Feature: PaperSize
  78. {
  79. *rcNameID: =PAPER_SIZE_DISPLAY
  80. *DefaultOption: A4
  81. *Option: A4
  82. {
  83. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  84. *Command: CmdSelect
  85. {
  86. *Order: DOC_SETUP.4
  87. *Cmd: "<1B>CF"
  88. }
  89. *switch: InputBin
  90. {
  91. *case: TRACTOR
  92. {
  93. *PrintableArea: PAIR(2707, 4208)
  94. *PrintableOrigin: PAIR(180, 0)
  95. *switch: Resolution
  96. {
  97. *case: Option3
  98. {
  99. *PrintableArea: PAIR(2706, 4208)
  100. }
  101. }
  102. }
  103. *case: AUTO
  104. {
  105. *PrintableArea: PAIR(2707, 3908)
  106. *PrintableOrigin: PAIR(180, 120)
  107. *switch: Resolution
  108. {
  109. *case: Option3
  110. {
  111. *PrintableArea: PAIR(2706, 3908)
  112. }
  113. }
  114. }
  115. }
  116. }
  117. *Option: LETTER
  118. {
  119. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  120. *Command: CmdSelect
  121. {
  122. *Order: DOC_SETUP.4
  123. *Cmd: "<1B>C<000B>"
  124. }
  125. *switch: InputBin
  126. {
  127. *case: TRACTOR
  128. {
  129. *PrintableArea: PAIR(2790, 3960)
  130. *PrintableOrigin: PAIR(180, 0)
  131. }
  132. *case: AUTO
  133. {
  134. *PrintableArea: PAIR(2790, 3660)
  135. *PrintableOrigin: PAIR(180, 120)
  136. }
  137. }
  138. }
  139. *Option: LEGAL
  140. {
  141. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  142. *Command: CmdSelect
  143. {
  144. *Order: DOC_SETUP.4
  145. *Cmd: "<1B>C<000E>"
  146. }
  147. *switch: InputBin
  148. {
  149. *case: TRACTOR
  150. {
  151. *PrintableArea: PAIR(2790, 5040)
  152. *PrintableOrigin: PAIR(180, 0)
  153. }
  154. *case: AUTO
  155. {
  156. *PrintableArea: PAIR(2790, 4740)
  157. *PrintableOrigin: PAIR(180, 120)
  158. }
  159. }
  160. }
  161. *Option: B5
  162. {
  163. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  164. *Command: CmdSelect
  165. {
  166. *Order: DOC_SETUP.4
  167. *Cmd: "<1B>C="
  168. }
  169. *switch: InputBin
  170. {
  171. *case: TRACTOR
  172. {
  173. *PrintableArea: PAIR(2311, 3643)
  174. *PrintableOrigin: PAIR(180, 0)
  175. *switch: Resolution
  176. {
  177. *case: Option2
  178. {
  179. *PrintableArea: PAIR(2311, 3642)
  180. }
  181. *case: Option3
  182. {
  183. *PrintableArea: PAIR(2310, 3642)
  184. }
  185. }
  186. }
  187. *case: AUTO
  188. {
  189. *PrintableArea: PAIR(2311, 3343)
  190. *PrintableOrigin: PAIR(180, 120)
  191. *switch: Resolution
  192. {
  193. *case: Option2
  194. {
  195. *PrintableArea: PAIR(2311, 3342)
  196. }
  197. *case: Option3
  198. {
  199. *PrintableArea: PAIR(2310, 3342)
  200. }
  201. }
  202. }
  203. }
  204. }
  205. *Option: Option5
  206. {
  207. *rcNameID: 258
  208. *PageDimensions: PAIR(3060, 4320)
  209. *Command: CmdSelect
  210. {
  211. *Order: DOC_SETUP.4
  212. *Cmd: "<1B>C<000C>"
  213. }
  214. *switch: InputBin
  215. {
  216. *case: TRACTOR
  217. {
  218. *PrintableArea: PAIR(2790, 4320)
  219. *PrintableOrigin: PAIR(180, 0)
  220. }
  221. *case: AUTO
  222. {
  223. *PrintableArea: PAIR(2790, 4020)
  224. *PrintableOrigin: PAIR(180, 120)
  225. }
  226. }
  227. }
  228. *Option: CUSTOMSIZE
  229. {
  230. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  231. *MinSize: PAIR(360, 360)
  232. *MaxSize: PAIR(3636, 7920)
  233. *MaxPrintableWidth: 3636
  234. *MinLeftMargin: 180
  235. *CenterPrintable?: FALSE
  236. *switch: InputBin
  237. {
  238. *case: TRACTOR
  239. {
  240. *TopMargin: 0
  241. *BottomMargin: 0
  242. }
  243. *case: AUTO
  244. {
  245. *TopMargin: 120
  246. *BottomMargin: 180
  247. }
  248. }
  249. }
  250. }
  251. *Feature: PrintQuality
  252. {
  253. *rcNameID: =TEXT_QUALITY_DISPLAY
  254. *DefaultOption: LETTER_QUALITY
  255. *Option: LETTER_QUALITY
  256. {
  257. *rcNameID: =LETTER_QUALITY_DISPLAY
  258. *Command: CmdSelect
  259. {
  260. *Order: DOC_SETUP.2
  261. *Cmd: "<1B>x<01>"
  262. }
  263. }
  264. *Option: DRAFT_QUALITY
  265. {
  266. *rcNameID: =DRAFT_QUALITY_DISPLAY
  267. *Command: CmdSelect
  268. {
  269. *Order: DOC_SETUP.2
  270. *Cmd: "<1B>x<00>"
  271. }
  272. }
  273. }
  274. *Feature: Halftone
  275. {
  276. *rcNameID: =HALFTONING_DISPLAY
  277. *DefaultOption: HT_PATSIZE_AUTO
  278. *Option: HT_PATSIZE_AUTO
  279. {
  280. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  281. }
  282. *Ifdef: WINNT_50
  283. *Option: HT_PATSIZE_SUPERCELL_M
  284. {
  285. *rcNameID: =HT_SUPERCELL_DISPLAY
  286. }
  287. *Endif:
  288. *Option: HT_PATSIZE_6x6_M
  289. {
  290. *rcNameID: =HT_DITHER6X6_DISPLAY
  291. }
  292. *Option: HT_PATSIZE_8x8_M
  293. {
  294. *rcNameID: =HT_DITHER8X8_DISPLAY
  295. }
  296. }
  297. *Command: CmdStartDoc
  298. {
  299. *Order: DOC_SETUP.1
  300. *Cmd: "<1B>@<1B>l<001B>2<1B>R<001B>P"
  301. }
  302. *Command: CmdStartPage
  303. {
  304. *Order: PAGE_SETUP.1
  305. *Cmd: "<0D>"
  306. }
  307. *Command: CmdEndJob
  308. {
  309. *Order: JOB_FINISH.1
  310. *Cmd: "<0D>"
  311. }
  312. *RotateCoordinate?: FALSE
  313. *RotateRaster?: FALSE
  314. *RotateFont?: FALSE
  315. *switch: Orientation
  316. {
  317. *case: PORTRAIT
  318. {
  319. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  320. }
  321. *case: LANDSCAPE_CC270
  322. {
  323. *TextCaps: LIST(TC_RA_ABLE)
  324. }
  325. }
  326. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  327. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  328. *MaxLineSpacing: 255
  329. *XMoveThreshold: 0
  330. *XMoveUnit: 60
  331. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,816]{max_repeat((DestX / 6) )} }
  332. *Command: CmdSetLineSpacing { *Cmd : "<1C>F<1C>3" %c[0,255]{LinefeedSpacing } }
  333. *Command: CmdCR { *Cmd : "<0D>" }
  334. *Command: CmdLF { *Cmd : "<0A>" }
  335. *Command: CmdFF { *Cmd : "<0C>" }
  336. *Command: CmdBackSpace { *Cmd : "<08>" }
  337. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  338. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  339. *EjectPageWithFF?: FALSE
  340. *switch: InputBin
  341. {
  342. *case: AUTO
  343. {
  344. *EjectPageWithFF?: TRUE
  345. }
  346. }
  347. *OutputDataFormat: V_BYTE
  348. *OptimizeLeftBound?: FALSE
  349. *CursorXAfterSendBlockData: AT_GRXDATA_END
  350. *CursorYAfterSendBlockData: NO_MOVE
  351. *DefaultFont: 60
  352. *DefaultCTT: 2
  353. *switch: Orientation
  354. {
  355. *case: PORTRAIT
  356. {
  357. *DeviceFonts: LIST(59,60,61,62,63,64,84)
  358. }
  359. *case: LANDSCAPE_CC270
  360. {
  361. *DeviceFonts: LIST()
  362. }
  363. }
  364. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  365. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  366. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  367. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  368. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  369. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  370. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p<01>" }
  371. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p<00>" }