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.

327 lines
10 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "NCT315NJ.GPD"
  7. *Include: "STDNAMES.GPD"
  8. *GPDFileVersion: "1.000"
  9. *CodePage: 1252
  10. *ModelName: "NEC PC-PR150N"
  11. *MasterUnits: PAIR(960, 960)
  12. *ResourceDLL: "NCT3JRES.DLL"
  13. *PrinterType: SERIAL
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: Option1
  31. *Option: Option1
  32. {
  33. *rcNameID: 260
  34. }
  35. *Option: Option2
  36. {
  37. *rcNameID: 263
  38. }
  39. }
  40. *Feature: Resolution
  41. {
  42. *rcNameID: =RESOLUTION_DISPLAY
  43. *DefaultOption: Option1
  44. *Option: Option1
  45. {
  46. *Name: "160 x 160 dots per inch"
  47. *DPI: PAIR(160, 160)
  48. *TextDPI: PAIR(160, 160)
  49. *PinsPerLogPass: 24
  50. *PinsPerPhysPass: 24
  51. *MinStripBlankPixels: 270
  52. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  53. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  54. *SpotDiameter: 120
  55. *Command: CmdSendBlockData { *Cmd : "<1B>J" %4d{NumOfDataBytes / 3} }
  56. *Command: CmdSelect
  57. {
  58. *Order: DOC_SETUP.1
  59. *Cmd: "<1C>d160."
  60. }
  61. }
  62. }
  63. *Feature: PaperSize
  64. {
  65. *rcNameID: =PAPER_SIZE_DISPLAY
  66. *DefaultOption: A4
  67. *Option: A4
  68. {
  69. *rcNameID: =A4_DISPLAY
  70. *switch: InputBin
  71. {
  72. *case: Option1
  73. {
  74. *PrintableArea: PAIR(7681, 9521)
  75. *PrintableOrigin: PAIR(144, 945)
  76. *switch: Resolution
  77. {
  78. *case: Option1
  79. {
  80. *% Warning: the following printable width is adjusted (7681->7680) so it is divisible by the resolution X scale.
  81. *% Warning: the following printable length is adjusted (9521->9516) so it is divisible by the resolution Y scale.
  82. *PrintableArea: PAIR(7680, 9516)
  83. *% Warning: the following printable origin Y is adjusted (945->948) so it is divisible by the resolution Y scale.
  84. *PrintableOrigin: PAIR(144, 948)
  85. }
  86. }
  87. }
  88. *case: Option2
  89. {
  90. *PrintableArea: PAIR(7681, 10655)
  91. *PrintableOrigin: PAIR(144, 378)
  92. *switch: Resolution
  93. {
  94. *case: Option1
  95. {
  96. *% Warning: the following printable width is adjusted (7681->7680) so it is divisible by the resolution X scale.
  97. *% Warning: the following printable length is adjusted (10655->10650) so it is divisible by the resolution Y scale.
  98. *PrintableArea: PAIR(7680, 10650)
  99. }
  100. }
  101. }
  102. }
  103. }
  104. *Option: A5
  105. {
  106. *rcNameID: =A5_DISPLAY
  107. *switch: InputBin
  108. {
  109. *case: Option1
  110. {
  111. *PrintableArea: PAIR(5339, 6238)
  112. *PrintableOrigin: PAIR(144, 945)
  113. *switch: Resolution
  114. {
  115. *case: Option1
  116. {
  117. *% Warning: the following printable width is adjusted (5339->5334) so it is divisible by the resolution X scale.
  118. *% Warning: the following printable length is adjusted (6238->6234) so it is divisible by the resolution Y scale.
  119. *PrintableArea: PAIR(5334, 6234)
  120. *% Warning: the following printable origin Y is adjusted (945->948) so it is divisible by the resolution Y scale.
  121. *PrintableOrigin: PAIR(144, 948)
  122. }
  123. }
  124. }
  125. *case: Option2
  126. {
  127. *PrintableArea: PAIR(5339, 7372)
  128. *PrintableOrigin: PAIR(144, 378)
  129. *switch: Resolution
  130. {
  131. *case: Option1
  132. {
  133. *% Warning: the following printable width is adjusted (5339->5334) so it is divisible by the resolution X scale.
  134. *% Warning: the following printable length is adjusted (7372->7368) so it is divisible by the resolution Y scale.
  135. *PrintableArea: PAIR(5334, 7368)
  136. }
  137. }
  138. }
  139. }
  140. }
  141. *Option: B5
  142. {
  143. *rcNameID: =B5_DISPLAY
  144. *switch: InputBin
  145. {
  146. *case: Option1
  147. {
  148. *PrintableArea: PAIR(6589, 8014)
  149. *PrintableOrigin: PAIR(144, 945)
  150. *switch: Resolution
  151. {
  152. *case: Option1
  153. {
  154. *% Warning: the following printable width is adjusted (6589->6588) so it is divisible by the resolution X scale.
  155. *% Warning: the following printable length is adjusted (8014->8010) so it is divisible by the resolution Y scale.
  156. *PrintableArea: PAIR(6588, 8010)
  157. *% Warning: the following printable origin Y is adjusted (945->948) so it is divisible by the resolution Y scale.
  158. *PrintableOrigin: PAIR(144, 948)
  159. }
  160. }
  161. }
  162. *case: Option2
  163. {
  164. *PrintableArea: PAIR(6589, 9148)
  165. *PrintableOrigin: PAIR(144, 378)
  166. *switch: Resolution
  167. {
  168. *case: Option1
  169. {
  170. *% Warning: the following printable width is adjusted (6589->6588) so it is divisible by the resolution X scale.
  171. *% Warning: the following printable length is adjusted (9148->9144) so it is divisible by the resolution Y scale.
  172. *PrintableArea: PAIR(6588, 9144)
  173. }
  174. }
  175. }
  176. }
  177. }
  178. *Option: JAPANESE_POSTCARD
  179. {
  180. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  181. *Command: CmdSelect
  182. {
  183. *Order: PAGE_SETUP.6
  184. *Cmd: "<1B>L052"
  185. }
  186. *switch: InputBin
  187. {
  188. *case: Option1
  189. {
  190. *PrintableArea: PAIR(3398, 3896)
  191. *PrintableOrigin: PAIR(192, 945)
  192. *switch: Resolution
  193. {
  194. *case: Option1
  195. {
  196. *% Warning: the following printable width is adjusted (3398->3396) so it is divisible by the resolution X scale.
  197. *% Warning: the following printable length is adjusted (3896->3888) so it is divisible by the resolution Y scale.
  198. *PrintableArea: PAIR(3396, 3888)
  199. *% Warning: the following printable origin Y is adjusted (945->948) so it is divisible by the resolution Y scale.
  200. *PrintableOrigin: PAIR(192, 948)
  201. }
  202. }
  203. }
  204. *case: Option2
  205. {
  206. *PrintableArea: PAIR(3398, 5030)
  207. *PrintableOrigin: PAIR(192, 378)
  208. *switch: Resolution
  209. {
  210. *case: Option1
  211. {
  212. *% Warning: the following printable width is adjusted (3398->3396) so it is divisible by the resolution X scale.
  213. *% Warning: the following printable length is adjusted (5030->5028) so it is divisible by the resolution Y scale.
  214. *PrintableArea: PAIR(3396, 5028)
  215. }
  216. }
  217. }
  218. }
  219. }
  220. }
  221. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JAPANESE_POSTCARD)
  222. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A4)
  223. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A5)
  224. *InvalidCombination: LIST(InputBin.Option2, PaperSize.B5)
  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. *Option: HT_PATSIZE_SUPERCELL_M
  234. {
  235. *rcNameID: =HT_SUPERCELL_DISPLAY
  236. }
  237. *Option: HT_PATSIZE_6x6_M
  238. {
  239. *rcNameID: =HT_DITHER6X6_DISPLAY
  240. }
  241. *Option: HT_PATSIZE_8x8_M
  242. {
  243. *rcNameID: =HT_DITHER8X8_DISPLAY
  244. }
  245. }
  246. *Command: CmdStartDoc
  247. {
  248. *Order: DOC_SETUP.2
  249. *Cmd: "<1B>O0<1C>c,,0,7."
  250. }
  251. *Command: CmdStartPage
  252. {
  253. *Order: PAGE_SETUP.1
  254. *Cmd: "<0D>"
  255. }
  256. *Command: CmdEndJob
  257. {
  258. *Order: JOB_FINISH.1
  259. *Cmd: "<1B>c1"
  260. }
  261. *Command: CmdEndPage
  262. {
  263. *Order: PAGE_FINISH.1
  264. *Cmd: "<1B>b"
  265. }
  266. *RotateCoordinate?: FALSE
  267. *RotateRaster?: FALSE
  268. *RotateFont?: FALSE
  269. *switch: Orientation
  270. {
  271. *case: PORTRAIT
  272. {
  273. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  274. }
  275. *case: LANDSCAPE_CC270
  276. {
  277. *TextCaps: LIST()
  278. }
  279. }
  280. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  281. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  282. *MaxLineSpacing: 792
  283. *XMoveThreshold: 0
  284. *XMoveUnit: 160
  285. *AbsXMovesRightOnly?: TRUE
  286. *Command: CmdXMoveAbsolute { *Cmd : "<1B>F" %4d[0,1280]{max_repeat((DestX / 6) )} }
  287. *LineSpacingMoveUnit: 120
  288. *Command: CmdSetLineSpacing { *Cmd : "<1B>T" %2d[0,99]{(LinefeedSpacing / 8) } }
  289. *Command: CmdCR { *Cmd : "<0D>" }
  290. *Command: CmdLF { *Cmd : "<0A>" }
  291. *Command: CmdFF { *Cmd : "<0D0C>" }
  292. *Command: CmdBackSpace { *Cmd : "<08>" }
  293. *EjectPageWithFF?: TRUE
  294. *switch: InputBin
  295. {
  296. *case: Option2
  297. {
  298. *EjectPageWithFF?: FALSE
  299. }
  300. }
  301. *OutputDataFormat: V_BYTE
  302. *OptimizeLeftBound?: FALSE
  303. *CursorXAfterSendBlockData: AT_GRXDATA_END
  304. *CursorYAfterSendBlockData: NO_MOVE
  305. *DefaultFont: 3
  306. *DefaultCTT: 1
  307. *switch: Orientation
  308. {
  309. *case: PORTRAIT
  310. {
  311. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,19,20,21,22,
  312. + 23,24,31,32,33,34,35,36,37,38)
  313. }
  314. *case: LANDSCAPE_CC270
  315. {
  316. *DeviceFonts: LIST()
  317. }
  318. }
  319. *Command: CmdBoldOn { *Cmd : "<1B>!" }
  320. *Command: CmdBoldOff { *Cmd : "<1B>%"" }
  321. *Command: CmdItalicOn { *Cmd : "<1B>i1" }
  322. *Command: CmdItalicOff { *Cmd : "<1B>i0" }
  323. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  324. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  325. *MirrorRasterByte?: TRUE
  326. *ReselectFont: LIST(AFTER_GRXDATA, AFTER_XMOVE, AFTER_FF)