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.

310 lines
7.8 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "CTPN48.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Citizen PN48"
  10. *MasterUnits: PAIR(360, 360)
  11. *ResourceDLL: "ct24res.dll"
  12. *PrintRate: 2
  13. *PrintRatePPM: 2
  14. *PrintRateUnit: PPM
  15. *PrinterType: SERIAL
  16. *Feature: Orientation
  17. {
  18. *rcNameID: =ORIENTATION_DISPLAY
  19. *DefaultOption: PORTRAIT
  20. *Option: PORTRAIT
  21. {
  22. *rcNameID: =PORTRAIT_DISPLAY
  23. }
  24. *Option: LANDSCAPE_CC270
  25. {
  26. *rcNameID: =LANDSCAPE_DISPLAY
  27. }
  28. }
  29. *Feature: InputBin
  30. {
  31. *rcNameID: =PAPER_SOURCE_DISPLAY
  32. *DefaultOption: MANUAL
  33. *Option: MANUAL
  34. {
  35. *rcNameID: =MANUAL_FEED_DISPLAY
  36. *Command: CmdSelect
  37. {
  38. *Order: DOC_SETUP.7
  39. *Cmd: "<1B1900>"
  40. }
  41. }
  42. *Option: TRACTOR
  43. {
  44. *rcNameID: =TRACTOR_DISPLAY
  45. *Command: CmdSelect
  46. {
  47. *Order: DOC_SETUP.7
  48. *Cmd: "<1B1900>"
  49. }
  50. }
  51. *Option: AUTO
  52. {
  53. *rcNameID: =AUTO_DISPLAY
  54. *Command: CmdSelect
  55. {
  56. *Order: DOC_SETUP.7
  57. *Cmd: "<1B1904>"
  58. }
  59. }
  60. }
  61. *Feature: Resolution
  62. {
  63. *rcNameID: =RESOLUTION_DISPLAY
  64. *DefaultOption: Option1
  65. *Option: Option1
  66. {
  67. *Name: "180 x 180 " =DOTS_PER_INCH
  68. *DPI: PAIR(180, 180)
  69. *TextDPI: PAIR(180, 180)
  70. *PinsPerLogPass: 24
  71. *PinsPerPhysPass: 24
  72. *MinStripBlankPixels: 135
  73. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  74. *SpotDiameter: 140
  75. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  76. }
  77. *Option: Option2
  78. {
  79. *Name: "360 x 360 " =DOTS_PER_INCH
  80. *DPI: PAIR(360, 360)
  81. *TextDPI: PAIR(360, 360)
  82. *PinsPerLogPass: 48
  83. *PinsPerPhysPass: 24
  84. *MinStripBlankPixels: 270
  85. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  86. *SpotDiameter: 283
  87. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  88. }
  89. *Option: Option3
  90. {
  91. *Name: "360 x 180 " =DOTS_PER_INCH
  92. *DPI: PAIR(360, 180)
  93. *TextDPI: PAIR(360, 180)
  94. *PinsPerLogPass: 24
  95. *PinsPerPhysPass: 24
  96. *MinStripBlankPixels: 270
  97. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  98. *SpotDiameter: 200
  99. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  100. }
  101. *Option: Option4
  102. {
  103. *Name: "120 x 180 " =DOTS_PER_INCH
  104. *DPI: PAIR(120, 180)
  105. *TextDPI: PAIR(120, 180)
  106. *PinsPerLogPass: 24
  107. *PinsPerPhysPass: 24
  108. *MinStripBlankPixels: 90
  109. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  110. *SpotDiameter: 115
  111. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  112. }
  113. }
  114. *Feature: PaperSize
  115. {
  116. *rcNameID: =PAPER_SIZE_DISPLAY
  117. *DefaultOption: A4
  118. *Option: A4
  119. {
  120. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  121. *CursorOrigin: PAIR(0, 270)
  122. *Command: CmdSelect
  123. {
  124. *Order: DOC_SETUP.8
  125. *Cmd: "<1B>2<1B>CF"
  126. }
  127. *switch: InputBin
  128. {
  129. *case: MANUAL
  130. {
  131. *PrintableArea: PAIR(2880, 3758)
  132. *PrintableOrigin: PAIR(90, 270)
  133. }
  134. *case: TRACTOR
  135. {
  136. *PrintableArea: PAIR(2880, 3938)
  137. *PrintableOrigin: PAIR(90, 270)
  138. }
  139. *case: AUTO
  140. {
  141. *PrintableArea: PAIR(2880, 3848)
  142. *PrintableOrigin: PAIR(90, 360)
  143. }
  144. }
  145. }
  146. *Option: LETTER
  147. {
  148. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  149. *CursorOrigin: PAIR(0, 270)
  150. *Command: CmdSelect
  151. {
  152. *Order: DOC_SETUP.8
  153. *Cmd: "<1B>C<000B>"
  154. }
  155. *switch: InputBin
  156. {
  157. *case: MANUAL
  158. {
  159. *PrintableArea: PAIR(2880, 3510)
  160. *PrintableOrigin: PAIR(90, 270)
  161. }
  162. *case: TRACTOR
  163. {
  164. *PrintableArea: PAIR(2880, 3690)
  165. *PrintableOrigin: PAIR(90, 270)
  166. }
  167. *case: AUTO
  168. {
  169. *PrintableArea: PAIR(2880, 3600)
  170. *PrintableOrigin: PAIR(90, 360)
  171. }
  172. }
  173. }
  174. *Option: CUSTOMSIZE
  175. {
  176. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  177. *MinSize: PAIR(360, 360)
  178. *MaxSize: PAIR(3060, 7920)
  179. *MaxPrintableWidth: 2880
  180. *MinLeftMargin: 90
  181. *CenterPrintable?: FALSE
  182. *switch: InputBin
  183. {
  184. *case: MANUAL
  185. {
  186. *TopMargin: 180
  187. *BottomMargin: 180
  188. }
  189. *case: TRACTOR
  190. {
  191. *TopMargin: 270
  192. *BottomMargin: 0
  193. }
  194. *case: AUTO
  195. {
  196. *TopMargin: 360
  197. *BottomMargin: 0
  198. }
  199. }
  200. }
  201. }
  202. *Feature: PrintQuality
  203. {
  204. *rcNameID: =TEXT_QUALITY_DISPLAY
  205. *DefaultOption: LETTER_QUALITY
  206. *Option: LETTER_QUALITY
  207. {
  208. *rcNameID: =LETTER_QUALITY_DISPLAY
  209. *Command: CmdSelect
  210. {
  211. *Order: DOC_SETUP.6
  212. *Cmd: "<1B>x<01>"
  213. }
  214. }
  215. *Option: DRAFT_QUALITY
  216. {
  217. *rcNameID: =DRAFT_QUALITY_DISPLAY
  218. *Command: CmdSelect
  219. {
  220. *Order: DOC_SETUP.6
  221. *Cmd: "<1B>x<00>"
  222. }
  223. }
  224. }
  225. *Feature: Halftone
  226. {
  227. *rcNameID: =HALFTONING_DISPLAY
  228. *DefaultOption: HT_PATSIZE_AUTO
  229. *Option: HT_PATSIZE_AUTO
  230. {
  231. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  232. }
  233. *Ifdef: WINNT_50
  234. *Option: HT_PATSIZE_SUPERCELL_M
  235. {
  236. *rcNameID: =HT_SUPERCELL_DISPLAY
  237. }
  238. *Endif:
  239. *Option: HT_PATSIZE_6x6_M
  240. {
  241. *rcNameID: =HT_DITHER6X6_DISPLAY
  242. }
  243. *Option: HT_PATSIZE_8x8_M
  244. {
  245. *rcNameID: =HT_DITHER8X8_DISPLAY
  246. }
  247. }
  248. *Command: CmdStartDoc
  249. {
  250. *Order: DOC_SETUP.1
  251. *Cmd: "<1B>t<011B>6<1B>R<0018>"
  252. }
  253. *Command: CmdEndJob
  254. {
  255. *Order: JOB_FINISH.1
  256. *Cmd: "<190D1B>@"
  257. }
  258. *RotateCoordinate?: FALSE
  259. *RotateRaster?: FALSE
  260. *RotateFont?: FALSE
  261. *switch: Orientation
  262. {
  263. *case: PORTRAIT
  264. {
  265. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  266. }
  267. *case: LANDSCAPE_CC270
  268. {
  269. *TextCaps: LIST(TC_RA_ABLE)
  270. }
  271. }
  272. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  273. *XMoveThreshold: 0
  274. *YMoveThreshold: *
  275. *XMoveUnit: 60
  276. *YMoveUnit: 180
  277. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,816]{max_repeat((DestX / 6) )} }
  278. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  279. *Command: CmdYMoveRelUp { *Cmd : "<1B>j" %c[0,255]{max_repeat((DestYRel / 2) )} }
  280. *Command: CmdCR { *Cmd : "<0D>" }
  281. *Command: CmdLF { *Cmd : "<0A>" }
  282. *Command: CmdFF { *Cmd : "<0C>" }
  283. *Command: CmdBackSpace { *Cmd : "<08>" }
  284. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  285. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  286. *EjectPageWithFF?: TRUE
  287. *OutputDataFormat: V_BYTE
  288. *OptimizeLeftBound?: FALSE
  289. *CursorXAfterSendBlockData: AT_GRXDATA_END
  290. *CursorYAfterSendBlockData: NO_MOVE
  291. *DefaultFont: 6
  292. *DefaultCTT: 3
  293. *switch: Orientation
  294. {
  295. *case: PORTRAIT
  296. {
  297. *DeviceFonts: LIST(2,3,4,5,6,7,8,9,10,11,14,40,41,42,43,44,
  298. + 45,46,47,48,49,52,69,72)
  299. }
  300. *case: LANDSCAPE_CC270
  301. {
  302. *DeviceFonts: LIST()
  303. }
  304. }
  305. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  306. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  307. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  308. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  309. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  310. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }