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.

347 lines
9.1 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "STSJ48.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Star SJ-48"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "stjtres.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: MANUAL
  30. *Option: MANUAL
  31. {
  32. *rcNameID: =MANUAL_FEED_DISPLAY
  33. }
  34. *Option: Option2
  35. {
  36. *rcNameID: 261
  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: 48
  50. *MinStripBlankPixels: 540
  51. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  52. *SpotDiameter: 120
  53. *Command: CmdSendBlockData { *Cmd : "<1B>*H" %l[0,2880]{max_repeat((NumOfDataBytes / 6) )} }
  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. *MinStripBlankPixels: 360
  63. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  64. *SpotDiameter: 170
  65. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  66. }
  67. *Option: Option3
  68. {
  69. *Name: "180 x 180 " =DOTS_PER_INCH
  70. *DPI: PAIR(180, 180)
  71. *TextDPI: PAIR(180, 180)
  72. *PinsPerLogPass: 24
  73. *PinsPerPhysPass: 24
  74. *MinStripBlankPixels: 135
  75. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  76. *SpotDiameter: 120
  77. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  78. }
  79. *Option: Option4
  80. {
  81. *Name: "120 x 180 " =DOTS_PER_INCH
  82. *DPI: PAIR(120, 180)
  83. *TextDPI: PAIR(120, 180)
  84. *PinsPerLogPass: 24
  85. *PinsPerPhysPass: 24
  86. *MinStripBlankPixels: 90
  87. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  88. *SpotDiameter: 110
  89. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  90. }
  91. }
  92. *Feature: PaperSize
  93. {
  94. *rcNameID: =PAPER_SIZE_DISPLAY
  95. *DefaultOption: LETTER
  96. *Option: LETTER
  97. {
  98. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  99. *PrintableArea: PAIR(5760, 7380)
  100. *PrintableOrigin: PAIR(180, 360)
  101. *switch: Resolution
  102. {
  103. *case: Option1
  104. {
  105. *PrintableArea: PAIR(5760, 7380)
  106. *PrintableOrigin: PAIR(180, 360)
  107. }
  108. *case: Option2
  109. {
  110. *PrintableArea: PAIR(5760, 7380)
  111. *PrintableOrigin: PAIR(180, 360)
  112. }
  113. *case: Option3
  114. {
  115. *PrintableArea: PAIR(5760, 7380)
  116. *PrintableOrigin: PAIR(180, 360)
  117. }
  118. *case: Option4
  119. {
  120. *PrintableArea: PAIR(5760, 7380)
  121. *PrintableOrigin: PAIR(180, 360)
  122. }
  123. }
  124. }
  125. *Option: LEGAL
  126. {
  127. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  128. *PrintableArea: PAIR(5760, 9540)
  129. *PrintableOrigin: PAIR(180, 360)
  130. *switch: Resolution
  131. {
  132. *case: Option1
  133. {
  134. *PrintableArea: PAIR(5760, 9540)
  135. *PrintableOrigin: PAIR(180, 360)
  136. }
  137. *case: Option2
  138. {
  139. *PrintableArea: PAIR(5760, 9540)
  140. *PrintableOrigin: PAIR(180, 360)
  141. }
  142. *case: Option3
  143. {
  144. *PrintableArea: PAIR(5760, 9540)
  145. *PrintableOrigin: PAIR(180, 360)
  146. }
  147. *case: Option4
  148. {
  149. *PrintableArea: PAIR(5760, 9540)
  150. *PrintableOrigin: PAIR(180, 360)
  151. }
  152. }
  153. }
  154. *Option: A4
  155. {
  156. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  157. *PrintableArea: PAIR(5760, 7878)
  158. *PrintableOrigin: PAIR(94, 360)
  159. *switch: Resolution
  160. {
  161. *case: Option1
  162. {
  163. *PrintableArea: PAIR(5760, 7878)
  164. *PrintableOrigin: PAIR(94, 360)
  165. }
  166. *case: Option2
  167. {
  168. *PrintableArea: PAIR(5760, 7876)
  169. *PrintableOrigin: PAIR(94, 360)
  170. }
  171. *case: Option3
  172. {
  173. *PrintableArea: PAIR(5760, 7876)
  174. *PrintableOrigin: PAIR(92, 360)
  175. }
  176. *case: Option4
  177. {
  178. *PrintableArea: PAIR(5760, 7876)
  179. *PrintableOrigin: PAIR(90, 360)
  180. }
  181. }
  182. }
  183. *Option: B5
  184. {
  185. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  186. *PrintableArea: PAIR(4971, 6745)
  187. *PrintableOrigin: PAIR(94, 360)
  188. *switch: Resolution
  189. {
  190. *case: Option1
  191. {
  192. *PrintableArea: PAIR(4970, 6744)
  193. *PrintableOrigin: PAIR(94, 360)
  194. }
  195. *case: Option2
  196. {
  197. *PrintableArea: PAIR(4970, 6744)
  198. *PrintableOrigin: PAIR(94, 360)
  199. }
  200. *case: Option3
  201. {
  202. *PrintableArea: PAIR(4968, 6744)
  203. *PrintableOrigin: PAIR(92, 360)
  204. }
  205. *case: Option4
  206. {
  207. *PrintableArea: PAIR(4968, 6744)
  208. *PrintableOrigin: PAIR(90, 360)
  209. }
  210. }
  211. }
  212. *Option: Option5
  213. {
  214. *rcNameID: 263
  215. *OptionID: 263
  216. *PageDimensions: PAIR(6840 ,2970)
  217. *PrintableArea: PAIR(5760 ,1768)
  218. *PrintableOrigin: PAIR(180, 480)
  219. }
  220. *Option: CUSTOMSIZE
  221. {
  222. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  223. *MinSize: PAIR(720, 720)
  224. *MaxSize: PAIR(7200, 20160)
  225. *MaxPrintableWidth: 5760
  226. *MinLeftMargin: 120
  227. *CenterPrintable?: FALSE
  228. *TopMargin: 125
  229. *BottomMargin: 250
  230. }
  231. }
  232. *Feature: PrintQuality
  233. {
  234. *rcNameID: =TEXT_QUALITY_DISPLAY
  235. *DefaultOption: Option1
  236. *Option: Option1
  237. {
  238. *rcNameID: 259
  239. *Command: CmdSelect
  240. {
  241. *Order: DOC_SETUP.1
  242. *Cmd: "<1B1A11001B>x<01>"
  243. }
  244. }
  245. *Option: Option2
  246. {
  247. *rcNameID: 258
  248. *Command: CmdSelect
  249. {
  250. *Order: DOC_SETUP.1
  251. *Cmd: "<1B1A11001B>x<00>"
  252. }
  253. }
  254. }
  255. *Feature: Halftone
  256. {
  257. *rcNameID: =HALFTONING_DISPLAY
  258. *DefaultOption: HT_PATSIZE_AUTO
  259. *Option: HT_PATSIZE_AUTO
  260. {
  261. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  262. }
  263. *Ifdef: WINNT_50
  264. *Option: HT_PATSIZE_SUPERCELL_M
  265. {
  266. *rcNameID: =HT_SUPERCELL_DISPLAY
  267. }
  268. *Endif:
  269. *Option: HT_PATSIZE_6x6_M
  270. {
  271. *rcNameID: =HT_DITHER6X6_DISPLAY
  272. }
  273. *Option: HT_PATSIZE_8x8_M
  274. {
  275. *rcNameID: =HT_DITHER8X8_DISPLAY
  276. }
  277. }
  278. *Command: CmdStartDoc
  279. {
  280. *Order: DOC_SETUP.4
  281. *Cmd: "<1B>[T<0400000003>R<1B>k0"
  282. }
  283. *Command: CmdStartPage
  284. {
  285. *Order: PAGE_SETUP.1
  286. *Cmd: "<0D>"
  287. }
  288. *Command: CmdEndJob
  289. {
  290. *Order: JOB_FINISH.1
  291. *Cmd: "<1B>@"
  292. }
  293. *RotateCoordinate?: FALSE
  294. *RotateRaster?: FALSE
  295. *RotateFont?: FALSE
  296. *switch: Orientation
  297. {
  298. *case: PORTRAIT
  299. {
  300. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  301. }
  302. *case: LANDSCAPE_CC270
  303. {
  304. *TextCaps: LIST(TC_RA_ABLE)
  305. }
  306. }
  307. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  308. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  309. *MaxLineSpacing: 255
  310. *XMoveThreshold: 0
  311. *YMoveThreshold: *
  312. *XMoveUnit: 60
  313. *YMoveUnit: 180
  314. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,816]{max_repeat((DestX / 12) )} }
  315. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 4) )} }
  316. *Command: CmdSetLineSpacing { *Cmd : "<1B>+" %c[0,255]{(LinefeedSpacing / 2) } }
  317. *Command: CmdCR { *Cmd : "<0D>" }
  318. *Command: CmdLF { *Cmd : "<0A>" }
  319. *Command: CmdFF { *Cmd : "<0C>" }
  320. *Command: CmdBackSpace { *Cmd : "<08>" }
  321. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  322. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  323. *EjectPageWithFF?: TRUE
  324. *OutputDataFormat: V_BYTE
  325. *OptimizeLeftBound?: FALSE
  326. *CursorXAfterSendBlockData: AT_GRXDATA_END
  327. *CursorYAfterSendBlockData: NO_MOVE
  328. *DefaultFont: 3
  329. *DefaultCTT: 1
  330. *switch: Orientation
  331. {
  332. *case: PORTRAIT
  333. {
  334. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,17,18,19,20,21,22,23,24)
  335. }
  336. *case: LANDSCAPE_CC270
  337. {
  338. *DeviceFonts: LIST()
  339. }
  340. }
  341. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  342. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  343. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  344. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  345. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  346. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }