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.

339 lines
9.2 KiB

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