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.

659 lines
17 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "CNLC680J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "Canon BJC-680J LIPS4c"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "cnl4jres.dll"
  13. *PrinterType: SERIAL
  14. *MaxCopies: 255
  15. *FontCartSlots: 2
  16. *Feature: Orientation
  17. {
  18. *rcNameID: =ORIENTATION_DISPLAY
  19. *DefaultOption: PORTRAIT
  20. *Option: PORTRAIT
  21. {
  22. *rcNameID: =PORTRAIT_DISPLAY
  23. *Command: CmdSelect
  24. {
  25. *Order: PAGE_SETUP.9
  26. *CallbackID: 2
  27. *% Error: you must check if this command callback requires any parameters!
  28. }
  29. }
  30. *Option: LANDSCAPE_CC90
  31. {
  32. *rcNameID: =LANDSCAPE_DISPLAY
  33. *Command: CmdSelect
  34. {
  35. *Order: PAGE_SETUP.9
  36. *CallbackID: 3
  37. *% Error: you must check if this command callback requires any parameters!
  38. }
  39. }
  40. }
  41. *Feature: InputBin
  42. {
  43. *rcNameID: =PAPER_SOURCE_DISPLAY
  44. *DefaultOption: AUTO
  45. *Option: AUTO
  46. {
  47. *rcNameID: =AUTO_DISPLAY
  48. *Command: CmdSelect
  49. {
  50. *Order: DOC_SETUP.12
  51. *CallbackID: 450
  52. }
  53. }
  54. }
  55. *Feature: Resolution
  56. {
  57. *rcNameID: =RESOLUTION_DISPLAY
  58. *DefaultOption: Option1
  59. *Option: Option1
  60. {
  61. *Name: "360 x 360 dots per inch"
  62. *DPI: PAIR(360, 360)
  63. *TextDPI: PAIR(360, 360)
  64. *MinStripBlankPixels: 32
  65. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  66. EXTERN_GLOBAL: *LookAheadRegion: 1
  67. *SpotDiameter: 100
  68. *Command: CmdSendBlockData
  69. {
  70. *CallbackID: 7
  71. *Params: LIST(NumOfDataBytes, RasterDataHeightInPixels, RasterDataWidthInBytes)
  72. }
  73. *Command: CmdSelect
  74. {
  75. *Order: JOB_SETUP.3
  76. *CallbackID: 308
  77. *% Error: you must check if this command callback requires any parameters!
  78. }
  79. }
  80. }
  81. *Feature: PaperSize
  82. {
  83. *rcNameID: =PAPER_SIZE_DISPLAY
  84. *DefaultOption: A4
  85. *Option: A4
  86. {
  87. *rcNameID: =A4_DISPLAY
  88. *switch: Orientation
  89. {
  90. *case: PORTRAIT
  91. {
  92. *PrintableArea: PAIR(2833, 4058)
  93. *PrintableOrigin: PAIR(72, 30)
  94. *CursorOrigin: PAIR(72, 30)
  95. *Command: CmdSelect
  96. {
  97. *Order: PAGE_SETUP.8
  98. *CallbackID: 44
  99. }
  100. }
  101. *case: LANDSCAPE_CC90
  102. {
  103. *PrintableArea: PAIR(2833, 4046)
  104. *PrintableOrigin: PAIR(72, 42)
  105. *CursorOrigin: PAIR(72, 4088)
  106. *Command: CmdSelect
  107. {
  108. *Order: PAGE_SETUP.8
  109. *CallbackID: 45
  110. }
  111. }
  112. }
  113. }
  114. *Option: A5
  115. {
  116. *rcNameID: =A5_DISPLAY
  117. *switch: Orientation
  118. {
  119. *case: PORTRAIT
  120. {
  121. *PrintableArea: PAIR(1955, 2827)
  122. *PrintableOrigin: PAIR(72, 30)
  123. *CursorOrigin: PAIR(72, 30)
  124. *Command: CmdSelect
  125. {
  126. *Order: PAGE_SETUP.8
  127. *CallbackID: 46
  128. }
  129. }
  130. *case: LANDSCAPE_CC90
  131. {
  132. *PrintableArea: PAIR(1955, 2815)
  133. *PrintableOrigin: PAIR(72, 42)
  134. *CursorOrigin: PAIR(72, 2857)
  135. *Command: CmdSelect
  136. {
  137. *Order: PAGE_SETUP.8
  138. *CallbackID: 47
  139. }
  140. }
  141. }
  142. }
  143. *Option: B5
  144. {
  145. *rcNameID: =B5_DISPLAY
  146. *switch: Orientation
  147. {
  148. *case: PORTRAIT
  149. {
  150. *PrintableArea: PAIR(2437, 3493)
  151. *PrintableOrigin: PAIR(72, 30)
  152. *CursorOrigin: PAIR(72, 30)
  153. *Command: CmdSelect
  154. {
  155. *Order: PAGE_SETUP.8
  156. *CallbackID: 52
  157. }
  158. }
  159. *case: LANDSCAPE_CC90
  160. {
  161. *PrintableArea: PAIR(2437, 3481)
  162. *PrintableOrigin: PAIR(72, 42)
  163. *CursorOrigin: PAIR(72, 3523)
  164. *Command: CmdSelect
  165. {
  166. *Order: PAGE_SETUP.8
  167. *CallbackID: 53
  168. }
  169. }
  170. }
  171. }
  172. *Option: LETTER
  173. {
  174. *rcNameID: =LETTER_DISPLAY
  175. *switch: Orientation
  176. {
  177. *case: PORTRAIT
  178. {
  179. *PrintableArea: PAIR(2916, 3810)
  180. *PrintableOrigin: PAIR(72, 30)
  181. *CursorOrigin: PAIR(72, 30)
  182. *Command: CmdSelect
  183. {
  184. *Order: PAGE_SETUP.8
  185. *CallbackID: 56
  186. }
  187. }
  188. *case: LANDSCAPE_CC90
  189. {
  190. *PrintableArea: PAIR(2916, 3798)
  191. *PrintableOrigin: PAIR(72, 42)
  192. *CursorOrigin: PAIR(72, 3840)
  193. *Command: CmdSelect
  194. {
  195. *Order: PAGE_SETUP.8
  196. *CallbackID: 57
  197. }
  198. }
  199. }
  200. }
  201. *Option: LEGAL
  202. {
  203. *rcNameID: =LEGAL_DISPLAY
  204. *switch: Orientation
  205. {
  206. *case: PORTRAIT
  207. {
  208. *PrintableArea: PAIR(2916, 4890)
  209. *PrintableOrigin: PAIR(72, 30)
  210. *CursorOrigin: PAIR(72, 30)
  211. *Command: CmdSelect
  212. {
  213. *Order: PAGE_SETUP.8
  214. *CallbackID: 58
  215. }
  216. }
  217. *case: LANDSCAPE_CC90
  218. {
  219. *PrintableArea: PAIR(2916, 4878)
  220. *PrintableOrigin: PAIR(72, 42)
  221. *CursorOrigin: PAIR(72, 4920)
  222. *Command: CmdSelect
  223. {
  224. *Order: PAGE_SETUP.8
  225. *CallbackID: 59
  226. }
  227. }
  228. }
  229. }
  230. *Option: EXECUTIVE
  231. {
  232. *rcNameID: =EXECUTIVE_DISPLAY
  233. *switch: Orientation
  234. {
  235. *case: PORTRAIT
  236. {
  237. *PrintableArea: PAIR(2466, 3630)
  238. *PrintableOrigin: PAIR(72, 30)
  239. *CursorOrigin: PAIR(72, 30)
  240. *Command: CmdSelect
  241. {
  242. *Order: PAGE_SETUP.8
  243. *CallbackID: 62
  244. }
  245. }
  246. *case: LANDSCAPE_CC90
  247. {
  248. *PrintableArea: PAIR(2466, 3618)
  249. *PrintableOrigin: PAIR(72, 42)
  250. *CursorOrigin: PAIR(72, 3660)
  251. *Command: CmdSelect
  252. {
  253. *Order: PAGE_SETUP.8
  254. *CallbackID: 63
  255. }
  256. }
  257. }
  258. }
  259. *Option: JAPANESE_POSTCARD
  260. {
  261. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  262. *switch: Orientation
  263. {
  264. *case: PORTRAIT
  265. {
  266. *PrintableArea: PAIR(1274, 1949)
  267. *PrintableOrigin: PAIR(72, 30)
  268. *CursorOrigin: PAIR(72, 30)
  269. *Command: CmdSelect
  270. {
  271. *Order: PAGE_SETUP.8
  272. *CallbackID: 48
  273. }
  274. }
  275. *case: LANDSCAPE_CC90
  276. {
  277. *PrintableArea: PAIR(1274, 1937)
  278. *PrintableOrigin: PAIR(72, 42)
  279. *CursorOrigin: PAIR(72, 1979)
  280. *Command: CmdSelect
  281. {
  282. *Order: PAGE_SETUP.8
  283. *CallbackID: 49
  284. }
  285. }
  286. }
  287. }
  288. *Option: CUSTOMSIZE
  289. {
  290. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  291. *MinSize: PAIR(1418, 1418)
  292. *MaxSize: PAIR(3060, 5040)
  293. *MaxPrintableWidth: 3060
  294. *MinLeftMargin: 49
  295. *CenterPrintable?: FALSE
  296. *switch: Orientation
  297. {
  298. *case: PORTRAIT
  299. {
  300. *Command: CmdSelect
  301. {
  302. *Order: PAGE_SETUP.8
  303. *CallbackID: 40
  304. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  305. }
  306. *CustCursorOriginX: %d{72}
  307. *CustCursorOriginY: %d{30}
  308. *CustPrintableOriginX: %d{72}
  309. *CustPrintableOriginY: %d{30}
  310. *CustPrintableSizeX: %d{PhysPaperWidth - 144}
  311. *CustPrintableSizeY: %d{PhysPaperLength - 152}
  312. }
  313. *case: LANDSCAPE_CC90
  314. {
  315. *Command: CmdSelect
  316. {
  317. *Order: PAGE_SETUP.8
  318. *CallbackID: 41
  319. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  320. }
  321. *CustCursorOriginX: %d{72}
  322. *CustCursorOriginY: %d{PhysPaperLength - 122}
  323. *CustPrintableOriginX: %d{72}
  324. *CustPrintableOriginY: %d{42}
  325. *CustPrintableSizeX: %d{PhysPaperWidth - 144}
  326. *CustPrintableSizeY: %d{PhysPaperLength - 164}
  327. }
  328. }
  329. }
  330. }
  331. *Feature: ColorMode
  332. {
  333. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  334. *DefaultOption: Color
  335. *Option: Mono
  336. {
  337. *rcNameID: =MONO_DISPLAY
  338. *DevNumOfPlanes: 1
  339. *DevBPP: 1
  340. *Color? : FALSE
  341. }
  342. *Option: Color
  343. {
  344. *rcNameID: =COLOR_DISPLAY
  345. *DevNumOfPlanes: 3
  346. *DevBPP: 1
  347. *DrvBPP: 4
  348. *ColorPlaneOrder: LIST(RED, GREEN, BLUE)
  349. *Command: CmdSelectBlackColor { *CallbackID: 360 }
  350. *Command: CmdSelectBlueColor { *CallbackID: 361 }
  351. *Command: CmdSelectGreenColor { *CallbackID: 362 }
  352. *Command: CmdSelectCyanColor { *CallbackID: 363 }
  353. *Command: CmdSelectRedColor { *CallbackID: 364 }
  354. *Command: CmdSelectMagentaColor { *CallbackID: 365 }
  355. *Command: CmdSelectYellowColor { *CallbackID: 366 }
  356. *Command: CmdSelectWhiteColor { *CallbackID: 367 }
  357. *Command: CmdSendRedData { *Cmd : "" }
  358. *Command: CmdSendGreenData { *Cmd : "" }
  359. *Command: CmdSendBlueData { *Cmd : "" }
  360. *Command: CmdSelect
  361. {
  362. *Order: JOB_SETUP.2
  363. *CallbackID: 200
  364. }
  365. }
  366. *Option: 8bpp
  367. {
  368. *rcNameID: =8BPP_DISPLAY
  369. *DevNumOfPlanes: 1
  370. *DevBPP: 8
  371. *DrvBPP: 8
  372. *PaletteSize: 256
  373. *PaletteProgrammable? : TRUE
  374. *Command: CmdBeginPaletteDef
  375. {
  376. *Order: PAGE_SETUP.16
  377. *Cmd: "^00"
  378. }
  379. *Command: CmdEndPaletteDef { *Cmd: "<1E>" }
  380. *Command: CmdDefinePaletteEntry { *Cmd : %n[0,1000]{((RedValue * 200) / 51) } %n[0,1000]{((GreenValue * 200) / 51) } %n[0,1000]{((BlueValue * 200) / 51) } }
  381. *Command: CmdBeginPaletteReDef { *Cmd: "^0" }
  382. *Command: CmdEndPaletteReDef { *Cmd: "<1E>" }
  383. *Command: CmdReDefinePaletteEntry { *Cmd : %n{PaletteIndexToProgram} %n[0,1000]{((RedValue * 200) / 51) } %n[0,1000]{((GreenValue * 200) / 51) } %n[0,1000]{((BlueValue * 200) / 51) } }
  384. *Command: CmdSelectPaletteEntry
  385. {
  386. *CallbackID: 368
  387. *Params: LIST(CurrentPaletteIndex)
  388. }
  389. *Command: CmdSelect
  390. {
  391. *Order: JOB_SETUP.2
  392. *CallbackID: 202
  393. }
  394. }
  395. *Option: 24bpp
  396. {
  397. *rcNameID: =24BPP_DISPLAY
  398. *DevNumOfPlanes: 1
  399. *DevBPP: 24
  400. *DrvBPP: 24
  401. *PaletteSize: 1
  402. *PaletteProgrammable? : TRUE
  403. EXTERN_GLOBAL: *MaxMultipleRowBytes: 262144
  404. *Command: CmdDefinePaletteEntry { *Cmd: "" }
  405. *Command: CmdReDefinePaletteEntry
  406. {
  407. *CallbackID: 369
  408. *Params: LIST(RedValue, GreenValue, BlueValue)
  409. }
  410. *Command: CmdSelectPaletteEntry { *Cmd: "" }
  411. *Command: CmdSelect
  412. {
  413. *Order: JOB_SETUP.2
  414. *CallbackID: 201
  415. }
  416. }
  417. }
  418. *switch: ColorMode
  419. {
  420. *case: Color
  421. {
  422. *RasterSendAllData?: TRUE
  423. *UseExpColorSelectCmd?: TRUE
  424. }
  425. }
  426. *SendMultipleRows?: TRUE
  427. *ChangeColorModeOnDoc?: FALSE
  428. *Feature: Halftone
  429. {
  430. *rcNameID: =HALFTONING_DISPLAY
  431. *DefaultOption: HT_PATSIZE_AUTO
  432. *Option: HT_PATSIZE_AUTO
  433. {
  434. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  435. }
  436. *Option: HT_PATSIZE_SUPERCELL_M
  437. {
  438. *rcNameID: =HT_SUPERCELL_DISPLAY
  439. }
  440. *Option: HT_PATSIZE_6x6_M
  441. {
  442. *rcNameID: =HT_DITHER6X6_DISPLAY
  443. }
  444. *Option: HT_PATSIZE_8x8_M
  445. {
  446. *rcNameID: =HT_DITHER8X8_DISPLAY
  447. }
  448. }
  449. *Feature: Memory
  450. {
  451. *rcNameID: =PRINTER_MEMORY_DISPLAY
  452. *DefaultOption: 4096KB
  453. *Option: 4096KB
  454. {
  455. *Name: "4MB"
  456. *MemoryConfigKB: PAIR(4096, 3500)
  457. }
  458. *Option: 8192KB
  459. {
  460. *Name: "8MB"
  461. *MemoryConfigKB: PAIR(8192, 7168)
  462. }
  463. }
  464. *Command: CmdStartJob
  465. {
  466. *Order: JOB_SETUP.1
  467. *CallbackID: 301
  468. *% Error: you must check if this command callback requires any parameters!
  469. }
  470. *Command: CmdStartDoc
  471. {
  472. *Order: DOC_SETUP.1
  473. *CallbackID: 130
  474. *% Error: you must check if this command callback requires any parameters!
  475. }
  476. *Command: CmdStartPage
  477. {
  478. *Order: PAGE_SETUP.1
  479. *CallbackID: 302
  480. *% Error: you must check if this command callback requires any parameters!
  481. }
  482. *Command: CmdEndJob
  483. {
  484. *Order: JOB_FINISH.1
  485. *CallbackID: 304
  486. }
  487. *Command: CmdEndPage
  488. {
  489. *Order: PAGE_FINISH.1
  490. *Cmd: "<0C>"
  491. *% Error: you must check if this command callback requires any parameters!
  492. }
  493. *Command: CmdCopies
  494. {
  495. *Order: PAGE_SETUP.5
  496. *Cmd: "<1B>[" %d[1,255]{NumOfCopies }"v"
  497. }
  498. *RotateCoordinate?: TRUE
  499. *RotateRaster?: TRUE
  500. *RotateFont?: TRUE
  501. *switch: Orientation
  502. {
  503. *case: PORTRAIT
  504. {
  505. *TextCaps: LIST(TC_OP_CHARACTER,TC_CR_90,TC_CR_ANY,TC_SF_X_YINDEP,TC_SA_INTEGER,TC_SA_CONTIN,TC_EA_DOUBLE,TC_IA_ABLE)
  506. }
  507. *case: LANDSCAPE_CC90
  508. {
  509. *TextCaps: LIST(TC_OP_CHARACTER,TC_CR_90,TC_CR_ANY,TC_SA_INTEGER,TC_SA_CONTIN,TC_EA_DOUBLE,TC_IA_ABLE)
  510. }
  511. }
  512. *MemoryUsage: LIST(FONT)
  513. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  514. *XMoveThreshold: 0
  515. *YMoveThreshold: 0
  516. *XMoveUnit: 360
  517. *YMoveUnit: 360
  518. *Command: CmdXMoveAbsolute
  519. {
  520. *CallbackID: 15
  521. *Params: LIST(DestX)
  522. }
  523. *Command: CmdYMoveAbsolute
  524. {
  525. *CallbackID: 16
  526. *Params: LIST(DestY)
  527. }
  528. *Command: CmdCR { *CallbackID: 18 }
  529. *Command: CmdSetSimpleRotation
  530. {
  531. *CallbackID: 4
  532. *Params: LIST(PrintDirInCCDegrees)
  533. }
  534. *EjectPageWithFF?: TRUE
  535. *Command: CmdDisableCompression { *CallbackID: 12 }
  536. *Command: CmdEnableTIFF4 { *CallbackID: 103 }
  537. *OutputDataFormat: H_BYTE
  538. *OptimizeLeftBound?: TRUE
  539. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  540. *CursorYAfterSendBlockData: NO_MOVE
  541. *DefaultFont: 40
  542. *DefaultCTT: 0
  543. *CharPosition: BASELINE
  544. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,
  545. + 40,41,42,43)
  546. *FontCartridge: FC1
  547. {
  548. *rcCartridgeNameID: 271
  549. *Fonts: LIST(44,45)
  550. }
  551. *FontCartridge: FC2
  552. {
  553. *rcCartridgeNameID: 272
  554. *Fonts: LIST(48,49)
  555. }
  556. *FontCartridge: FC3
  557. {
  558. *rcCartridgeNameID: 273
  559. *Fonts: LIST(46,47)
  560. }
  561. *FontCartridge: FC4
  562. {
  563. *rcCartridgeNameID: 274
  564. *Fonts: LIST(54,55)
  565. }
  566. *FontCartridge: FC5
  567. {
  568. *rcCartridgeNameID: 275
  569. *Fonts: LIST(10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,
  570. + 26,27,28,29,30,31)
  571. }
  572. *FontCartridge: FC6
  573. {
  574. *rcCartridgeNameID: 276
  575. *Fonts: LIST(50,51)
  576. }
  577. *FontCartridge: FC7
  578. {
  579. *rcCartridgeNameID: 277
  580. *Fonts: LIST(52,53)
  581. }
  582. *% *MinFontID: 0
  583. *% *MaxFontID: 100
  584. *% *MaxNumDownFonts: 0
  585. *% *FontFormat: OEM_CALLBACK
  586. *Command: CmdBoldOn { *CallbackID: 20 }
  587. *Command: CmdBoldOff { *CallbackID: 21 }
  588. *Command: CmdItalicOn { *CallbackID: 22 }
  589. *Command: CmdItalicOff { *CallbackID: 23 }
  590. *Command: CmdWhiteTextOn { *CallbackID: 30 }
  591. *Command: CmdWhiteTextOff { *CallbackID: 31 }
  592. *Command: CmdSelectSingleByteMode { *CallbackID: 32 }
  593. *Command: CmdSelectDoubleByteMode { *CallbackID: 33 }
  594. *Command: CmdVerticalPrintingOn { *CallbackID: 34 }
  595. *Command: CmdVerticalPrintingOff { *CallbackID: 35 }
  596. *Command: CmdLF { *Cmd : "<0A>" }
  597. *Command: CmdFF { *Cmd : "" }
  598. *ReselectFont: LIST(AFTER_FF)
  599. *TTFS: Arial
  600. {
  601. *rcTTFontNameID: 501
  602. *rcDevFontNameID: 502
  603. }
  604. *TTFS: Symbol
  605. {
  606. *rcTTFontNameID: 503
  607. *rcDevFontNameID: 504
  608. }
  609. *TTFS: TimesNewRoman
  610. {
  611. *rcTTFontNameID: 505
  612. *rcDevFontNameID: 506
  613. }
  614. *TTFS: CourierNew
  615. {
  616. *rcTTFontNameID: 507
  617. *rcDevFontNameID: 508
  618. }
  619. *TTFS: MSMincho
  620. {
  621. *rcTTFontNameID: 509
  622. *rcDevFontNameID: 510
  623. }
  624. *TTFS: MSMinchoV
  625. {
  626. *rcTTFontNameID: 511
  627. *rcDevFontNameID: 512
  628. }
  629. *TTFS: MSGothic
  630. {
  631. *rcTTFontNameID: 513
  632. *rcDevFontNameID: 514
  633. }
  634. *TTFS: MSGothicV
  635. {
  636. *rcTTFontNameID: 515
  637. *rcDevFontNameID: 516
  638. }
  639. *TTFS: MSMincho_E
  640. {
  641. *rcTTFontNameID: 540
  642. *rcDevFontNameID: 510
  643. }
  644. *TTFS: MSMinchoV_E
  645. {
  646. *rcTTFontNameID: 541
  647. *rcDevFontNameID: 512
  648. }
  649. *TTFS: MSGothic_E
  650. {
  651. *rcTTFontNameID: 542
  652. *rcDevFontNameID: 514
  653. }
  654. *TTFS: MSGothicV_E
  655. {
  656. *rcTTFontNameID: 543
  657. *rcDevFontNameID: 516
  658. }
  659. *TTFSEnabled?: TRUE