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.

641 lines
18 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "CTPD9X.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Citizen Prodot 9x"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "ct9res.dll"
  12. *PrintRate: 192
  13. *PrintRateUnit: CPS
  14. *PrinterType: SERIAL
  15. *Feature: Orientation
  16. {
  17. *rcNameID: =ORIENTATION_DISPLAY
  18. *DefaultOption: PORTRAIT
  19. *Option: PORTRAIT
  20. {
  21. *rcNameID: =PORTRAIT_DISPLAY
  22. }
  23. *Option: LANDSCAPE_CC270
  24. {
  25. *rcNameID: =LANDSCAPE_DISPLAY
  26. }
  27. }
  28. *Feature: InputBin
  29. {
  30. *rcNameID: =PAPER_SOURCE_DISPLAY
  31. *DefaultOption: TRACTOR
  32. *Option: TRACTOR
  33. {
  34. *rcNameID: =TRACTOR_DISPLAY
  35. *Command: CmdSelect
  36. {
  37. *Order: DOC_SETUP.7
  38. *Cmd: "<1B1900>"
  39. }
  40. }
  41. *Option: Option2
  42. {
  43. *rcNameID: 258
  44. *Command: CmdSelect
  45. {
  46. *Order: DOC_SETUP.7
  47. *Cmd: "<1B1900>"
  48. }
  49. }
  50. *Option: MANUAL
  51. {
  52. *rcNameID: =MANUAL_FEED_DISPLAY
  53. *Command: CmdSelect
  54. {
  55. *Order: DOC_SETUP.7
  56. *Cmd: "<1B1900>"
  57. }
  58. }
  59. }
  60. *Feature: Resolution
  61. {
  62. *rcNameID: =RESOLUTION_DISPLAY
  63. *DefaultOption: Option1
  64. *Option: Option1
  65. {
  66. *Name: "120 x 144 " =DOTS_PER_INCH
  67. *DPI: PAIR(120, 144)
  68. *TextDPI: PAIR(120, 144)
  69. *PinsPerLogPass: 16
  70. *PinsPerPhysPass: 8
  71. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  72. *SpotDiameter: 140
  73. *Command: CmdSendBlockData { *Cmd : "<1B>*<01>" %l{NumOfDataBytes} }
  74. }
  75. *Option: Option2
  76. {
  77. *Name: "240 x 144 " =DOTS_PER_INCH
  78. *DPI: PAIR(240, 144)
  79. *TextDPI: PAIR(240, 144)
  80. *PinsPerLogPass: 16
  81. *PinsPerPhysPass: 8
  82. *MinStripBlankPixels: 240
  83. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  84. *SpotDiameter: 170
  85. *Command: CmdSendBlockData { *Cmd : "<1B>*<03>" %l{NumOfDataBytes} }
  86. }
  87. *Option: Option3
  88. {
  89. *Name: "120 x 72 " =DOTS_PER_INCH
  90. *DPI: PAIR(120, 72)
  91. *TextDPI: PAIR(120, 72)
  92. *PinsPerLogPass: 8
  93. *PinsPerPhysPass: 8
  94. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  95. *SpotDiameter: 100
  96. *Command: CmdSendBlockData { *Cmd : "<1B>*<02>" %l{NumOfDataBytes} }
  97. }
  98. }
  99. *Feature: PaperSize
  100. {
  101. *rcNameID: =PAPER_SIZE_DISPLAY
  102. *DefaultOption: LETTER
  103. *Option: LETTER
  104. {
  105. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  106. *Command: CmdSelect
  107. {
  108. *Order: DOC_SETUP.8
  109. *Cmd: "<1B>C<000B>"
  110. }
  111. *switch: InputBin
  112. {
  113. *case: TRACTOR
  114. {
  115. *PrintableArea: PAIR(6120, 4374)
  116. *PrintableOrigin: PAIR(0, 378)
  117. }
  118. *case: Option2
  119. {
  120. *PrintableArea: PAIR(6120, 4752)
  121. *PrintableOrigin: PAIR(0, 0)
  122. }
  123. *case: MANUAL
  124. {
  125. *PrintableArea: PAIR(6120, 4320)
  126. *PrintableOrigin: PAIR(0, 324)
  127. }
  128. }
  129. }
  130. *Option: LEGAL
  131. {
  132. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  133. *Command: CmdSelect
  134. {
  135. *Order: DOC_SETUP.8
  136. *Cmd: "<1B>C<000E>"
  137. }
  138. *switch: InputBin
  139. {
  140. *case: TRACTOR
  141. {
  142. *PrintableArea: PAIR(6120, 5670)
  143. *PrintableOrigin: PAIR(0, 378)
  144. }
  145. *case: Option2
  146. {
  147. *PrintableArea: PAIR(6120, 6048)
  148. *PrintableOrigin: PAIR(0, 0)
  149. }
  150. *case: MANUAL
  151. {
  152. *PrintableArea: PAIR(6120, 5616)
  153. *PrintableOrigin: PAIR(0, 324)
  154. }
  155. }
  156. }
  157. *Option: TABLOID
  158. {
  159. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  160. *Command: CmdSelect
  161. {
  162. *Order: DOC_SETUP.8
  163. *Cmd: "<1B>C<0011>"
  164. }
  165. *switch: InputBin
  166. {
  167. *case: TRACTOR
  168. {
  169. *PrintableArea: PAIR(7920, 6966)
  170. *PrintableOrigin: PAIR(0, 378)
  171. }
  172. *case: Option2
  173. {
  174. *PrintableArea: PAIR(7920, 7344)
  175. *PrintableOrigin: PAIR(0, 0)
  176. }
  177. *case: MANUAL
  178. {
  179. *PrintableArea: PAIR(7920, 6912)
  180. *PrintableOrigin: PAIR(0, 324)
  181. }
  182. }
  183. }
  184. *Option: A3
  185. {
  186. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  187. *Command: CmdSelect
  188. {
  189. *Order: DOC_SETUP.8
  190. *Cmd: "<1B>3<1D1B>C{"
  191. }
  192. *switch: InputBin
  193. {
  194. *case: TRACTOR
  195. {
  196. *PrintableArea: PAIR(8417, 6767)
  197. *PrintableOrigin: PAIR(0, 378)
  198. *switch: Resolution
  199. {
  200. *case: Option1
  201. {
  202. *PrintableArea: PAIR(8412, 6765)
  203. }
  204. *case: Option2
  205. {
  206. *PrintableArea: PAIR(8415, 6765)
  207. }
  208. *case: Option3
  209. {
  210. *PrintableArea: PAIR(8412, 6762)
  211. }
  212. }
  213. }
  214. *case: Option2
  215. {
  216. *PrintableArea: PAIR(8417, 7145)
  217. *PrintableOrigin: PAIR(0, 0)
  218. *switch: Resolution
  219. {
  220. *case: Option1
  221. {
  222. *PrintableArea: PAIR(8412, 7143)
  223. }
  224. *case: Option2
  225. {
  226. *PrintableArea: PAIR(8415, 7143)
  227. }
  228. *case: Option3
  229. {
  230. *PrintableArea: PAIR(8412, 7140)
  231. }
  232. }
  233. }
  234. *case: MANUAL
  235. {
  236. *PrintableArea: PAIR(8417, 6713)
  237. *PrintableOrigin: PAIR(0, 324)
  238. *switch: Resolution
  239. {
  240. *case: Option1
  241. {
  242. *PrintableArea: PAIR(8412, 6711)
  243. }
  244. *case: Option2
  245. {
  246. *PrintableArea: PAIR(8415, 6711)
  247. }
  248. *case: Option3
  249. {
  250. *PrintableArea: PAIR(8412, 6708)
  251. }
  252. }
  253. }
  254. }
  255. }
  256. *Option: FANFOLD_STD_GERMAN
  257. {
  258. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  259. *Command: CmdSelect
  260. {
  261. *Order: DOC_SETUP.8
  262. *Cmd: "<1B>C<000C>"
  263. }
  264. *switch: InputBin
  265. {
  266. *case: TRACTOR
  267. {
  268. *PrintableArea: PAIR(6120, 4806)
  269. *PrintableOrigin: PAIR(0, 378)
  270. }
  271. *case: Option2
  272. {
  273. *PrintableArea: PAIR(6120, 5184)
  274. *PrintableOrigin: PAIR(0, 0)
  275. }
  276. *case: MANUAL
  277. {
  278. *PrintableArea: PAIR(6120, 4752)
  279. *PrintableOrigin: PAIR(0, 324)
  280. }
  281. }
  282. }
  283. *Option: FANFOLD_US
  284. {
  285. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  286. *Command: CmdSelect
  287. {
  288. *Order: DOC_SETUP.8
  289. *Cmd: "<1B>C<000B>"
  290. }
  291. *switch: InputBin
  292. {
  293. *case: TRACTOR
  294. {
  295. *PrintableArea: PAIR(9792, 4374)
  296. *PrintableOrigin: PAIR(0, 378)
  297. }
  298. *case: Option2
  299. {
  300. *PrintableArea: PAIR(9792, 4752)
  301. *PrintableOrigin: PAIR(0, 0)
  302. }
  303. *case: MANUAL
  304. {
  305. *PrintableArea: PAIR(9792, 4320)
  306. *PrintableOrigin: PAIR(0, 324)
  307. }
  308. }
  309. }
  310. *Option: A4
  311. {
  312. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  313. *Command: CmdSelect
  314. {
  315. *Order: DOC_SETUP.8
  316. *Cmd: "<1B>3<141B>C~"
  317. }
  318. *switch: InputBin
  319. {
  320. *case: TRACTOR
  321. {
  322. *PrintableArea: PAIR(5954, 4672)
  323. *PrintableOrigin: PAIR(0, 378)
  324. *switch: Resolution
  325. {
  326. *case: Option1
  327. {
  328. *PrintableArea: PAIR(5952, 4671)
  329. }
  330. *case: Option2
  331. {
  332. *PrintableArea: PAIR(5952, 4671)
  333. }
  334. *case: Option3
  335. {
  336. *PrintableArea: PAIR(5952, 4668)
  337. }
  338. }
  339. }
  340. *case: Option2
  341. {
  342. *PrintableArea: PAIR(5954, 5050)
  343. *PrintableOrigin: PAIR(0, 0)
  344. *switch: Resolution
  345. {
  346. *case: Option1
  347. {
  348. *PrintableArea: PAIR(5952, 5049)
  349. }
  350. *case: Option2
  351. {
  352. *PrintableArea: PAIR(5952, 5049)
  353. }
  354. *case: Option3
  355. {
  356. *PrintableArea: PAIR(5952, 5046)
  357. }
  358. }
  359. }
  360. *case: MANUAL
  361. {
  362. *PrintableArea: PAIR(5954, 4618)
  363. *PrintableOrigin: PAIR(0, 324)
  364. *switch: Resolution
  365. {
  366. *case: Option1
  367. {
  368. *PrintableArea: PAIR(5952, 4617)
  369. }
  370. *case: Option2
  371. {
  372. *PrintableArea: PAIR(5952, 4617)
  373. }
  374. *case: Option3
  375. {
  376. *PrintableArea: PAIR(5952, 4614)
  377. }
  378. }
  379. }
  380. }
  381. }
  382. *Option: A5
  383. {
  384. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  385. *Command: CmdSelect
  386. {
  387. *Order: DOC_SETUP.8
  388. *Cmd: "<1B>3<0F1B>Cw"
  389. }
  390. *switch: InputBin
  391. {
  392. *case: TRACTOR
  393. {
  394. *PrintableArea: PAIR(4198, 3195)
  395. *PrintableOrigin: PAIR(0, 378)
  396. *switch: Resolution
  397. {
  398. *case: Option1
  399. {
  400. *PrintableArea: PAIR(4194, 3195)
  401. }
  402. *case: Option2
  403. {
  404. *PrintableArea: PAIR(4197, 3195)
  405. }
  406. *case: Option3
  407. {
  408. *PrintableArea: PAIR(4194, 3192)
  409. }
  410. }
  411. }
  412. *case: Option2
  413. {
  414. *PrintableArea: PAIR(4198, 3573)
  415. *PrintableOrigin: PAIR(0, 0)
  416. *switch: Resolution
  417. {
  418. *case: Option1
  419. {
  420. *PrintableArea: PAIR(4194, 3573)
  421. }
  422. *case: Option2
  423. {
  424. *PrintableArea: PAIR(4197, 3573)
  425. }
  426. *case: Option3
  427. {
  428. *PrintableArea: PAIR(4194, 3570)
  429. }
  430. }
  431. }
  432. *case: MANUAL
  433. {
  434. *PrintableArea: PAIR(4198, 3141)
  435. *PrintableOrigin: PAIR(0, 324)
  436. *switch: Resolution
  437. {
  438. *case: Option1
  439. {
  440. *PrintableArea: PAIR(4194, 3141)
  441. }
  442. *case: Option2
  443. {
  444. *PrintableArea: PAIR(4197, 3141)
  445. }
  446. *case: Option3
  447. {
  448. *PrintableArea: PAIR(4194, 3138)
  449. }
  450. }
  451. }
  452. }
  453. }
  454. *Option: CUSTOMSIZE
  455. {
  456. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  457. *MinSize: PAIR(720, 432)
  458. *MaxSize: PAIR(9792, 9504)
  459. *MaxPrintableWidth: 9792
  460. *MinLeftMargin: 0
  461. *CenterPrintable?: FALSE
  462. *switch: InputBin
  463. {
  464. *case: TRACTOR
  465. {
  466. *TopMargin: 378
  467. *BottomMargin: 0
  468. }
  469. *case: Option2
  470. {
  471. *TopMargin: 0
  472. *BottomMargin: 0
  473. }
  474. *case: MANUAL
  475. {
  476. *TopMargin: 324
  477. *BottomMargin: 108
  478. }
  479. }
  480. }
  481. }
  482. *Feature: PrintQuality
  483. {
  484. *rcNameID: =TEXT_QUALITY_DISPLAY
  485. *DefaultOption: NEAR_LETTER_QUALITY
  486. *Option: NEAR_LETTER_QUALITY
  487. {
  488. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  489. *Command: CmdSelect
  490. {
  491. *Order: DOC_SETUP.6
  492. *Cmd: "<1B>x<01>"
  493. }
  494. }
  495. *Option: DRAFT_QUALITY
  496. {
  497. *rcNameID: =DRAFT_QUALITY_DISPLAY
  498. *Command: CmdSelect
  499. {
  500. *Order: DOC_SETUP.6
  501. *Cmd: "<1B>x<00>"
  502. }
  503. }
  504. }
  505. *Feature: ColorMode
  506. {
  507. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  508. *DefaultOption: Color
  509. *Option: Mono
  510. {
  511. *rcNameID: =MONO_DISPLAY
  512. *DevNumOfPlanes: 1
  513. *DevBPP: 1
  514. *Color? : FALSE
  515. }
  516. *Option: Color
  517. {
  518. *rcNameID: =COLOR_DISPLAY
  519. *DevNumOfPlanes: 4
  520. *DevBPP: 1
  521. *DrvBPP: 4
  522. EXTERN_GLOBAL: *UseExpColorSelectCmd? : TRUE
  523. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  524. *Command: CmdSendYellowData { *Cmd : "<1B>r<04>" }
  525. *Command: CmdSendMagentaData { *Cmd : "<1B>r<01>" }
  526. *Command: CmdSendCyanData { *Cmd : "<1B>r<02>" }
  527. *Command: CmdSendBlackData { *Cmd : "<1B>r<00>" }
  528. *Command: CmdSelectBlackColor { *Cmd : "<1B>r<00>" }
  529. *Command: CmdSelectRedColor { *Cmd : "<1B>r<01>" }
  530. *Command: CmdSelectGreenColor { *Cmd : "<1B>r<06>" }
  531. *Command: CmdSelectYellowColor { *Cmd : "<1B>r<04>" }
  532. *Command: CmdSelectBlueColor { *Cmd : "<1B>r<02>" }
  533. *Command: CmdSelectMagentaColor { *Cmd : "<1B>r<01>" }
  534. *Command: CmdSelectCyanColor { *Cmd : "<1B>r<02>" }
  535. }
  536. }
  537. *Feature: Halftone
  538. {
  539. *rcNameID: =HALFTONING_DISPLAY
  540. *DefaultOption: HT_PATSIZE_AUTO
  541. *Option: HT_PATSIZE_AUTO
  542. {
  543. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  544. }
  545. *Ifdef: WINNT_50
  546. *Option: HT_PATSIZE_SUPERCELL_M
  547. {
  548. *rcNameID: =HT_SUPERCELL_DISPLAY
  549. }
  550. *Endif:
  551. *Option: HT_PATSIZE_6x6_M
  552. {
  553. *rcNameID: =HT_DITHER6X6_DISPLAY
  554. }
  555. *Option: HT_PATSIZE_8x8_M
  556. {
  557. *rcNameID: =HT_DITHER8X8_DISPLAY
  558. }
  559. }
  560. *Command: CmdStartDoc
  561. {
  562. *Order: DOC_SETUP.1
  563. *Cmd: "<1B>6<1B>t<011B>R<00>"
  564. }
  565. *Command: CmdEndJob
  566. {
  567. *Order: JOB_FINISH.1
  568. *Cmd: "<1B>@"
  569. }
  570. *RotateCoordinate?: FALSE
  571. *RotateRaster?: FALSE
  572. *RotateFont?: FALSE
  573. *switch: Orientation
  574. {
  575. *case: PORTRAIT
  576. {
  577. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  578. }
  579. *case: LANDSCAPE_CC270
  580. {
  581. *TextCaps: LIST(TC_RA_ABLE)
  582. }
  583. }
  584. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  585. *MaxLineSpacing: 255
  586. *XMoveThreshold: 0
  587. *YMoveThreshold: *
  588. *XMoveUnit: 60
  589. *YMoveUnit: 216
  590. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,816]{max_repeat((DestX / 12) )} }
  591. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  592. *Command: CmdYMoveRelUp { *Cmd : "<1B>j" %c[0,255]{max_repeat((DestYRel / 2) )} }
  593. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  594. *Command: CmdCR { *Cmd : "<0D>" }
  595. *Command: CmdLF { *Cmd : "<0A>" }
  596. *Command: CmdFF { *Cmd : "<0C>" }
  597. *Command: CmdBackSpace { *Cmd : "<08>" }
  598. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  599. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  600. *EjectPageWithFF?: TRUE
  601. *switch: PaperSize
  602. {
  603. *case: CUSTOMSIZE
  604. {
  605. *EjectPageWithFF?: FALSE
  606. *switch: InputBin
  607. {
  608. *case: MANUAL
  609. {
  610. *EjectPageWithFF?: TRUE
  611. }
  612. }
  613. }
  614. }
  615. *OutputDataFormat: V_BYTE
  616. *OptimizeLeftBound?: TRUE
  617. *CursorXAfterSendBlockData: AT_GRXDATA_END
  618. *CursorYAfterSendBlockData: NO_MOVE
  619. *DefaultFont: 30
  620. *DefaultCTT: 1
  621. *switch: Orientation
  622. {
  623. *case: PORTRAIT
  624. {
  625. *DeviceFonts: LIST(25,26,27,28,29,30,31,32,33,34,35,49,50,51,52,53,
  626. + 54,55,56,57,58,59,61,62,63,64,65,66,67,68,69,70,
  627. + 71,72,73,87)
  628. }
  629. *case: LANDSCAPE_CC270
  630. {
  631. *DeviceFonts: LIST()
  632. }
  633. }
  634. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  635. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  636. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  637. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  638. *Command: CmdUnderlineOn { *Cmd : "<1B>-1" }
  639. *Command: CmdUnderlineOff { *Cmd : "<1B>-0" }
  640. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p1" }
  641. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p0" }