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.

296 lines
8.0 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *Include: "StdNames.gpd"
  7. *GPDFileVersion: "1.0"
  8. *GPDFileName: "snst20c.gpd"
  9. *CodePage: 1252
  10. *ModelName: "Stone ST20"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "okiscres.dll"
  13. *PrinterType: SERIAL
  14. *FontCartSlots: 1
  15. *Feature: Orientation
  16. {
  17. *rcNameID: =ORIENTATION_DISPLAY
  18. *DefaultOption: PORTRAIT
  19. *Option: PORTRAIT
  20. {
  21. *rcNameID: =PORTRAIT_DISPLAY
  22. }
  23. *Option: LANDSCAPE_CC270
  24. {
  25. *rcNameID: =LANDSCAPE_DISPLAY
  26. }
  27. }
  28. *Feature: InputBin
  29. {
  30. *rcNameID: =PAPER_SOURCE_DISPLAY
  31. *DefaultOption: MANUAL
  32. *Option: MANUAL
  33. {
  34. *rcNameID: =MANUAL_FEED_DISPLAY
  35. }
  36. *Option: TRACTOR
  37. {
  38. *rcNameID: =TRACTOR_DISPLAY
  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(LEADING,ENCLOSED,TRAILING)
  54. *SpotDiameter: 120
  55. *Command: CmdSendBlockData { *Cmd : "<1B>%%1" %m{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. *switch: InputBin
  66. {
  67. *case: MANUAL
  68. {
  69. *PrintableArea: PAIR(2916, 3768)
  70. *PrintableOrigin: PAIR(72, 72)
  71. }
  72. *case: TRACTOR
  73. {
  74. *PrintableArea: PAIR(2916, 3768)
  75. *PrintableOrigin: PAIR(72, 72)
  76. *Command: CmdSelect
  77. {
  78. *Order: DOC_SETUP.3
  79. *Cmd: "<1B>F<08><08>"
  80. }
  81. }
  82. }
  83. }
  84. *Option: A4
  85. {
  86. *rcNameID: =A4_DISPLAY
  87. *switch: InputBin
  88. {
  89. *case: MANUAL
  90. {
  91. *PrintableArea: PAIR(2833, 4016)
  92. *PrintableOrigin: PAIR(72, 72)
  93. *switch: Resolution
  94. {
  95. *case: Option1
  96. {
  97. *% Warning: the following printable width is adjusted (2833->2832) so it is divisible by the resolution X scale.
  98. *PrintableArea: PAIR(2832, 4016)
  99. }
  100. }
  101. }
  102. *case: TRACTOR
  103. {
  104. *PrintableArea: PAIR(2833, 4016)
  105. *PrintableOrigin: PAIR(72, 72)
  106. *switch: Resolution
  107. {
  108. *case: Option1
  109. {
  110. *% Warning: the following printable width is adjusted (2833->2832) so it is divisible by the resolution X scale.
  111. *PrintableArea: PAIR(2832, 4016)
  112. }
  113. }
  114. *Command: CmdSelect
  115. {
  116. *Order: DOC_SETUP.3
  117. *Cmd: "<1B>F<09><03>"
  118. }
  119. }
  120. }
  121. }
  122. *Option: B4
  123. {
  124. *rcNameID: =B4_DISPLAY
  125. *switch: InputBin
  126. {
  127. *case: MANUAL
  128. {
  129. *PrintableArea: PAIR(3499, 4967)
  130. *PrintableOrigin: PAIR(72, 72)
  131. *switch: Resolution
  132. {
  133. *case: Option1
  134. {
  135. *% Warning: the following printable width is adjusted (3499->3498) so it is divisible by the resolution X scale.
  136. *% Warning: the following printable length is adjusted (4967->4966) so it is divisible by the resolution Y scale.
  137. *PrintableArea: PAIR(3498, 4966)
  138. }
  139. }
  140. }
  141. *case: TRACTOR
  142. {
  143. *PrintableArea: PAIR(3499, 4967)
  144. *PrintableOrigin: PAIR(72, 72)
  145. *switch: Resolution
  146. {
  147. *case: Option1
  148. {
  149. *% Warning: the following printable width is adjusted (3499->3498) so it is divisible by the resolution X scale.
  150. *% Warning: the following printable length is adjusted (4967->4966) so it is divisible by the resolution Y scale.
  151. *PrintableArea: PAIR(3498, 4966)
  152. }
  153. }
  154. *Command: CmdSelect
  155. {
  156. *Order: DOC_SETUP.3
  157. *Cmd: "<1B>F<0B><04>"
  158. }
  159. }
  160. }
  161. }
  162. *Option: CUSTOMSIZE
  163. {
  164. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  165. *MinSize: PAIR(360, 360)
  166. *MaxSize: PAIR(5040, 7920)
  167. *MaxPrintableWidth: 4896
  168. *MinLeftMargin: 0
  169. *CenterPrintable?: FALSE
  170. *switch: InputBin
  171. {
  172. *case: MANUAL
  173. {
  174. *TopMargin: 72
  175. *BottomMargin: 120
  176. }
  177. *case: TRACTOR
  178. {
  179. *TopMargin: 0
  180. *BottomMargin: 0
  181. *Command: CmdSelect
  182. {
  183. *Order: DOC_SETUP.3
  184. *Cmd: "<1B>F" %c[0,15]{(PhysPaperLength*8)/3600} %c[0,15]{(PhysPaperLength*8/360) MOD 10}
  185. }
  186. }
  187. }
  188. }
  189. }
  190. *Feature: PrintQuality
  191. {
  192. *rcNameID: =TEXT_QUALITY_DISPLAY
  193. *DefaultOption: LETTER_QUALITY
  194. *Option: LETTER_QUALITY
  195. {
  196. *rcNameID: =LETTER_QUALITY_DISPLAY
  197. *Command: CmdSelect
  198. {
  199. *Order: DOC_SETUP.2
  200. *Cmd: "<1B>I"
  201. }
  202. }
  203. *Option: DRAFT_QUALITY
  204. {
  205. *rcNameID: =DRAFT_QUALITY_DISPLAY
  206. *Command: CmdSelect
  207. {
  208. *Order: DOC_SETUP.2
  209. *Cmd: "<1B>0"
  210. }
  211. }
  212. }
  213. *Feature: Halftone
  214. {
  215. *rcNameID: =HALFTONING_DISPLAY
  216. *DefaultOption: HT_PATSIZE_AUTO
  217. *Option: HT_PATSIZE_AUTO
  218. {
  219. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  220. }
  221. *Option: HT_PATSIZE_SUPERCELL_M
  222. {
  223. *rcNameID: =HT_SUPERCELL_DISPLAY
  224. }
  225. *Option: HT_PATSIZE_6x6_M
  226. {
  227. *rcNameID: =HT_DITHER6X6_DISPLAY
  228. }
  229. *Option: HT_PATSIZE_8x8_M
  230. {
  231. *rcNameID: =HT_DITHER8X8_DISPLAY
  232. }
  233. }
  234. *Command: CmdStartDoc
  235. {
  236. *Order: DOC_SETUP.1
  237. *Cmd: "<1B>N"
  238. }
  239. *Command: CmdStartPage
  240. {
  241. *Order: PAGE_SETUP.1
  242. *Cmd: "<0D>"
  243. }
  244. *RotateCoordinate?: FALSE
  245. *RotateRaster?: FALSE
  246. *RotateFont?: FALSE
  247. *switch: Orientation
  248. {
  249. *case: PORTRAIT
  250. {
  251. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  252. }
  253. *case: LANDSCAPE_CC270
  254. {
  255. *TextCaps: LIST(TC_RA_ABLE)
  256. }
  257. }
  258. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  259. *YMoveAttributes: LIST(SEND_CR_FIRST)
  260. *MaxLineSpacing: 255
  261. *XMoveThreshold: *
  262. *YMoveThreshold: *
  263. *XMoveUnit: 180
  264. *YMoveUnit: 120
  265. *Command: CmdXMoveRelRight { *Cmd : "<1B>%%3" %m[0,255]{max_repeat((DestXRel / 2) )} }
  266. *Command: CmdXMoveRelLeft { *Cmd : "<1B>%%4" %m[0,255]{max_repeat((DestXRel / 2) )} }
  267. *Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %c[0,255]{max_repeat((DestYRel / 3) )} }
  268. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %m[0,255]{(LinefeedSpacing / 3) } }
  269. *Command: CmdCR { *Cmd : "<0D>" }
  270. *Command: CmdLF { *Cmd : "<0A>" }
  271. *Command: CmdFF { *Cmd : "<0C>" }
  272. *Command: CmdBackSpace { *Cmd : "<08>" }
  273. *Command: CmdUniDirectionOn { *Cmd : "<1B>%%U" }
  274. *Command: CmdUniDirectionOff { *Cmd : "<1B>%%B" }
  275. *EjectPageWithFF?: TRUE
  276. *OutputDataFormat: V_BYTE
  277. *OptimizeLeftBound?: FALSE
  278. *CursorXAfterSendBlockData: AT_GRXDATA_END
  279. *CursorYAfterSendBlockData: NO_MOVE
  280. *DefaultFont: 5
  281. *DefaultCTT: 1
  282. *switch: Orientation
  283. {
  284. *case: PORTRAIT
  285. {
  286. *DeviceFonts: LIST(1,2,3,4,5,6)
  287. }
  288. *case: LANDSCAPE_CC270
  289. {
  290. *DeviceFonts: LIST()
  291. }
  292. }
  293. *Command: CmdBoldOn { *Cmd : "<1B>I" }
  294. *Command: CmdBoldOff { *Cmd : "<1B>0" }
  295. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  296. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }