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.1 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IBMGRPHC.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM Graphics"
  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. }
  35. *Feature: Resolution
  36. {
  37. *rcNameID: =RESOLUTION_DISPLAY
  38. *DefaultOption: Option1
  39. *Option: Option1
  40. {
  41. *Name: "120 x 72 " =DOTS_PER_INCH
  42. *DPI: PAIR(120, 72)
  43. *TextDPI: PAIR(120, 72)
  44. *PinsPerLogPass: 8
  45. *PinsPerPhysPass: 8
  46. *RequireUniDir?: TRUE
  47. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  48. EXTERN_GLOBAL: *TextYOffset: 14
  49. *SpotDiameter: 100
  50. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  51. }
  52. *Option: Option2
  53. {
  54. *Name: "60 x 72 " =DOTS_PER_INCH
  55. *DPI: PAIR(60, 72)
  56. *TextDPI: PAIR(60, 72)
  57. *PinsPerLogPass: 8
  58. *PinsPerPhysPass: 8
  59. *RequireUniDir?: TRUE
  60. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  61. *SpotDiameter: 100
  62. *Command: CmdSendBlockData { *Cmd : "<1B>K" %l{NumOfDataBytes} }
  63. }
  64. *Option: Option3
  65. {
  66. *Name: "240 x 216 " =DOTS_PER_INCH
  67. *DPI: PAIR(240, 216)
  68. *TextDPI: PAIR(240, 216)
  69. *PinsPerLogPass: 24
  70. *PinsPerPhysPass: 8
  71. *MinStripBlankPixels: 240
  72. *RequireUniDir?: TRUE
  73. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  74. *SpotDiameter: 170
  75. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  76. }
  77. }
  78. *Feature: PaperSize
  79. {
  80. *rcNameID: =PAPER_SIZE_DISPLAY
  81. *DefaultOption: LETTER
  82. *Option: LETTER
  83. {
  84. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  85. *PrintableArea: PAIR(5760, 2376)
  86. *PrintableOrigin: PAIR(180, 0)
  87. *Command: CmdSelect
  88. {
  89. *Order: DOC_SETUP.8
  90. *Cmd: "<1B>C<000B>"
  91. }
  92. }
  93. *Option: LEGAL
  94. {
  95. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  96. *PrintableArea: PAIR(5760, 3024)
  97. *PrintableOrigin: PAIR(180, 0)
  98. *Command: CmdSelect
  99. {
  100. *Order: DOC_SETUP.8
  101. *Cmd: "<1B>C<000E>"
  102. }
  103. }
  104. *Option: A4
  105. {
  106. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  107. *PrintableArea: PAIR(5760, 2525)
  108. *PrintableOrigin: PAIR(180, 0)
  109. *switch: Resolution
  110. {
  111. *case: Option1
  112. {
  113. *PrintableArea: PAIR(5760, 2523)
  114. }
  115. *case: Option2
  116. {
  117. *PrintableArea: PAIR(5760, 2523)
  118. }
  119. }
  120. *Command: CmdSelect
  121. {
  122. *Order: DOC_SETUP.8
  123. *Cmd: "<1B>2<1B>CF"
  124. }
  125. }
  126. *Option: B5
  127. {
  128. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  129. *PrintableArea: PAIR(4982, 2186)
  130. *PrintableOrigin: PAIR(180, 0)
  131. *switch: Resolution
  132. {
  133. *case: Option1
  134. {
  135. *PrintableArea: PAIR(4980, 2184)
  136. }
  137. *case: Option2
  138. {
  139. *PrintableArea: PAIR(4980, 2184)
  140. }
  141. *case: Option3
  142. {
  143. *PrintableArea: PAIR(4980, 2186)
  144. }
  145. }
  146. *Command: CmdSelect
  147. {
  148. *Order: DOC_SETUP.8
  149. *Cmd: "<1B>2<1B>C%<"
  150. }
  151. }
  152. *Option: Option5
  153. {
  154. *rcNameID: 259
  155. *PageDimensions: PAIR(6120, 2592)
  156. *PrintableArea: PAIR(5760, 2592)
  157. *PrintableOrigin: PAIR(180, 0)
  158. *Command: CmdSelect
  159. {
  160. *Order: DOC_SETUP.8
  161. *Cmd: "<1B>C<000C>"
  162. }
  163. }
  164. *Option: Option6
  165. {
  166. *rcNameID: 260
  167. *PageDimensions: PAIR(6120, 2592)
  168. *PrintableArea: PAIR(5760, 2592)
  169. *PrintableOrigin: PAIR(180, 0)
  170. *Command: CmdSelect
  171. {
  172. *Order: DOC_SETUP.8
  173. *Cmd: "<1B>C<000D>"
  174. }
  175. }
  176. *Option: Option7
  177. {
  178. *rcNameID: 261
  179. *PageDimensions: PAIR(6235, 935)
  180. *PrintableArea: PAIR(5760, 935)
  181. *PrintableOrigin: PAIR(180, 0)
  182. *switch: Resolution
  183. {
  184. *case: Option1
  185. {
  186. *PrintableArea: PAIR(5760, 933)
  187. }
  188. *case: Option2
  189. {
  190. *PrintableArea: PAIR(5760, 933)
  191. }
  192. }
  193. *Command: CmdSelect
  194. {
  195. *Order: DOC_SETUP.8
  196. *Cmd: "<1B>2<1B>C<1A>"
  197. }
  198. }
  199. *Option: CUSTOMSIZE
  200. {
  201. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  202. *MinSize: PAIR(720, 216)
  203. *MaxSize: PAIR(6120, 4752)
  204. *MaxPrintableWidth: 5760
  205. *MinLeftMargin: 180
  206. *CenterPrintable?: FALSE
  207. }
  208. }
  209. *Feature: Halftone
  210. {
  211. *rcNameID: =HALFTONING_DISPLAY
  212. *DefaultOption: HT_PATSIZE_AUTO
  213. *Option: HT_PATSIZE_AUTO
  214. {
  215. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  216. }
  217. *Ifdef: WINNT_50
  218. *Option: HT_PATSIZE_SUPERCELL_M
  219. {
  220. *rcNameID: =HT_SUPERCELL_DISPLAY
  221. }
  222. *Endif:
  223. *Option: HT_PATSIZE_6x6_M
  224. {
  225. *rcNameID: =HT_DITHER6X6_DISPLAY
  226. }
  227. *Option: HT_PATSIZE_8x8_M
  228. {
  229. *rcNameID: =HT_DITHER8X8_DISPLAY
  230. }
  231. }
  232. *Command: CmdStartDoc
  233. {
  234. *Order: DOC_SETUP.1
  235. *Cmd: "<181B>6<121B>W<00>"
  236. }
  237. *Command: CmdStartPage
  238. {
  239. *Order: PAGE_SETUP.1
  240. *Cmd: "<0D>"
  241. }
  242. *Command: CmdEndJob
  243. {
  244. *Order: JOB_FINISH.1
  245. *Cmd: "<1B>@"
  246. }
  247. *RotateCoordinate?: FALSE
  248. *RotateRaster?: FALSE
  249. *RotateFont?: FALSE
  250. *switch: Orientation
  251. {
  252. *case: PORTRAIT
  253. {
  254. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_RA_ABLE)
  255. }
  256. *case: LANDSCAPE_CC270
  257. {
  258. *TextCaps: LIST(TC_RA_ABLE)
  259. }
  260. }
  261. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  262. *YMoveAttributes: LIST(SEND_CR_FIRST)
  263. *YMoveThreshold: *
  264. *YMoveUnit: 216
  265. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat(DestYRel )} }
  266. *Command: CmdCR { *Cmd : "<0D>" }
  267. *Command: CmdLF { *Cmd : "<0A>" }
  268. *Command: CmdFF { *Cmd : "<0C>" }
  269. *Command: CmdBackSpace { *Cmd : "<08>" }
  270. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  271. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  272. *EjectPageWithFF?: FALSE
  273. *OutputDataFormat: V_BYTE
  274. *OptimizeLeftBound?: FALSE
  275. *CursorXAfterSendBlockData: AT_GRXDATA_END
  276. *CursorYAfterSendBlockData: NO_MOVE
  277. *DefaultFont: 123
  278. *DefaultCTT: -1
  279. *switch: Orientation
  280. {
  281. *case: PORTRAIT
  282. {
  283. *DeviceFonts: LIST(123,124,125,126,127,128,129,130)
  284. }
  285. *case: LANDSCAPE_CC270
  286. {
  287. *DeviceFonts: LIST()
  288. }
  289. }
  290. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  291. *Command: CmdBoldOff { *Cmd : "<1B>H" }