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.

494 lines
15 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *Include: "StdNames.gpd"
  7. *GPDFileVersion: "1.0"
  8. *GPDFileName: "cnb130jj.gpd"
  9. *ModelName: "Canon BJ-130J"
  10. *MasterUnits: PAIR(360, 360)
  11. *ResourceDLL: "cn13jres.dll"
  12. *PrinterType: SERIAL
  13. *Feature: Orientation
  14. {
  15. *rcNameID: =ORIENTATION_DISPLAY
  16. *DefaultOption: PORTRAIT
  17. *Option: PORTRAIT
  18. {
  19. *rcNameID: =PORTRAIT_DISPLAY
  20. }
  21. *Option: LANDSCAPE_CC270
  22. {
  23. *rcNameID: =LANDSCAPE_DISPLAY
  24. }
  25. }
  26. *Feature: InputBin
  27. {
  28. *rcNameID: =PAPER_SOURCE_DISPLAY
  29. *DefaultOption: Option1
  30. *Option: Option1
  31. {
  32. *rcNameID: 258
  33. *OptionID: 258
  34. }
  35. *Option: Option2
  36. {
  37. *rcNameID: 259
  38. *OptionID: 259
  39. }
  40. *Option: MANUAL
  41. {
  42. *rcNameID: =MANUAL_FEED_DISPLAY
  43. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  44. }
  45. }
  46. *Feature: Resolution
  47. {
  48. *rcNameID: =RESOLUTION_DISPLAY
  49. *DefaultOption: Option1
  50. *Option: Option1
  51. {
  52. *Name: "360 x 360 " =DOTS_PER_INCH
  53. *DPI: PAIR(360, 360)
  54. *TextDPI: PAIR(360, 360)
  55. *PinsPerLogPass: 48
  56. *PinsPerPhysPass: 48
  57. *MinStripBlankPixels: 360
  58. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  59. *SpotDiameter: 100
  60. *Command: CmdSendBlockData { *Cmd : "<1C>CB<0404>" %l{(NumOfDataBytes / 6) } }
  61. }
  62. *Option: Option2
  63. {
  64. *Name: "180 x 180 " =DOTS_PER_INCH
  65. *DPI: PAIR(180, 180)
  66. *TextDPI: PAIR(180, 180)
  67. *PinsPerLogPass: 24
  68. *PinsPerPhysPass: 24
  69. *MinStripBlankPixels: 180
  70. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  71. *SpotDiameter: 100
  72. *Command: CmdSendBlockData { *Cmd : "<1C>CB<0000>" %l{(NumOfDataBytes / 3) } }
  73. }
  74. }
  75. *Feature: PaperSize
  76. {
  77. *rcNameID: =PAPER_SIZE_DISPLAY
  78. *DefaultOption: A4
  79. *Option: A3
  80. {
  81. *rcNameID: =A3_DISPLAY
  82. *PrintableArea: PAIR(4108, 5727)
  83. *PrintableOrigin: PAIR(50, 142)
  84. *switch: Resolution
  85. {
  86. *case: Option2
  87. {
  88. *% Warning: the following printable length is adjusted (5727->5726) so it is divisible by the resolution Y scale.
  89. *PrintableArea: PAIR(4108, 5726)
  90. }
  91. }
  92. }
  93. *Option: A4
  94. {
  95. *rcNameID: =A4_DISPLAY
  96. *PrintableArea: PAIR(2877, 3981)
  97. *PrintableOrigin: PAIR(50, 142)
  98. *switch: Resolution
  99. {
  100. *case: Option2
  101. {
  102. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  103. *% Warning: the following printable length is adjusted (3981->3980) so it is divisible by the resolution Y scale.
  104. *PrintableArea: PAIR(2876, 3980)
  105. }
  106. }
  107. }
  108. *Option: A4_ROTATED
  109. {
  110. *rcNameID: =A4_ROTATED_DISPLAY
  111. *PrintableArea: PAIR(4108, 2750)
  112. *PrintableOrigin: PAIR(50, 142)
  113. }
  114. *Option: A5
  115. {
  116. *rcNameID: =A5_DISPLAY
  117. *PrintableArea: PAIR(1999, 2750)
  118. *PrintableOrigin: PAIR(50, 142)
  119. *switch: Resolution
  120. {
  121. *case: Option2
  122. {
  123. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  124. *PrintableArea: PAIR(1998, 2750)
  125. }
  126. }
  127. }
  128. *Option: A5_ROTATED
  129. {
  130. *rcNameID: =A5_ROTATED_DISPLAY
  131. *PrintableArea: PAIR(2877, 1872)
  132. *PrintableOrigin: PAIR(50, 142)
  133. *switch: Resolution
  134. {
  135. *case: Option2
  136. {
  137. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  138. *PrintableArea: PAIR(2876, 1872)
  139. }
  140. }
  141. }
  142. *Option: A6
  143. {
  144. *rcNameID: =A6_DISPLAY
  145. *PrintableArea: PAIR(1387, 1872)
  146. *PrintableOrigin: PAIR(50, 142)
  147. *switch: Resolution
  148. {
  149. *case: Option2
  150. {
  151. *% Warning: the following printable width is adjusted (1387->1386) so it is divisible by the resolution X scale.
  152. *PrintableArea: PAIR(1386, 1872)
  153. }
  154. }
  155. }
  156. *Option: A6_ROTATED
  157. {
  158. *rcNameID: =A6_ROTATED_DISPLAY
  159. *PrintableArea: PAIR(1999, 1260)
  160. *PrintableOrigin: PAIR(50, 142)
  161. *switch: Resolution
  162. {
  163. *case: Option2
  164. {
  165. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  166. *PrintableArea: PAIR(1998, 1260)
  167. }
  168. }
  169. }
  170. *Option: B4
  171. {
  172. *rcNameID: =B4_DISPLAY
  173. *PrintableArea: PAIR(3461, 4932)
  174. *PrintableOrigin: PAIR(91, 142)
  175. *switch: Resolution
  176. {
  177. *case: Option2
  178. {
  179. *% Warning: the following printable width is adjusted (3461->3460) so it is divisible by the resolution X scale.
  180. *PrintableArea: PAIR(3460, 4932)
  181. *% Warning: the following printable origin X is adjusted (91->92) so it is divisible by the resolution X scale.
  182. *PrintableOrigin: PAIR(92, 142)
  183. }
  184. }
  185. }
  186. *Option: B4_JIS_ROTATED
  187. {
  188. *rcNameID: =B4_JIS_ROTATED_DISPLAY
  189. *PrintableArea: PAIR(4859, 3359)
  190. *PrintableOrigin: PAIR(150, 142)
  191. *switch: Resolution
  192. {
  193. *case: Option2
  194. {
  195. *% Warning: the following printable width is adjusted (4859->4858) so it is divisible by the resolution X scale.
  196. *% Warning: the following printable length is adjusted (3359->3358) so it is divisible by the resolution Y scale.
  197. *PrintableArea: PAIR(4858, 3358)
  198. }
  199. }
  200. }
  201. *Option: B5
  202. {
  203. *rcNameID: =B5_DISPLAY
  204. *PrintableArea: PAIR(2399, 3416)
  205. *PrintableOrigin: PAIR(91, 142)
  206. *switch: Resolution
  207. {
  208. *case: Option2
  209. {
  210. *% Warning: the following printable width is adjusted (2399->2398) so it is divisible by the resolution X scale.
  211. *PrintableArea: PAIR(2398, 3416)
  212. *% Warning: the following printable origin X is adjusted (91->92) so it is divisible by the resolution X scale.
  213. *PrintableOrigin: PAIR(92, 142)
  214. }
  215. }
  216. }
  217. *Option: B5_JIS_ROTATED
  218. {
  219. *rcNameID: =B5_JIS_ROTATED_DISPLAY
  220. *PrintableArea: PAIR(3461, 2354)
  221. *PrintableOrigin: PAIR(91, 142)
  222. *switch: Resolution
  223. {
  224. *case: Option2
  225. {
  226. *% Warning: the following printable width is adjusted (3461->3460) so it is divisible by the resolution X scale.
  227. *PrintableArea: PAIR(3460, 2354)
  228. *% Warning: the following printable origin X is adjusted (91->92) so it is divisible by the resolution X scale.
  229. *PrintableOrigin: PAIR(92, 142)
  230. }
  231. }
  232. }
  233. *Option: LETTER
  234. {
  235. *rcNameID: =LETTER_DISPLAY
  236. *PrintableArea: PAIR(2878, 3733)
  237. *PrintableOrigin: PAIR(91, 142)
  238. *switch: Resolution
  239. {
  240. *case: Option2
  241. {
  242. *% Warning: the following printable width is adjusted (2878->2876) so it is divisible by the resolution X scale.
  243. *% Warning: the following printable length is adjusted (3733->3732) so it is divisible by the resolution Y scale.
  244. *PrintableArea: PAIR(2876, 3732)
  245. *% Warning: the following printable origin X is adjusted (91->92) so it is divisible by the resolution X scale.
  246. *PrintableOrigin: PAIR(92, 142)
  247. }
  248. }
  249. }
  250. *Option: LEGAL
  251. {
  252. *rcNameID: =LEGAL_DISPLAY
  253. *PrintableArea: PAIR(2878, 4813)
  254. *PrintableOrigin: PAIR(91, 142)
  255. *switch: Resolution
  256. {
  257. *case: Option2
  258. {
  259. *% Warning: the following printable width is adjusted (2878->2876) so it is divisible by the resolution X scale.
  260. *% Warning: the following printable length is adjusted (4813->4812) so it is divisible by the resolution Y scale.
  261. *PrintableArea: PAIR(2876, 4812)
  262. *% Warning: the following printable origin X is adjusted (91->92) so it is divisible by the resolution X scale.
  263. *PrintableOrigin: PAIR(92, 142)
  264. }
  265. }
  266. }
  267. *Option: 10X11
  268. {
  269. *rcNameID: =10X11_DISPLAY
  270. *PrintableArea: PAIR(3168, 3960)
  271. *PrintableOrigin: PAIR(216, 0)
  272. }
  273. *Option: 15X11
  274. {
  275. *rcNameID: =15X11_DISPLAY
  276. *PrintableArea: PAIR(4860, 3960)
  277. *PrintableOrigin: PAIR(270, 0)
  278. }
  279. *Option: JAPANESE_POSTCARD
  280. {
  281. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  282. *PrintableArea: PAIR(1148, 1597)
  283. *PrintableOrigin: PAIR(142, 142)
  284. *switch: Resolution
  285. {
  286. *case: Option2
  287. {
  288. *% Warning: the following printable length is adjusted (1597->1596) so it is divisible by the resolution Y scale.
  289. *PrintableArea: PAIR(1148, 1596)
  290. }
  291. }
  292. }
  293. *Option: JAPANESE_POSTCARD_ROTATED
  294. {
  295. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  296. *PrintableArea: PAIR(1873, 916)
  297. *PrintableOrigin: PAIR(120, 142)
  298. *switch: Resolution
  299. {
  300. *case: Option2
  301. {
  302. *% Warning: the following printable width is adjusted (1873->1872) so it is divisible by the resolution X scale.
  303. *PrintableArea: PAIR(1872, 916)
  304. }
  305. }
  306. }
  307. *Option: CUSTOMSIZE
  308. {
  309. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  310. *MinSize: PAIR(1417, 1417)
  311. *MaxSize: PAIR(5159, 5954)
  312. *MaxPrintableWidth: 5159
  313. *MinLeftMargin: 50
  314. *CenterPrintable?: TRUE
  315. }
  316. }
  317. *InvalidCombination: LIST(InputBin.Option1, PaperSize.A3)
  318. *InvalidCombination: LIST(InputBin.Option1, PaperSize.A5)
  319. *InvalidCombination: LIST(InputBin.Option1, PaperSize.A5_ROTATED)
  320. *InvalidCombination: LIST(InputBin.Option1, PaperSize.A6)
  321. *InvalidCombination: LIST(InputBin.Option1, PaperSize.A6_ROTATED)
  322. *InvalidCombination: LIST(InputBin.Option1, PaperSize.10X11)
  323. *InvalidCombination: LIST(InputBin.Option1, PaperSize.15X11)
  324. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JAPANESE_POSTCARD)
  325. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JAPANESE_POSTCARD_ROTATED)
  326. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A3)
  327. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A4)
  328. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A4_ROTATED)
  329. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A5)
  330. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A5_ROTATED)
  331. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A6)
  332. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A6_ROTATED)
  333. *InvalidCombination: LIST(InputBin.Option2, PaperSize.B4)
  334. *InvalidCombination: LIST(InputBin.Option2, PaperSize.B4_JIS_ROTATED)
  335. *InvalidCombination: LIST(InputBin.Option2, PaperSize.B5)
  336. *InvalidCombination: LIST(InputBin.Option2, PaperSize.B5_JIS_ROTATED)
  337. *InvalidCombination: LIST(InputBin.Option2, PaperSize.LETTER)
  338. *InvalidCombination: LIST(InputBin.Option2, PaperSize.LEGAL)
  339. *InvalidCombination: LIST(InputBin.Option2, PaperSize.JAPANESE_POSTCARD)
  340. *InvalidCombination: LIST(InputBin.Option2, PaperSize.JAPANESE_POSTCARD_ROTATED)
  341. *InvalidCombination: LIST(InputBin.Option2, PaperSize.CUSTOMSIZE)
  342. *InvalidCombination: LIST(InputBin.MANUAL, PaperSize.10X11)
  343. *InvalidCombination: LIST(InputBin.MANUAL, PaperSize.15X11)
  344. *Feature: PrintQuality
  345. {
  346. *rcNameID: =TEXT_QUALITY_DISPLAY
  347. *DefaultOption: LETTER_QUALITY
  348. *Option: LETTER_QUALITY
  349. {
  350. *rcNameID: =LETTER_QUALITY_DISPLAY
  351. *Command: CmdSelect
  352. {
  353. *Order: DOC_SETUP.2
  354. *Cmd: "<1B>d1"
  355. }
  356. }
  357. *Option: Option2
  358. {
  359. *rcNameID: 260
  360. *Command: CmdSelect
  361. {
  362. *Order: DOC_SETUP.2
  363. *Cmd: "<1B>d0"
  364. }
  365. }
  366. }
  367. *Feature: Halftone
  368. {
  369. *rcNameID: =HALFTONING_DISPLAY
  370. *DefaultOption: HT_PATSIZE_AUTO
  371. *Option: HT_PATSIZE_AUTO
  372. {
  373. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  374. }
  375. *Option: HT_PATSIZE_SUPERCELL_M
  376. {
  377. *rcNameID: =HT_SUPERCELL_DISPLAY
  378. }
  379. *Option: HT_PATSIZE_6x6_M
  380. {
  381. *rcNameID: =HT_DITHER6X6_DISPLAY
  382. }
  383. *Option: HT_PATSIZE_8x8_M
  384. {
  385. *rcNameID: =HT_DITHER8X8_DISPLAY
  386. }
  387. }
  388. *Command: CmdStartDoc
  389. {
  390. *Order: DOC_SETUP.1
  391. *Cmd: "<1A>C<1B>H<1A>G<0D>"
  392. }
  393. *Command: CmdStartPage
  394. {
  395. *Order: PAGE_SETUP.1
  396. *Cmd: " <0D>"
  397. }
  398. *Command: CmdEndJob
  399. {
  400. *Order: JOB_FINISH.1
  401. *Cmd: "<1B>L000<1A>F<1B>A<1A>N<1B>d1"
  402. }
  403. *RotateCoordinate?: FALSE
  404. *RotateRaster?: FALSE
  405. *RotateFont?: FALSE
  406. *switch: Orientation
  407. {
  408. *case: PORTRAIT
  409. {
  410. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_RA_ABLE)
  411. }
  412. *case: LANDSCAPE_CC270
  413. {
  414. *TextCaps: LIST()
  415. }
  416. }
  417. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  418. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  419. *MaxLineSpacing: 99
  420. *XMoveThreshold: 0
  421. *XMoveUnit: 180
  422. *Command: CmdXMoveAbsolute { *Cmd : "<0D1B>F" %4d[0,2700]{max_repeat((DestX / 2) )} }
  423. *Command: CmdSetLineSpacing { *Cmd : "<1B>T" %2d[0,99]{(LinefeedSpacing / 2) } }
  424. *Command: CmdCR { *Cmd : "<0D>" }
  425. *Command: CmdLF { *Cmd : "<0A>" }
  426. *Command: CmdFF { *Cmd : "<0C>" }
  427. *% Error: no Abs or Rel YMoveCommands found. Correct it manually.
  428. *EjectPageWithFF?: TRUE
  429. *switch: PaperSize
  430. {
  431. *case: 10X11
  432. {
  433. *EjectPageWithFF?: TRUE
  434. *switch: InputBin
  435. {
  436. *case: Option2
  437. {
  438. *EjectPageWithFF?: FALSE
  439. }
  440. }
  441. }
  442. *case: 15X11
  443. {
  444. *EjectPageWithFF?: TRUE
  445. *switch: InputBin
  446. {
  447. *case: Option2
  448. {
  449. *EjectPageWithFF?: FALSE
  450. }
  451. }
  452. }
  453. *case: JAPANESE_POSTCARD
  454. {
  455. *EjectPageWithFF?: TRUE
  456. *switch: InputBin
  457. {
  458. *case: Option2
  459. {
  460. *EjectPageWithFF?: FALSE
  461. }
  462. }
  463. }
  464. *case: JAPANESE_POSTCARD_ROTATED
  465. {
  466. *EjectPageWithFF?: TRUE
  467. *switch: InputBin
  468. {
  469. *case: Option2
  470. {
  471. *EjectPageWithFF?: FALSE
  472. }
  473. }
  474. }
  475. }
  476. *OutputDataFormat: V_BYTE
  477. *OptimizeLeftBound?: FALSE
  478. *CursorXAfterSendBlockData: AT_GRXDATA_END
  479. *CursorYAfterSendBlockData: NO_MOVE
  480. *DefaultFont: 1
  481. *DefaultCTT: -256
  482. *switch: Orientation
  483. {
  484. *case: PORTRAIT
  485. {
  486. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12)
  487. }
  488. *case: LANDSCAPE_CC270
  489. {
  490. *DeviceFonts: LIST()
  491. }
  492. }
  493. *Command: CmdBoldOn { *Cmd : "<1B>!" }
  494. *Command: CmdBoldOff { *Cmd : "<1B>%"" }