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.

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