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.

500 lines
13 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IB4029.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM 4029 LaserPrinter"
  10. *MasterUnits: PAIR(300, 300)
  11. *ResourceDLL: "ibppdres.dll"
  12. *PrinterType: PAGE
  13. *Feature: Orientation
  14. {
  15. *rcNameID: =ORIENTATION_DISPLAY
  16. *DefaultOption: PORTRAIT
  17. *Option: PORTRAIT
  18. {
  19. *rcNameID: =PORTRAIT_DISPLAY
  20. *Command: CmdSelect
  21. {
  22. *Order: DOC_SETUP.2
  23. *Cmd: "<1B>k"
  24. }
  25. }
  26. *Option: LANDSCAPE_CC270
  27. {
  28. *rcNameID: =LANDSCAPE_DISPLAY
  29. *Command: CmdSelect
  30. {
  31. *Order: DOC_SETUP.2
  32. *Cmd: "<1B>l"
  33. }
  34. }
  35. }
  36. *Feature: InputBin
  37. {
  38. *rcNameID: =PAPER_SOURCE_DISPLAY
  39. *DefaultOption: UPPER
  40. *Option: AUTO
  41. {
  42. *rcNameID: =AUTO_DISPLAY
  43. *Command: CmdSelect
  44. {
  45. *Order: DOC_SETUP.7
  46. *Cmd: "<1B>[F<0300030103>"
  47. }
  48. }
  49. *Option: MANUAL
  50. {
  51. *rcNameID: =MANUAL_FEED_DISPLAY
  52. *Command: CmdSelect
  53. {
  54. *Order: DOC_SETUP.7
  55. *Cmd: "<1B>[F<010001>"
  56. }
  57. }
  58. *Option: ENVFEED
  59. {
  60. *rcNameID: =ENV_FEED_DISPLAY
  61. *Command: CmdSelect
  62. {
  63. *Order: DOC_SETUP.7
  64. *Cmd: "<1B>[F<02000302>"
  65. }
  66. }
  67. *Option: UPPER
  68. {
  69. *rcNameID: =UPPER_TRAY_DISPLAY
  70. *Command: CmdSelect
  71. {
  72. *Order: DOC_SETUP.7
  73. *Cmd: "<1B>[F<0300030101>"
  74. }
  75. }
  76. *Option: LOWER
  77. {
  78. *rcNameID: =LOWER_TRAY_DISPLAY
  79. *Command: CmdSelect
  80. {
  81. *Order: DOC_SETUP.7
  82. *Cmd: "<1B>[F<0300030102>"
  83. }
  84. }
  85. }
  86. *Feature: Resolution
  87. {
  88. *rcNameID: =RESOLUTION_DISPLAY
  89. *DefaultOption: Option1
  90. *Option: Option1
  91. {
  92. *Name: "300 x 300 " =DOTS_PER_INCH
  93. *DPI: PAIR(300, 300)
  94. *TextDPI: PAIR(300, 300)
  95. *MinStripBlankPixels: 32
  96. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  97. *SpotDiameter: 100
  98. *Command: CmdSendBlockData { *Cmd : "<1B>[h" %l{NumOfDataBytes + 10}"<0901>,<01>," %m{RasterDataWidthInBytes }"<0011>"
  99. + "<00>" }
  100. }
  101. *Option: Option2
  102. {
  103. *Name: "150 x 150 " =DOTS_PER_INCH
  104. *DPI: PAIR(150, 150)
  105. *TextDPI: PAIR(300, 300)
  106. *MinStripBlankPixels: 32
  107. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  108. *SpotDiameter: 100
  109. *Command: CmdSendBlockData { *Cmd : "<1B>[h" %l{NumOfDataBytes + 10}"<0900960096>" %m{RasterDataWidthInBytes }"<0011>"
  110. + "<00>" }
  111. }
  112. }
  113. *Feature: PaperSize
  114. {
  115. *rcNameID: =PAPER_SIZE_DISPLAY
  116. *DefaultOption: LETTER
  117. *Option: LETTER
  118. {
  119. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  120. *PrintableArea: PAIR(2400, 3200)
  121. *PrintableOrigin: PAIR(75, 50)
  122. *switch: Resolution
  123. {
  124. *case: Option2
  125. {
  126. *PrintableArea: PAIR(2398, 3200)
  127. *PrintableOrigin: PAIR(76, 50)
  128. }
  129. }
  130. *CursorOrigin: PAIR(75, 50)
  131. *Command: CmdSelect
  132. {
  133. *Order: DOC_SETUP.8
  134. *Cmd: "<1B>[F<040000010001>"
  135. }
  136. }
  137. *Option: LEGAL
  138. {
  139. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  140. *PrintableArea: PAIR(2400, 4100)
  141. *PrintableOrigin: PAIR(75, 50)
  142. *switch: Resolution
  143. {
  144. *case: Option2
  145. {
  146. *PrintableArea: PAIR(2398, 4100)
  147. *PrintableOrigin: PAIR(76, 50)
  148. }
  149. }
  150. *CursorOrigin: PAIR(75, 50)
  151. *Command: CmdSelect
  152. {
  153. *Order: DOC_SETUP.8
  154. *Cmd: "<1B>[F<040000010002>"
  155. }
  156. }
  157. *Option: B5
  158. {
  159. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  160. *PrintableArea: PAIR(1971, 2926)
  161. *PrintableOrigin: PAIR(75, 50)
  162. *switch: Resolution
  163. {
  164. *case: Option2
  165. {
  166. *PrintableArea: PAIR(1970, 2926)
  167. *PrintableOrigin: PAIR(76, 50)
  168. }
  169. }
  170. *CursorOrigin: PAIR(75, 50)
  171. *Command: CmdSelect
  172. {
  173. *Order: DOC_SETUP.8
  174. *Cmd: "<1B>[F<040000010003>"
  175. }
  176. }
  177. *Option: A4
  178. {
  179. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  180. *PrintableArea: PAIR(2361, 3407)
  181. *PrintableOrigin: PAIR(40, 50)
  182. *switch: Resolution
  183. {
  184. *case: Option2
  185. {
  186. *PrintableArea: PAIR(2360, 3406)
  187. }
  188. }
  189. *CursorOrigin: PAIR(40, 50)
  190. *Command: CmdSelect
  191. {
  192. *Order: DOC_SETUP.8
  193. *Cmd: "<1B>[F<040000010004>"
  194. }
  195. }
  196. *Option: EXECUTIVE
  197. {
  198. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  199. *PrintableArea: PAIR(2025, 3050)
  200. *PrintableOrigin: PAIR(75, 50)
  201. *switch: Resolution
  202. {
  203. *case: Option2
  204. {
  205. *PrintableArea: PAIR(2024, 3050)
  206. *PrintableOrigin: PAIR(76, 50)
  207. }
  208. }
  209. *CursorOrigin: PAIR(75, 50)
  210. *Command: CmdSelect
  211. {
  212. *Order: DOC_SETUP.8
  213. *Cmd: "<1B>[F<040000010005>"
  214. }
  215. }
  216. *Option: A5
  217. {
  218. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  219. *PrintableArea: PAIR(1569, 2326)
  220. *PrintableOrigin: PAIR(75, 50)
  221. *switch: Resolution
  222. {
  223. *case: Option2
  224. {
  225. *PrintableArea: PAIR(1568, 2326)
  226. *PrintableOrigin: PAIR(76, 50)
  227. }
  228. }
  229. *CursorOrigin: PAIR(75, 50)
  230. *Command: CmdSelect
  231. {
  232. *Order: DOC_SETUP.8
  233. *Cmd: "<1B>[F<040000010006>"
  234. }
  235. }
  236. *Option: ENV_MONARCH
  237. {
  238. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  239. *PrintableArea: PAIR(984, 2150)
  240. *PrintableOrigin: PAIR(75, 50)
  241. *switch: Resolution
  242. {
  243. *case: Option2
  244. {
  245. *PrintableArea: PAIR(982, 2150)
  246. *PrintableOrigin: PAIR(76, 50)
  247. }
  248. }
  249. *CursorOrigin: PAIR(75, 50)
  250. *Command: CmdSelect
  251. {
  252. *Order: DOC_SETUP.8
  253. *Cmd: "<1B>[F<0400000200011B>k"
  254. }
  255. }
  256. *Option: ENV_9
  257. {
  258. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  259. *PrintableArea: PAIR(984, 2509)
  260. *PrintableOrigin: PAIR(75, 50)
  261. *switch: Resolution
  262. {
  263. *case: Option2
  264. {
  265. *PrintableArea: PAIR(982, 2508)
  266. *PrintableOrigin: PAIR(76, 50)
  267. }
  268. }
  269. *CursorOrigin: PAIR(75, 50)
  270. *Command: CmdSelect
  271. {
  272. *Order: DOC_SETUP.8
  273. *Cmd: "<1B>[F<0400000200021B>k"
  274. }
  275. }
  276. *Option: ENV_10
  277. {
  278. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  279. *PrintableArea: PAIR(1059, 2750)
  280. *PrintableOrigin: PAIR(75, 50)
  281. *switch: Resolution
  282. {
  283. *case: Option2
  284. {
  285. *PrintableArea: PAIR(1058, 2750)
  286. *PrintableOrigin: PAIR(76, 50)
  287. }
  288. }
  289. *CursorOrigin: PAIR(75, 50)
  290. *Command: CmdSelect
  291. {
  292. *Order: DOC_SETUP.8
  293. *Cmd: "<1B>[F<0400000200031B>k"
  294. }
  295. }
  296. *Option: ENV_DL
  297. {
  298. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  299. *PrintableArea: PAIR(1149, 2498)
  300. *PrintableOrigin: PAIR(75, 50)
  301. *switch: Resolution
  302. {
  303. *case: Option2
  304. {
  305. *PrintableArea: PAIR(1148, 2498)
  306. *PrintableOrigin: PAIR(76, 50)
  307. }
  308. }
  309. *CursorOrigin: PAIR(75, 50)
  310. *Command: CmdSelect
  311. {
  312. *Order: DOC_SETUP.8
  313. *Cmd: "<1B>[F<0400000200041B>k"
  314. }
  315. }
  316. *Option: ENV_C5
  317. {
  318. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  319. *PrintableArea: PAIR(1734, 2551)
  320. *PrintableOrigin: PAIR(75, 50)
  321. *switch: Resolution
  322. {
  323. *case: Option2
  324. {
  325. *PrintableArea: PAIR(1732, 2550)
  326. *PrintableOrigin: PAIR(76, 50)
  327. }
  328. }
  329. *CursorOrigin: PAIR(75, 50)
  330. *Command: CmdSelect
  331. {
  332. *Order: DOC_SETUP.8
  333. *Cmd: "<1B>[F<0400000200051B>k"
  334. }
  335. }
  336. *Option: ENV_B5
  337. {
  338. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  339. *PrintableArea: PAIR(1899, 2852)
  340. *PrintableOrigin: PAIR(75, 50)
  341. *switch: Resolution
  342. {
  343. *case: Option2
  344. {
  345. *PrintableArea: PAIR(1898, 2852)
  346. *PrintableOrigin: PAIR(76, 50)
  347. }
  348. }
  349. *CursorOrigin: PAIR(75, 50)
  350. *Command: CmdSelect
  351. {
  352. *Order: DOC_SETUP.8
  353. *Cmd: "<1B>[F<0400000200061B>k"
  354. }
  355. }
  356. }
  357. *Feature: Halftone
  358. {
  359. *rcNameID: =HALFTONING_DISPLAY
  360. *DefaultOption: HT_PATSIZE_AUTO
  361. *Option: HT_PATSIZE_AUTO
  362. {
  363. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  364. }
  365. *Ifdef: WINNT_50
  366. *Option: HT_PATSIZE_SUPERCELL_M
  367. {
  368. *rcNameID: =HT_SUPERCELL_DISPLAY
  369. }
  370. *Endif:
  371. *Option: HT_PATSIZE_6x6_M
  372. {
  373. *rcNameID: =HT_DITHER6X6_DISPLAY
  374. }
  375. *Option: HT_PATSIZE_8x8_M
  376. {
  377. *rcNameID: =HT_DITHER8X8_DISPLAY
  378. }
  379. }
  380. *Feature: Memory
  381. {
  382. *rcNameID: =PRINTER_MEMORY_DISPLAY
  383. *DefaultOption: 1024KB
  384. *Option: 1024KB
  385. {
  386. *Name: "1MB"
  387. *MemoryConfigKB: PAIR(1024, 931)
  388. }
  389. *Option: 2048KB
  390. {
  391. *Name: "2MB"
  392. *MemoryConfigKB: PAIR(2048, 1955)
  393. }
  394. *Option: 3072KB
  395. {
  396. *Name: "3MB"
  397. *MemoryConfigKB: PAIR(3072, 2979)
  398. }
  399. *Option: 4096KB
  400. {
  401. *Name: "4MB"
  402. *MemoryConfigKB: PAIR(4096, 4003)
  403. }
  404. *Option: 5120KB
  405. {
  406. *Name: "5MB"
  407. *MemoryConfigKB: PAIR(5120, 5027)
  408. }
  409. *Option: 6144KB
  410. {
  411. *Name: "6MB"
  412. *MemoryConfigKB: PAIR(6144, 6051)
  413. }
  414. *Option: 7168KB
  415. {
  416. *Name: "7MB"
  417. *MemoryConfigKB: PAIR(7168, 7075)
  418. }
  419. *Option: 8192KB
  420. {
  421. *Name: "8MB"
  422. *MemoryConfigKB: PAIR(8192, 8099)
  423. }
  424. *Option: 9216KB
  425. {
  426. *Name: "9MB"
  427. *MemoryConfigKB: PAIR(9216, 9123)
  428. }
  429. *Option: 10240KB
  430. {
  431. *Name: "10MB"
  432. *MemoryConfigKB: PAIR(10240, 10147)
  433. }
  434. }
  435. *Command: CmdStartDoc
  436. {
  437. *Order: DOC_SETUP.1
  438. *Cmd: "<000000001B>[K<180000>1<01000000000000000000000000041B>[K<030000>1<01>"
  439. }
  440. *Command: CmdStartPage
  441. {
  442. *Order: PAGE_SETUP.1
  443. *Cmd: "<0D>"
  444. }
  445. *Command: CmdEndJob
  446. {
  447. *Order: JOB_FINISH.1
  448. *Cmd: "<1B>[K<030000>1<00>"
  449. }
  450. *RotateCoordinate?: FALSE
  451. *RotateRaster?: TRUE
  452. *RotateFont?: TRUE
  453. *switch: Orientation
  454. {
  455. *case: PORTRAIT
  456. {
  457. *TextCaps: LIST(TC_OP_CHARACTER,TC_SF_X_YINDEP,TC_SA_DOUBLE,TC_EA_DOUBLE,TC_UA_ABLE)
  458. }
  459. *case: LANDSCAPE_CC270
  460. {
  461. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE)
  462. }
  463. }
  464. *MemoryUsage: LIST(FONT, RASTER, VECTOR)
  465. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  466. *XMoveThreshold: 0
  467. *YMoveThreshold: 0
  468. *XMoveUnit: 300
  469. *YMoveUnit: 300
  470. *Command: CmdXMoveAbsolute { *Cmd : "<1B>[Q<04000A04>" %m{DestX } }
  471. *Command: CmdXMoveRelRight { *Cmd : "<1B>[Q<06000004>" %m{DestXRel }"<0000>" }
  472. *Command: CmdYMoveAbsolute { *Cmd : "<1B>[Q<04000B04>" %m{DestY } }
  473. *Command: CmdYMoveRelDown { *Cmd : "<1B>[Q<060000040000>" %m{DestYRel } }
  474. *Command: CmdCR { *Cmd : "<0D>" }
  475. *Command: CmdLF { *Cmd : "<0A>" }
  476. *Command: CmdFF { *Cmd : "<0C>" }
  477. *Command: CmdBackSpace { *Cmd : "<08>" }
  478. *Command: CmdUniDirectionOn { *Cmd : "<00>" }
  479. *Command: CmdUniDirectionOff { *Cmd : "<00>" }
  480. *Command: CmdPushCursor { *Cmd : "<1B>[j<010000>" }
  481. *Command: CmdPopCursor { *Cmd : "<1B>[j<010003>" }
  482. *EjectPageWithFF?: TRUE
  483. *Command: CmdEnableTIFF4 { *Cmd : "" }
  484. *OutputDataFormat: H_BYTE
  485. *OptimizeLeftBound?: TRUE
  486. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  487. *CursorYAfterSendBlockData: AUTO_INCREMENT
  488. *DefaultFont: 7
  489. *DefaultCTT: -2
  490. *CharPosition: BASELINE
  491. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  492. + 17,18,19,20,21)
  493. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  494. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  495. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  496. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  497. *MinGrayFill: 100
  498. *MaxGrayFill: 100
  499. *Command: CmdSetRectWidth { *Cmd : "<1B>[i<08000100>" %m{RectXSize } }
  500. *Command: CmdSetRectHeight { *Cmd : %m{RectYSize }"<0101>" }