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.

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