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.

585 lines
14 KiB

  1. *GPDSpecVersion: "1.0"
  2. *CodePage: 1252
  3. *ModelName: "NEC PC-PR2000"
  4. *MasterUnits: PAIR(1200, 1200)
  5. *ResourceDLL: "nc62jres.dll"
  6. *PrinterType: PAGE
  7. *MaxCopies: 99
  8. *FontCartSlots: 2
  9. *PrintRateUnit: PPM
  10. *PrintRate: 8
  11. *GPDFileName: "NC6220J.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: Auto
  75. *Option: Auto
  76. {
  77. *rcNameID: 262
  78. *Command: CmdSelect
  79. {
  80. *Order: DOC_SETUP.2
  81. *Cmd: "<1C>fPC0."
  82. }
  83. }
  84. *Option: Hopper1
  85. {
  86. *rcNameID: 263
  87. *Command: CmdSelect
  88. {
  89. *Order: DOC_SETUP.2
  90. *Cmd: "<1C>fPC1."
  91. }
  92. }
  93. *Option: Hopper2
  94. {
  95. *rcNameID: 264
  96. *Command: CmdSelect
  97. {
  98. *Order: DOC_SETUP.2
  99. *Cmd: "<1C>fPC2."
  100. }
  101. }
  102. }
  103. *%-----RESOLUTION-----
  104. *Feature: Resolution
  105. {
  106. *rcNameID: =RESOLUTION_DISPLAY
  107. *DefaultOption: 240dpi
  108. *Option: 240dpi
  109. {
  110. *Name: "240 x 240 dots per inch"
  111. *DPI: PAIR(240, 240)
  112. *TextDPI: PAIR(240, 240)
  113. *MinStripBlankPixels: 32
  114. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  115. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  116. *SpotDiameter: 100
  117. *Command: CmdSelect
  118. {
  119. *Order: DOC_SETUP.5
  120. *CallbackID: =CMD_RES_240NEW
  121. }
  122. *Command: CmdBeginRaster
  123. {
  124. *CallbackID: =CMD_BEGIN_RASTER
  125. }
  126. *Command: CmdSendBlockData
  127. {
  128. *CallbackID: =CMD_SEND_BLOCK_DATA
  129. *Params: LIST(RasterDataWidthInBytes,
  130. + RasterDataHeightInPixels, NumOfDataBytes)
  131. }
  132. }
  133. }
  134. *%-----PaperSize-----
  135. *Feature: PaperSize
  136. {
  137. *rcNameID: =PAPER_SIZE_DISPLAY
  138. *DefaultOption: A4
  139. *Option: A4
  140. {
  141. *rcNameID: =A4_DISPLAY
  142. *PrintableArea: PAIR(9355, 13550)
  143. *PrintableOrigin: PAIR(380, 240)
  144. *switch: Orientation
  145. {
  146. *case: PORTRAIT
  147. {
  148. *Command: CmdSelect
  149. {
  150. *Order: DOC_SETUP.3
  151. *Cmd: "<1C>fPA4."
  152. }
  153. }
  154. *case: LANDSCAPE_CC270
  155. {
  156. *Command: CmdSelect
  157. {
  158. *Order: DOC_SETUP.3
  159. *Cmd: "<1C>fLA4."
  160. }
  161. }
  162. }
  163. }
  164. *Option: A5
  165. {
  166. *rcNameID: =A5_DISPLAY
  167. *PrintableArea: PAIR(6415, 9475)
  168. *PrintableOrigin: PAIR(380, 240)
  169. *switch: Orientation
  170. {
  171. *case: PORTRAIT
  172. {
  173. *Command: CmdSelect
  174. {
  175. *Order: DOC_SETUP.3
  176. *Cmd: "<1C>fPA5."
  177. }
  178. }
  179. *case: LANDSCAPE_CC270
  180. {
  181. *Command: CmdSelect
  182. {
  183. *Order: DOC_SETUP.3
  184. *Cmd: "<1C>fLA5."
  185. }
  186. }
  187. }
  188. }
  189. *Option: B4
  190. {
  191. *rcNameID: =B4_DISPLAY
  192. *switch: Orientation
  193. {
  194. *case: PORTRAIT
  195. {
  196. *PrintableArea: PAIR(11385, 16675)
  197. *PrintableOrigin: PAIR(380, 240)
  198. *Command: CmdSelect
  199. {
  200. *Order: DOC_SETUP.3
  201. *Cmd: "<1C>fPB4."
  202. }
  203. }
  204. *case: LANDSCAPE_CC270
  205. {
  206. *PrintableArea: PAIR(11385, 16310)
  207. *PrintableOrigin: PAIR(380, 240)
  208. *Command: CmdSelect
  209. {
  210. *Order: DOC_SETUP.3
  211. *Cmd: "<1C>fLB4."
  212. }
  213. }
  214. }
  215. }
  216. *Option: B5
  217. {
  218. *rcNameID: =B5_DISPLAY
  219. *PrintableArea: PAIR(8035, 11620)
  220. *PrintableOrigin: PAIR(380, 240)
  221. *switch: Orientation
  222. {
  223. *case: PORTRAIT
  224. {
  225. *Command: CmdSelect
  226. {
  227. *Order: DOC_SETUP.3
  228. *Cmd: "<1C>fPB5."
  229. }
  230. }
  231. *case: LANDSCAPE_CC270
  232. {
  233. *Command: CmdSelect
  234. {
  235. *Order: DOC_SETUP.3
  236. *Cmd: "<1C>fLB5."
  237. }
  238. }
  239. }
  240. }
  241. *Option: LETTER
  242. {
  243. *rcNameID: =LETTER_DISPLAY
  244. *PrintableArea: PAIR(9590, 12685)
  245. *PrintableOrigin: PAIR(380, 240)
  246. *switch: Orientation
  247. {
  248. *case: PORTRAIT
  249. {
  250. *Command: CmdSelect
  251. {
  252. *Order: DOC_SETUP.3
  253. *Cmd: "<1C>fPLT."
  254. }
  255. }
  256. *case: LANDSCAPE_CC270
  257. {
  258. *Command: CmdSelect
  259. {
  260. *Order: DOC_SETUP.3
  261. *Cmd: "<1C>fLLT."
  262. }
  263. }
  264. }
  265. }
  266. *Option: JAPANESE_POSTCARD
  267. {
  268. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  269. *switch: Orientation
  270. {
  271. *case: PORTRAIT
  272. {
  273. *PrintableArea: PAIR(4060, 6595)
  274. *PrintableOrigin: PAIR(380, 240)
  275. *Command: CmdSelect
  276. {
  277. *Order: DOC_SETUP.3
  278. *Cmd: "<1C>fPPC."
  279. }
  280. }
  281. *case: LANDSCAPE_CC270
  282. {
  283. *PrintableArea: PAIR(4060, 6470)
  284. *PrintableOrigin: PAIR(380, 240)
  285. *Command: CmdSelect
  286. {
  287. *Order: DOC_SETUP.3
  288. *Cmd: "<1C>fLPC."
  289. }
  290. }
  291. }
  292. }
  293. *Option: B4toA4
  294. {
  295. *rcNameID: 258
  296. *PageDimensions: PAIR(12144, 17196)
  297. *switch: Orientation
  298. {
  299. *case: PORTRAIT
  300. {
  301. *PrintableArea: PAIR(11385, 16675)
  302. *PrintableOrigin: PAIR(380, 240)
  303. *Command: CmdSelect
  304. {
  305. *Order: DOC_SETUP.3
  306. *Cmd: "<1C>fPB4A4."
  307. }
  308. }
  309. *case: LANDSCAPE_CC270
  310. {
  311. *PrintableArea: PAIR(11385, 16310)
  312. *PrintableOrigin: PAIR(380, 240)
  313. *Command: CmdSelect
  314. {
  315. *Order: DOC_SETUP.3
  316. *Cmd: "<1C>fLB4A4."
  317. }
  318. }
  319. }
  320. }
  321. *Option: A4x2toA4
  322. {
  323. *rcNameID: 259
  324. *PageDimensions: PAIR(9924, 14028)
  325. *PrintableArea: PAIR(9355, 13550)
  326. *PrintableOrigin: PAIR(380, 240)
  327. *switch: Orientation
  328. {
  329. *case: PORTRAIT
  330. {
  331. *Command: CmdSelect
  332. {
  333. *Order: DOC_SETUP.3
  334. *Cmd: "<1C>fPUPA4."
  335. }
  336. }
  337. *case: LANDSCAPE_CC270
  338. {
  339. *Command: CmdSelect
  340. {
  341. *Order: DOC_SETUP.3
  342. *Cmd: "<1C>fLUPA4."
  343. }
  344. }
  345. }
  346. }
  347. *Option: LPtoA4
  348. {
  349. *rcNameID: 260
  350. *PageDimensions: PAIR(13200, 18000)
  351. *Constraints: Orientation.PORTRAIT
  352. *PrintableArea: PAIR(13200, 16320)
  353. *PrintableOrigin: PAIR(0, 840)
  354. *Command: CmdSelect
  355. {
  356. *Order: DOC_SETUP.3
  357. *Cmd: "<1C>fLLPA4."
  358. }
  359. }
  360. *Option: LPtoB4
  361. {
  362. *rcNameID: 261
  363. *PageDimensions: PAIR(13200, 18000)
  364. *Constraints: Orientation.PORTRAIT
  365. *PrintableArea: PAIR(13200, 16320)
  366. *PrintableOrigin: PAIR(0, 840)
  367. *Command: CmdSelect
  368. {
  369. *Order: DOC_SETUP.3
  370. *Cmd: "<1C>fLLPB4."
  371. }
  372. }
  373. }
  374. *%-----INVALID COMBINATION-----
  375. *InvalidCombination: LIST(InputBin.Hopper1, PaperSize.B4)
  376. *InvalidCombination: LIST(InputBin.Hopper1, PaperSize.LETTER)
  377. *InvalidCombination: LIST(InputBin.Hopper1, PaperSize.LPtoB4)
  378. *%-----HALFTONE-----
  379. *Feature: Halftone
  380. {
  381. *rcNameID: =HALFTONING_DISPLAY
  382. *DefaultOption: HT_PATSIZE_AUTO
  383. *Option: HT_PATSIZE_AUTO
  384. {
  385. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  386. }
  387. *Option: HT_PATSIZE_SUPERCELL_M
  388. {
  389. *rcNameID: =HT_SUPERCELL_DISPLAY
  390. }
  391. *Option: HT_PATSIZE_6x6_M
  392. {
  393. *rcNameID: =HT_DITHER6X6_DISPLAY
  394. }
  395. *Option: HT_PATSIZE_8x8_M
  396. {
  397. *rcNameID: =HT_DITHER8X8_DISPLAY
  398. }
  399. }
  400. *%======== TextHalftoneThreshold ========
  401. *Feature: TextHalftoneThreshold
  402. {
  403. *rcNameID: =TEXTHALFTONE_DISPLAY
  404. *DefaultOption: 240
  405. *Option: NONE
  406. {
  407. *rcNameID: =NONE_DISPLAY
  408. }
  409. *Option: 240
  410. {
  411. *Name: "240"
  412. EXTERN_GLOBAL: *TextHalftoneThreshold: 240
  413. }
  414. }
  415. *%-----START DOC-----
  416. *Command: CmdStartDoc
  417. {
  418. *Order: DOC_SETUP.1
  419. *Cmd: "<1B>c1<1C>d240.<1B>K"
  420. }
  421. *%-----COPIES-----
  422. *Command: CmdCopies
  423. {
  424. *Order: DOC_SETUP.4
  425. *Cmd: "<1C>x" %d[1,99]{NumOfCopies}"."
  426. }
  427. *%-----START PAGE-----
  428. *Command: CmdStartPage
  429. {
  430. *Order: PAGE_SETUP.1
  431. *CallbackID: =CMD_INIT_COORDINATE
  432. }
  433. *%-----END JOB-----
  434. *Command: CmdEndJob
  435. {
  436. *Order: JOB_FINISH.1
  437. *Cmd: "<1B>c1"
  438. }
  439. *%-----END PAGE-----
  440. *Command: CmdEndPage
  441. {
  442. *Order: PAGE_FINISH.1
  443. *Cmd: "<1C>R<1C>x" %d[1,99]{NumOfCopies}"."
  444. }
  445. *%-----CAPABILITIES-----
  446. *RotateCoordinate?: FALSE
  447. *RotateRaster?: TRUE
  448. *RotateFont?: TRUE
  449. *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)
  450. *%-----CURSOR MOVE-----
  451. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  452. *XMoveUnit: 240
  453. *YMoveUnit: 240
  454. *Command: CmdXMoveAbsolute
  455. {
  456. *CallbackID: =CMD_MOVE_X
  457. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  458. }
  459. *Command: CmdYMoveAbsolute
  460. {
  461. *CallbackID: =CMD_MOVE_Y
  462. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  463. }
  464. *EjectPageWithFF?: TRUE
  465. *Command: CmdCR { *CallbackID: =CMD_CR }
  466. *Command: CmdLF { *Cmd : "<0A>" }
  467. *Command: CmdFF { *Cmd : "<1C>R<0D0C>" }
  468. *Command: CmdSetSimpleRotation
  469. {
  470. *CallbackID: =CMD_PC_PRN_DIRECTION
  471. *Params: LIST(PrintDirInCCDegrees)
  472. }
  473. *%-----RASTER DATA-----
  474. *OutputDataFormat: H_BYTE
  475. *OptimizeLeftBound?: TRUE
  476. *CursorXAfterSendBlockData: AT_CURSOR_X_ORIGIN
  477. *CursorYAfterSendBlockData: NO_MOVE
  478. *%-----DEVICE FONT-----
  479. *DefaultFont: =RC_FONT_MINCHO
  480. *DefaultCTT: 1
  481. *CharPosition: BASELINE
  482. *DeviceFonts: LIST(=RC_FONT_MINCHO,=RC_FONT_MINCHOV,
  483. + =RC_FONT_COURIER,=RC_FONT_SANSERIF,=RC_FONT_ROMAN)
  484. *FontCartridge: FC1 *%Mincho Outline(Slot1)
  485. {
  486. *rcCartridgeNameID: 266
  487. *Fonts: LIST(=RC_FONT_MINCHO_OUT_SLT1,=RC_FONT_MINCHOV_OUT_SLT1)
  488. }
  489. *FontCartridge: FC2 *%Mincho Outline(Slot2)
  490. {
  491. *rcCartridgeNameID: 267
  492. *Fonts: LIST(=RC_FONT_MINCHO_OUT_SLT2,=RC_FONT_MINCHOV_OUT_SLT2)
  493. }
  494. *FontCartridge: FC3 *%Gothic Outline(Slot1)
  495. {
  496. *rcCartridgeNameID: 269
  497. *Fonts: LIST(=RC_FONT_GOTHIC_OUT_SLT1,=RC_FONT_GOTHICV_OUT_SLT1)
  498. }
  499. *FontCartridge: FC4 *%Gothic Outline(Slot2)
  500. {
  501. *rcCartridgeNameID: 270
  502. *Fonts: LIST(=RC_FONT_GOTHIC_OUT_SLT2,=RC_FONT_GOTHICV_OUT_SLT2)
  503. }
  504. *FontCartridge: FC5 *%Gothic ROM(Slot1)
  505. {
  506. *rcCartridgeNameID: 272
  507. *Fonts: LIST(=RC_FONT_GOTHIC_ROM_SLT1,=RC_FONT_GOTHICV_ROM_SLT1)
  508. }
  509. *FontCartridge: FC6 *%Gothic ROM(Slot2)
  510. {
  511. *rcCartridgeNameID: 273
  512. *Fonts: LIST(=RC_FONT_GOTHIC_ROM_SLT2,=RC_FONT_GOTHICV_ROM_SLT2)
  513. }
  514. *%-----FONT SIMULATION-----
  515. *Command: CmdBoldOn { *Cmd : "<1C>c,,1,7." }
  516. *Command: CmdItalicOn { *Cmd : "<1C>c,,2,7." }
  517. *Command: CmdClearAllFontAttribs { *Cmd : "<1C>c,,0,7." }
  518. *%========== RectFill ==========
  519. *% *MinGrayFill: 1
  520. *% *MaxGrayFill: 100
  521. *% *Command: CmdSetRectWidth
  522. *% {
  523. *% *CallbackID: 60
  524. *% *Params: LIST(RectXSize)
  525. *% }
  526. *% *Command: CmdSetRectHeight
  527. *% {
  528. *% *CallbackID: 61
  529. *% *Params: LIST(RectYSize)
  530. *% }
  531. *% *Command: CmdRectBlackFill { *CallbackID: 63 }