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.

588 lines
16 KiB

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