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.

597 lines
17 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "XR4508.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *Include: "ttfsub.gpd"
  10. *ModelName: "Xerox DocuPrint 4508"
  11. *MasterUnits: PAIR(1200, 1200)
  12. *ResourceDLL: "pcl5eres.dll"
  13. *PrinterType: PAGE
  14. *PrintRate: 8
  15. *PrintRatePPM: 8
  16. *PrintRateUnit: PPM
  17. *MaxCopies: 99
  18. *Feature: Orientation
  19. {
  20. *rcNameID: =ORIENTATION_DISPLAY
  21. *DefaultOption: PORTRAIT
  22. *Option: PORTRAIT
  23. {
  24. *rcNameID: =PORTRAIT_DISPLAY
  25. *Command: CmdSelect
  26. {
  27. *Order: DOC_SETUP.6
  28. *Cmd: "<1B>&l0O"
  29. }
  30. }
  31. *Option: LANDSCAPE_CC90
  32. {
  33. *rcNameID: =LANDSCAPE_DISPLAY
  34. *Command: CmdSelect
  35. {
  36. *Order: DOC_SETUP.6
  37. *Cmd: "<1B>&l1O"
  38. }
  39. }
  40. }
  41. *Feature: InputBin
  42. {
  43. *rcNameID: =PAPER_SOURCE_DISPLAY
  44. *DefaultOption: Option1
  45. *Option: Option1
  46. {
  47. *rcNameID: 271
  48. *Command: CmdSelect
  49. {
  50. *Order: DOC_SETUP.8
  51. *Cmd: "<1B>&l0H"
  52. }
  53. }
  54. *Option: Option2
  55. {
  56. *rcNameID: 350
  57. *Command: CmdSelect
  58. {
  59. *Order: DOC_SETUP.8
  60. *Cmd: "<1B>&l1H"
  61. }
  62. }
  63. *Option: Option3
  64. {
  65. *rcNameID: 447
  66. *Command: CmdSelect
  67. {
  68. *Order: DOC_SETUP.8
  69. *Cmd: "<1B>&l4H"
  70. }
  71. }
  72. *Option: Option4
  73. {
  74. *rcNameID: 448
  75. *Command: CmdSelect
  76. {
  77. *Order: DOC_SETUP.8
  78. *Cmd: "<1B>&l2H"
  79. }
  80. }
  81. }
  82. *Feature: Resolution
  83. {
  84. *rcNameID: =RESOLUTION_DISPLAY
  85. *DefaultOption: Option1
  86. *Option: Option1
  87. {
  88. *Name: "600 x 600 " =DOTS_PER_INCH
  89. *DPI: PAIR(600, 600)
  90. *TextDPI: PAIR(600, 600)
  91. *MinStripBlankPixels: 32
  92. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  93. *SpotDiameter: 100
  94. *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  95. *Command: CmdEndRaster { *Cmd : "<1B>*rB" }
  96. *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
  97. *Command: CmdSelect
  98. {
  99. *Order: DOC_SETUP.3
  100. *Cmd: "<1B>%%-12345X@PJL SET RESOLUTION=600<0A>@PJL ENTER LANGUAGE=PCL<0A0D1B>E<1B>*t600R"
  101. }
  102. }
  103. }
  104. *Feature: PaperSize
  105. {
  106. *rcNameID: =PAPER_SIZE_DISPLAY
  107. *DefaultOption: LETTER
  108. *Option: LETTER
  109. {
  110. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  111. *switch: Orientation
  112. {
  113. *case: PORTRAIT
  114. {
  115. *PrintableArea: PAIR(9600, 12660)
  116. *PrintableOrigin: PAIR(300, 300)
  117. *CursorOrigin: PAIR(300, 220)
  118. *Command: CmdSelect
  119. {
  120. *Order: DOC_SETUP.12
  121. *Cmd: "<1B>&l2a8c1E<1B>*p0x0Y<1B>*c0t5760x7656Y"
  122. }
  123. }
  124. *case: LANDSCAPE_CC90
  125. {
  126. *PrintableArea: PAIR(9760, 12720)
  127. *PrintableOrigin: PAIR(200, 240)
  128. *CursorOrigin: PAIR(200, 12960)
  129. *Command: CmdSelect
  130. {
  131. *Order: DOC_SETUP.12
  132. *Cmd: "<1B>&l2a8c1E<1B>*p0x0Y<1B>*c0t7652x5880Y"
  133. }
  134. }
  135. }
  136. }
  137. *Option: LEGAL
  138. {
  139. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  140. *switch: Orientation
  141. {
  142. *case: PORTRAIT
  143. {
  144. *PrintableArea: PAIR(9600, 16260)
  145. *PrintableOrigin: PAIR(300, 300)
  146. *CursorOrigin: PAIR(300, 180)
  147. *Command: CmdSelect
  148. {
  149. *Order: DOC_SETUP.12
  150. *Cmd: "<1B>&l3a8c1E<1B>*p0x0Y<1B>*c0t5760x9864Y"
  151. }
  152. }
  153. *case: LANDSCAPE_CC90
  154. {
  155. *PrintableArea: PAIR(9760, 16320)
  156. *PrintableOrigin: PAIR(200, 240)
  157. *CursorOrigin: PAIR(200, 16560)
  158. *Command: CmdSelect
  159. {
  160. *Order: DOC_SETUP.12
  161. *Cmd: "<1B>&l3a8c1E<1B>*p0x0Y<1B>*c0t9792x5880Y"
  162. }
  163. }
  164. }
  165. }
  166. *Option: FOLIO
  167. {
  168. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  169. *switch: Orientation
  170. {
  171. *case: PORTRAIT
  172. {
  173. *PrintableArea: PAIR(9600, 15060)
  174. *PrintableOrigin: PAIR(300, 300)
  175. *CursorOrigin: PAIR(300, 180)
  176. *Command: CmdSelect
  177. {
  178. *Order: DOC_SETUP.12
  179. *Cmd: "<1B>&l71a8c1E<1B>*p0x0Y<1B>*c0t5760x9144Y"
  180. }
  181. }
  182. *case: LANDSCAPE_CC90
  183. {
  184. *PrintableArea: PAIR(9760, 15120)
  185. *PrintableOrigin: PAIR(200, 240)
  186. *CursorOrigin: PAIR(200, 15360)
  187. *Command: CmdSelect
  188. {
  189. *Order: DOC_SETUP.12
  190. *Cmd: "<1B>&l71a8c1E<1B>*p0x0Y<1B>*c0t9072x5880Y"
  191. }
  192. }
  193. }
  194. }
  195. *Option: EXECUTIVE
  196. {
  197. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  198. *switch: Orientation
  199. {
  200. *case: PORTRAIT
  201. {
  202. *PrintableArea: PAIR(8100, 12060)
  203. *PrintableOrigin: PAIR(248, 300)
  204. *CursorOrigin: PAIR(248, 240)
  205. *Command: CmdSelect
  206. {
  207. *Order: DOC_SETUP.12
  208. *Cmd: "<1B>&l1a8c1E<1B>*p0x0Y<1B>*c0t4922x7272Y"
  209. }
  210. }
  211. *case: LANDSCAPE_CC90
  212. {
  213. *PrintableArea: PAIR(8220, 12120)
  214. *PrintableOrigin: PAIR(240, 240)
  215. *CursorOrigin: PAIR(160, 12360)
  216. *Command: CmdSelect
  217. {
  218. *Order: DOC_SETUP.12
  219. *Cmd: "<1B>&l1a8c1E<1B>*p0x0Y<1B>*c0t7272x5028Y"
  220. }
  221. }
  222. }
  223. }
  224. *Option: A4
  225. {
  226. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  227. *switch: Orientation
  228. {
  229. *case: PORTRAIT
  230. {
  231. *PrintableArea: PAIR(9344, 13488)
  232. *PrintableOrigin: PAIR(248, 300)
  233. *CursorOrigin: PAIR(248, 200)
  234. *Command: CmdSelect
  235. {
  236. *Order: DOC_SETUP.12
  237. *Cmd: "<1B>&l26a8c1E<1B>*p0x0Y<1B>*c0t5657x8177Y"
  238. }
  239. }
  240. *case: LANDSCAPE_CC90
  241. {
  242. *PrintableArea: PAIR(9424, 13548)
  243. *PrintableOrigin: PAIR(240, 240)
  244. *CursorOrigin: PAIR(160, 13788)
  245. *Command: CmdSelect
  246. {
  247. *Order: DOC_SETUP.12
  248. *Cmd: "<1B>&l26a8c1E<1B>*p0x0Y<1B>*c0t8128x5762Y"
  249. }
  250. }
  251. }
  252. }
  253. *Option: ENV_10
  254. {
  255. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  256. *switch: Orientation
  257. {
  258. *case: PORTRAIT
  259. {
  260. *PrintableArea: PAIR(4336, 10800)
  261. *PrintableOrigin: PAIR(300, 300)
  262. *CursorOrigin: PAIR(300, 180)
  263. *Command: CmdSelect
  264. {
  265. *Order: DOC_SETUP.12
  266. *Cmd: "<1B>&l81a8c1E<1B>*p0x0Y<1B>*c0t2614x6624Y"
  267. }
  268. }
  269. *case: LANDSCAPE_CC90
  270. {
  271. *PrintableArea: PAIR(4356, 10800)
  272. *PrintableOrigin: PAIR(300, 300)
  273. *CursorOrigin: PAIR(200, 11100)
  274. *Command: CmdSelect
  275. {
  276. *Order: DOC_SETUP.12
  277. *Cmd: "<1B>&l81a8c1E<1B>*p0x0Y<1B>*c0t6480x2734Y"
  278. }
  279. }
  280. }
  281. }
  282. *Option: ENV_DL
  283. {
  284. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  285. *switch: Orientation
  286. {
  287. *case: PORTRAIT
  288. {
  289. *PrintableArea: PAIR(4576, 9792)
  290. *PrintableOrigin: PAIR(300, 300)
  291. *CursorOrigin: PAIR(300, 180)
  292. *Command: CmdSelect
  293. {
  294. *Order: DOC_SETUP.12
  295. *Cmd: "<1B>&l90a8c1E<1B>*p0x0Y<1B>*c0t2757x6019Y"
  296. }
  297. }
  298. *case: LANDSCAPE_CC90
  299. {
  300. *PrintableArea: PAIR(4596, 9792)
  301. *PrintableOrigin: PAIR(300, 300)
  302. *CursorOrigin: PAIR(200, 10092)
  303. *Command: CmdSelect
  304. {
  305. *Order: DOC_SETUP.12
  306. *Cmd: "<1B>&l90a8c1E<1B>*p0x0Y<1B>*c0t5875x2878Y"
  307. }
  308. }
  309. }
  310. }
  311. *Option: ENV_C5
  312. {
  313. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  314. *switch: Orientation
  315. {
  316. *case: PORTRAIT
  317. {
  318. *PrintableArea: PAIR(7036, 10224)
  319. *PrintableOrigin: PAIR(300, 300)
  320. *CursorOrigin: PAIR(300, 180)
  321. *Command: CmdSelect
  322. {
  323. *Order: DOC_SETUP.12
  324. *Cmd: "<1B>&l91a8c1E<1B>*p0x0Y<1B>*c0t4234x6278Y"
  325. }
  326. }
  327. *case: LANDSCAPE_CC90
  328. {
  329. *PrintableArea: PAIR(7056, 10224)
  330. *PrintableOrigin: PAIR(300, 300)
  331. *CursorOrigin: PAIR(200, 10524)
  332. *Command: CmdSelect
  333. {
  334. *Order: DOC_SETUP.12
  335. *Cmd: "<1B>&l91a8c1E<1B>*p0x0Y<1B>*c0t6134x4354Y"
  336. }
  337. }
  338. }
  339. }
  340. *Option: ENV_MONARCH
  341. {
  342. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  343. *switch: Orientation
  344. {
  345. *case: PORTRAIT
  346. {
  347. *PrintableArea: PAIR(4036, 8400)
  348. *PrintableOrigin: PAIR(300, 300)
  349. *CursorOrigin: PAIR(300, 180)
  350. *Command: CmdSelect
  351. {
  352. *Order: DOC_SETUP.12
  353. *Cmd: "<1B>&l80a8c1E<1B>*p0x0Y<1B>*c0t2434x5184Y"
  354. }
  355. }
  356. *case: LANDSCAPE_CC90
  357. {
  358. *PrintableArea: PAIR(4056, 8400)
  359. *PrintableOrigin: PAIR(300, 300)
  360. *CursorOrigin: PAIR(200, 8700)
  361. *Command: CmdSelect
  362. {
  363. *Order: DOC_SETUP.12
  364. *Cmd: "<1B>&l80a8c1E<1B>*p0x0Y<1B>*c0t5040x2557Y"
  365. }
  366. }
  367. }
  368. }
  369. *Option: ENV_B5
  370. {
  371. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  372. *switch: Orientation
  373. {
  374. *case: PORTRAIT
  375. {
  376. *PrintableArea: PAIR(7716, 11208)
  377. *PrintableOrigin: PAIR(300, 300)
  378. *CursorOrigin: PAIR(300, 180)
  379. *Command: CmdSelect
  380. {
  381. *Order: DOC_SETUP.12
  382. *Cmd: "<1B>&l100a8c1E<1B>*p0x0Y<1B>*c0t4630x6869Y"
  383. }
  384. }
  385. *case: LANDSCAPE_CC90
  386. {
  387. *PrintableArea: PAIR(7716, 11208)
  388. *PrintableOrigin: PAIR(300, 300)
  389. *CursorOrigin: PAIR(200, 11508)
  390. *Command: CmdSelect
  391. {
  392. *Order: DOC_SETUP.12
  393. *Cmd: "<1B>&l100a8c1E<1B>*p0x0Y<1B>*c0t6725x4750Y"
  394. }
  395. }
  396. }
  397. }
  398. }
  399. *Feature: TrueRes
  400. {
  401. *rcNameID: 385
  402. *DefaultOption: Option1
  403. *Option: Option1
  404. {
  405. *rcNameID: 382
  406. }
  407. *Option: Option2
  408. {
  409. *rcNameID: 383
  410. *Command: CmdSelect
  411. {
  412. *Order: DOC_SETUP.2
  413. *Cmd: "@PJL SET RET=ON<0A>"
  414. }
  415. }
  416. *Option: Option3
  417. {
  418. *rcNameID: 384
  419. *Command: CmdSelect
  420. {
  421. *Order: DOC_SETUP.2
  422. *Cmd: "@PJL SET RET=OFF<0A>"
  423. }
  424. }
  425. }
  426. *Feature: OutputBin
  427. {
  428. *rcNameID: =OUTPUTBIN_DISPLAY
  429. *DefaultOption: Option1
  430. *Option: Option1
  431. {
  432. *rcNameID: 446
  433. *Command: CmdSelect
  434. {
  435. *Order: DOC_SETUP.14
  436. *Cmd: "<1B>&l1G"
  437. }
  438. }
  439. }
  440. *Feature: Halftone
  441. {
  442. *rcNameID: =HALFTONING_DISPLAY
  443. *DefaultOption: HT_PATSIZE_AUTO
  444. *Option: HT_PATSIZE_AUTO
  445. {
  446. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  447. }
  448. *Option: HT_PATSIZE_6x6_M
  449. {
  450. *rcNameID: =HT_DITHER6X6_DISPLAY
  451. }
  452. *Option: HT_PATSIZE_8x8_M
  453. {
  454. *rcNameID: =HT_DITHER8X8_DISPLAY
  455. }
  456. }
  457. *Feature: Memory
  458. {
  459. *rcNameID: =PRINTER_MEMORY_DISPLAY
  460. *DefaultOption: 2048KB
  461. *Option: 2048KB
  462. {
  463. *Name: "2MB"
  464. *MemoryConfigKB: PAIR(2048, 1931)
  465. }
  466. *Option: 3072KB
  467. {
  468. *Name: "3MB"
  469. *MemoryConfigKB: PAIR(3072, 2995)
  470. }
  471. *Option: 4096KB
  472. {
  473. *Name: "4MB"
  474. *MemoryConfigKB: PAIR(4096, 3979)
  475. }
  476. *Option: 6144KB
  477. {
  478. *Name: "6MB"
  479. *MemoryConfigKB: PAIR(6144, 6027)
  480. }
  481. *Option: 10240KB
  482. {
  483. *Name: "10MB"
  484. *MemoryConfigKB: PAIR(10240, 10123)
  485. }
  486. *Option: 18432KB
  487. {
  488. *Name: "18MB"
  489. *MemoryConfigKB: PAIR(18432, 18315)
  490. }
  491. *Option: 34816KB
  492. {
  493. *Name: "34MB"
  494. *MemoryConfigKB: PAIR(34816, 34699)
  495. }
  496. }
  497. *switch: Memory
  498. {
  499. *case: 2048KB
  500. {
  501. *Command: CmdStartDoc
  502. {
  503. *Order: DOC_SETUP.4
  504. *Cmd: "<1B>&u600D<1B>*r3F"
  505. }
  506. *RotateRaster?: FALSE
  507. }
  508. *case: 3072KB
  509. {
  510. *Command: CmdStartDoc
  511. {
  512. *Order: DOC_SETUP.4
  513. *Cmd: "<1B>&u600D<1B>*r3F"
  514. }
  515. *RotateRaster?: FALSE
  516. }
  517. *default:
  518. {
  519. *Command: CmdStartDoc
  520. {
  521. *Order: DOC_SETUP.4
  522. *Cmd: "<1B>&u600D<1B>*r0F"
  523. }
  524. *RotateRaster?: TRUE
  525. }
  526. }
  527. *Command: CmdStartPage
  528. {
  529. *Order: PAGE_SETUP.1
  530. *Cmd: "<1B>*b0M<0D>"
  531. }
  532. *Command: CmdEndJob
  533. {
  534. *Order: JOB_FINISH.1
  535. *Cmd: "<1B>E<1B>%%-12345X"
  536. }
  537. *Command: CmdCopies
  538. {
  539. *Order: DOC_SETUP.13
  540. *Cmd: "<1B>&l" %d[1,99]{NumOfCopies}"X"
  541. }
  542. *RotateCoordinate?: TRUE
  543. *RotateFont?: TRUE
  544. *TextCaps: LIST(TC_CR_90,TC_UA_ABLE)
  545. *MemoryUsage: LIST(FONT)
  546. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  547. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  548. *XMoveThreshold: 0
  549. *YMoveThreshold: 0
  550. *XMoveUnit: 600
  551. *YMoveUnit: 600
  552. *Command: CmdXMoveAbsolute { *Cmd : "<1B>*p" %d{((DestX * 2) / 4) }"X" }
  553. *Command: CmdXMoveRelRight { *Cmd : "<1B>*p+" %d[0,4800]{max_repeat(((DestXRel * 2) / 4) )}"X" }
  554. *Command: CmdXMoveRelLeft { *Cmd : "<1B>*p-" %d[0,4800]{max_repeat(((DestXRel * 2) / 4) )}"X" }
  555. *Command: CmdYMoveAbsolute { *Cmd : "<1B>*p" %d{((DestY * 2) / 4) }"Y" }
  556. *Command: CmdYMoveRelDown { *Cmd : "<1B>*p+" %d[1,6300]{max_repeat(((DestYRel * 2) / 4) )}"Y" }
  557. *Command: CmdYMoveRelUp { *Cmd : "<1B>*p-" %d[1,6300]{max_repeat(((DestYRel * 2) / 4) )}"Y" }
  558. *Command: CmdCR { *Cmd : "<0D>" }
  559. *Command: CmdLF { *Cmd : "<0A>" }
  560. *Command: CmdFF { *Cmd : "<0C>" }
  561. *Command: CmdBackSpace { *Cmd : "<08>" }
  562. *Command: CmdUniDirectionOn { *Cmd : "<00>" }
  563. *Command: CmdUniDirectionOff { *Cmd : "<00>" }
  564. *Command: CmdPushCursor { *Cmd : "<1B>&f0S" }
  565. *Command: CmdPopCursor { *Cmd : "<1B>&f1S" }
  566. *Command: CmdSetSimpleRotation { *Cmd : "<1B>&a" %d{PrintDirInCCDegrees}"P" }
  567. *EjectPageWithFF?: TRUE
  568. *Command: CmdDisableCompression { *Cmd : "<1B>*b0M" }
  569. *Command: CmdEnableTIFF4 { *Cmd : "<1B>*b2M" }
  570. *Command: CmdEnableDRC { *Cmd : "<1B>*b3M" }
  571. *OutputDataFormat: H_BYTE
  572. *OptimizeLeftBound?: TRUE
  573. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  574. *CursorYAfterSendBlockData: AUTO_INCREMENT
  575. *DefaultFont: 136
  576. *DefaultCTT: 0
  577. *CharPosition: BASELINE
  578. *TTFSEnabled?: TRUE
  579. *DeviceFonts: LIST(136,138,146,147,148,149,150,151,152,153,154,155,156,157,164,165,
  580. + 166,196,197,198,199,200,201,202,203,209,210,211,212,213,214,215,
  581. + 216,217,218,219,220,221,222,223,224,225,226,227,228,229,230)
  582. *MinFontID: 16534
  583. *MaxFontID: 32768
  584. *FontFormat: HPPCL_RES
  585. *Command: CmdSetFontID { *Cmd : "<1B>*c" %d{NextFontID}"D" }
  586. *Command: CmdSelectFontID { *Cmd : "<1B>(" %d{CurrentFontID}"X" }
  587. *Command: CmdSetCharCode { *Cmd : "<1B>*c" %d{NextGlyph}"E" }
  588. *Command: CmdUnderlineOn { *Cmd : "<1B>&dD" }
  589. *Command: CmdUnderlineOff { *Cmd : "<1B>&d@" }
  590. *Command: CmdWhiteTextOn { *Cmd : "<1B>*v1o1T" }
  591. *Command: CmdWhiteTextOff { *Cmd : "<1B>*v0o0T" }
  592. *MinGrayFill: 1
  593. *MaxGrayFill: 100
  594. *Command: CmdSetRectWidth { *Cmd : "<1B>*c" %d{((RectXSize * 2) / 4) }"A" }
  595. *Command: CmdSetRectHeight { *Cmd : "<1B>*c" %d{((RectYSize * 2) / 4) }"B" }
  596. *Command: CmdRectGrayFill { *Cmd : "<1B>*c" %d{GrayPercentage}"g2P" }
  597. *Command: CmdRectWhiteFill { *Cmd : "<1B>*c1P" }