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.

405 lines
9.5 KiB

  1. *GPDSpecVersion: "1.0"
  2. *CodePage: 1252
  3. *ModelName: "NEC PC-PR602"
  4. *MasterUnits: PAIR(1200, 1200)
  5. *ResourceDLL: "nc62jres.dll"
  6. *PrinterType: PAGE
  7. *MaxCopies: 99
  8. *PrintRateUnit: PPM
  9. *PrintRate: 8
  10. *GPDFileName: "NC62J.GPD"
  11. *Include: "STDNAMES.GPD"
  12. *GPDFileVersion: "1.000"
  13. *%======== Macros ========
  14. *Macros: DeviceFontIDs
  15. {
  16. RC_FONT_MINCHO : 1
  17. RC_FONT_MINCHOV : 2
  18. RC_FONT_MINCHO_601 : 3
  19. RC_FONT_MINCHOV_601 : 4
  20. RC_FONT_MINCHO_602 : 5
  21. RC_FONT_MINCHOV_602 : 6
  22. RC_FONT_MINCHO_602R : 7
  23. RC_FONT_MINCHOV_602R : 8
  24. RC_FONT_MINCHO_OUT_SLT1 : 9
  25. RC_FONT_MINCHOV_OUT_SLT1 : 10
  26. RC_FONT_GOTHIC_ROM_SLT1 : 11
  27. RC_FONT_GOTHICV_ROM_SLT1 : 12
  28. RC_FONT_GOTHIC_OUT_SLT1 : 13
  29. RC_FONT_GOTHICV_OUT_SLT1 : 14
  30. RC_FONT_GOTHIC_602R : 15
  31. RC_FONT_GOTHICV_602R : 16
  32. RC_FONT_MINCHO_OUT_SLT2 : 17
  33. RC_FONT_MINCHOV_OUT_SLT2 : 18
  34. RC_FONT_GOTHIC_ROM_SLT2 : 19
  35. RC_FONT_GOTHICV_ROM_SLT2 : 20
  36. RC_FONT_GOTHIC_OUT_SLT2 : 21
  37. RC_FONT_GOTHICV_OUT_SLT2 : 22
  38. RC_FONT_COURIER : 23
  39. RC_FONT_SANSERIF : 24
  40. RC_FONT_ROMAN : 25
  41. }
  42. *Macros: OEMCallbackIDs
  43. {
  44. CMD_MOVE_X : 23
  45. CMD_MOVE_Y : 24
  46. CMD_BEGIN_RASTER : 26
  47. CMD_RES_240 : 29 *% for PR601,602,602R
  48. CMD_SEND_BLOCK_DATA : 30 *% for PR1000,1000/2,2000
  49. CMD_RES_240NEW : 31 *% for PR1000,1000/2,2000
  50. CMD_SEND_BLOCK_DATA2 : 32 *% for PR601,602,602R
  51. CMD_INIT_COORDINATE : 33
  52. CMD_PC_PRN_DIRECTION : 50
  53. CMD_CR : 51
  54. }
  55. *%-----ORIENTATION-----
  56. *Feature: Orientation
  57. {
  58. *rcNameID: =ORIENTATION_DISPLAY
  59. *DefaultOption: PORTRAIT
  60. *Option: PORTRAIT
  61. {
  62. *rcNameID: =PORTRAIT_DISPLAY
  63. }
  64. *Option: LANDSCAPE_CC270
  65. {
  66. *rcNameID: =LANDSCAPE_DISPLAY
  67. }
  68. }
  69. *%-----InputBin-----
  70. *Feature: InputBin
  71. {
  72. *rcNameID: =PAPER_SOURCE_DISPLAY
  73. *DefaultOption: Hopper1
  74. *Option: Hopper1
  75. {
  76. *rcNameID: 263
  77. *Command: CmdSelect
  78. {
  79. *Order: DOC_SETUP.2
  80. *Cmd: "<1C>fPC1."
  81. }
  82. }
  83. *Option: Hopper2
  84. {
  85. *rcNameID: 264
  86. *Command: CmdSelect
  87. {
  88. *Order: DOC_SETUP.2
  89. *Cmd: "<1C>fPC2."
  90. }
  91. }
  92. }
  93. *%-----RESOLUTION-----
  94. *Feature: Resolution
  95. {
  96. *rcNameID: =RESOLUTION_DISPLAY
  97. *DefaultOption: 240dpi
  98. *Option: 240dpi
  99. {
  100. *Name: "240 x 240 dots per inch"
  101. *DPI: PAIR(240, 240)
  102. *TextDPI: PAIR(240, 240)
  103. *MinStripBlankPixels: 32
  104. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  105. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  106. *SpotDiameter: 100
  107. *Command: CmdSelect
  108. {
  109. *Order: DOC_SETUP.5
  110. *CallbackID: =CMD_RES_240
  111. }
  112. *Command: CmdBeginRaster
  113. {
  114. *CallbackID: =CMD_BEGIN_RASTER
  115. }
  116. *Command: CmdSendBlockData
  117. {
  118. *CallbackID: =CMD_SEND_BLOCK_DATA2
  119. *Params: LIST(RasterDataWidthInBytes,
  120. + RasterDataHeightInPixels, NumOfDataBytes)
  121. }
  122. }
  123. }
  124. *%-----PaperSize-----
  125. *Feature: PaperSize
  126. {
  127. *rcNameID: =PAPER_SIZE_DISPLAY
  128. *DefaultOption: A4
  129. *Option: A4
  130. {
  131. *rcNameID: =A4_DISPLAY
  132. *PrintableArea: PAIR(9355, 13550)
  133. *PrintableOrigin: PAIR(380, 240)
  134. *switch: Orientation
  135. {
  136. *case: PORTRAIT
  137. {
  138. *Command: CmdSelect
  139. {
  140. *Order: DOC_SETUP.3
  141. *Cmd: "<1C>fPC0."
  142. }
  143. }
  144. *case: LANDSCAPE_CC270
  145. {
  146. *Command: CmdSelect
  147. {
  148. *Order: DOC_SETUP.3
  149. *Cmd: "<1C>fLC0."
  150. }
  151. }
  152. }
  153. }
  154. *Option: B4
  155. {
  156. *rcNameID: =B4_DISPLAY
  157. *switch: Orientation
  158. {
  159. *case: PORTRAIT
  160. {
  161. *PrintableArea: PAIR(11385, 16675)
  162. *PrintableOrigin: PAIR(380, 240)
  163. *Command: CmdSelect
  164. {
  165. *Order: DOC_SETUP.3
  166. *Cmd: "<1C>fPC0."
  167. }
  168. }
  169. *case: LANDSCAPE_CC270
  170. {
  171. *PrintableArea: PAIR(11385, 16310)
  172. *PrintableOrigin: PAIR(380, 240)
  173. *Command: CmdSelect
  174. {
  175. *Order: DOC_SETUP.3
  176. *Cmd: "<1C>fLC0."
  177. }
  178. }
  179. }
  180. }
  181. *Option: B5
  182. {
  183. *rcNameID: =B5_DISPLAY
  184. *PrintableArea: PAIR(8035, 11620)
  185. *PrintableOrigin: PAIR(380, 240)
  186. *switch: Orientation
  187. {
  188. *case: PORTRAIT
  189. {
  190. *Command: CmdSelect
  191. {
  192. *Order: DOC_SETUP.3
  193. *Cmd: "<1C>fPC0."
  194. }
  195. }
  196. *case: LANDSCAPE_CC270
  197. {
  198. *Command: CmdSelect
  199. {
  200. *Order: DOC_SETUP.3
  201. *Cmd: "<1C>fLC0."
  202. }
  203. }
  204. }
  205. }
  206. *Option: JAPANESE_POSTCARD
  207. {
  208. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  209. *switch: Orientation
  210. {
  211. *case: PORTRAIT
  212. {
  213. *PrintableArea: PAIR(4060, 6595)
  214. *PrintableOrigin: PAIR(380, 240)
  215. *Command: CmdSelect
  216. {
  217. *Order: DOC_SETUP.3
  218. *Cmd: "<1C>fPC0."
  219. }
  220. }
  221. *case: LANDSCAPE_CC270
  222. {
  223. *PrintableArea: PAIR(4060, 6470)
  224. *PrintableOrigin: PAIR(380, 240)
  225. *Command: CmdSelect
  226. {
  227. *Order: DOC_SETUP.3
  228. *Cmd: "<1C>fLC0."
  229. }
  230. }
  231. }
  232. }
  233. }
  234. *%-----INVALID COMBINATION-----
  235. *InvalidCombination: LIST(InputBin.Hopper1, PaperSize.B4)
  236. *InvalidCombination: LIST(InputBin.Hopper2, PaperSize.A4)
  237. *InvalidCombination: LIST(InputBin.Hopper2, PaperSize.B5)
  238. *InvalidCombination: LIST(InputBin.Hopper2, PaperSize.JAPANESE_POSTCARD)
  239. *%-----HALFTONE-----
  240. *Feature: Halftone
  241. {
  242. *rcNameID: =HALFTONING_DISPLAY
  243. *DefaultOption: HT_PATSIZE_AUTO
  244. *Option: HT_PATSIZE_AUTO
  245. {
  246. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  247. }
  248. *Option: HT_PATSIZE_SUPERCELL_M
  249. {
  250. *rcNameID: =HT_SUPERCELL_DISPLAY
  251. }
  252. *Option: HT_PATSIZE_6x6_M
  253. {
  254. *rcNameID: =HT_DITHER6X6_DISPLAY
  255. }
  256. *Option: HT_PATSIZE_8x8_M
  257. {
  258. *rcNameID: =HT_DITHER8X8_DISPLAY
  259. }
  260. }
  261. *%======== TextHalftoneThreshold ========
  262. *Feature: TextHalftoneThreshold
  263. {
  264. *rcNameID: =TEXTHALFTONE_DISPLAY
  265. *DefaultOption: 240
  266. *Option: NONE
  267. {
  268. *rcNameID: =NONE_DISPLAY
  269. }
  270. *Option: 240
  271. {
  272. *Name: "240"
  273. EXTERN_GLOBAL: *TextHalftoneThreshold: 240
  274. }
  275. }
  276. *%-----START DOC-----
  277. *Command: CmdStartDoc
  278. {
  279. *Order: DOC_SETUP.1
  280. *Cmd: "<1B>c1<1C>d240.<1B>K"
  281. }
  282. *%-----COPIES-----
  283. *Command: CmdCopies
  284. {
  285. *Order: DOC_SETUP.4
  286. *Cmd: "<1C>x" %d[1,99]{NumOfCopies}"."
  287. }
  288. *%-----START PAGE-----
  289. *Command: CmdStartPage
  290. {
  291. *Order: PAGE_SETUP.1
  292. *CallbackID: =CMD_INIT_COORDINATE
  293. }
  294. *%-----END JOB-----
  295. *Command: CmdEndJob
  296. {
  297. *Order: JOB_FINISH.1
  298. *Cmd: "<1B>c1"
  299. }
  300. *%-----END PAGE-----
  301. *Command: CmdEndPage
  302. {
  303. *Order: PAGE_FINISH.1
  304. *Cmd: "<1C>R<1C>x" %d[1,99]{NumOfCopies}"."
  305. }
  306. *%-----CAPABILITIES-----
  307. *RotateCoordinate?: FALSE
  308. *RotateRaster?: TRUE
  309. *RotateFont?: TRUE
  310. *TextCaps: LIST(TC_OP_CHARACTER,TC_CR_90,TC_SF_X_YINDEP,TC_SA_DOUBLE,TC_SA_INTEGER,TC_SA_CONTIN,TC_EA_DOUBLE,TC_IA_ABLE)
  311. *%-----CURSOR MOVE-----
  312. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  313. *XMoveUnit: 240
  314. *YMoveUnit: 240
  315. *Command: CmdXMoveAbsolute
  316. {
  317. *CallbackID: =CMD_MOVE_X
  318. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  319. }
  320. *Command: CmdYMoveAbsolute
  321. {
  322. *CallbackID: =CMD_MOVE_Y
  323. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  324. }
  325. *EjectPageWithFF?: TRUE
  326. *Command: CmdCR { *CallbackID: =CMD_CR }
  327. *Command: CmdLF { *Cmd : "<0A>" }
  328. *Command: CmdFF { *Cmd : "<1C>R<0D0C>" }
  329. *Command: CmdSetSimpleRotation
  330. {
  331. *CallbackID: =CMD_PC_PRN_DIRECTION
  332. *Params: LIST(PrintDirInCCDegrees)
  333. }
  334. *%-----RASTER DATA-----
  335. *OutputDataFormat: H_BYTE
  336. *OptimizeLeftBound?: TRUE
  337. *CursorXAfterSendBlockData: AT_CURSOR_X_ORIGIN
  338. *CursorYAfterSendBlockData: NO_MOVE
  339. *%-----DEVICE FONT-----
  340. *DefaultFont: =RC_FONT_MINCHO_602
  341. *DefaultCTT: 1
  342. *CharPosition: BASELINE
  343. *DeviceFonts: LIST(=RC_FONT_MINCHO_602,=RC_FONT_MINCHOV_602)
  344. *%-----FONT SIMULATION-----
  345. *Command: CmdBoldOn { *Cmd : "<1C>c,,1,7." }
  346. *Command: CmdItalicOn { *Cmd : "<1C>c,,2,7." }
  347. *Command: CmdClearAllFontAttribs { *Cmd : "<1C>c,,0,7." }
  348. *%========== RectFill ==========
  349. *% *MinGrayFill: 1
  350. *% *MaxGrayFill: 100
  351. *% *Command: CmdSetRectWidth
  352. *% {
  353. *% *CallbackID: 60
  354. *% *Params: LIST(RectXSize)
  355. *% }
  356. *% *Command: CmdSetRectHeight
  357. *% {
  358. *% *CallbackID: 61
  359. *% *Params: LIST(RectYSize)
  360. *% }
  361. *% *Command: CmdRectBlackFill { *CallbackID: 63 }