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.

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