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.

361 lines
9.5 KiB

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