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.

612 lines
16 KiB

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