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.

381 lines
10 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "SS2412KK.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 949
  10. *ModelName: "�Z SP-2412HW (KS)"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "kskres.dll"
  13. *PrinterType: SERIAL
  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: MANUAL
  36. {
  37. *rcNameID: =MANUAL_FEED_DISPLAY
  38. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  39. }
  40. }
  41. *Feature: Resolution
  42. {
  43. *rcNameID: =RESOLUTION_DISPLAY
  44. *DefaultOption: Option1
  45. *Option: Option1
  46. {
  47. *Name: "180 x 180 dots per inch"
  48. *DPI: PAIR(180, 180)
  49. *TextDPI: PAIR(180, 180)
  50. *PinsPerLogPass: 24
  51. *PinsPerPhysPass: 24
  52. *MinStripBlankPixels: 180
  53. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  54. *SpotDiameter: 120
  55. *Command: CmdSendBlockData { *Cmd : "<1B>n" %l{(NumOfDataBytes / 3) } }
  56. }
  57. }
  58. *Feature: PaperSize
  59. {
  60. *rcNameID: =PAPER_SIZE_DISPLAY
  61. *DefaultOption: LETTER
  62. *Option: LETTER
  63. {
  64. *rcNameID: =LETTER_DISPLAY
  65. *Command: CmdSelect
  66. {
  67. *Order: DOC_SETUP.4
  68. *Cmd: "<1B>2<1B>CB"
  69. }
  70. *switch: InputBin
  71. {
  72. *case: TRACTOR
  73. {
  74. *PrintableArea: PAIR(2880, 3640)
  75. *PrintableOrigin: PAIR(90, 120)
  76. }
  77. *case: MANUAL
  78. {
  79. *PrintableArea: PAIR(2880, 3615)
  80. *PrintableOrigin: PAIR(90, 120)
  81. *switch: Resolution
  82. {
  83. *case: Option1
  84. {
  85. *% Warning: the following printable length is adjusted (3615->3614) so it is divisible by the resolution Y scale.
  86. *PrintableArea: PAIR(2880, 3614)
  87. }
  88. }
  89. }
  90. }
  91. }
  92. *Option: Option2
  93. {
  94. *rcNameID: 258
  95. *PageDimensions: PAIR(3060, 3960)
  96. *Command: CmdSelect
  97. {
  98. *Order: DOC_SETUP.4
  99. *Cmd: "<1B>2<1B>CB"
  100. }
  101. *switch: InputBin
  102. {
  103. *case: TRACTOR
  104. {
  105. *PrintableArea: PAIR(2880, 3640)
  106. *PrintableOrigin: PAIR(90, 120)
  107. }
  108. *case: MANUAL
  109. {
  110. *PrintableArea: PAIR(2880, 3615)
  111. *PrintableOrigin: PAIR(90, 120)
  112. *switch: Resolution
  113. {
  114. *case: Option1
  115. {
  116. *% Warning: the following printable length is adjusted (3615->3614) so it is divisible by the resolution Y scale.
  117. *PrintableArea: PAIR(2880, 3614)
  118. }
  119. }
  120. }
  121. }
  122. }
  123. *Option: LEGAL
  124. {
  125. *rcNameID: =LEGAL_DISPLAY
  126. *Command: CmdSelect
  127. {
  128. *Order: DOC_SETUP.4
  129. *Cmd: "<1B>2<1B>CT"
  130. }
  131. *switch: InputBin
  132. {
  133. *case: TRACTOR
  134. {
  135. *PrintableArea: PAIR(2880, 4720)
  136. *PrintableOrigin: PAIR(90, 120)
  137. }
  138. *case: MANUAL
  139. {
  140. *PrintableArea: PAIR(2880, 4695)
  141. *PrintableOrigin: PAIR(90, 120)
  142. *switch: Resolution
  143. {
  144. *case: Option1
  145. {
  146. *% Warning: the following printable length is adjusted (4695->4694) so it is divisible by the resolution Y scale.
  147. *PrintableArea: PAIR(2880, 4694)
  148. }
  149. }
  150. }
  151. }
  152. }
  153. *Option: A4
  154. {
  155. *rcNameID: =A4_DISPLAY
  156. *Command: CmdSelect
  157. {
  158. *Order: DOC_SETUP.4
  159. *Cmd: "<1B>2<1B>CF"
  160. }
  161. *switch: InputBin
  162. {
  163. *case: TRACTOR
  164. {
  165. *PrintableArea: PAIR(2837, 3888)
  166. *PrintableOrigin: PAIR(90, 120)
  167. *switch: Resolution
  168. {
  169. *case: Option1
  170. {
  171. *% Warning: the following printable width is adjusted (2837->2836) so it is divisible by the resolution X scale.
  172. *PrintableArea: PAIR(2836, 3888)
  173. }
  174. }
  175. }
  176. *case: MANUAL
  177. {
  178. *PrintableArea: PAIR(2837, 3863)
  179. *PrintableOrigin: PAIR(90, 120)
  180. *switch: Resolution
  181. {
  182. *case: Option1
  183. {
  184. *% Warning: the following printable width is adjusted (2837->2836) so it is divisible by the resolution X scale.
  185. *% Warning: the following printable length is adjusted (3863->3862) so it is divisible by the resolution Y scale.
  186. *PrintableArea: PAIR(2836, 3862)
  187. }
  188. }
  189. }
  190. }
  191. }
  192. *Option: A5
  193. {
  194. *rcNameID: =A5_DISPLAY
  195. *Command: CmdSelect
  196. {
  197. *Order: DOC_SETUP.4
  198. *Cmd: "<1B>2<1B>C2"
  199. }
  200. *switch: InputBin
  201. {
  202. *case: TRACTOR
  203. {
  204. *PrintableArea: PAIR(1959, 2657)
  205. *PrintableOrigin: PAIR(90, 120)
  206. *switch: Resolution
  207. {
  208. *case: Option1
  209. {
  210. *% Warning: the following printable width is adjusted (1959->1958) so it is divisible by the resolution X scale.
  211. *% Warning: the following printable length is adjusted (2657->2656) so it is divisible by the resolution Y scale.
  212. *PrintableArea: PAIR(1958, 2656)
  213. }
  214. }
  215. }
  216. *case: MANUAL
  217. {
  218. *PrintableArea: PAIR(1959, 2632)
  219. *PrintableOrigin: PAIR(90, 120)
  220. *switch: Resolution
  221. {
  222. *case: Option1
  223. {
  224. *% Warning: the following printable width is adjusted (1959->1958) so it is divisible by the resolution X scale.
  225. *PrintableArea: PAIR(1958, 2632)
  226. }
  227. }
  228. }
  229. }
  230. }
  231. *Option: B5
  232. {
  233. *rcNameID: =B5_DISPLAY
  234. *Command: CmdSelect
  235. {
  236. *Order: DOC_SETUP.4
  237. *Cmd: "<1B>2<1B>C="
  238. }
  239. *switch: InputBin
  240. {
  241. *case: TRACTOR
  242. {
  243. *PrintableArea: PAIR(2441, 3323)
  244. *PrintableOrigin: PAIR(90, 120)
  245. *switch: Resolution
  246. {
  247. *case: Option1
  248. {
  249. *% Warning: the following printable width is adjusted (2441->2440) so it is divisible by the resolution X scale.
  250. *% Warning: the following printable length is adjusted (3323->3322) so it is divisible by the resolution Y scale.
  251. *PrintableArea: PAIR(2440, 3322)
  252. }
  253. }
  254. }
  255. *case: MANUAL
  256. {
  257. *PrintableArea: PAIR(2441, 3298)
  258. *PrintableOrigin: PAIR(90, 120)
  259. *switch: Resolution
  260. {
  261. *case: Option1
  262. {
  263. *% Warning: the following printable width is adjusted (2441->2440) so it is divisible by the resolution X scale.
  264. *PrintableArea: PAIR(2440, 3298)
  265. }
  266. }
  267. }
  268. }
  269. }
  270. *Option: CUSTOMSIZE
  271. {
  272. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  273. *MinSize: PAIR(360, 360)
  274. *MaxSize: PAIR(4140, 32767)
  275. *MaxPrintableWidth: 2880
  276. *MinLeftMargin: 90
  277. *CenterPrintable?: FALSE
  278. *switch: InputBin
  279. {
  280. *case: TRACTOR
  281. {
  282. *TopMargin: 0
  283. *BottomMargin: 0
  284. }
  285. *case: MANUAL
  286. {
  287. *TopMargin: 120
  288. *BottomMargin: 225
  289. }
  290. }
  291. *Command: CmdSelect
  292. {
  293. *Order: DOC_SETUP.4
  294. *Cmd: "<1B>2<1B>C" %c[0,127]{(PhysPaperLength / 60) }
  295. }
  296. }
  297. }
  298. *Feature: PrintQuality
  299. {
  300. *rcNameID: =TEXT_QUALITY_DISPLAY
  301. *DefaultOption: LETTER_QUALITY
  302. *Option: LETTER_QUALITY
  303. {
  304. *rcNameID: =LETTER_QUALITY_DISPLAY
  305. *Command: CmdSelect
  306. {
  307. *Order: DOC_SETUP.2
  308. *Cmd: "<1B>x<01>"
  309. }
  310. }
  311. *Option: DRAFT_QUALITY
  312. {
  313. *rcNameID: =DRAFT_QUALITY_DISPLAY
  314. *Command: CmdSelect
  315. {
  316. *Order: DOC_SETUP.2
  317. *Cmd: "<1B>x<00>"
  318. }
  319. }
  320. }
  321. *Feature: Halftone
  322. {
  323. *rcNameID: =HALFTONING_DISPLAY
  324. *DefaultOption: HT_PATSIZE_AUTO
  325. *Option: HT_PATSIZE_AUTO
  326. {
  327. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  328. }
  329. *Option: HT_PATSIZE_SUPERCELL_M
  330. {
  331. *rcNameID: =HT_SUPERCELL_DISPLAY
  332. }
  333. *Option: HT_PATSIZE_6x6_M
  334. {
  335. *rcNameID: =HT_DITHER6X6_DISPLAY
  336. }
  337. *Option: HT_PATSIZE_8x8_M
  338. {
  339. *rcNameID: =HT_DITHER8X8_DISPLAY
  340. }
  341. }
  342. *Command: CmdStartDoc
  343. {
  344. *Order: DOC_SETUP.1
  345. *Cmd: "<18>"
  346. }
  347. *Command: CmdEndJob
  348. {
  349. *Order: JOB_FINISH.1
  350. *Cmd: "<18>"
  351. }
  352. *RotateCoordinate?: FALSE
  353. *RotateRaster?: FALSE
  354. *RotateFont?: FALSE
  355. *switch: Orientation
  356. {
  357. *case: PORTRAIT
  358. {
  359. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  360. }
  361. *case: LANDSCAPE_CC270
  362. {
  363. *TextCaps: LIST(TC_RA_ABLE)
  364. }
  365. }
  366. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  367. *YMoveAttributes: LIST(SEND_CR_FIRST)
  368. *YMoveThreshold: *
  369. *YMoveUnit: 180
  370. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  371. *Command: CmdCR { *Cmd : "<0D>" }
  372. *Command: CmdLF { *Cmd : "<0A>" }
  373. *Command: CmdFF { *Cmd : "<0C>" }
  374. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  375. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  376. *EjectPageWithFF?: TRUE
  377. *OutputDataFormat: V_BYTE
  378. *OptimizeLeftBound?: FALSE
  379. *CursorXAfterSendBlockData: AT_GRXDATA_END
  380. *CursorYAfterSendBlockData: NO_MOVE
  381. *DefaultCTT: 0