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.

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