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.

426 lines
13 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "NCT315TJ.GPD"
  7. *Include: "STDNAMES.GPD"
  8. *GPDFileVersion: "1.000"
  9. *CodePage: 1252
  10. *ModelName: "NEC PC-PR150T"
  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. }
  23. *Option: LANDSCAPE_CC270
  24. {
  25. *rcNameID: =LANDSCAPE_DISPLAY
  26. }
  27. }
  28. *Feature: InputBin
  29. {
  30. *rcNameID: =PAPER_SOURCE_DISPLAY
  31. *DefaultOption: Option1
  32. *Option: Option1
  33. {
  34. *rcNameID: 260
  35. }
  36. *Option: Option2
  37. {
  38. *rcNameID: 263
  39. }
  40. }
  41. *Feature: Resolution
  42. {
  43. *rcNameID: =RESOLUTION_DISPLAY
  44. *DefaultOption: Option1
  45. *Option: Option1
  46. {
  47. *Name: "160 x 160 dots per inch"
  48. *DPI: PAIR(160, 160)
  49. *TextDPI: PAIR(160, 160)
  50. *PinsPerLogPass: 24
  51. *PinsPerPhysPass: 24
  52. *MinStripBlankPixels: 270
  53. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  54. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  55. *SpotDiameter: 120
  56. *Command: CmdSendBlockData { *Cmd : "<1B>J" %4d{NumOfDataBytes / 3} }
  57. *Command: CmdSelect
  58. {
  59. *Order: DOC_SETUP.1
  60. *Cmd: "<1C>d160."
  61. }
  62. }
  63. }
  64. *Feature: PaperSize
  65. {
  66. *rcNameID: =PAPER_SIZE_DISPLAY
  67. *DefaultOption: A4
  68. *Option: A4
  69. {
  70. *rcNameID: =A4_DISPLAY
  71. *switch: InputBin
  72. {
  73. *case: Option1
  74. {
  75. *PrintableArea: PAIR(7681, 9521)
  76. *PrintableOrigin: PAIR(144, 945)
  77. *switch: Resolution
  78. {
  79. *case: Option1
  80. {
  81. *% Warning: the following printable width is adjusted (7681->7680) so it is divisible by the resolution X scale.
  82. *% Warning: the following printable length is adjusted (9521->9516) so it is divisible by the resolution Y scale.
  83. *PrintableArea: PAIR(7680, 9516)
  84. *% Warning: the following printable origin Y is adjusted (945->948) so it is divisible by the resolution Y scale.
  85. *PrintableOrigin: PAIR(144, 948)
  86. }
  87. }
  88. }
  89. *case: Option2
  90. {
  91. *PrintableArea: PAIR(7681, 10655)
  92. *PrintableOrigin: PAIR(144, 378)
  93. *switch: Resolution
  94. {
  95. *case: Option1
  96. {
  97. *% Warning: the following printable width is adjusted (7681->7680) so it is divisible by the resolution X scale.
  98. *% Warning: the following printable length is adjusted (10655->10650) so it is divisible by the resolution Y scale.
  99. *PrintableArea: PAIR(7680, 10650)
  100. }
  101. }
  102. }
  103. }
  104. }
  105. *Option: B4
  106. {
  107. *rcNameID: =B4_DISPLAY
  108. *Command: CmdSelect
  109. {
  110. *Order: PAGE_SETUP.6
  111. *Cmd: "<1B>v99."
  112. }
  113. *switch: InputBin
  114. {
  115. *case: Option1
  116. {
  117. *PrintableArea: PAIR(7675, 12056)
  118. *PrintableOrigin: PAIR(1020, 945)
  119. *switch: Resolution
  120. {
  121. *case: Option1
  122. {
  123. *% Warning: the following printable width is adjusted (7675->7674) so it is divisible by the resolution X scale.
  124. *% Warning: the following printable length is adjusted (12056->12048) so it is divisible by the resolution Y scale.
  125. *PrintableArea: PAIR(7674, 12048)
  126. *% Warning: the following printable origin Y is adjusted (945->948) so it is divisible by the resolution Y scale.
  127. *PrintableOrigin: PAIR(1020, 948)
  128. }
  129. }
  130. }
  131. *case: Option2
  132. {
  133. *PrintableArea: PAIR(7675, 13190)
  134. *PrintableOrigin: PAIR(1020, 378)
  135. *switch: Resolution
  136. {
  137. *case: Option1
  138. {
  139. *% Warning: the following printable width is adjusted (7675->7674) so it is divisible by the resolution X scale.
  140. *% Warning: the following printable length is adjusted (13190->13188) so it is divisible by the resolution Y scale.
  141. *PrintableArea: PAIR(7674, 13188)
  142. }
  143. }
  144. }
  145. }
  146. }
  147. *Option: A5
  148. {
  149. *rcNameID: =A5_DISPLAY
  150. *switch: InputBin
  151. {
  152. *case: Option1
  153. {
  154. *PrintableArea: PAIR(5339, 6238)
  155. *PrintableOrigin: PAIR(144, 945)
  156. *switch: Resolution
  157. {
  158. *case: Option1
  159. {
  160. *% Warning: the following printable width is adjusted (5339->5334) so it is divisible by the resolution X scale.
  161. *% Warning: the following printable length is adjusted (6238->6234) so it is divisible by the resolution Y scale.
  162. *PrintableArea: PAIR(5334, 6234)
  163. *% Warning: the following printable origin Y is adjusted (945->948) so it is divisible by the resolution Y scale.
  164. *PrintableOrigin: PAIR(144, 948)
  165. }
  166. }
  167. }
  168. *case: Option2
  169. {
  170. *PrintableArea: PAIR(5339, 7372)
  171. *PrintableOrigin: PAIR(144, 378)
  172. *switch: Resolution
  173. {
  174. *case: Option1
  175. {
  176. *% Warning: the following printable width is adjusted (5339->5334) so it is divisible by the resolution X scale.
  177. *% Warning: the following printable length is adjusted (7372->7368) so it is divisible by the resolution Y scale.
  178. *PrintableArea: PAIR(5334, 7368)
  179. }
  180. }
  181. }
  182. }
  183. }
  184. *Option: B5
  185. {
  186. *rcNameID: =B5_DISPLAY
  187. *switch: InputBin
  188. {
  189. *case: Option1
  190. {
  191. *PrintableArea: PAIR(6625, 8014)
  192. *PrintableOrigin: PAIR(144, 945)
  193. *switch: Resolution
  194. {
  195. *case: Option1
  196. {
  197. *% Warning: the following printable width is adjusted (6625->6624) so it is divisible by the resolution X scale.
  198. *% Warning: the following printable length is adjusted (8014->8010) so it is divisible by the resolution Y scale.
  199. *PrintableArea: PAIR(6624, 8010)
  200. *% Warning: the following printable origin Y is adjusted (945->948) so it is divisible by the resolution Y scale.
  201. *PrintableOrigin: PAIR(144, 948)
  202. }
  203. }
  204. }
  205. *case: Option2
  206. {
  207. *PrintableArea: PAIR(6625, 9148)
  208. *PrintableOrigin: PAIR(144, 378)
  209. *switch: Resolution
  210. {
  211. *case: Option1
  212. {
  213. *% Warning: the following printable width is adjusted (6625->6624) so it is divisible by the resolution X scale.
  214. *% Warning: the following printable length is adjusted (9148->9144) so it is divisible by the resolution Y scale.
  215. *PrintableArea: PAIR(6624, 9144)
  216. }
  217. }
  218. }
  219. }
  220. }
  221. *Option: JAPANESE_POSTCARD
  222. {
  223. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  224. *Command: CmdSelect
  225. {
  226. *Order: PAGE_SETUP.6
  227. *Cmd: "<1B>L052"
  228. }
  229. *switch: InputBin
  230. {
  231. *case: Option1
  232. {
  233. *PrintableArea: PAIR(3398, 3896)
  234. *PrintableOrigin: PAIR(192, 945)
  235. *switch: Resolution
  236. {
  237. *case: Option1
  238. {
  239. *% Warning: the following printable width is adjusted (3398->3396) so it is divisible by the resolution X scale.
  240. *% Warning: the following printable length is adjusted (3896->3888) so it is divisible by the resolution Y scale.
  241. *PrintableArea: PAIR(3396, 3888)
  242. *% Warning: the following printable origin Y is adjusted (945->948) so it is divisible by the resolution Y scale.
  243. *PrintableOrigin: PAIR(192, 948)
  244. }
  245. }
  246. }
  247. *case: Option2
  248. {
  249. *PrintableArea: PAIR(3398, 5030)
  250. *PrintableOrigin: PAIR(192, 378)
  251. *switch: Resolution
  252. {
  253. *case: Option1
  254. {
  255. *% Warning: the following printable width is adjusted (3398->3396) so it is divisible by the resolution X scale.
  256. *% Warning: the following printable length is adjusted (5030->5028) so it is divisible by the resolution Y scale.
  257. *PrintableArea: PAIR(3396, 5028)
  258. }
  259. }
  260. }
  261. }
  262. }
  263. }
  264. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JAPANESE_POSTCARD)
  265. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A4)
  266. *InvalidCombination: LIST(InputBin.Option2, PaperSize.B4)
  267. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A5)
  268. *InvalidCombination: LIST(InputBin.Option2, PaperSize.B5)
  269. *Feature: ColorMode
  270. {
  271. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  272. *DefaultOption: Color
  273. *Option: Mono
  274. {
  275. *rcNameID: =MONO_DISPLAY
  276. *DevNumOfPlanes: 1
  277. *DevBPP: 1
  278. *Color? : FALSE
  279. }
  280. *Option: Color
  281. {
  282. *rcNameID: =COLOR_DISPLAY
  283. *DevNumOfPlanes: 4
  284. *DevBPP: 1
  285. *DrvBPP: 4
  286. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  287. *Command: CmdSendBlackData { *Cmd : "<1B>C0" }
  288. *Command: CmdSendCyanData { *Cmd : "<1B>C5" }
  289. *Command: CmdSendMagentaData { *Cmd : "<1B>C3" }
  290. *Command: CmdSendYellowData { *Cmd : "<1B>C6" }
  291. *Command: CmdSelectBlackColor { *Cmd : "<1B>C0" }
  292. *Command: CmdSelectRedColor { *Cmd : "<1B>C2" }
  293. *Command: CmdSelectGreenColor { *Cmd : "<1B>C4" }
  294. *Command: CmdSelectYellowColor { *Cmd : "<1B>C6" }
  295. *Command: CmdSelectBlueColor { *Cmd : "<1B>C1" }
  296. *Command: CmdSelectMagentaColor { *Cmd : "<1B>C3" }
  297. *Command: CmdSelectCyanColor { *Cmd : "<1B>C5" }
  298. }
  299. }
  300. *Feature: Halftone
  301. {
  302. *rcNameID: =HALFTONING_DISPLAY
  303. *DefaultOption: HT_PATSIZE_AUTO
  304. *Option: HT_PATSIZE_AUTO
  305. {
  306. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  307. }
  308. *Option: HT_PATSIZE_SUPERCELL_M
  309. {
  310. *rcNameID: =HT_SUPERCELL_DISPLAY
  311. }
  312. *Option: HT_PATSIZE_6x6_M
  313. {
  314. *rcNameID: =HT_DITHER6X6_DISPLAY
  315. }
  316. *Option: HT_PATSIZE_8x8_M
  317. {
  318. *rcNameID: =HT_DITHER8X8_DISPLAY
  319. }
  320. }
  321. *Command: CmdStartDoc
  322. {
  323. *Order: DOC_SETUP.2
  324. *Cmd: "<1B>O0<1C>c,,0,7."
  325. }
  326. *Command: CmdStartPage
  327. {
  328. *Order: PAGE_SETUP.1
  329. *Cmd: "<0D>"
  330. }
  331. *Command: CmdEndJob
  332. {
  333. *Order: JOB_FINISH.1
  334. *Cmd: "<1B>c1"
  335. }
  336. *Command: CmdEndPage
  337. {
  338. *Order: PAGE_FINISH.1
  339. *Cmd: "<1B>b"
  340. }
  341. *RotateCoordinate?: FALSE
  342. *RotateRaster?: FALSE
  343. *RotateFont?: FALSE
  344. *switch: Orientation
  345. {
  346. *case: PORTRAIT
  347. {
  348. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  349. }
  350. *case: LANDSCAPE_CC270
  351. {
  352. *TextCaps: LIST()
  353. }
  354. }
  355. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  356. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  357. *MaxLineSpacing: 792
  358. *XMoveThreshold: 0
  359. *XMoveUnit: 160
  360. *AbsXMovesRightOnly?: TRUE
  361. *Command: CmdXMoveAbsolute { *Cmd : "<1B>F" %4d[0,1280]{max_repeat((DestX / 6) )} }
  362. *LineSpacingMoveUnit: 120
  363. *Command: CmdSetLineSpacing { *Cmd : "<1B>T" %2d[0,99]{(LinefeedSpacing / 8) } }
  364. *Command: CmdCR { *Cmd : "<0D>" }
  365. *Command: CmdLF { *Cmd : "<0A>" }
  366. *Command: CmdFF { *Cmd : "<0D0C>" }
  367. *Command: CmdBackSpace { *Cmd : "<08>" }
  368. *EjectPageWithFF?: TRUE
  369. *switch: InputBin
  370. {
  371. *case: Option2
  372. {
  373. *EjectPageWithFF?: FALSE
  374. }
  375. }
  376. *OutputDataFormat: V_BYTE
  377. *OptimizeLeftBound?: FALSE
  378. *CursorXAfterSendBlockData: AT_GRXDATA_END
  379. *CursorYAfterSendBlockData: NO_MOVE
  380. *DefaultFont: 3
  381. *DefaultCTT: 1
  382. *switch: Orientation
  383. {
  384. *case: PORTRAIT
  385. {
  386. *DeviceFonts: LIST(1,2,3,4,5,6,31,32,33,34,35,36,37,38)
  387. }
  388. *case: LANDSCAPE_CC270
  389. {
  390. *DeviceFonts: LIST()
  391. }
  392. }
  393. *FontCartridge: FC1
  394. {
  395. *rcCartridgeNameID: 264
  396. *PortraitFonts: LIST(7,8,9,10,11,12)
  397. *LandscapeFonts: LIST()
  398. }
  399. *FontCartridge: FC2
  400. {
  401. *rcCartridgeNameID: 265
  402. *PortraitFonts: LIST(19,20,21,22,23,24)
  403. *LandscapeFonts: LIST()
  404. }
  405. *FontCartridge: FC3
  406. {
  407. *rcCartridgeNameID: 266
  408. *PortraitFonts: LIST(25,26,27,28,29,30)
  409. *LandscapeFonts: LIST()
  410. }
  411. *FontCartridge: FC4
  412. {
  413. *rcCartridgeNameID: 267
  414. *PortraitFonts: LIST(13,14,15,16,17,18)
  415. *LandscapeFonts: LIST()
  416. }
  417. *Command: CmdBoldOn { *Cmd : "<1B>!" }
  418. *Command: CmdBoldOff { *Cmd : "<1B>%"" }
  419. *Command: CmdItalicOn { *Cmd : "<1B>i1" }
  420. *Command: CmdItalicOff { *Cmd : "<1B>i0" }
  421. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  422. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  423. *MirrorRasterByte?: TRUE
  424. *MoveToX0BeforeSetColor?: TRUE
  425. *UseExpColorSelectCmd?: TRUE
  426. *ReselectFont: LIST(AFTER_GRXDATA, AFTER_XMOVE, AFTER_FF)