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.

600 lines
16 KiB

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