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.

567 lines
13 KiB

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