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.

358 lines
8.9 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "GENIBM9W.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Generic IBM Graphics 9pin wide"
  10. *MasterUnits: PAIR(720, 216)
  11. *ResourceDLL: "ok9ibres.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: TRACTOR
  30. *Option: TRACTOR
  31. {
  32. *rcNameID: =TRACTOR_DISPLAY
  33. }
  34. *Option: MANUAL
  35. {
  36. *rcNameID: =MANUAL_FEED_DISPLAY
  37. }
  38. }
  39. *Feature: Resolution
  40. {
  41. *rcNameID: =RESOLUTION_DISPLAY
  42. *DefaultOption: Option1
  43. *Option: Option1
  44. {
  45. *Name: "120 x 72 " =DOTS_PER_INCH
  46. *DPI: PAIR(120, 72)
  47. *TextDPI: PAIR(120, 72)
  48. *PinsPerLogPass: 8
  49. *PinsPerPhysPass: 8
  50. *RequireUniDir?: TRUE
  51. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  52. EXTERN_GLOBAL: *TextYOffset: 14
  53. *SpotDiameter: 100
  54. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  55. }
  56. *Option: Option2
  57. {
  58. *Name: "60 x 72 " =DOTS_PER_INCH
  59. *DPI: PAIR(60, 72)
  60. *TextDPI: PAIR(60, 72)
  61. *PinsPerLogPass: 8
  62. *PinsPerPhysPass: 8
  63. *RequireUniDir?: TRUE
  64. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  65. *SpotDiameter: 100
  66. *Command: CmdSendBlockData { *Cmd : "<1B>K" %l{NumOfDataBytes} }
  67. }
  68. *Option: Option3
  69. {
  70. *Name: "240 x 216 " =DOTS_PER_INCH
  71. *DPI: PAIR(240, 216)
  72. *TextDPI: PAIR(240, 216)
  73. *PinsPerLogPass: 24
  74. *PinsPerPhysPass: 8
  75. *MinStripBlankPixels: 240
  76. *RequireUniDir?: TRUE
  77. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  78. *SpotDiameter: 170
  79. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  80. }
  81. }
  82. *Feature: PaperSize
  83. {
  84. *rcNameID: =PAPER_SIZE_DISPLAY
  85. *DefaultOption: LETTER
  86. *Option: LETTER
  87. {
  88. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  89. *PrintableArea: PAIR(6120, 2376)
  90. *PrintableOrigin: PAIR(0, 0)
  91. *Command: CmdSelect
  92. {
  93. *Order: DOC_SETUP.8
  94. *Cmd: "<1B>C<000B>"
  95. }
  96. }
  97. *Option: LEGAL
  98. {
  99. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  100. *PrintableArea: PAIR(6120, 3024)
  101. *PrintableOrigin: PAIR(0, 0)
  102. *Command: CmdSelect
  103. {
  104. *Order: DOC_SETUP.8
  105. *Cmd: "<1B>C<000E>"
  106. }
  107. }
  108. *Option: A3
  109. {
  110. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  111. *PrintableArea: PAIR(8417, 3573)
  112. *PrintableOrigin: PAIR(0, 0)
  113. *switch: Resolution
  114. {
  115. *case: Option1
  116. {
  117. *PrintableArea: PAIR(8412, 3573)
  118. }
  119. *case: Option2
  120. {
  121. *PrintableArea: PAIR(8412, 3573)
  122. }
  123. *case: Option3
  124. {
  125. *PrintableArea: PAIR(8415, 3573)
  126. }
  127. }
  128. }
  129. *Option: A4
  130. {
  131. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  132. *PrintableArea: PAIR(5954, 2525)
  133. *PrintableOrigin: PAIR(0, 0)
  134. *switch: Resolution
  135. {
  136. *case: Option1
  137. {
  138. *PrintableArea: PAIR(5952, 2523)
  139. }
  140. *case: Option2
  141. {
  142. *PrintableArea: PAIR(5952, 2523)
  143. }
  144. *case: Option3
  145. {
  146. *PrintableArea: PAIR(5952, 2525)
  147. }
  148. }
  149. *Command: CmdSelect
  150. {
  151. *Order: DOC_SETUP.8
  152. *Cmd: "<1B>2<1B>CF"
  153. }
  154. }
  155. *Option: Option5
  156. {
  157. *rcNameID: 258
  158. *PageDimensions: PAIR(8417, 1736)
  159. *PrintableArea: PAIR(8417, 1736)
  160. *PrintableOrigin: PAIR(0, 0)
  161. *switch: Resolution
  162. {
  163. *case: Option1
  164. {
  165. *PrintableArea: PAIR(8412, 1734)
  166. }
  167. *case: Option2
  168. {
  169. *PrintableArea: PAIR(8412, 1734)
  170. }
  171. *case: Option3
  172. {
  173. *PrintableArea: PAIR(8415, 1736)
  174. }
  175. }
  176. *Command: CmdSelect
  177. {
  178. *Order: DOC_SETUP.8
  179. *Cmd: "<1B>2<1B>C2"
  180. }
  181. }
  182. *Option: B5
  183. {
  184. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  185. *PrintableArea: PAIR(5162, 2186)
  186. *PrintableOrigin: PAIR(0, 0)
  187. *switch: Resolution
  188. {
  189. *case: Option1
  190. {
  191. *PrintableArea: PAIR(5160, 2184)
  192. }
  193. *case: Option2
  194. {
  195. *PrintableArea: PAIR(5160, 2184)
  196. }
  197. *case: Option3
  198. {
  199. *PrintableArea: PAIR(5160, 2186)
  200. }
  201. }
  202. *Command: CmdSelect
  203. {
  204. *Order: DOC_SETUP.8
  205. *Cmd: "<1B>2<1B>C%<"
  206. }
  207. }
  208. *Option: Option7
  209. {
  210. *rcNameID: 259
  211. *PageDimensions: PAIR(6120, 2592)
  212. *PrintableArea: PAIR(6120, 2592)
  213. *PrintableOrigin: PAIR(0, 0)
  214. *Command: CmdSelect
  215. {
  216. *Order: DOC_SETUP.8
  217. *Cmd: "<1B>C<000C>"
  218. }
  219. }
  220. *Option: Option8
  221. {
  222. *rcNameID: 260
  223. *PageDimensions: PAIR(6120, 2592)
  224. *PrintableArea: PAIR(6120, 2592)
  225. *PrintableOrigin: PAIR(0, 0)
  226. *Command: CmdSelect
  227. {
  228. *Order: DOC_SETUP.8
  229. *Cmd: "<1B>C<000D>"
  230. }
  231. }
  232. *Option: FANFOLD_US
  233. {
  234. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  235. *PrintableArea: PAIR(9792, 2376)
  236. *PrintableOrigin: PAIR(0, 0)
  237. *Command: CmdSelect
  238. {
  239. *Order: DOC_SETUP.8
  240. *Cmd: "<1B>C<000B>"
  241. }
  242. }
  243. *Option: Option10
  244. {
  245. *rcNameID: 261
  246. *PageDimensions: PAIR(6235, 935)
  247. *PrintableArea: PAIR(6235, 935)
  248. *PrintableOrigin: PAIR(0, 0)
  249. *switch: Resolution
  250. {
  251. *case: Option1
  252. {
  253. *PrintableArea: PAIR(6234, 933)
  254. }
  255. *case: Option2
  256. {
  257. *PrintableArea: PAIR(6228, 933)
  258. }
  259. *case: Option3
  260. {
  261. *PrintableArea: PAIR(6234, 935)
  262. }
  263. }
  264. *Command: CmdSelect
  265. {
  266. *Order: DOC_SETUP.8
  267. *Cmd: "<1B>2<1B>C<1A>"
  268. }
  269. }
  270. *Option: CUSTOMSIZE
  271. {
  272. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  273. *MinSize: PAIR(720, 216)
  274. *MaxSize: PAIR(9792, 32767)
  275. *MaxPrintableWidth: 9792
  276. *MinLeftMargin: 0
  277. *CenterPrintable?: FALSE
  278. }
  279. }
  280. *Feature: Halftone
  281. {
  282. *rcNameID: =HALFTONING_DISPLAY
  283. *DefaultOption: HT_PATSIZE_AUTO
  284. *Option: HT_PATSIZE_AUTO
  285. {
  286. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  287. }
  288. *Ifdef: WINNT_50
  289. *Option: HT_PATSIZE_SUPERCELL_M
  290. {
  291. *rcNameID: =HT_SUPERCELL_DISPLAY
  292. }
  293. *Endif:
  294. *Option: HT_PATSIZE_6x6_M
  295. {
  296. *rcNameID: =HT_DITHER6X6_DISPLAY
  297. }
  298. *Option: HT_PATSIZE_8x8_M
  299. {
  300. *rcNameID: =HT_DITHER8X8_DISPLAY
  301. }
  302. }
  303. *Command: CmdStartPage
  304. {
  305. *Order: PAGE_SETUP.1
  306. *Cmd: "<0D>"
  307. }
  308. *RotateCoordinate?: FALSE
  309. *RotateRaster?: FALSE
  310. *RotateFont?: FALSE
  311. *switch: Orientation
  312. {
  313. *case: PORTRAIT
  314. {
  315. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  316. }
  317. *case: LANDSCAPE_CC270
  318. {
  319. *TextCaps: LIST(TC_RA_ABLE)
  320. }
  321. }
  322. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  323. *YMoveAttributes: LIST(SEND_CR_FIRST)
  324. *MaxLineSpacing: 255
  325. *YMoveThreshold: *
  326. *YMoveUnit: 216
  327. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat(DestYRel )} }
  328. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{LinefeedSpacing } }
  329. *Command: CmdCR { *Cmd : "<0D>" }
  330. *Command: CmdLF { *Cmd : "<0A>" }
  331. *Command: CmdFF { *Cmd : "<0C>" }
  332. *Command: CmdBackSpace { *Cmd : "<08>" }
  333. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  334. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  335. *EjectPageWithFF?: TRUE
  336. *OutputDataFormat: V_BYTE
  337. *OptimizeLeftBound?: FALSE
  338. *CursorXAfterSendBlockData: AT_GRXDATA_END
  339. *CursorYAfterSendBlockData: NO_MOVE
  340. *DefaultFont: 131
  341. *DefaultCTT: -1
  342. *switch: Orientation
  343. {
  344. *case: PORTRAIT
  345. {
  346. *DeviceFonts: LIST(131)
  347. }
  348. *case: LANDSCAPE_CC270
  349. {
  350. *DeviceFonts: LIST()
  351. }
  352. }
  353. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  354. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  355. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  356. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  357. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  358. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }