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.

635 lines
16 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "CNBJC600.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Canon Bubble-Jet BJC-600"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "cnbjcres.dll"
  12. *PrinterType: SERIAL
  13. *OutputOrderReversed?: TRUE
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: AUTO
  31. *Option: MANUAL
  32. {
  33. *% Last byte of Input Bin selection command
  34. *% depends on MediaType selected.
  35. *rcNameID: =MANUAL_FEED_DISPLAY
  36. *switch: MediaType
  37. {
  38. *case: Option1
  39. {
  40. *Command: CmdSelect
  41. {
  42. *Order: DOC_SETUP.4
  43. *Cmd: "<1B>(l<02001100>"
  44. }
  45. } *% Normal
  46. *case: Option2
  47. {
  48. *Command: CmdSelect
  49. {
  50. *Order: DOC_SETUP.4
  51. *Cmd: "<1B>(l<02001110>"
  52. }
  53. } *% Coated
  54. *case: TRANSPARENCY
  55. {
  56. *Command: CmdSelect
  57. {
  58. *Order: DOC_SETUP.4
  59. *Cmd: "<1B>(l<02001120>"
  60. }
  61. } *% TRANSPARENCY
  62. *% Comment out support for Back Print Film for Beta 1.
  63. *% Callback support not implemented yet.
  64. *% *case: Option4
  65. *% {
  66. *% *Command: CmdSelect
  67. *% {
  68. *% *Order: DOC_SETUP.4
  69. *% *Cmd: "<1B>(l<02001130>"
  70. *% }
  71. *% } *% Back Print Film
  72. }
  73. }
  74. *Option: AUTO
  75. {
  76. *% Last byte of Input Bin selection command
  77. *% depends on MediaType selected.
  78. *rcNameID: =AUTO_DISPLAY
  79. *switch: MediaType
  80. {
  81. *case: Option1
  82. {
  83. *Command: CmdSelect
  84. {
  85. *Order: DOC_SETUP.4
  86. *Cmd: "<1B>(l<02001400>"
  87. }
  88. } *% Normal
  89. *case: Option2
  90. {
  91. *Command: CmdSelect
  92. {
  93. *Order: DOC_SETUP.4
  94. *Cmd: "<1B>(l<02001410>"
  95. }
  96. } *% Coated
  97. *case: TRANSPARENCY
  98. {
  99. *Command: CmdSelect
  100. {
  101. *Order: DOC_SETUP.4
  102. *Cmd: "<1B>(l<02001420>"
  103. }
  104. } *% TRANSPARENCY
  105. *% Comment out support for Back Print Film for Beta 1.
  106. *% Callback support not implemented yet.
  107. *% *case: Option4
  108. *% {
  109. *% *Command: CmdSelect
  110. *% {
  111. *% *Order: DOC_SETUP.4
  112. *% *Cmd: "<1B>(l<02001430>"
  113. *% }
  114. *% } *% Back Print Film
  115. }
  116. }
  117. }
  118. *Feature: Resolution
  119. {
  120. *rcNameID: =RESOLUTION_DISPLAY
  121. *DefaultOption: Option1
  122. *Option: Option1
  123. {
  124. *Name: "360 x 360 " =DOTS_PER_INCH
  125. *DPI: PAIR(360, 360)
  126. *TextDPI: PAIR(360, 360)
  127. *SpotDiameter: 100
  128. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  129. *Command: CmdSendBlockData { *Cmd : "<1B>(A" %l{NumOfDataBytes + 1}"K" }
  130. *Command: CmdSelect
  131. {
  132. *Order: DOC_SETUP.3
  133. *Cmd: "<1B>(d<020001>h"
  134. }
  135. }
  136. *Option: Option2
  137. {
  138. *Name: "180 x 180 " =DOTS_PER_INCH
  139. *DPI: PAIR(180, 180)
  140. *TextDPI: PAIR(180, 180)
  141. *SpotDiameter: 100
  142. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  143. *Command: CmdSendBlockData { *Cmd : "<1B>(A" %l{NumOfDataBytes + 1}"K" }
  144. *Command: CmdSelect
  145. {
  146. *Order: DOC_SETUP.3
  147. *Cmd: "<1B>(d<020000B4>"
  148. }
  149. }
  150. }
  151. *Feature: PaperSize
  152. {
  153. *rcNameID: =PAPER_SIZE_DISPLAY
  154. *DefaultOption: LETTER
  155. *Option: LETTER
  156. {
  157. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1000
  158. *PrintableArea: PAIR(5760, 7470)
  159. *PrintableOrigin: PAIR(100, 90)
  160. *switch: Resolution
  161. {
  162. *case: Option2
  163. {
  164. *PrintableArea: PAIR(5756, 7468)
  165. *PrintableOrigin: PAIR(100, 92)
  166. }
  167. }
  168. *Command: CmdSelect
  169. {
  170. *Order: DOC_SETUP.2
  171. *Cmd: "<1B>(g<0300>n<01>r"
  172. }
  173. }
  174. *Option: LEGAL
  175. {
  176. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1004
  177. *PrintableArea: PAIR(5760, 9630)
  178. *PrintableOrigin: PAIR(130, 90)
  179. *switch: Resolution
  180. {
  181. *case: Option2
  182. {
  183. *PrintableArea: PAIR(5756, 9628)
  184. *PrintableOrigin: PAIR(132, 92)
  185. }
  186. }
  187. *Command: CmdSelect
  188. {
  189. *Order: DOC_SETUP.2
  190. *Cmd: "<1B>(g<03008C01>r"
  191. }
  192. }
  193. *Option: EXECUTIVE
  194. {
  195. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1006
  196. *PrintableArea: PAIR(5010, 7110)
  197. *PrintableOrigin: PAIR(130, 90)
  198. *switch: Resolution
  199. {
  200. *case: Option2
  201. {
  202. *PrintableArea: PAIR(5008, 7108)
  203. *PrintableOrigin: PAIR(132, 92)
  204. }
  205. }
  206. *Command: CmdSelect
  207. {
  208. *Order: DOC_SETUP.2
  209. *Cmd: "<1B>(g<0300>i<01>r"
  210. }
  211. }
  212. *Option: FOLIO
  213. {
  214. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1013
  215. *PrintableArea: PAIR(5760, 8910)
  216. *PrintableOrigin: PAIR(130, 90)
  217. *switch: Resolution
  218. {
  219. *case: Option2
  220. {
  221. *PrintableArea: PAIR(5756, 8908)
  222. *PrintableOrigin: PAIR(132, 92)
  223. }
  224. }
  225. *Command: CmdSelect
  226. {
  227. *Order: DOC_SETUP.2
  228. *Cmd: "<1B>(g<03008201>r"
  229. }
  230. }
  231. *Option: A4
  232. {
  233. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1008
  234. *PrintableArea: PAIR(5744, 7967)
  235. *PrintableOrigin: PAIR(130, 90)
  236. *switch: Resolution
  237. {
  238. *case: Option1
  239. {
  240. *PrintableArea: PAIR(5744, 7966)
  241. }
  242. *case: Option2
  243. {
  244. *PrintableArea: PAIR(5740, 7964)
  245. *PrintableOrigin: PAIR(132, 92)
  246. }
  247. }
  248. *Command: CmdSelect
  249. {
  250. *Order: DOC_SETUP.2
  251. *Cmd: "<1B>(g<0300>u<01>r"
  252. }
  253. }
  254. *Option: A5
  255. {
  256. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1010
  257. *PrintableArea: PAIR(3988, 5504)
  258. *PrintableOrigin: PAIR(130, 90)
  259. *switch: Resolution
  260. {
  261. *case: Option2
  262. {
  263. *PrintableArea: PAIR(3984, 5500)
  264. *PrintableOrigin: PAIR(132, 92)
  265. }
  266. }
  267. *Command: CmdSelect
  268. {
  269. *Order: DOC_SETUP.2
  270. *Cmd: "<1B>(g<0300>S<01>r"
  271. }
  272. }
  273. *Option: B5
  274. {
  275. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1012
  276. *PrintableArea: PAIR(4952, 6836)
  277. *PrintableOrigin: PAIR(100, 90)
  278. *switch: Resolution
  279. {
  280. *case: Option2
  281. {
  282. *PrintableArea: PAIR(4948, 6832)
  283. *PrintableOrigin: PAIR(100, 92)
  284. }
  285. }
  286. *Command: CmdSelect
  287. {
  288. *Order: DOC_SETUP.2
  289. *Cmd: "<1B>(g<0300>e<01>r"
  290. }
  291. }
  292. *Option: Option9
  293. {
  294. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 261
  295. *PageDimensions: PAIR(5760, 4320)
  296. *PrintableArea: PAIR(5550, 3870)
  297. *PrintableOrigin: PAIR(130, 90)
  298. *switch: Resolution
  299. {
  300. *case: Option2
  301. {
  302. *PrintableArea: PAIR(5548, 3868)
  303. *PrintableOrigin: PAIR(132, 92)
  304. }
  305. }
  306. *Command: CmdSelect
  307. {
  308. *Order: DOC_SETUP.2
  309. *Cmd: "<1B>(g<0300>%<<01>r"
  310. }
  311. }
  312. *Option: ENV_9
  313. {
  314. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1018
  315. *RotateSize? : TRUE
  316. *PrintableArea: PAIR(5760, 2420)
  317. *PrintableOrigin: PAIR(100, 40)
  318. *switch: Resolution
  319. {
  320. *case: Option2
  321. {
  322. *PrintableArea: PAIR(5760, 2420)
  323. *PrintableOrigin: PAIR(100, 40)
  324. }
  325. }
  326. *Command: CmdSelect
  327. {
  328. *Order: DOC_SETUP.2
  329. *Cmd: "<1B>(g<0300>'<01>r"
  330. }
  331. }
  332. *Option: ENV_10
  333. {
  334. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1019
  335. *RotateSize? : TRUE
  336. *PrintableArea: PAIR(5760, 2664)
  337. *PrintableOrigin: PAIR(130, 150)
  338. *switch: Resolution
  339. {
  340. *case: Option2
  341. {
  342. *PrintableArea: PAIR(5756, 2664)
  343. *PrintableOrigin: PAIR(132, 152)
  344. }
  345. }
  346. *Command: CmdSelect
  347. {
  348. *Order: DOC_SETUP.2
  349. *Cmd: "<1B>(g<0300>)<01>r"
  350. }
  351. }
  352. *Option: ENV_DL
  353. {
  354. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1026
  355. *RotateSize? : TRUE
  356. *PrintableArea: PAIR(5760, 2808)
  357. *PrintableOrigin: PAIR(130, 150)
  358. *switch: Resolution
  359. {
  360. *case: Option2
  361. {
  362. *PrintableArea: PAIR(5756, 2808)
  363. *PrintableOrigin: PAIR(132, 152)
  364. }
  365. }
  366. *Command: CmdSelect
  367. {
  368. *Order: DOC_SETUP.2
  369. *Cmd: "<1B>(g<0300>+<01>r"
  370. }
  371. }
  372. *Option: ENV_C5
  373. {
  374. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1027
  375. *RotateSize? : TRUE
  376. *PrintableArea: PAIR(5760, 4216)
  377. *PrintableOrigin: PAIR(100, 100)
  378. *switch: Resolution
  379. {
  380. *case: Option2
  381. {
  382. *PrintableArea: PAIR(5756, 4216)
  383. *PrintableOrigin: PAIR(100, 100)
  384. }
  385. }
  386. *Command: CmdSelect
  387. {
  388. *Order: DOC_SETUP.2
  389. *Cmd: "<1B>(g<0300>@<01>r"
  390. }
  391. }
  392. *Option: ENV_MONARCH
  393. {
  394. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1036
  395. *RotateSize? : TRUE
  396. *PrintableArea: PAIR(5030, 2344)
  397. *PrintableOrigin: PAIR(130, 90)
  398. *switch: Resolution
  399. {
  400. *case: Option2
  401. {
  402. *PrintableArea: PAIR(5028, 2340)
  403. *PrintableOrigin: PAIR(132, 92)
  404. }
  405. }
  406. *Command: CmdSelect
  407. {
  408. *Order: DOC_SETUP.2
  409. *Cmd: "<1B>(g<0300>'<01>r"
  410. }
  411. }
  412. *Option: CUSTOMSIZE
  413. {
  414. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1255
  415. *MinSize: PAIR(2520, 2520)
  416. *MaxSize: PAIR(6480, 15840)
  417. *MaxPrintableWidth: 5760
  418. *MinLeftMargin: 130
  419. *CenterPrintable?: FALSE
  420. *TopMargin: 90
  421. *BottomMargin: 360
  422. *Command: CmdSelect
  423. {
  424. *Order: DOC_SETUP.2
  425. *Cmd: "<1B>(g<0300>" %c{(PhysPaperLength / 72) }"<01>r"
  426. }
  427. }
  428. }
  429. *Feature: MediaType
  430. {
  431. *rcNameID: =MEDIA_TYPE_DISPLAY
  432. *DefaultOption: Option1
  433. *Option: Option1
  434. {
  435. *rcNameID: 262
  436. *switch: TextQuality
  437. {
  438. *case: Option1 {*Command: CmdSelect { *Order: DOC_SETUP.6
  439. *Cmd: "<00>"} } *% Normal
  440. *case: Option2 {*Command: CmdSelect { *Order: DOC_SETUP.6
  441. *Cmd: "<01>"} } *% High Quality
  442. *case: Option3 {*Command: CmdSelect { *Order: DOC_SETUP.6
  443. *Cmd: "<02>"} } *% Draft Quality
  444. }
  445. }
  446. *Option: Option2
  447. {
  448. *rcNameID: 263
  449. *switch: TextQuality
  450. {
  451. *case: Option1 {*Command: CmdSelect { *Order: DOC_SETUP.6
  452. *Cmd: "<10>"} } *% Normal
  453. *case: Option2 {*Command: CmdSelect { *Order: DOC_SETUP.6
  454. *Cmd: "<11>"} } *% High Quality
  455. *case: Option3 {*Command: CmdSelect { *Order: DOC_SETUP.6
  456. *Cmd: "<12>"} } *% Draft Quality
  457. }
  458. }
  459. *Option: TRANSPARENCY
  460. {
  461. *rcNameID: =TRANSPARENCY_DISPLAY
  462. *switch: TextQuality
  463. {
  464. *case: Option1 {*Command: CmdSelect { *Order: DOC_SETUP.6
  465. *Cmd: "<20>"} } *% Normal
  466. *case: Option2 {*Command: CmdSelect { *Order: DOC_SETUP.6
  467. *Cmd: "<21>"} } *% High Quality
  468. *case: Option3 {*Command: CmdSelect { *Order: DOC_SETUP.6
  469. *Cmd: "<22>"} } *% Draft Quality
  470. }
  471. }
  472. *% Comment out support for Back Print Film for Beta 1.
  473. *% Callback support not implemented yet.
  474. *% *Option: Option4
  475. *% {
  476. *% *rcNameID: 269
  477. *% *switch: TextQuality
  478. *% {
  479. *% *case: Option1 {*Command: CmdSelect { *Order: DOC_SETUP.6
  480. *% *Cmd: "<30>"} } *% Normal
  481. *% *case: Option2 {*Command: CmdSelect { *Order: DOC_SETUP.6
  482. *% *Cmd: "<31>"} } *% High Quality
  483. *% *case: Option3 {*Command: CmdSelect { *Order: DOC_SETUP.6
  484. *% *Cmd: "<32>"} } *% Draft Quality
  485. *% }
  486. *% }
  487. }
  488. *Feature: TextQuality
  489. {
  490. *rcNameID: =TEXT_QUALITY_DISPLAY
  491. *DefaultOption: Option1
  492. *Option: Option1
  493. {
  494. *rcNameID: 262
  495. }
  496. *Option: Option2
  497. {
  498. *rcNameID: 276
  499. }
  500. *Option: Option3
  501. {
  502. *rcNameID: 277
  503. }
  504. }
  505. *Feature: ImageControl
  506. {
  507. *rcNameID: =IMAGECONTROL_DISPLAY
  508. *DefaultOption: Option1
  509. *Option: Option1
  510. {
  511. *rcNameID: 262
  512. *Command: CmdSelect
  513. {
  514. *Order: DOC_SETUP.7
  515. *Cmd: "<00>"
  516. }
  517. }
  518. *Option: Option2
  519. {
  520. *rcNameID: 280
  521. *Command: CmdSelect
  522. {
  523. *Order: DOC_SETUP.7
  524. *Cmd: "<10>"
  525. }
  526. *Constraints: TextQuality.Option2
  527. }
  528. }
  529. *Feature: ColorMode
  530. {
  531. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  532. *DefaultOption: Color
  533. *Option: Mono
  534. {
  535. *rcNameID: =MONO_DISPLAY
  536. *DevNumOfPlanes: 1
  537. *DevBPP: 1
  538. *Color?: FALSE
  539. *Command: CmdSelect
  540. {
  541. *Order: DOC_SETUP.5
  542. *Cmd: "<1B>(c<030011>"
  543. }
  544. }
  545. *Option: Color
  546. {
  547. *rcNameID: =COLOR_DISPLAY
  548. *DevNumOfPlanes: 4
  549. *DevBPP: 1
  550. *DrvBPP: 4
  551. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  552. *Command: CmdSelect
  553. {
  554. *Order: DOC_SETUP.5
  555. *Cmd: "<1B>(c<030010>"
  556. }
  557. *Command: CmdSendYellowData { *Cmd : "<1B>(A" %l{NumOfDataBytes + 1}"Y" }
  558. *Command: CmdSendMagentaData { *Cmd : "<0D1B>(A" %l{NumOfDataBytes + 1}"M" }
  559. *Command: CmdSendCyanData { *Cmd : "<0D1B>(A" %l{NumOfDataBytes + 1}"C" }
  560. *Command: CmdSendBlackData { *Cmd : "<0D1B>(A" %l{NumOfDataBytes + 1}"K" }
  561. }
  562. }
  563. *Feature: Halftone
  564. {
  565. *rcNameID: =HALFTONING_DISPLAY
  566. *DefaultOption: HT_PATSIZE_AUTO
  567. *Option: HT_PATSIZE_AUTO
  568. {
  569. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  570. }
  571. *Ifdef: WINNT_50
  572. *Option: HT_PATSIZE_SUPERCELL_M
  573. {
  574. *rcNameID: =HT_SUPERCELL_DISPLAY
  575. }
  576. *Endif:
  577. *Option: HT_PATSIZE_6x6_M
  578. {
  579. *rcNameID: =HT_DITHER6X6_DISPLAY
  580. }
  581. *Option: HT_PATSIZE_8x8_M
  582. {
  583. *rcNameID: =HT_DITHER8X8_DISPLAY
  584. }
  585. }
  586. *Command: CmdStartDoc
  587. {
  588. *Order: DOC_SETUP.1
  589. *Cmd: "<1B>[K<0200000F1B>(a<010001>"
  590. }
  591. *Command: CmdEndJob
  592. {
  593. *Order: JOB_FINISH.1
  594. *Cmd: "<1B>(b<0100001B>(a<0100001B>(b<0100001B>@"
  595. }
  596. *RotateCoordinate?: FALSE
  597. *RotateRaster?: FALSE
  598. *RotateFont?: FALSE
  599. *TextCaps: LIST(TC_RA_ABLE)
  600. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  601. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,X_LANDSCAPE)
  602. *YMoveThreshold: *
  603. *switch: Resolution
  604. {
  605. *case: Option1
  606. {
  607. *YMoveUnit: 360
  608. *Command: CmdYMoveRelDown
  609. {
  610. *Cmd: "<1B>(e<0200>" %m{DestYRel / 2 }
  611. }
  612. }
  613. *case: Option2
  614. {
  615. *YMoveUnit: 180
  616. *Command: CmdYMoveRelDown
  617. {
  618. *Cmd: "<1B>(e<0200>" %m{DestYRel / 4 }
  619. }
  620. }
  621. }
  622. *Command: CmdCR { *Cmd : "<0D>" }
  623. *Command: CmdLF { *Cmd : "<0A>" }
  624. *Command: CmdFF { *Cmd : "<0C>" }
  625. *EjectPageWithFF?: TRUE
  626. *OutputDataFormat: H_BYTE
  627. *OptimizeLeftBound?: FALSE
  628. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  629. *CursorYAfterSendBlockData: NO_MOVE
  630. *Command: CmdEnableTIFF4 { *Cmd : "<1B>(b<010001>" }
  631. *Command: CmdDisableCompression { *Cmd : "<1B>(b<010000>" }