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.

502 lines
12 KiB

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