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.

494 lines
12 KiB

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