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.

291 lines
7.3 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "GENIBM9.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Generic IBM Graphics 9pin"
  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(5760, 2376)
  90. *PrintableOrigin: PAIR(180, 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(5760, 3024)
  101. *PrintableOrigin: PAIR(180, 0)
  102. *Command: CmdSelect
  103. {
  104. *Order: DOC_SETUP.8
  105. *Cmd: "<1B>C<000E>"
  106. }
  107. }
  108. *Option: A4
  109. {
  110. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  111. *PrintableArea: PAIR(5760, 2525)
  112. *PrintableOrigin: PAIR(180, 0)
  113. *switch: Resolution
  114. {
  115. *case: Option1
  116. {
  117. *PrintableArea: PAIR(5760, 2523)
  118. }
  119. *case: Option2
  120. {
  121. *PrintableArea: PAIR(5760, 2523)
  122. }
  123. }
  124. *Command: CmdSelect
  125. {
  126. *Order: DOC_SETUP.8
  127. *Cmd: "<1B>2<1B>CF"
  128. }
  129. }
  130. *Option: B5
  131. {
  132. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  133. *PrintableArea: PAIR(4982, 2186)
  134. *PrintableOrigin: PAIR(180, 0)
  135. *switch: Resolution
  136. {
  137. *case: Option1
  138. {
  139. *PrintableArea: PAIR(4980, 2184)
  140. }
  141. *case: Option2
  142. {
  143. *PrintableArea: PAIR(4980, 2184)
  144. }
  145. *case: Option3
  146. {
  147. *PrintableArea: PAIR(4980, 2186)
  148. }
  149. }
  150. *Command: CmdSelect
  151. {
  152. *Order: DOC_SETUP.8
  153. *Cmd: "<1B>2<1B>C%<"
  154. }
  155. }
  156. *Option: Option5
  157. {
  158. *rcNameID: 259
  159. *PageDimensions: PAIR(6120, 2592)
  160. *PrintableArea: PAIR(5760, 2592)
  161. *PrintableOrigin: PAIR(180, 0)
  162. *Command: CmdSelect
  163. {
  164. *Order: DOC_SETUP.8
  165. *Cmd: "<1B>C<000C>"
  166. }
  167. }
  168. *Option: Option6
  169. {
  170. *rcNameID: 260
  171. *PageDimensions: PAIR(6120, 2592)
  172. *PrintableArea: PAIR(5760, 2592)
  173. *PrintableOrigin: PAIR(180, 0)
  174. *Command: CmdSelect
  175. {
  176. *Order: DOC_SETUP.8
  177. *Cmd: "<1B>C<000D>"
  178. }
  179. }
  180. *Option: Option7
  181. {
  182. *rcNameID: 261
  183. *PageDimensions: PAIR(6235, 935)
  184. *PrintableArea: PAIR(5760, 935)
  185. *PrintableOrigin: PAIR(180, 0)
  186. *switch: Resolution
  187. {
  188. *case: Option1
  189. {
  190. *PrintableArea: PAIR(5760, 933)
  191. }
  192. *case: Option2
  193. {
  194. *PrintableArea: PAIR(5760, 933)
  195. }
  196. }
  197. *Command: CmdSelect
  198. {
  199. *Order: DOC_SETUP.8
  200. *Cmd: "<1B>2<1B>C<1A>"
  201. }
  202. }
  203. *Option: CUSTOMSIZE
  204. {
  205. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  206. *MinSize: PAIR(720, 216)
  207. *MaxSize: PAIR(6120, 32767)
  208. *MaxPrintableWidth: 5760
  209. *MinLeftMargin: 180
  210. *CenterPrintable?: FALSE
  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. *Ifdef: WINNT_50
  222. *Option: HT_PATSIZE_SUPERCELL_M
  223. {
  224. *rcNameID: =HT_SUPERCELL_DISPLAY
  225. }
  226. *Endif:
  227. *Option: HT_PATSIZE_6x6_M
  228. {
  229. *rcNameID: =HT_DITHER6X6_DISPLAY
  230. }
  231. *Option: HT_PATSIZE_8x8_M
  232. {
  233. *rcNameID: =HT_DITHER8X8_DISPLAY
  234. }
  235. }
  236. *Command: CmdStartPage
  237. {
  238. *Order: PAGE_SETUP.1
  239. *Cmd: "<0D>"
  240. }
  241. *RotateCoordinate?: FALSE
  242. *RotateRaster?: FALSE
  243. *RotateFont?: FALSE
  244. *switch: Orientation
  245. {
  246. *case: PORTRAIT
  247. {
  248. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  249. }
  250. *case: LANDSCAPE_CC270
  251. {
  252. *TextCaps: LIST(TC_RA_ABLE)
  253. }
  254. }
  255. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  256. *YMoveAttributes: LIST(SEND_CR_FIRST)
  257. *MaxLineSpacing: 255
  258. *YMoveThreshold: *
  259. *YMoveUnit: 216
  260. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat(DestYRel )} }
  261. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{LinefeedSpacing } }
  262. *Command: CmdCR { *Cmd : "<0D>" }
  263. *Command: CmdLF { *Cmd : "<0A>" }
  264. *Command: CmdFF { *Cmd : "<0C>" }
  265. *Command: CmdBackSpace { *Cmd : "<08>" }
  266. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  267. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  268. *EjectPageWithFF?: TRUE
  269. *OutputDataFormat: V_BYTE
  270. *OptimizeLeftBound?: FALSE
  271. *CursorXAfterSendBlockData: AT_GRXDATA_END
  272. *CursorYAfterSendBlockData: NO_MOVE
  273. *DefaultFont: 131
  274. *DefaultCTT: -1
  275. *switch: Orientation
  276. {
  277. *case: PORTRAIT
  278. {
  279. *DeviceFonts: LIST(131)
  280. }
  281. *case: LANDSCAPE_CC270
  282. {
  283. *DeviceFonts: LIST()
  284. }
  285. }
  286. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  287. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  288. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  289. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  290. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  291. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }