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.

407 lines
11 KiB

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