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.

444 lines
10 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "CNB30VJ.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "Canon BJ-30V"
  11. *MasterUnits: PAIR(720, 720)
  12. *ResourceDLL: "CNRSTRES.DLL"
  13. *PrinterType: SERIAL
  14. *OutputOrderReversed?: TRUE
  15. *%========== Orientation ==========
  16. *Feature: Orientation
  17. {
  18. *rcNameID: =ORIENTATION_DISPLAY
  19. *DefaultOption: PORTRAIT
  20. *Option: PORTRAIT
  21. {
  22. *rcNameID: =PORTRAIT_DISPLAY
  23. }
  24. *Option: LANDSCAPE_CC270
  25. {
  26. *rcNameID: =LANDSCAPE_DISPLAY
  27. }
  28. }
  29. *%========== InputBin ==========
  30. *Feature: InputBin
  31. {
  32. *rcNameID: =PAPER_SOURCE_DISPLAY
  33. *DefaultOption: AUTO
  34. *Option: AUTO
  35. {
  36. *rcNameID: =AUTO_DISPLAY
  37. *Command: CmdSelect
  38. {
  39. *Order: PAGE_SETUP.4
  40. *CallbackID: 40
  41. }
  42. }
  43. *Option: MANUAL
  44. {
  45. *rcNameID: =MANUAL_FEED_DISPLAY
  46. *Command: CmdSelect
  47. {
  48. *Order: PAGE_SETUP.4
  49. *CallbackID: 41
  50. }
  51. }
  52. }
  53. *%========== Resolution ==========
  54. *Feature: Resolution
  55. {
  56. *rcNameID: =RESOLUTION_DISPLAY
  57. *DefaultOption: Option2
  58. *Option: Option1
  59. {
  60. *Name: "180 x 180 dots per inch"
  61. *DPI: PAIR(180, 180)
  62. *TextDPI: PAIR(180, 180)
  63. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  64. *SpotDiameter: 180
  65. *Command: CmdSendBlockData
  66. {
  67. *Cmd: "<1B28>A" %l{NumOfDataBytes + 1}"K"
  68. }
  69. *Command: CmdSelect
  70. {
  71. *Order: PAGE_SETUP.6
  72. *Cmd: "<1B>(d<040000B400B4>"
  73. }
  74. }
  75. *Option: Option2
  76. {
  77. *Name: "360 x 360 dots per inch"
  78. *DPI: PAIR(360, 360)
  79. *TextDPI: PAIR(360, 360)
  80. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  81. *SpotDiameter: 180
  82. *Command: CmdSendBlockData
  83. {
  84. *Cmd: "<1B28>A" %l{NumOfDataBytes + 1}"K"
  85. }
  86. *Command: CmdSelect
  87. {
  88. *Order: PAGE_SETUP.6
  89. *Cmd: "<1B>(d<040001>h<01>h"
  90. }
  91. }
  92. }
  93. *%========== PaperSize ==========
  94. *Feature: PaperSize
  95. {
  96. *rcNameID: =PAPER_SIZE_DISPLAY
  97. *DefaultOption: A4
  98. *Option: A4
  99. {
  100. *rcNameID: =A4_DISPLAY
  101. *PrintableArea: PAIR(5760, 8135)
  102. *PrintableOrigin: PAIR(96, 85)
  103. *switch: Resolution
  104. {
  105. *case: Option1
  106. {
  107. *PrintableArea: PAIR(5760, 8133)
  108. *PrintableOrigin: PAIR(96, 84)
  109. }
  110. *case: Option2
  111. {
  112. *PrintableArea: PAIR(5760, 8134)
  113. *PrintableOrigin: PAIR(96, 84)
  114. }
  115. }
  116. *Command: CmdSelect
  117. {
  118. *Order: PAGE_SETUP.3
  119. *Cmd: "<1B>(p<080002A6000801E80000>"
  120. }
  121. }
  122. *Option: LETTER
  123. {
  124. *rcNameID: =LETTER_DISPLAY
  125. *PrintableArea: PAIR(5945, 7637)
  126. *PrintableOrigin: PAIR(85, 85)
  127. *switch: Resolution
  128. {
  129. *case: Option1
  130. {
  131. *PrintableArea: PAIR(5943, 7635)
  132. *PrintableOrigin: PAIR(84, 84)
  133. }
  134. *case: Option2
  135. {
  136. *PrintableArea: PAIR(5944, 7636)
  137. *PrintableOrigin: PAIR(84, 84)
  138. }
  139. }
  140. *Command: CmdSelect
  141. {
  142. *Order: PAGE_SETUP.3
  143. *Cmd: "<1B>(p<0800027C000701F60000>"
  144. }
  145. }
  146. *Option: LEGAL
  147. {
  148. *rcNameID: =LEGAL_DISPLAY
  149. *PrintableArea: PAIR(5756, 9794)
  150. *PrintableOrigin: PAIR(182, 86)
  151. *switch: Resolution
  152. {
  153. *case: Option1
  154. {
  155. *PrintableArea: PAIR(5754, 9792)
  156. *PrintableOrigin: PAIR(180, 84)
  157. }
  158. }
  159. *Command: CmdSelect
  160. {
  161. *Order: PAGE_SETUP.3
  162. *Cmd: "<1B>(p<08000330000F01EF0000>"
  163. }
  164. }
  165. *Option: A5
  166. {
  167. *rcNameID: =A5_DISPLAY
  168. *PrintableArea: PAIR(2766, 3909)
  169. *PrintableOrigin: PAIR(98, 86)
  170. *switch: Resolution
  171. {
  172. *case: Option1
  173. {
  174. *PrintableOrigin: PAIR(96, 84)
  175. }
  176. *case: Option2
  177. {
  178. *PrintableArea: PAIR(2766, 3908)
  179. }
  180. }
  181. *Command: CmdSelect
  182. {
  183. *Order: PAGE_SETUP.3
  184. *Cmd: "<1B>(p<080001460008014E0000>"
  185. }
  186. }
  187. *Option: B5
  188. {
  189. *rcNameID: =B5_DISPLAY
  190. *PrintableArea: PAIR(4967, 7002)
  191. *PrintableOrigin: PAIR(96, 85)
  192. *switch: Resolution
  193. {
  194. *case: Option1
  195. {
  196. *PrintableArea: PAIR(4965, 7002)
  197. *PrintableOrigin: PAIR(96, 84)
  198. }
  199. *case: Option2
  200. {
  201. *PrintableArea: PAIR(4966, 7002)
  202. *PrintableOrigin: PAIR(96, 84)
  203. }
  204. }
  205. *Command: CmdSelect
  206. {
  207. *Order: PAGE_SETUP.3
  208. *Cmd: "<1B>(p<08000247000802570000>"
  209. }
  210. }
  211. *Option: JAPANESE_POSTCARD
  212. {
  213. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  214. *PrintableArea: PAIR(2638, 3909)
  215. *PrintableOrigin: PAIR(98, 86)
  216. *switch: Resolution
  217. {
  218. *case: Option1
  219. {
  220. *PrintableOrigin: PAIR(96, 84)
  221. }
  222. *case: Option2
  223. {
  224. *PrintableArea: PAIR(2638, 3908)
  225. }
  226. }
  227. *Command: CmdSelect
  228. {
  229. *Order: PAGE_SETUP.3
  230. *Cmd: "<1B>(p<0800 0146 0008 00E4 0000>"
  231. }
  232. }
  233. *Option: CUSTOMSIZE
  234. {
  235. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  236. *MinSize: PAIR(2834, 2834)
  237. *MaxSize: PAIR(11905, 16837)
  238. *MaxPrintableWidth: 11541
  239. *MinLeftMargin: 98
  240. *TopMargin: 85
  241. *BottomMargin: 198
  242. *CenterPrintable?: FALSE
  243. *Command: CmdSelect
  244. {
  245. *Order: PAGE_SETUP.3
  246. *Cmd: "<1B>(p<0800>" %m{PhysPaperLength / 12}"<0008>" %m{(PhysPaperWidth - 98) / 12}"<0000>"
  247. }
  248. }
  249. }
  250. *%========== MediaType ==========
  251. *Feature: MediaType
  252. {
  253. *rcNameID: =MEDIA_TYPE_DISPLAY
  254. *DefaultOption: Option1
  255. *Option: Option1
  256. {
  257. *rcNameID: 259
  258. *Command: CmdSelect
  259. {
  260. *Order: PAGE_SETUP.1
  261. *CallbackID: 20
  262. }
  263. }
  264. *Option: Option2
  265. {
  266. *rcNameID: 260
  267. *Command: CmdSelect
  268. {
  269. *Order: PAGE_SETUP.1
  270. *CallbackID: 21
  271. }
  272. }
  273. *Option: Option3
  274. {
  275. *rcNameID: 261
  276. *Command: CmdSelect
  277. {
  278. *Order: PAGE_SETUP.1
  279. *CallbackID: 22
  280. }
  281. }
  282. *Option: Option4
  283. {
  284. *rcNameID: 262
  285. *Command: CmdSelect
  286. {
  287. *Order: PAGE_SETUP.1
  288. *CallbackID: 23
  289. }
  290. }
  291. *Option: Option5
  292. {
  293. *rcNameID: 263
  294. *Command: CmdSelect
  295. {
  296. *Order: PAGE_SETUP.1
  297. *CallbackID: 24
  298. }
  299. }
  300. *Option: Option6
  301. {
  302. *rcNameID: 264
  303. *Command: CmdSelect
  304. {
  305. *Order: PAGE_SETUP.1
  306. *CallbackID: 25
  307. }
  308. }
  309. *Option: Option7
  310. {
  311. *rcNameID: 265
  312. *Command: CmdSelect
  313. {
  314. *Order: PAGE_SETUP.1
  315. *CallbackID: 26
  316. }
  317. }
  318. *Option: Option8
  319. {
  320. *rcNameID: 266
  321. *Command: CmdSelect
  322. {
  323. *Order: PAGE_SETUP.1
  324. *%CallbackID: 27
  325. }
  326. }
  327. }
  328. *%========== PrintQuality ==========
  329. *Feature: PrintQuality
  330. {
  331. *rcNameID: =TEXT_QUALITY_DISPLAY
  332. *DefaultOption: Option1
  333. *Option: Option1
  334. {
  335. *rcNameID: 267
  336. *Command: CmdSelect
  337. {
  338. *Order: PAGE_SETUP.2
  339. *CallbackID: 30
  340. }
  341. }
  342. *Option: Option2
  343. {
  344. *rcNameID: 268
  345. *Command: CmdSelect
  346. {
  347. *Order: PAGE_SETUP.2
  348. *CallbackID: 31
  349. }
  350. }
  351. *Option: Option3
  352. {
  353. *rcNameID: 269
  354. *Command: CmdSelect
  355. {
  356. *Order: PAGE_SETUP.2
  357. *CallbackID: 32
  358. }
  359. }
  360. }
  361. *%========== Halftone ==========
  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. *%========== Job Control Command ==========
  384. *Command: CmdStartDoc
  385. {
  386. *Order: DOC_SETUP.1
  387. *Cmd: "<1B5B>K<0200000F1B28>a<0100001B>(b<010001>"
  388. }
  389. *Command: CmdStartPage
  390. {
  391. *Order: PAGE_SETUP.5
  392. *CallbackID: 1
  393. }
  394. *Command: CmdEndJob
  395. {
  396. *Order: JOB_FINISH.1
  397. *Cmd: "<1B>(b<0100001B40>"
  398. }
  399. *%========== Printer Capabilities ==========
  400. *RotateCoordinate?: FALSE
  401. *RotateRaster?: FALSE
  402. *RotateFont?: FALSE
  403. *%========== Cursor Move ==========
  404. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  405. *YMoveAttributes: LIST(SEND_CR_FIRST)
  406. *YMoveThreshold: 0
  407. *switch: Resolution
  408. {
  409. *case: Option1
  410. {
  411. *YMoveUnit: 180
  412. *Command: CmdYMoveRelDown { *Cmd : "<1B28>e<0200>" %m{DestYRel / 4 } }
  413. }
  414. *case: Option2
  415. {
  416. *YMoveUnit: 360
  417. *Command: CmdYMoveRelDown { *Cmd : "<1B28>e<0200>" %m{DestYRel / 2 } }
  418. }
  419. }
  420. *Command: CmdCR { *Cmd : "<0D>" }
  421. *Command: CmdLF { *Cmd : "<0A>" }
  422. *Command: CmdFF { *Cmd : "<0C>" }
  423. *EjectPageWithFF?: TRUE
  424. *%========== Compression ==========
  425. *Command: CmdEnableTIFF4 { *Cmd : "" }
  426. *%========== Raster Data Emission ==========
  427. *OutputDataFormat: H_BYTE
  428. *OptimizeLeftBound?: FALSE
  429. *CursorXAfterSendBlockData: AT_GRXDATA_END
  430. *CursorYAfterSendBlockData: NO_MOVE
  431. *DefaultCTT: 0