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.

639 lines
15 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.0"
  7. *GPDFileName: "ATE840J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 932
  10. *ModelName: "APTi PowerLaser E840"
  11. *MasterUnits: PAIR(600, 600)
  12. *ResourceDLL: "APDLRES.DLL"
  13. *PrinterType: PAGE
  14. *MaxCopies: 255
  15. *PrintRate: 20
  16. *PrintRateUnit: PPM
  17. *rcInstalledOptionNameID: 300
  18. *rcNotInstalledOptionNameID: 301
  19. *%========== Orientation ==========
  20. *Feature: Orientation
  21. {
  22. *rcNameID: =ORIENTATION_DISPLAY
  23. *DefaultOption: PORTRAIT
  24. *Option: PORTRAIT
  25. {
  26. *rcNameID: =PORTRAIT_DISPLAY
  27. *Command: CmdSelect
  28. {
  29. *Order: DOC_SETUP.2
  30. *CallbackID: 36
  31. }
  32. }
  33. *Option: LANDSCAPE_CC270
  34. {
  35. *rcNameID: =LANDSCAPE_DISPLAY
  36. *Command: CmdSelect
  37. {
  38. *Order: DOC_SETUP.2
  39. *CallbackID: 37
  40. }
  41. }
  42. }
  43. *%========== InputBin ==========
  44. *Feature: InputBin
  45. {
  46. *rcNameID: =PAPER_SOURCE_DISPLAY
  47. *DefaultOption: Option1
  48. *Option: Option1
  49. {
  50. *rcNameID: 267
  51. *rcInstallableFeatureNameID: 267
  52. *Command: CmdSelect
  53. {
  54. *Order: DOC_SETUP.5
  55. *CallbackID: 27
  56. }
  57. }
  58. *Option: Option2
  59. {
  60. *rcNameID: 258
  61. *Command: CmdSelect
  62. {
  63. *Order: DOC_SETUP.5
  64. *CallbackID: 20
  65. }
  66. }
  67. *Option: Option3
  68. {
  69. *rcNameID: 259
  70. *Command: CmdSelect
  71. {
  72. *Order: DOC_SETUP.5
  73. *CallbackID: 21
  74. }
  75. }
  76. *Option: Option4
  77. {
  78. *rcNameID: 260
  79. *Installable?: TRUE
  80. *rcInstallableFeatureNameID: 260
  81. *Command: CmdSelect
  82. {
  83. *Order: DOC_SETUP.5
  84. *CallbackID: 22
  85. }
  86. }
  87. *Option: Option5
  88. {
  89. *rcNameID: 261
  90. *Installable?: TRUE
  91. *rcInstallableFeatureNameID: 261
  92. *Command: CmdSelect
  93. {
  94. *Order: DOC_SETUP.5
  95. *CallbackID: 23
  96. }
  97. }
  98. }
  99. *%========== Resolution ==========
  100. *Feature: Resolution
  101. {
  102. *rcNameID: =RESOLUTION_DISPLAY
  103. *DefaultOption: Option1
  104. *Option: Option1
  105. {
  106. *Name: "300 x 300 dots per inch"
  107. *DPI: PAIR(300, 300)
  108. *TextDPI: PAIR(300, 300)
  109. *MinStripBlankPixels: 32
  110. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  111. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  112. *SpotDiameter: 100
  113. *Command: CmdSelect
  114. {
  115. *Order: DOC_SETUP.3
  116. *CallbackID: 76
  117. }
  118. *Command: CmdSendBlockData
  119. {
  120. *CallbackID: 82
  121. *Params: LIST(NumOfDataBytes,RasterDataWidthInBytes,RasterDataHeightInPixels)
  122. }
  123. }
  124. *Option: Option2
  125. {
  126. *Name: "600 x 600 dots per inch"
  127. *DPI: PAIR(600, 600)
  128. *TextDPI: PAIR(600, 600)
  129. *MinStripBlankPixels: 32
  130. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  131. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  132. *SpotDiameter: 100
  133. *Command: CmdSelect
  134. {
  135. *Order: DOC_SETUP.3
  136. *CallbackID: 77
  137. }
  138. *Command: CmdSendBlockData
  139. {
  140. *CallbackID: 82
  141. *Params: LIST(NumOfDataBytes,RasterDataWidthInBytes,RasterDataHeightInPixels)
  142. }
  143. }
  144. }
  145. *%========== PaperSize ==========
  146. *Feature: PaperSize
  147. {
  148. *rcNameID: =PAPER_SIZE_DISPLAY
  149. *DefaultOption: A4
  150. *Option: A3
  151. {
  152. *rcNameID: =A3_DISPLAY
  153. *PrintableArea: PAIR(6776, 9680)
  154. *PrintableOrigin: PAIR(115, 98)
  155. *Command: CmdSelect
  156. {
  157. *Order: DOC_SETUP.8
  158. *CallbackID: 50
  159. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  160. }
  161. }
  162. *Option: A4
  163. {
  164. *rcNameID: =A4_DISPLAY
  165. *PrintableArea: PAIR(4720, 6776)
  166. *PrintableOrigin: PAIR(113, 115)
  167. *Command: CmdSelect
  168. {
  169. *Order: DOC_SETUP.8
  170. *CallbackID: 51
  171. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  172. }
  173. }
  174. *Option: A5
  175. {
  176. *rcNameID: =A5_DISPLAY
  177. *PrintableArea: PAIR(3256, 4720)
  178. *PrintableOrigin: PAIR(117, 113)
  179. *Command: CmdSelect
  180. {
  181. *Order: DOC_SETUP.8
  182. *CallbackID: 52
  183. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  184. }
  185. }
  186. *Option: B4
  187. {
  188. *rcNameID: =B4_DISPLAY
  189. *PrintableArea: PAIR(5824, 8360)
  190. *PrintableOrigin: PAIR(124, 107)
  191. *Command: CmdSelect
  192. {
  193. *Order: DOC_SETUP.8
  194. *CallbackID: 54
  195. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  196. }
  197. }
  198. *Option: B5
  199. {
  200. *rcNameID: =B5_DISPLAY
  201. *PrintableArea: PAIR(4064, 5824)
  202. *PrintableOrigin: PAIR(103, 124)
  203. *Command: CmdSelect
  204. {
  205. *Order: DOC_SETUP.8
  206. *CallbackID: 55
  207. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  208. }
  209. }
  210. *Option: LETTER
  211. {
  212. *rcNameID: =LETTER_DISPLAY
  213. *PrintableArea: PAIR(4864, 6360)
  214. *PrintableOrigin: PAIR(118, 100)
  215. *Command: CmdSelect
  216. {
  217. *Order: DOC_SETUP.8
  218. *CallbackID: 58
  219. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  220. }
  221. }
  222. *Option: JAPANESE_POSTCARD
  223. {
  224. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  225. *PrintableArea: PAIR(2126, 3256)
  226. *PrintableOrigin: PAIR(96, 117)
  227. *Command: CmdSelect
  228. {
  229. *Order: DOC_SETUP.8
  230. *CallbackID: 57
  231. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  232. }
  233. }
  234. *Option: LEGAL
  235. {
  236. *rcNameID: =LEGAL_DISPLAY
  237. *PrintableArea: PAIR(4856, 8160)
  238. *PrintableOrigin: PAIR(118, 104)
  239. *Command: CmdSelect
  240. {
  241. *Order: DOC_SETUP.8
  242. *CallbackID: 59
  243. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  244. }
  245. }
  246. *Option: CUSTOMSIZE
  247. {
  248. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  249. *MinSize: PAIR(2079, 3498)
  250. *MaxSize: PAIR(7015, 9921)
  251. *MaxPrintableWidth: 6827
  252. *switch: Orientation
  253. {
  254. *case: PORTRAIT
  255. {
  256. *CustPrintableSizeX: %d{PhysPaperWidth-188}
  257. *CustPrintableSizeY: %d{PhysPaperLength-188}
  258. *CustPrintableOriginX: %d{94}
  259. *CustPrintableOriginY: %d{94}
  260. *CustCursorOriginX: %d{93}
  261. *CustCursorOriginY: %d{93}
  262. *Command: CmdSelect
  263. {
  264. *Order: DOC_SETUP.8
  265. *CallbackID: 61
  266. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  267. }
  268. }
  269. *case: LANDSCAPE_CC270
  270. {
  271. *CustPrintableSizeX: %d{PhysPaperWidth-188}
  272. *CustPrintableSizeY: %d{PhysPaperLength-(188+188)}
  273. *CustPrintableOriginX: %d{94}
  274. *CustPrintableOriginY: %d{282}
  275. *CustCursorOriginX: %d{93}
  276. *CustCursorOriginY: %d{281}
  277. *Command: CmdSelect
  278. {
  279. *Order: DOC_SETUP.8
  280. *CallbackID: 61
  281. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  282. }
  283. }
  284. }
  285. }
  286. }
  287. *%========== OutputBin ==========
  288. *Feature: OutputBin
  289. {
  290. *rcNameID: =OUTPUTBIN_DISPLAY
  291. *DefaultOption: Option2
  292. *Option: Option1
  293. {
  294. *rcNameID: 262
  295. *Command: CmdSelect
  296. {
  297. *Order: DOC_SETUP.4
  298. *CallbackID: 25
  299. }
  300. }
  301. *Option: Option2
  302. {
  303. *rcNameID: 263
  304. *Command: CmdSelect
  305. {
  306. *Order: DOC_SETUP.4
  307. *CallbackID: 26
  308. }
  309. }
  310. }
  311. *%========== PrintDensity ==========
  312. *Feature: PrintDensity
  313. {
  314. *rcNameID: =PRINTDENSITY_DISPLAY
  315. *DefaultOption: Option1
  316. *Option: Option1
  317. {
  318. *rcNameID: 264
  319. *Command: CmdSelect
  320. {
  321. *Order: DOC_SETUP.9
  322. *CallbackID: 100
  323. }
  324. }
  325. *Option: Option2
  326. {
  327. *rcNameID: 265
  328. *Command: CmdSelect
  329. {
  330. *Order: DOC_SETUP.9
  331. *CallbackID: 101
  332. }
  333. }
  334. *Option: Option3
  335. {
  336. *rcNameID: 266
  337. *Command: CmdSelect
  338. {
  339. *Order: DOC_SETUP.9
  340. *CallbackID: 102
  341. }
  342. }
  343. }
  344. *%========== Memory ==========
  345. *Feature: Memory
  346. {
  347. *rcNameID: =PRINTER_MEMORY_DISPLAY
  348. *DefaultOption: Option1
  349. *Option: Option1
  350. {
  351. *rcNameID: 280
  352. *MemoryConfigMB: PAIR(8, 6)
  353. }
  354. *Option: 16MB
  355. {
  356. *rcNameID: 281
  357. *MemoryConfigMB: PAIR(16, 13)
  358. }
  359. *Option: 24MB
  360. {
  361. *rcNameID: 282
  362. *MemoryConfigMB: PAIR(24, 20)
  363. }
  364. *Option: 32MB
  365. {
  366. *rcNameID: 283
  367. *MemoryConfigMB: PAIR(32, 25)
  368. }
  369. *Option: 40MB
  370. {
  371. *rcNameID: 284
  372. *MemoryConfigMB: PAIR(40, 32)
  373. }
  374. }
  375. *%========== Halftone ==========
  376. *Feature: Halftone
  377. {
  378. *rcNameID: =HALFTONING_DISPLAY
  379. *DefaultOption: HT_PATSIZE_AUTO
  380. *Option: HT_PATSIZE_AUTO
  381. {
  382. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  383. }
  384. *Option: HT_PATSIZE_SUPERCELL_M
  385. {
  386. *rcNameID: =HT_SUPERCELL_DISPLAY
  387. }
  388. *Option: HT_PATSIZE_6x6_M
  389. {
  390. *rcNameID: =HT_DITHER6X6_DISPLAY
  391. }
  392. *Option: HT_PATSIZE_8x8_M
  393. {
  394. *rcNameID: =HT_DITHER8X8_DISPLAY
  395. }
  396. }
  397. *%========== Duplex ==========
  398. *Feature: Duplex
  399. {
  400. *rcNameID: =TWO_SIDED_PRINTING_DISPLAY
  401. *DefaultOption: NONE
  402. *Option: NONE
  403. {
  404. *rcNameID: =NONE_DISPLAY
  405. }
  406. *Option: VERTICAL
  407. {
  408. *rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
  409. *Command: CmdSelect
  410. {
  411. *Order: DOC_SETUP.6
  412. *CallbackID: 39
  413. }
  414. }
  415. *Option: HORIZONTAL
  416. {
  417. *rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
  418. *Command: CmdSelect
  419. {
  420. *Order: DOC_SETUP.6
  421. *CallbackID: 40
  422. }
  423. }
  424. }
  425. *%========== Duplex Unit==========
  426. *Feature: DuplexUnit
  427. {
  428. *FeatureType: PRINTER_PROPERTY
  429. *rcNameID: 310
  430. *DefaultOption: NotInstalled
  431. *Option: NotInstalled
  432. {
  433. *rcNameID: 301
  434. *DisabledFeatures: LIST(Duplex)
  435. *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL)
  436. }
  437. *Option: Installed
  438. {
  439. *rcNameID: 300
  440. }
  441. }
  442. *%========== Job Control Command ==========
  443. *Command: CmdStartJob
  444. {
  445. *Order: JOB_SETUP.1
  446. *CallbackID: 140
  447. }
  448. *Command: CmdStartDoc
  449. {
  450. *Order: DOC_SETUP.1
  451. *CallbackID: 30
  452. }
  453. *Command: CmdStartPage
  454. {
  455. *Order: PAGE_SETUP.1
  456. *CallbackID: 31
  457. }
  458. *Command: CmdEndJob
  459. {
  460. *Order: JOB_FINISH.1
  461. *CallbackID: 32
  462. }
  463. *Command: CmdEndPage
  464. {
  465. *Order: PAGE_FINISH.1
  466. *CallbackID: 33
  467. }
  468. *Command: CmdCopies
  469. {
  470. *Order: DOC_SETUP.7
  471. *CallbackID: 38
  472. *Params: LIST(NumOfCopies)
  473. }
  474. *%========== Invalid Combination ==========
  475. *InvalidCombination: LIST(InputBin.Option3, PaperSize.JAPANESE_POSTCARD)
  476. *InvalidCombination: LIST(InputBin.Option3, PaperSize.CUSTOMSIZE)
  477. *InvalidCombination: LIST(InputBin.Option4, PaperSize.JAPANESE_POSTCARD)
  478. *InvalidCombination: LIST(InputBin.Option4, PaperSize.CUSTOMSIZE)
  479. *InvalidCombination: LIST(InputBin.Option5, PaperSize.JAPANESE_POSTCARD)
  480. *InvalidCombination: LIST(InputBin.Option5, PaperSize.CUSTOMSIZE)
  481. *%========== Printer Capabilities ==========
  482. *RotateCoordinate?: FALSE
  483. *RotateRaster?: TRUE
  484. *RotateFont?: TRUE
  485. *TextCaps: LIST(TC_OP_STROKE,TC_SA_INTEGER,TC_SA_CONTIN,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  486. *MemoryUsage: LIST(RASTER, FONT)
  487. *%========== Cursor Move ==========
  488. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  489. *XMoveThreshold: 0
  490. *YMoveThreshold: 0
  491. *switch: Resolution
  492. {
  493. *case: Option1
  494. {
  495. *XMoveUnit: 300
  496. *YMoveUnit: 300
  497. }
  498. *case: Option2
  499. {
  500. *XMoveUnit: 600
  501. *YMoveUnit: 600
  502. }
  503. }
  504. *Command: CmdXMoveAbsolute
  505. {
  506. *CallbackID: 70
  507. *Params: LIST(DestX)
  508. }
  509. *Command: CmdYMoveAbsolute
  510. {
  511. *CallbackID: 71
  512. *Params: LIST(DestY)
  513. }
  514. *Command: CmdCR { *CallbackID: 79 }
  515. *Command: CmdLF { *CallbackID: 80 }
  516. *Command: CmdFF { *CallbackID: 81 }
  517. *EjectPageWithFF?: TRUE
  518. *%========== Raster Data Emission ==========
  519. *OutputDataFormat: H_BYTE
  520. *OptimizeLeftBound?: TRUE
  521. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  522. *CursorYAfterSendBlockData: NO_MOVE
  523. *%========== Device Fonts ==========
  524. *DefaultFont: 1
  525. *DefaultCTT: 0
  526. *CharPosition: BASELINE
  527. *DeviceFonts: LIST(1,2,3,4)
  528. *%========== Font Simulation ==========
  529. *Command: CmdBoldOn { *CallbackID: 72 }
  530. *Command: CmdBoldOff { *CallbackID: 73 }
  531. *Command: CmdItalicOn { *CallbackID: 74 }
  532. *Command: CmdItalicOff { *CallbackID: 75 }
  533. *Command: CmdSelectSingleByteMode { *CallbackID: 120 }
  534. *Command: CmdSelectDoubleByteMode { *CallbackID: 121 }
  535. *%========== Font Downloading ==========
  536. *MinFontID: 24
  537. *MaxFontID: 48
  538. *MaxNumDownFonts: 24
  539. *MinGlyphID: 32
  540. *MaxGlyphID: 1023
  541. *FontFormat: OEM_CALLBACK
  542. *Command: CmdSetFontID
  543. {
  544. *CallbackID: 110
  545. *Params: LIST(CurrentFontID)
  546. }
  547. *Command: CmdSelectFontID
  548. {
  549. *CallbackID: 111
  550. *Params: LIST(CurrentFontID)
  551. }
  552. *Command: CmdSetCharCode
  553. {
  554. *CallbackID: 112
  555. *Params: LIST(NextGlyph)
  556. }
  557. *Command: CmdDeleteFont
  558. {
  559. *CallbackID: 113
  560. *Params: LIST(CurrentFontID)
  561. }
  562. *%========== TrueType Font Substitution ==========
  563. *TTFS: MSMincho_V
  564. {
  565. *rcTTFontNameID: 320
  566. *rcDevFontNameID: 321
  567. }
  568. *TTFS: MSGothic_V
  569. {
  570. *rcTTFontNameID: 322
  571. *rcDevFontNameID: 323
  572. }
  573. *TTFS: MSMincho
  574. {
  575. *rcTTFontNameID: 324
  576. *rcDevFontNameID: 325
  577. }
  578. *TTFS: MSGothic
  579. {
  580. *rcTTFontNameID: 326
  581. *rcDevFontNameID: 327
  582. }
  583. *TTFS: MSMinchoV_E
  584. {
  585. *rcTTFontNameID: 340
  586. *rcDevFontNameID: 321
  587. }
  588. *TTFS: MSGothicV_E
  589. {
  590. *rcTTFontNameID: 341
  591. *rcDevFontNameID: 323
  592. }
  593. *TTFS: MSMincho_E
  594. {
  595. *rcTTFontNameID: 342
  596. *rcDevFontNameID: 325
  597. }
  598. *TTFS: MSGothic_E
  599. {
  600. *rcTTFontNameID: 343
  601. *rcDevFontNameID: 327
  602. }
  603. *TTFSEnabled?: TRUE
  604. *%========== RectFill ==========
  605. *MinGrayFill: 1
  606. *MaxGrayFill: 1
  607. *% *MinGrayFill: 1
  608. *% *MaxGrayFill: 100
  609. *% *Command: CmdSetRectWidth
  610. *% {
  611. *% *CallbackID: 130
  612. *% *Params: LIST(RectXSize)
  613. *% }
  614. *% *Command: CmdSetRectHeight
  615. *% {
  616. *% *CallbackID: 131
  617. *% *Params: LIST(RectYSize)
  618. *% }
  619. *% *Command: CmdRectBlackFill { *CallbackID: 132 }