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.

474 lines
11 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "CN5585IJ.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "Canon LBP-5585i"
  11. *MasterUnits: PAIR(1440, 1440)
  12. *ResourceDLL: "PAGESRES.DLL"
  13. *PrinterType: PAGE
  14. *PrintRate: 8
  15. *PrintRateUnit: PPM
  16. *MaxCopies: 255
  17. *% ========== Orientation ==========
  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: DOC_SETUP.3
  28. *Cmd: "<1B>~P<000100>"
  29. }
  30. }
  31. *Option: LANDSCAPE_CC270
  32. {
  33. *rcNameID: =LANDSCAPE_DISPLAY
  34. *Command: CmdSelect
  35. {
  36. *Order: DOC_SETUP.3
  37. *Cmd: "<1B>~P<000103>"
  38. }
  39. }
  40. }
  41. *% ========== InputBin ==========
  42. *Feature: InputBin
  43. {
  44. *rcNameID: =PAPER_SOURCE_DISPLAY
  45. *DefaultOption: Option1
  46. *Option: Option1
  47. {
  48. *rcNameID: 267
  49. *Command: CmdSelect
  50. {
  51. *Order: DOC_SETUP.2
  52. *Cmd: "<1B>~F<00050000000000>"
  53. }
  54. }
  55. *Option: Option2
  56. {
  57. *rcNameID: 268
  58. *Command: CmdSelect
  59. {
  60. *Order: DOC_SETUP.2
  61. *Cmd: "<1B>~F<00050000010000>"
  62. }
  63. }
  64. *Option: Option3
  65. {
  66. *rcNameID: 269
  67. *Command: CmdSelect
  68. {
  69. *Order: DOC_SETUP.2
  70. *Cmd: "<1B>~F<00050000020000>"
  71. }
  72. }
  73. }
  74. *% ========== Resolution ==========
  75. *Feature: Resolution
  76. {
  77. *rcNameID: =RESOLUTION_DISPLAY
  78. *DefaultOption: Option1
  79. *Option: Option1
  80. {
  81. *Name: "240 x 240 dots per inch"
  82. *DPI: PAIR(240, 240)
  83. *TextDPI: PAIR(240, 240)
  84. *MinStripBlankPixels: 32
  85. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  86. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  87. *SpotDiameter: 100
  88. *Command: CmdSendBlockData { *Cmd : "<1B>~<84>" %m{NumOfDataBytes + 5}"<00>" %m{(RasterDataWidthInBytes * 8) } %m{RasterDataHeightInPixels }
  89. + }
  90. *Command: CmdSelect
  91. {
  92. *Order: DOC_SETUP.11
  93. *CallbackID: 12
  94. }
  95. }
  96. }
  97. *% ========== PaperSize ==========
  98. *Feature: PaperSize
  99. {
  100. *rcNameID: =PAPER_SIZE_DISPLAY
  101. *DefaultOption: A4
  102. *Option: A4
  103. {
  104. *rcNameID: =A4_DISPLAY
  105. *PrintableArea: PAIR(11334, 16260)
  106. *PrintableOrigin: PAIR(288, 288)
  107. *switch: Orientation
  108. {
  109. *case: PORTRAIT
  110. {
  111. *Command: CmdSelect
  112. {
  113. *Order: DOC_SETUP.5
  114. *Cmd: "<1B>~8<0009011C011C>,J?<8E02>"
  115. }
  116. }
  117. *case: LANDSCAPE_CC270
  118. {
  119. *Command: CmdSelect
  120. {
  121. *Order: DOC_SETUP.5
  122. *Cmd: "<1B>~8<0009011C011C>?<8E>,J<02>"
  123. }
  124. }
  125. }
  126. }
  127. *Option: B4
  128. {
  129. *rcNameID: =B4_DISPLAY
  130. *PrintableArea: PAIR(13998, 20064)
  131. *PrintableOrigin: PAIR(288, 288)
  132. *switch: Orientation
  133. {
  134. *case: PORTRAIT
  135. {
  136. *Command: CmdSelect
  137. {
  138. *Order: DOC_SETUP.5
  139. *Cmd: "<1B>~8<0009011C011C>6<B3>Ne<02>"
  140. }
  141. }
  142. *case: LANDSCAPE_CC270
  143. {
  144. *Command: CmdSelect
  145. {
  146. *Order: DOC_SETUP.5
  147. *Cmd: "<1B>~8<0009011C011C>Ne6<B302>"
  148. }
  149. }
  150. }
  151. }
  152. *Option: B5
  153. {
  154. *rcNameID: =B5_DISPLAY
  155. *PrintableArea: PAIR(9750, 13998)
  156. *PrintableOrigin: PAIR(288, 288)
  157. *switch: Orientation
  158. {
  159. *case: PORTRAIT
  160. {
  161. *Command: CmdSelect
  162. {
  163. *Order: DOC_SETUP.5
  164. *Cmd: "<1B>~8<0009011C011C>&<17>6<B302>"
  165. }
  166. }
  167. *case: LANDSCAPE_CC270
  168. {
  169. *Command: CmdSelect
  170. {
  171. *Order: DOC_SETUP.5
  172. *Cmd: "<1B>~8<0009011C011C>6<B3>&<1702>"
  173. }
  174. }
  175. }
  176. }
  177. *Option: LETTER
  178. {
  179. *rcNameID: =LETTER_DISPLAY
  180. *PrintableArea: PAIR(11664, 15264)
  181. *PrintableOrigin: PAIR(288, 288)
  182. *switch: Orientation
  183. {
  184. *case: PORTRAIT
  185. {
  186. *Command: CmdSelect
  187. {
  188. *Order: DOC_SETUP.5
  189. *Cmd: "<1B>~8<0009011C011C>-<99>;<A902>"
  190. }
  191. }
  192. *case: LANDSCAPE_CC270
  193. {
  194. *Command: CmdSelect
  195. {
  196. *Order: DOC_SETUP.5
  197. *Cmd: "<1B>~8<0009011C011C>;<A9>-<9902>"
  198. }
  199. }
  200. }
  201. }
  202. *Option: JAPANESE_POSTCARD
  203. {
  204. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  205. *PrintableArea: PAIR(5100, 7820)
  206. *PrintableOrigin: PAIR(288, 288)
  207. *switch: Orientation
  208. {
  209. *case: PORTRAIT
  210. {
  211. *Command: CmdSelect
  212. {
  213. *Order: DOC_SETUP.5
  214. *Cmd: "<1B>~8<0009011C011C13EE1E8F02>"
  215. }
  216. }
  217. *case: LANDSCAPE_CC270
  218. {
  219. *Command: CmdSelect
  220. {
  221. *Order: DOC_SETUP.5
  222. *Cmd: "<1B>~8<0009011C011C1E8F13EE02>"
  223. }
  224. }
  225. }
  226. }
  227. *Option: LEGAL
  228. {
  229. *rcNameID: =LEGAL_DISPLAY
  230. *PrintableArea: PAIR(11664, 19584)
  231. *PrintableOrigin: PAIR(288, 288)
  232. *switch: Orientation
  233. {
  234. *case: PORTRAIT
  235. {
  236. *Command: CmdSelect
  237. {
  238. *Order: DOC_SETUP.5
  239. *Cmd: "<1B>~8<0009011C011C>-<99>L<8902>"
  240. }
  241. }
  242. *case: LANDSCAPE_CC270
  243. {
  244. *Command: CmdSelect
  245. {
  246. *Order: DOC_SETUP.5
  247. *Cmd: "<1B>~8<0009011C011C>L<89>-<9902>"
  248. }
  249. }
  250. }
  251. }
  252. *Option: CUSTOMSIZE
  253. {
  254. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  255. *MinSize: PAIR(2880, 2880)
  256. *MaxSize: PAIR(25200, 32767)
  257. *MaxPrintableWidth: 25200
  258. *MinLeftMargin: 0
  259. *CenterPrintable?: FALSE
  260. *TopMargin: 282
  261. *BottomMargin: 282
  262. *switch: Orientation
  263. {
  264. *case: PORTRAIT
  265. {
  266. *Command: CmdSelect
  267. {
  268. *Order: DOC_SETUP.5
  269. *Cmd: "<1B>~8<0009011C011C>?<8E>Z<CC02>"
  270. }
  271. }
  272. *case: LANDSCAPE_CC270
  273. {
  274. *Command: CmdSelect
  275. {
  276. *Order: DOC_SETUP.5
  277. *Cmd: "<1B>~8<0009011C011C>Z<CC>?<8E02>"
  278. }
  279. }
  280. }
  281. }
  282. }
  283. *% ========== ImageControl ==========
  284. *Feature: ImageControl
  285. {
  286. *rcNameID: =IMAGECONTROL_DISPLAY
  287. *DefaultOption: Option1
  288. *Option: Option1
  289. {
  290. *rcNameID: 283
  291. *Command: CmdSelect
  292. {
  293. *Order: DOC_SETUP.4
  294. *Cmd: "<1B>~Q<000100>"
  295. }
  296. }
  297. *Option: Option2
  298. {
  299. *rcNameID: 285
  300. *Command: CmdSelect
  301. {
  302. *Order: DOC_SETUP.4
  303. *Cmd: "<1B>~Q<000101>"
  304. }
  305. }
  306. }
  307. *% ========== Halftone ==========
  308. *Feature: Halftone
  309. {
  310. *rcNameID: =HALFTONING_DISPLAY
  311. *DefaultOption: HT_PATSIZE_AUTO
  312. *Option: HT_PATSIZE_AUTO
  313. {
  314. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  315. }
  316. *Option: HT_PATSIZE_SUPERCELL_M
  317. {
  318. *rcNameID: =HT_SUPERCELL_DISPLAY
  319. }
  320. *Option: HT_PATSIZE_6x6_M
  321. {
  322. *rcNameID: =HT_DITHER6X6_DISPLAY
  323. }
  324. *Option: HT_PATSIZE_8x8_M
  325. {
  326. *rcNameID: =HT_DITHER8X8_DISPLAY
  327. }
  328. }
  329. *% ========== Memory ==========
  330. *Feature: Memory
  331. {
  332. *rcNameID: =PRINTER_MEMORY_DISPLAY
  333. *DefaultOption: 1024KB
  334. *Option: 1024KB
  335. {
  336. *Name: "1MB"
  337. *MemoryConfigKB: PAIR(1024, 700)
  338. }
  339. }
  340. *% ========== Job Control Command ==========
  341. *Command: CmdStartDoc
  342. {
  343. *Order: DOC_SETUP.1
  344. *Cmd: "<1B>~<010000>"
  345. }
  346. *Command: CmdEndJob
  347. {
  348. *Order: JOB_FINISH.1
  349. *Cmd: "<1B>~<010000>"
  350. }
  351. *Command: CmdCopies
  352. {
  353. *Order: DOC_SETUP.6
  354. *Cmd: "<1B>~3<000201>" %c[1,255]{NumOfCopies}
  355. }
  356. *% ========== Printer Capabilities ==========
  357. *RotateCoordinate?: FALSE
  358. *RotateRaster?: TRUE
  359. *RotateFont?: TRUE
  360. *TextCaps: LIST(TC_OP_STROKE,TC_SA_INTEGER,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  361. *MemoryUsage: LIST(FONT)
  362. *% ========== Cursor Control ==========
  363. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  364. *XMoveThreshold: 0
  365. *YMoveThreshold: 0
  366. *XMoveUnit: 1440
  367. *YMoveUnit: 1440
  368. *Command: CmdXMoveAbsolute { *Cmd : "<1B>~<1C000305>" %m{DestX } }
  369. *Command: CmdXMoveRelRight { *Cmd : "<1B>~<1C000306>" %m{DestXRel } }
  370. *Command: CmdYMoveAbsolute
  371. {
  372. *CallbackID: 2
  373. *Params: LIST(DestY)
  374. }
  375. *Command: CmdYMoveRelDown
  376. {
  377. *CallbackID: 3
  378. *Params: LIST(DestYRel)
  379. }
  380. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %m{(LinefeedSpacing / 12) } }
  381. *Command: CmdCR { *Cmd : "<0D>" }
  382. *Command: CmdLF { *Cmd : "<0A>" }
  383. *Command: CmdFF { *Cmd : "<0C>" }
  384. *Command: CmdBackSpace { *Cmd : "<08>" }
  385. *EjectPageWithFF?: TRUE
  386. *% ========== Raster Data Emission ==========
  387. *OutputDataFormat: H_BYTE
  388. *OptimizeLeftBound?: TRUE
  389. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  390. *CursorYAfterSendBlockData: NO_MOVE
  391. *% ========== Device Fonts ==========
  392. *DefaultFont: 5
  393. *DefaultCTT: 0
  394. *CharPosition: BASELINE
  395. *DeviceFonts: LIST(1,2,5,6)
  396. *% ========== Font Simulation ==========
  397. *Command: CmdItalicOn { *Cmd : "<1B>~v<000E1000000000000000000103000000>" }
  398. *Command: CmdItalicOff { *Cmd : "<1B>~v<000E0000000000000000000000000000>" }
  399. *Command: CmdUnderlineOn { *Cmd : "<1B>~<11000101>" }
  400. *Command: CmdUnderlineOff { *Cmd : "<1B>~<11000100>" }
  401. *%========== RectFill ==========
  402. *MinGrayFill: 1
  403. *MaxGrayFill: 1
  404. *% *MinGrayFill: 1
  405. *% *MaxGrayFill: 100
  406. *Command: CmdSetRectWidth
  407. {
  408. *CallbackID: 30
  409. *Params: LIST(RectXSize)
  410. }
  411. *Command: CmdSetRectHeight
  412. {
  413. *CallbackID: 31
  414. *Params: LIST(RectYSize)
  415. }
  416. *% *Command: CmdRectBlackFill { *CallbackID: 32 }
  417. *Command: CmdRectWhiteFill { *CallbackID: 33 }
  418. *%========== Font Substitution ==========
  419. *TTFSEnabled?: TRUE
  420. *TTFS: MSMincho
  421. {
  422. *rcTTFontNameID: 500
  423. *rcDevFontNameID:501
  424. }
  425. *TTFS: MSMinchoV
  426. {
  427. *rcTTFontNameID: 502
  428. *rcDevFontNameID:503
  429. }
  430. *TTFS: MSGothic
  431. {
  432. *rcTTFontNameID: 504
  433. *rcDevFontNameID:505
  434. }
  435. *TTFS: MSGothicV
  436. {
  437. *rcTTFontNameID: 506
  438. *rcDevFontNameID:507
  439. }
  440. *TTFS: MSMincho_E
  441. {
  442. *rcTTFontNameID: 520
  443. *rcDevFontNameID:501
  444. }
  445. *TTFS: MSMinchoV_E
  446. {
  447. *rcTTFontNameID: 521
  448. *rcDevFontNameID:503
  449. }
  450. *TTFS: MSGothic_E
  451. {
  452. *rcTTFontNameID: 522
  453. *rcDevFontNameID:505
  454. }
  455. *TTFS: MSGothicV_E
  456. {
  457. *rcTTFontNameID: 523
  458. *rcDevFontNameID:507
  459. }