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.

430 lines
11 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IBP2205.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM PS/1 2205"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "ibps1res.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. *Command: CmdSelect
  34. {
  35. *Order: DOC_SETUP.3
  36. *Cmd: "<1B>O"
  37. }
  38. }
  39. *Option: MANUAL
  40. {
  41. *rcNameID: =MANUAL_FEED_DISPLAY
  42. *Command: CmdSelect
  43. {
  44. *Order: DOC_SETUP.3
  45. *Cmd: "<1B>O"
  46. }
  47. }
  48. *Option: AUTO
  49. {
  50. *rcNameID: =AUTO_DISPLAY
  51. *Command: CmdSelect
  52. {
  53. *Order: DOC_SETUP.3
  54. *Cmd: "<1B>O"
  55. }
  56. }
  57. }
  58. *Feature: Resolution
  59. {
  60. *rcNameID: =RESOLUTION_DISPLAY
  61. *DefaultOption: Option1
  62. *Option: Option1
  63. {
  64. *Name: "180 x 180 " =DOTS_PER_INCH
  65. *DPI: PAIR(180, 180)
  66. *TextDPI: PAIR(180, 180)
  67. *PinsPerLogPass: 24
  68. *PinsPerPhysPass: 24
  69. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  70. *SpotDiameter: 140
  71. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<0B>" }
  72. }
  73. *Option: Option2
  74. {
  75. *Name: "360 x 180 " =DOTS_PER_INCH
  76. *DPI: PAIR(360, 180)
  77. *TextDPI: PAIR(360, 180)
  78. *PinsPerLogPass: 24
  79. *PinsPerPhysPass: 24
  80. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  81. *SpotDiameter: 180
  82. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<0C>" }
  83. }
  84. *Option: Option3
  85. {
  86. *Name: "120 x 180 " =DOTS_PER_INCH
  87. *DPI: PAIR(120, 180)
  88. *TextDPI: PAIR(120, 180)
  89. *PinsPerLogPass: 24
  90. *PinsPerPhysPass: 24
  91. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  92. *SpotDiameter: 130
  93. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<09>" }
  94. }
  95. }
  96. *Feature: PaperSize
  97. {
  98. *rcNameID: =PAPER_SIZE_DISPLAY
  99. *DefaultOption: LETTER
  100. *Option: LETTER
  101. {
  102. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  103. *Command: CmdSelect
  104. {
  105. *Order: DOC_SETUP.4
  106. *Cmd: "<1B>C<0011>"
  107. }
  108. *switch: InputBin
  109. {
  110. *case: TRACTOR
  111. {
  112. *PrintableArea: PAIR(5760, 7920)
  113. *PrintableOrigin: PAIR(180, 0)
  114. }
  115. *case: MANUAL
  116. {
  117. *PrintableArea: PAIR(5760, 7560)
  118. *PrintableOrigin: PAIR(180, 0)
  119. }
  120. *case: AUTO
  121. {
  122. *PrintableArea: PAIR(5760, 7560)
  123. *PrintableOrigin: PAIR(180, 0)
  124. }
  125. }
  126. }
  127. *Option: LEGAL
  128. {
  129. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  130. *Command: CmdSelect
  131. {
  132. *Order: DOC_SETUP.4
  133. *Cmd: "<1B0014>"
  134. }
  135. *switch: InputBin
  136. {
  137. *case: TRACTOR
  138. {
  139. *PrintableArea: PAIR(5760, 10080)
  140. *PrintableOrigin: PAIR(180, 0)
  141. }
  142. *case: MANUAL
  143. {
  144. *PrintableArea: PAIR(5760, 9720)
  145. *PrintableOrigin: PAIR(180, 0)
  146. }
  147. *case: AUTO
  148. {
  149. *PrintableArea: PAIR(5760, 9720)
  150. *PrintableOrigin: PAIR(180, 0)
  151. }
  152. }
  153. }
  154. *Option: A4
  155. {
  156. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  157. *switch: InputBin
  158. {
  159. *case: TRACTOR
  160. {
  161. *PrintableArea: PAIR(5760, 8417)
  162. *PrintableOrigin: PAIR(180, 0)
  163. *switch: Resolution
  164. {
  165. *case: Option1
  166. {
  167. *PrintableArea: PAIR(5760, 8416)
  168. }
  169. *case: Option2
  170. {
  171. *PrintableArea: PAIR(5760, 8416)
  172. }
  173. *case: Option3
  174. {
  175. *PrintableArea: PAIR(5760, 8416)
  176. }
  177. }
  178. }
  179. *case: MANUAL
  180. {
  181. *PrintableArea: PAIR(5760, 8057)
  182. *PrintableOrigin: PAIR(180, 0)
  183. *switch: Resolution
  184. {
  185. *case: Option1
  186. {
  187. *PrintableArea: PAIR(5760, 8056)
  188. }
  189. *case: Option2
  190. {
  191. *PrintableArea: PAIR(5760, 8056)
  192. }
  193. *case: Option3
  194. {
  195. *PrintableArea: PAIR(5760, 8056)
  196. }
  197. }
  198. }
  199. *case: AUTO
  200. {
  201. *PrintableArea: PAIR(5760, 8057)
  202. *PrintableOrigin: PAIR(180, 0)
  203. *switch: Resolution
  204. {
  205. *case: Option1
  206. {
  207. *PrintableArea: PAIR(5760, 8056)
  208. }
  209. *case: Option2
  210. {
  211. *PrintableArea: PAIR(5760, 8056)
  212. }
  213. *case: Option3
  214. {
  215. *PrintableArea: PAIR(5760, 8056)
  216. }
  217. }
  218. }
  219. }
  220. }
  221. *Option: ENV_10
  222. {
  223. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  224. *switch: InputBin
  225. {
  226. *case: TRACTOR
  227. {
  228. *PrintableArea: PAIR(2794, 6840)
  229. *PrintableOrigin: PAIR(180, 0)
  230. *switch: Resolution
  231. {
  232. *case: Option1
  233. {
  234. *PrintableArea: PAIR(2792, 6840)
  235. }
  236. *case: Option3
  237. {
  238. *PrintableArea: PAIR(2790, 6840)
  239. }
  240. }
  241. }
  242. *case: MANUAL
  243. {
  244. *PrintableArea: PAIR(2794, 6480)
  245. *PrintableOrigin: PAIR(180, 0)
  246. *switch: Resolution
  247. {
  248. *case: Option1
  249. {
  250. *PrintableArea: PAIR(2792, 6480)
  251. }
  252. *case: Option3
  253. {
  254. *PrintableArea: PAIR(2790, 6480)
  255. }
  256. }
  257. }
  258. *case: AUTO
  259. {
  260. *PrintableArea: PAIR(2794, 6480)
  261. *PrintableOrigin: PAIR(180, 0)
  262. *switch: Resolution
  263. {
  264. *case: Option1
  265. {
  266. *PrintableArea: PAIR(2792, 6480)
  267. }
  268. *case: Option3
  269. {
  270. *PrintableArea: PAIR(2790, 6480)
  271. }
  272. }
  273. }
  274. }
  275. }
  276. *Option: CUSTOMSIZE
  277. {
  278. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  279. *MinSize: PAIR(720, 720)
  280. *MaxSize: PAIR(7920, 32767)
  281. *MaxPrintableWidth: 5760
  282. *MinLeftMargin: 180
  283. *CenterPrintable?: FALSE
  284. *switch: InputBin
  285. {
  286. *case: TRACTOR
  287. {
  288. *TopMargin: 0
  289. *BottomMargin: 0
  290. }
  291. *case: MANUAL
  292. {
  293. *TopMargin: 0
  294. *BottomMargin: 360
  295. }
  296. *case: AUTO
  297. {
  298. *TopMargin: 0
  299. *BottomMargin: 360
  300. }
  301. }
  302. }
  303. }
  304. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.ENV_10)
  305. *Feature: PrintQuality
  306. {
  307. *rcNameID: =TEXT_QUALITY_DISPLAY
  308. *DefaultOption: LETTER_QUALITY
  309. *Option: LETTER_QUALITY
  310. {
  311. *rcNameID: =LETTER_QUALITY_DISPLAY
  312. *Command: CmdSelect
  313. {
  314. *Order: DOC_SETUP.2
  315. *Cmd: "<1B>[d<010080>"
  316. }
  317. }
  318. *Option: DRAFT_QUALITY
  319. {
  320. *rcNameID: =DRAFT_QUALITY_DISPLAY
  321. *Command: CmdSelect
  322. {
  323. *Order: DOC_SETUP.2
  324. *Cmd: "<1B>[d<010001>"
  325. }
  326. }
  327. }
  328. *Feature: Halftone
  329. {
  330. *rcNameID: =HALFTONING_DISPLAY
  331. *DefaultOption: HT_PATSIZE_AUTO
  332. *Option: HT_PATSIZE_AUTO
  333. {
  334. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  335. }
  336. *Ifdef: WINNT_50
  337. *Option: HT_PATSIZE_SUPERCELL_M
  338. {
  339. *rcNameID: =HT_SUPERCELL_DISPLAY
  340. }
  341. *Endif:
  342. *Option: HT_PATSIZE_6x6_M
  343. {
  344. *rcNameID: =HT_DITHER6X6_DISPLAY
  345. }
  346. *Option: HT_PATSIZE_8x8_M
  347. {
  348. *rcNameID: =HT_DITHER8X8_DISPLAY
  349. }
  350. }
  351. *Command: CmdStartDoc
  352. {
  353. *Order: DOC_SETUP.1
  354. *Cmd: "<1B>[K<0100001B>[\<04000000B4001B>[T<0400000003>R"
  355. }
  356. *Command: CmdStartPage
  357. {
  358. *Order: PAGE_SETUP.1
  359. *Cmd: "<0D>"
  360. }
  361. *Command: CmdEndJob
  362. {
  363. *Order: JOB_FINISH.1
  364. *Cmd: "<1B>[\<04000000D8001B>[T<0400000001B51B>7"
  365. }
  366. *RotateCoordinate?: FALSE
  367. *RotateRaster?: FALSE
  368. *RotateFont?: FALSE
  369. *switch: Orientation
  370. {
  371. *case: PORTRAIT
  372. {
  373. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  374. }
  375. *case: LANDSCAPE_CC270
  376. {
  377. *TextCaps: LIST(TC_RA_ABLE)
  378. }
  379. }
  380. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  381. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  382. *MaxLineSpacing: 255
  383. *XMoveThreshold: *
  384. *YMoveThreshold: *
  385. *XMoveUnit: 120
  386. *YMoveUnit: 180
  387. *Command: CmdXMoveRelRight { *Cmd : "<1B>d" %l{(DestXRel / 6) } }
  388. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 4) )} }
  389. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 4) } }
  390. *Command: CmdCR { *Cmd : "<0D>" }
  391. *Command: CmdLF { *Cmd : "<0A>" }
  392. *Command: CmdFF { *Cmd : "<0C>" }
  393. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  394. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  395. *EjectPageWithFF?: FALSE
  396. *switch: InputBin
  397. {
  398. *case: MANUAL
  399. {
  400. *EjectPageWithFF?: TRUE
  401. }
  402. *case: AUTO
  403. {
  404. *EjectPageWithFF?: TRUE
  405. }
  406. }
  407. *OutputDataFormat: V_BYTE
  408. *OptimizeLeftBound?: TRUE
  409. *CursorXAfterSendBlockData: AT_GRXDATA_END
  410. *CursorYAfterSendBlockData: NO_MOVE
  411. *DefaultFont: 5
  412. *DefaultCTT: -2
  413. *switch: Orientation
  414. {
  415. *case: PORTRAIT
  416. {
  417. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  418. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33)
  419. }
  420. *case: LANDSCAPE_CC270
  421. {
  422. *DeviceFonts: LIST()
  423. }
  424. }
  425. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  426. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  427. *Command: CmdItalicOn { *Cmd : "<1B>[@<040001000000>" }
  428. *Command: CmdItalicOff { *Cmd : "<1B>[@<040002000000>" }
  429. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  430. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }