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.

300 lines
8.9 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "NCT3350J.GPD"
  7. *Include: "STDNAMES.GPD"
  8. *GPDFileVersion: "1.000"
  9. *CodePage: 1252
  10. *ModelName: "NEC PC-PR350"
  11. *MasterUnits: PAIR(960, 960)
  12. *ResourceDLL: "NCT3JRES.DLL"
  13. *PrinterType: SERIAL
  14. *FontCartSlots: 1
  15. *Feature: Orientation
  16. {
  17. *rcNameID: =ORIENTATION_DISPLAY
  18. *DefaultOption: PORTRAIT
  19. *Option: PORTRAIT
  20. {
  21. *rcNameID: =PORTRAIT_DISPLAY
  22. *Command: CmdSelect
  23. {
  24. *Order: PAGE_SETUP.5
  25. *Cmd: "<1C>fP"
  26. }
  27. }
  28. *Option: LANDSCAPE_CC270
  29. {
  30. *rcNameID: =LANDSCAPE_DISPLAY
  31. *Command: CmdSelect
  32. {
  33. *Order: PAGE_SETUP.5
  34. *Cmd: "<1C>fL"
  35. }
  36. }
  37. }
  38. *Feature: InputBin
  39. {
  40. *rcNameID: =PAPER_SOURCE_DISPLAY
  41. *DefaultOption: Option1
  42. *Option: Option1
  43. {
  44. *rcNameID: 262
  45. }
  46. }
  47. *Feature: Resolution
  48. {
  49. *rcNameID: =RESOLUTION_DISPLAY
  50. *DefaultOption: Option1
  51. *Option: Option1
  52. {
  53. *Name: "320 x 320 dots per inch"
  54. *DPI: PAIR(320, 320)
  55. *TextDPI: PAIR(320, 320)
  56. *PinsPerLogPass: 48
  57. *PinsPerPhysPass: 48
  58. *MinStripBlankPixels: 270
  59. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  60. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  61. *SpotDiameter: 120
  62. *Command: CmdSendBlockData { *Cmd : "<1C>bP,48," %4d{(NumOfDataBytes / 6) }"." }
  63. *Command: CmdSelect
  64. {
  65. *Order: DOC_SETUP.1
  66. *Cmd: "<1C>d320.<1B>H"
  67. }
  68. }
  69. *Option: Option2
  70. {
  71. *Name: "160 x 160 dots per inch"
  72. *DPI: PAIR(160, 160)
  73. *TextDPI: PAIR(160, 160)
  74. *PinsPerLogPass: 24
  75. *PinsPerPhysPass: 24
  76. *MinStripBlankPixels: 270
  77. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  78. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  79. *SpotDiameter: 120
  80. *Command: CmdSendBlockData { *Cmd : "<1B>J" %4d{NumOfDataBytes / 3} }
  81. *Command: CmdSelect
  82. {
  83. *Order: DOC_SETUP.1
  84. *Cmd: "<1C>d320."
  85. }
  86. }
  87. }
  88. *Feature: PaperSize
  89. {
  90. *rcNameID: =PAPER_SIZE_DISPLAY
  91. *DefaultOption: A4
  92. *Option: A4
  93. {
  94. *rcNameID: =A4_DISPLAY
  95. *PrintableArea: PAIR(7633, 10511)
  96. *PrintableOrigin: PAIR(177, 480)
  97. *switch: Resolution
  98. {
  99. *case: Option1
  100. {
  101. *% Warning: the following printable width is adjusted (7633->7632) so it is divisible by the resolution X scale.
  102. *% Warning: the following printable length is adjusted (10511->10509) so it is divisible by the resolution Y scale.
  103. *PrintableArea: PAIR(7632, 10509)
  104. }
  105. *case: Option2
  106. {
  107. *% Warning: the following printable width is adjusted (7633->7626) so it is divisible by the resolution X scale.
  108. *% Warning: the following printable length is adjusted (10511->10506) so it is divisible by the resolution Y scale.
  109. *PrintableArea: PAIR(7626, 10506)
  110. *% Warning: the following printable origin X is adjusted (177->180) so it is divisible by the resolution X scale.
  111. *PrintableOrigin: PAIR(180, 480)
  112. }
  113. }
  114. *Command: CmdSelect
  115. {
  116. *Order: PAGE_SETUP.6
  117. *Cmd: "A4."
  118. }
  119. }
  120. *Option: B4
  121. {
  122. *rcNameID: =B4_DISPLAY
  123. *PrintableArea: PAIR(9391, 13037)
  124. *PrintableOrigin: PAIR(162, 480)
  125. *switch: Resolution
  126. {
  127. *case: Option1
  128. {
  129. *% Warning: the following printable width is adjusted (9391->9390) so it is divisible by the resolution X scale.
  130. *% Warning: the following printable length is adjusted (13037->13035) so it is divisible by the resolution Y scale.
  131. *PrintableArea: PAIR(9390, 13035)
  132. }
  133. *case: Option2
  134. {
  135. *% Warning: the following printable width is adjusted (9391->9390) so it is divisible by the resolution X scale.
  136. *% Warning: the following printable length is adjusted (13037->13032) so it is divisible by the resolution Y scale.
  137. *PrintableArea: PAIR(9390, 13032)
  138. }
  139. }
  140. *Command: CmdSelect
  141. {
  142. *Order: PAGE_SETUP.6
  143. *Cmd: "B4."
  144. }
  145. }
  146. *Option: JAPANESE_POSTCARD
  147. {
  148. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  149. *PrintableArea: PAIR(3026, 5030)
  150. *PrintableOrigin: PAIR(624, 480)
  151. *switch: Resolution
  152. {
  153. *case: Option1
  154. {
  155. *% Warning: the following printable width is adjusted (3026->3024) so it is divisible by the resolution X scale.
  156. *% Warning: the following printable length is adjusted (5030->5028) so it is divisible by the resolution Y scale.
  157. *PrintableArea: PAIR(3024, 5028)
  158. }
  159. *case: Option2
  160. {
  161. *% Warning: the following printable width is adjusted (3026->3024) so it is divisible by the resolution X scale.
  162. *% Warning: the following printable length is adjusted (5030->5028) so it is divisible by the resolution Y scale.
  163. *PrintableArea: PAIR(3024, 5028)
  164. }
  165. }
  166. *Command: CmdSelect
  167. {
  168. *Order: PAGE_SETUP.6
  169. *Cmd: "A6."
  170. }
  171. }
  172. }
  173. *Feature: ColorMode
  174. {
  175. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  176. *DefaultOption: Color
  177. *Option: Mono
  178. {
  179. *rcNameID: =MONO_DISPLAY
  180. *DevNumOfPlanes: 1
  181. *DevBPP: 1
  182. *Color? : FALSE
  183. }
  184. *Option: Color
  185. {
  186. *rcNameID: =COLOR_DISPLAY
  187. *DevNumOfPlanes: 4
  188. *DevBPP: 1
  189. *DrvBPP: 4
  190. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  191. *Command: CmdSendBlackData { *Cmd : "<1B>C0" }
  192. *Command: CmdSendCyanData { *Cmd : "<1B>C5" }
  193. *Command: CmdSendMagentaData { *Cmd : "<1B>C3" }
  194. *Command: CmdSendYellowData { *Cmd : "<1B>C6" }
  195. *Command: CmdSelectBlackColor { *Cmd : "<1B>C0" }
  196. *Command: CmdSelectRedColor { *Cmd : "<1B>C2" }
  197. *Command: CmdSelectGreenColor { *Cmd : "<1B>C4" }
  198. *Command: CmdSelectYellowColor { *Cmd : "<1B>C6" }
  199. *Command: CmdSelectBlueColor { *Cmd : "<1B>C1" }
  200. *Command: CmdSelectMagentaColor { *Cmd : "<1B>C3" }
  201. *Command: CmdSelectCyanColor { *Cmd : "<1B>C5" }
  202. }
  203. }
  204. *Feature: Halftone
  205. {
  206. *rcNameID: =HALFTONING_DISPLAY
  207. *DefaultOption: HT_PATSIZE_AUTO
  208. *Option: HT_PATSIZE_AUTO
  209. {
  210. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  211. }
  212. *Option: HT_PATSIZE_SUPERCELL_M
  213. {
  214. *rcNameID: =HT_SUPERCELL_DISPLAY
  215. }
  216. *Option: HT_PATSIZE_6x6_M
  217. {
  218. *rcNameID: =HT_DITHER6X6_DISPLAY
  219. }
  220. *Option: HT_PATSIZE_8x8_M
  221. {
  222. *rcNameID: =HT_DITHER8X8_DISPLAY
  223. }
  224. }
  225. *Command: CmdStartPage
  226. {
  227. *Order: PAGE_SETUP.1
  228. *Cmd: "<0D>"
  229. }
  230. *Command: CmdEndJob
  231. {
  232. *Order: JOB_FINISH.1
  233. *Cmd: "<1B>c1"
  234. }
  235. *Command: CmdEndPage
  236. {
  237. *Order: PAGE_FINISH.1
  238. *Cmd: "<0D1B>b"
  239. }
  240. *RotateCoordinate?: FALSE
  241. *RotateRaster?: TRUE
  242. *RotateFont?: TRUE
  243. *switch: Orientation
  244. {
  245. *case: PORTRAIT
  246. {
  247. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  248. }
  249. *case: LANDSCAPE_CC270
  250. {
  251. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE)
  252. }
  253. }
  254. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  255. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  256. *MaxLineSpacing: 792
  257. *XMoveThreshold: 0
  258. *XMoveUnit: 320
  259. *AbsXMovesRightOnly?: TRUE
  260. *Command: CmdXMoveAbsolute { *Cmd : "<1B>F" %4d[0,4480]{max_repeat(DestX / 3)} }
  261. *LineSpacingMoveUnit: 120
  262. *Command: CmdSetLineSpacing { *Cmd : "<1B>T" %2d[0,99]{(LinefeedSpacing / 8) } }
  263. *Command: CmdCR { *Cmd : "<0D>" }
  264. *Command: CmdLF { *Cmd : "<0A>" }
  265. *Command: CmdFF { *Cmd : "<0D0C>" }
  266. *Command: CmdBackSpace { *Cmd : "<08>" }
  267. *EjectPageWithFF?: FALSE
  268. *OutputDataFormat: V_BYTE
  269. *OptimizeLeftBound?: FALSE
  270. *CursorXAfterSendBlockData: AT_GRXDATA_END
  271. *CursorYAfterSendBlockData: NO_MOVE
  272. *DefaultFont: 3
  273. *DefaultCTT: 1
  274. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,31,32,33,34,
  275. + 35,36,37,38)
  276. *FontCartridge: FC1
  277. {
  278. *rcCartridgeNameID: 265
  279. *Fonts: LIST(19,20,21,22,23,24)
  280. }
  281. *FontCartridge: FC2
  282. {
  283. *rcCartridgeNameID: 266
  284. *Fonts: LIST(25,26,27,28,29,30)
  285. }
  286. *FontCartridge: FC3
  287. {
  288. *rcCartridgeNameID: 267
  289. *Fonts: LIST(13,14,15,16,17,18)
  290. }
  291. *Command: CmdBoldOn { *Cmd : "<1B>!" }
  292. *Command: CmdBoldOff { *Cmd : "<1B>%"" }
  293. *Command: CmdItalicOn { *Cmd : "<1B>i1" }
  294. *Command: CmdItalicOff { *Cmd : "<1B>i0" }
  295. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  296. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  297. *MirrorRasterByte?: TRUE
  298. *MoveToX0BeforeSetColor?: TRUE
  299. *UseExpColorSelectCmd?: TRUE
  300. *ReselectFont: LIST(AFTER_GRXDATA, AFTER_XMOVE, AFTER_FF)