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.

482 lines
13 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "CT120DP.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Citizen 120D+"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "ct9res.dll"
  12. *PrintRate: 144
  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(5760, 4374)
  116. *PrintableOrigin: PAIR(180, 378)
  117. }
  118. *case: Option2
  119. {
  120. *PrintableArea: PAIR(5760, 4752)
  121. *PrintableOrigin: PAIR(180, 0)
  122. }
  123. *case: MANUAL
  124. {
  125. *PrintableArea: PAIR(5760, 4320)
  126. *PrintableOrigin: PAIR(180, 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(5760, 5670)
  143. *PrintableOrigin: PAIR(180, 378)
  144. }
  145. *case: Option2
  146. {
  147. *PrintableArea: PAIR(5760, 6048)
  148. *PrintableOrigin: PAIR(180, 0)
  149. }
  150. *case: MANUAL
  151. {
  152. *PrintableArea: PAIR(5760, 5616)
  153. *PrintableOrigin: PAIR(180, 324)
  154. }
  155. }
  156. }
  157. *Option: FANFOLD_STD_GERMAN
  158. {
  159. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  160. *Command: CmdSelect
  161. {
  162. *Order: DOC_SETUP.8
  163. *Cmd: "<1B>C<000C>"
  164. }
  165. *switch: InputBin
  166. {
  167. *case: TRACTOR
  168. {
  169. *PrintableArea: PAIR(5760, 4806)
  170. *PrintableOrigin: PAIR(180, 378)
  171. }
  172. *case: Option2
  173. {
  174. *PrintableArea: PAIR(5760, 5184)
  175. *PrintableOrigin: PAIR(180, 0)
  176. }
  177. *case: MANUAL
  178. {
  179. *PrintableArea: PAIR(5760, 4752)
  180. *PrintableOrigin: PAIR(180, 324)
  181. }
  182. }
  183. }
  184. *Option: A4
  185. {
  186. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  187. *Command: CmdSelect
  188. {
  189. *Order: DOC_SETUP.8
  190. *Cmd: "<1B>3<141B>C~"
  191. }
  192. *switch: InputBin
  193. {
  194. *case: TRACTOR
  195. {
  196. *PrintableArea: PAIR(5760, 4672)
  197. *PrintableOrigin: PAIR(180, 378)
  198. *switch: Resolution
  199. {
  200. *case: Option1
  201. {
  202. *PrintableArea: PAIR(5760, 4671)
  203. }
  204. *case: Option2
  205. {
  206. *PrintableArea: PAIR(5760, 4671)
  207. }
  208. *case: Option3
  209. {
  210. *PrintableArea: PAIR(5760, 4668)
  211. }
  212. }
  213. }
  214. *case: Option2
  215. {
  216. *PrintableArea: PAIR(5760, 5050)
  217. *PrintableOrigin: PAIR(180, 0)
  218. *switch: Resolution
  219. {
  220. *case: Option1
  221. {
  222. *PrintableArea: PAIR(5760, 5049)
  223. }
  224. *case: Option2
  225. {
  226. *PrintableArea: PAIR(5760, 5049)
  227. }
  228. *case: Option3
  229. {
  230. *PrintableArea: PAIR(5760, 5046)
  231. }
  232. }
  233. }
  234. *case: MANUAL
  235. {
  236. *PrintableArea: PAIR(5760, 4618)
  237. *PrintableOrigin: PAIR(180, 324)
  238. *switch: Resolution
  239. {
  240. *case: Option1
  241. {
  242. *PrintableArea: PAIR(5760, 4617)
  243. }
  244. *case: Option2
  245. {
  246. *PrintableArea: PAIR(5760, 4617)
  247. }
  248. *case: Option3
  249. {
  250. *PrintableArea: PAIR(5760, 4614)
  251. }
  252. }
  253. }
  254. }
  255. }
  256. *Option: A5
  257. {
  258. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  259. *Command: CmdSelect
  260. {
  261. *Order: DOC_SETUP.8
  262. *Cmd: "<1B>3<0F1B>Cw"
  263. }
  264. *switch: InputBin
  265. {
  266. *case: TRACTOR
  267. {
  268. *PrintableArea: PAIR(4018, 3195)
  269. *PrintableOrigin: PAIR(180, 378)
  270. *switch: Resolution
  271. {
  272. *case: Option1
  273. {
  274. *PrintableArea: PAIR(4014, 3195)
  275. }
  276. *case: Option2
  277. {
  278. *PrintableArea: PAIR(4017, 3195)
  279. }
  280. *case: Option3
  281. {
  282. *PrintableArea: PAIR(4014, 3192)
  283. }
  284. }
  285. }
  286. *case: Option2
  287. {
  288. *PrintableArea: PAIR(4018, 3573)
  289. *PrintableOrigin: PAIR(180, 0)
  290. *switch: Resolution
  291. {
  292. *case: Option1
  293. {
  294. *PrintableArea: PAIR(4014, 3573)
  295. }
  296. *case: Option2
  297. {
  298. *PrintableArea: PAIR(4017, 3573)
  299. }
  300. *case: Option3
  301. {
  302. *PrintableArea: PAIR(4014, 3570)
  303. }
  304. }
  305. }
  306. *case: MANUAL
  307. {
  308. *PrintableArea: PAIR(4018, 3141)
  309. *PrintableOrigin: PAIR(180, 324)
  310. *switch: Resolution
  311. {
  312. *case: Option1
  313. {
  314. *PrintableArea: PAIR(4014, 3141)
  315. }
  316. *case: Option2
  317. {
  318. *PrintableArea: PAIR(4017, 3141)
  319. }
  320. *case: Option3
  321. {
  322. *PrintableArea: PAIR(4014, 3138)
  323. }
  324. }
  325. }
  326. }
  327. }
  328. *Option: CUSTOMSIZE
  329. {
  330. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  331. *MinSize: PAIR(720, 432)
  332. *MaxSize: PAIR(6120, 9504)
  333. *MaxPrintableWidth: 5760
  334. *MinLeftMargin: 180
  335. *CenterPrintable?: FALSE
  336. *switch: InputBin
  337. {
  338. *case: TRACTOR
  339. {
  340. *TopMargin: 378
  341. *BottomMargin: 0
  342. }
  343. *case: Option2
  344. {
  345. *TopMargin: 0
  346. *BottomMargin: 0
  347. }
  348. *case: MANUAL
  349. {
  350. *TopMargin: 324
  351. *BottomMargin: 108
  352. }
  353. }
  354. }
  355. }
  356. *Feature: PrintQuality
  357. {
  358. *rcNameID: =TEXT_QUALITY_DISPLAY
  359. *DefaultOption: NEAR_LETTER_QUALITY
  360. *Option: NEAR_LETTER_QUALITY
  361. {
  362. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  363. *Command: CmdSelect
  364. {
  365. *Order: DOC_SETUP.6
  366. *Cmd: "<1B>x<01>"
  367. }
  368. }
  369. *Option: DRAFT_QUALITY
  370. {
  371. *rcNameID: =DRAFT_QUALITY_DISPLAY
  372. *Command: CmdSelect
  373. {
  374. *Order: DOC_SETUP.6
  375. *Cmd: "<1B>x<00>"
  376. }
  377. }
  378. }
  379. *Feature: Halftone
  380. {
  381. *rcNameID: =HALFTONING_DISPLAY
  382. *DefaultOption: HT_PATSIZE_AUTO
  383. *Option: HT_PATSIZE_AUTO
  384. {
  385. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  386. }
  387. *Ifdef: WINNT_50
  388. *Option: HT_PATSIZE_SUPERCELL_M
  389. {
  390. *rcNameID: =HT_SUPERCELL_DISPLAY
  391. }
  392. *Endif:
  393. *Option: HT_PATSIZE_6x6_M
  394. {
  395. *rcNameID: =HT_DITHER6X6_DISPLAY
  396. }
  397. *Option: HT_PATSIZE_8x8_M
  398. {
  399. *rcNameID: =HT_DITHER8X8_DISPLAY
  400. }
  401. }
  402. *Command: CmdStartDoc
  403. {
  404. *Order: DOC_SETUP.1
  405. *Cmd: "<1B>6<1B>t<011B>R<00>"
  406. }
  407. *Command: CmdEndJob
  408. {
  409. *Order: JOB_FINISH.1
  410. *Cmd: "<1B>@"
  411. }
  412. *RotateCoordinate?: FALSE
  413. *RotateRaster?: FALSE
  414. *RotateFont?: FALSE
  415. *switch: Orientation
  416. {
  417. *case: PORTRAIT
  418. {
  419. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  420. }
  421. *case: LANDSCAPE_CC270
  422. {
  423. *TextCaps: LIST(TC_RA_ABLE)
  424. }
  425. }
  426. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  427. *MaxLineSpacing: 255
  428. *XMoveThreshold: 0
  429. *YMoveThreshold: *
  430. *XMoveUnit: 60
  431. *YMoveUnit: 216
  432. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,816]{max_repeat((DestX / 12) )} }
  433. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  434. *Command: CmdYMoveRelUp { *Cmd : "<1B>j" %c[0,255]{max_repeat((DestYRel / 2) )} }
  435. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  436. *Command: CmdCR { *Cmd : "<0D>" }
  437. *Command: CmdLF { *Cmd : "<0A>" }
  438. *Command: CmdFF { *Cmd : "<0C>" }
  439. *Command: CmdBackSpace { *Cmd : "<08>" }
  440. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  441. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  442. *EjectPageWithFF?: TRUE
  443. *switch: PaperSize
  444. {
  445. *case: CUSTOMSIZE
  446. {
  447. *EjectPageWithFF?: FALSE
  448. *switch: InputBin
  449. {
  450. *case: MANUAL
  451. {
  452. *EjectPageWithFF?: TRUE
  453. }
  454. }
  455. }
  456. }
  457. *OutputDataFormat: V_BYTE
  458. *OptimizeLeftBound?: TRUE
  459. *CursorXAfterSendBlockData: AT_GRXDATA_END
  460. *CursorYAfterSendBlockData: NO_MOVE
  461. *DefaultFont: 6
  462. *DefaultCTT: 1
  463. *switch: Orientation
  464. {
  465. *case: PORTRAIT
  466. {
  467. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  468. + 17,18,19,20,21,22,23,24)
  469. }
  470. *case: LANDSCAPE_CC270
  471. {
  472. *DeviceFonts: LIST()
  473. }
  474. }
  475. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  476. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  477. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  478. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  479. *Command: CmdUnderlineOn { *Cmd : "<1B>-1" }
  480. *Command: CmdUnderlineOff { *Cmd : "<1B>-0" }
  481. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p1" }
  482. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p0" }