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.

650 lines
16 KiB

  1. *GPDSpecVersion: "1.0"
  2. *CodePage: 1252
  3. *ModelName: "NEC PC-PR2000/4"
  4. *MasterUnits: PAIR(1200, 1200)
  5. *ResourceDLL: "NCDLJRES.dll"
  6. *PrinterType: PAGE
  7. *MaxCopies: 99
  8. *FontCartSlots: 1
  9. *rcInstalledOptionNameID: 800
  10. *rcNotInstalledOptionNameID: 801
  11. *PrintRateUnit: PPM
  12. *PrintRate: 8
  13. *GPDFileName: "NCDL204J.GPD"
  14. *Include: "STDNAMES.GPD"
  15. *GPDFileVersion: "1.000"
  16. *HelpFile: "NCDLJRES.HLP"
  17. *%======== Macros ========
  18. *Macros: DeviceFontIDs
  19. {
  20. RC_FONT_COURIER : 1
  21. RC_FONT_SANSERIF : 2
  22. RC_FONT_ROMAN : 3
  23. RC_FONT_MINCHO : 4
  24. RC_FONT_MINCHOV : 5
  25. RC_FONT_GOTHIC : 6
  26. RC_FONT_GOTHICV : 7
  27. RC_FONT_COURIER_P : 8
  28. RC_FONT_SANSERIF_P : 9
  29. RC_FONT_ROMAN_P : 10
  30. RC_FONT_MINCHO_P : 11
  31. RC_FONT_MINCHOV_P : 12
  32. RC_FONT_GOTHIC_P : 13
  33. RC_FONT_GOTHICV_P : 14
  34. RC_FONT_OCRB_P : 15
  35. RC_FONT_ZUIHITSU_P : 16
  36. RC_FONT_ZUIHITSUV_P : 17
  37. RC_FONT_KYOUKASYO_P : 18
  38. RC_FONT_KYOUKASYOV_P : 19
  39. RC_FONT_MARUGOTH_P : 20
  40. RC_FONT_MARUGOTHV_P : 21
  41. }
  42. *Macros: TTFSStrIDs
  43. {
  44. RC_STR_MINCHO : 900
  45. RC_STR_GOTHIC : 901
  46. RC_STR_MSMINCHO : 910
  47. RC_STR_MSGOTHIC : 911
  48. }
  49. *Macros: OEMCallbackIDs
  50. {
  51. CMD_MOVE_X : 23
  52. CMD_MOVE_Y : 24
  53. CMD_BEGIN_RASTER : 26
  54. CMD_RES_600 : 27
  55. CMD_RES_400 : 28
  56. CMD_RES_240 : 29
  57. CMD_SEND_BLOCK_DATA : 30
  58. CMD_BEGIN_RASTER_NO_COMP : 31
  59. CMD_INIT_COORDINATE : 32
  60. CMD_PC_PRN_DIRECTION : 50
  61. CMD_CR : 51
  62. CMD_FF : 52
  63. CMD_RECTWIDTH : 60
  64. CMD_RECTHEIGHT : 61
  65. CMD_RECTWHITE : 62
  66. CMD_RECTBLACK : 63
  67. CMD_RECTGRAY : 64
  68. CMD_WHITE_ON : 80
  69. CMD_WHITE_OFF : 81
  70. CMD_BOLD_ON : 82
  71. CMD_ITALIC_ON : 83
  72. CMD_CLEAR_ATTRIB : 84
  73. CMD_CLEAR_ATTRIB_P : 85
  74. }
  75. *Macros: PopupHelpIDs
  76. {
  77. POP_DL_TEXTHALFTONE : 611
  78. POP_DL_TEXTHALFTONE_S : 612
  79. POP_DL_TEXTHALFTONE_S2 : 613
  80. }
  81. *%======== Orientation ========
  82. *Feature: Orientation
  83. {
  84. *rcNameID: =ORIENTATION_DISPLAY
  85. *DefaultOption: PORTRAIT
  86. *Option: PORTRAIT
  87. {
  88. *rcNameID: =PORTRAIT_DISPLAY
  89. }
  90. *Option: LANDSCAPE_CC270
  91. {
  92. *rcNameID: =LANDSCAPE_DISPLAY
  93. }
  94. }
  95. *%======== InputBin ========
  96. *Feature: InputBin
  97. {
  98. *rcNameID: =PAPER_SOURCE_DISPLAY
  99. *DefaultOption: Auto
  100. *Option: Auto
  101. {
  102. *rcNameID: 272
  103. *switch: Orientation
  104. {
  105. *case: PORTRAIT
  106. {
  107. *Command: CmdSelect
  108. {
  109. *Order: DOC_SETUP.3
  110. *NoPageEject?: TRUE
  111. *Cmd: "<1C>fPC1.<1C>fP"
  112. }
  113. }
  114. *case: LANDSCAPE_CC270
  115. {
  116. *Command: CmdSelect
  117. {
  118. *Order: DOC_SETUP.3
  119. *NoPageEject?: TRUE
  120. *Cmd: "<1C>fLC1.<1C>fL"
  121. }
  122. }
  123. }
  124. }
  125. *Option: Hopper1
  126. {
  127. *rcNameID: 273
  128. *switch: Orientation
  129. {
  130. *case: PORTRAIT
  131. {
  132. *Command: CmdSelect
  133. {
  134. *Order: DOC_SETUP.3
  135. *NoPageEject?: TRUE
  136. *Cmd: "<1C>fPC1.<1C>fP"
  137. }
  138. }
  139. *case: LANDSCAPE_CC270
  140. {
  141. *Command: CmdSelect
  142. {
  143. *Order: DOC_SETUP.3
  144. *NoPageEject?: TRUE
  145. *Cmd: "<1C>fLC1.<1C>fL"
  146. }
  147. }
  148. }
  149. }
  150. *Option: Hopper2
  151. {
  152. *rcNameID: 274
  153. *Installable?: TRUE
  154. *rcInstallableFeatureNameID: 274
  155. *switch: Orientation
  156. {
  157. *case: PORTRAIT
  158. {
  159. *Command: CmdSelect
  160. {
  161. *Order: DOC_SETUP.3
  162. *NoPageEject?: TRUE
  163. *Cmd: "<1C>fPC2.<1C>fP"
  164. }
  165. }
  166. *case: LANDSCAPE_CC270
  167. {
  168. *Command: CmdSelect
  169. {
  170. *Order: DOC_SETUP.3
  171. *NoPageEject?: TRUE
  172. *Cmd: "<1C>fLC2.<1C>fL"
  173. }
  174. }
  175. }
  176. }
  177. }
  178. *%======== Resolution ========
  179. *Feature: Resolution
  180. {
  181. *rcNameID: =RESOLUTION_DISPLAY
  182. *DefaultOption: 400dpi
  183. *Option: 400dpi
  184. {
  185. *rcNameID: 891
  186. *DPI: PAIR(400, 400)
  187. *TextDPI: PAIR(400, 400)
  188. *MinStripBlankPixels: 32
  189. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  190. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  191. *SpotDiameter: 100
  192. *Command: CmdSelect
  193. {
  194. *Order: DOC_SETUP.5
  195. *NoPageEject?: TRUE
  196. *CallbackID: =CMD_RES_400
  197. }
  198. *% *Command: CmdSendBlockData
  199. *% {
  200. *% *Cmd : "<1C>i" %d[0,65535]{RasterDataWidthInBytes * 8}"," %d[0,65535]{RasterDataHeightInPixels }",0,1/1,1/1,"%d{NumOfDataBytes } ",400."
  201. *% }
  202. }
  203. *Option: 240dpi
  204. {
  205. *rcNameID: 892
  206. *DPI: PAIR(240, 240)
  207. *TextDPI: PAIR(240, 240)
  208. *MinStripBlankPixels: 32
  209. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  210. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  211. *SpotDiameter: 100
  212. *Command: CmdSelect
  213. {
  214. *Order: DOC_SETUP.5
  215. *NoPageEject?: TRUE
  216. *CallbackID: =CMD_RES_240
  217. }
  218. *% *Command: CmdSendBlockData
  219. *% {
  220. *% *Cmd : "<1C>i" %d[0,65535]{RasterDataWidthInBytes * 8}"," %d[0,65535]{RasterDataHeightInPixels }",0,1/1,1/1,"%d{NumOfDataBytes } ",240."
  221. *% }
  222. }
  223. }
  224. *%======== PaperSize ========
  225. *Feature: PaperSize
  226. {
  227. *rcNameID: =PAPER_SIZE_DISPLAY
  228. *DefaultOption: A4
  229. *Option: A4
  230. {
  231. *rcNameID: =A4_DISPLAY
  232. *PrintableArea: PAIR(9360, 13560)
  233. *PrintableOrigin: PAIR(378, 237)
  234. *Command: CmdSelect
  235. {
  236. *Order: DOC_SETUP.4
  237. *NoPageEject?: TRUE
  238. *Cmd: "A4."
  239. }
  240. }
  241. *Option: A5
  242. {
  243. *rcNameID: =A5_DISPLAY
  244. *PrintableArea: PAIR(6420, 9480)
  245. *PrintableOrigin: PAIR(378, 237)
  246. *Command: CmdSelect
  247. {
  248. *Order: DOC_SETUP.4
  249. *NoPageEject?: TRUE
  250. *Cmd: "A5."
  251. }
  252. }
  253. *Option: B4
  254. {
  255. *rcNameID: =B4_DISPLAY
  256. *switch: Orientation
  257. {
  258. *case: PORTRAIT
  259. {
  260. *PrintableArea: PAIR(11400, 16680)
  261. *PrintableOrigin: PAIR(378, 237)
  262. }
  263. *case: LANDSCAPE_CC270
  264. {
  265. *PrintableArea: PAIR(11400, 16320)
  266. *PrintableOrigin: PAIR(378, 237)
  267. }
  268. }
  269. *Command: CmdSelect
  270. {
  271. *Order: DOC_SETUP.4
  272. *NoPageEject?: TRUE
  273. *Cmd: "B4."
  274. }
  275. }
  276. *Option: B5
  277. {
  278. *rcNameID: =B5_DISPLAY
  279. *PrintableArea: PAIR(8040, 11640)
  280. *PrintableOrigin: PAIR(378, 237)
  281. *Command: CmdSelect
  282. {
  283. *Order: DOC_SETUP.4
  284. *NoPageEject?: TRUE
  285. *Cmd: "B5."
  286. }
  287. }
  288. *Option: LETTER
  289. {
  290. *rcNameID: =LETTER_DISPLAY
  291. *PrintableArea: PAIR(9600, 12720)
  292. *PrintableOrigin: PAIR(378, 237)
  293. *Command: CmdSelect
  294. {
  295. *Order: DOC_SETUP.4
  296. *NoPageEject?: TRUE
  297. *Cmd: "LT."
  298. }
  299. }
  300. *Option: JAPANESE_POSTCARD
  301. {
  302. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  303. *switch: Orientation
  304. {
  305. *case: PORTRAIT
  306. {
  307. *PrintableArea: PAIR(4080, 6600)
  308. *PrintableOrigin: PAIR(378, 237)
  309. }
  310. *case: LANDSCAPE_CC270
  311. {
  312. *PrintableArea: PAIR(4080, 6480)
  313. *PrintableOrigin: PAIR(378, 237)
  314. }
  315. }
  316. *Command: CmdSelect
  317. {
  318. *Order: DOC_SETUP.4
  319. *NoPageEject?: TRUE
  320. *Cmd: "PC."
  321. }
  322. }
  323. *Option: A3toB4
  324. {
  325. *rcNameID: 258
  326. *PageDimensions: PAIR(14032, 19843)
  327. *PrintableArea: PAIR(13560, 19320)
  328. *PrintableOrigin: PAIR(237, 237)
  329. *Command: CmdSelect
  330. {
  331. *Order: DOC_SETUP.4
  332. *NoPageEject?: TRUE
  333. *Cmd: "A3B4."
  334. }
  335. }
  336. *Option: A3toA4
  337. {
  338. *rcNameID: 259
  339. *PageDimensions: PAIR(14032, 19843)
  340. *PrintableArea: PAIR(13560, 19320)
  341. *PrintableOrigin: PAIR(237, 237)
  342. *Command: CmdSelect
  343. {
  344. *Order: DOC_SETUP.4
  345. *NoPageEject?: TRUE
  346. *Cmd: "A3A4."
  347. }
  348. }
  349. *Option: B4toA4
  350. {
  351. *rcNameID: 264
  352. *PageDimensions: PAIR(12142, 17197)
  353. *switch: Orientation
  354. {
  355. *case: PORTRAIT
  356. {
  357. *PrintableArea: PAIR(11400, 16680)
  358. *PrintableOrigin: PAIR(378, 237)
  359. }
  360. *case: LANDSCAPE_CC270
  361. {
  362. *PrintableArea: PAIR(11400, 16320)
  363. *PrintableOrigin: PAIR(378, 237)
  364. }
  365. }
  366. *Command: CmdSelect
  367. {
  368. *Order: DOC_SETUP.4
  369. *NoPageEject?: TRUE
  370. *Cmd: "B4A4."
  371. }
  372. }
  373. *Option: A4x2toA4
  374. {
  375. *rcNameID: 268
  376. *PageDimensions: PAIR(9922, 14032)
  377. *PrintableArea: PAIR(9360, 13560)
  378. *PrintableOrigin: PAIR(378, 237)
  379. *Command: CmdSelect
  380. {
  381. *Order: DOC_SETUP.4
  382. *NoPageEject?: TRUE
  383. *Cmd: "UPA4."
  384. }
  385. }
  386. *Option: LPtoA4
  387. {
  388. *rcNameID: 270
  389. *Constraints: Orientation.PORTRAIT
  390. *PageDimensions: PAIR(13200, 18000)
  391. *PrintableArea: PAIR(13200, 16320)
  392. *PrintableOrigin: PAIR(0, 840)
  393. *Command: CmdSelect
  394. {
  395. *Order: DOC_SETUP.4
  396. *NoPageEject?: TRUE
  397. *Cmd: "LPA4."
  398. }
  399. }
  400. *Option: LPtoB4
  401. {
  402. *rcNameID: 271
  403. *Constraints: Orientation.PORTRAIT
  404. *PageDimensions: PAIR(13200, 18000)
  405. *PrintableArea: PAIR(13200, 16320)
  406. *PrintableOrigin: PAIR(0, 840)
  407. *Command: CmdSelect
  408. {
  409. *Order: DOC_SETUP.4
  410. *NoPageEject?: TRUE
  411. *Cmd: "LPB4."
  412. }
  413. }
  414. }
  415. *InvalidCombination: LIST(InputBin.Hopper1, PaperSize.B4)
  416. *InvalidCombination: LIST(InputBin.Hopper1, PaperSize.LETTER)
  417. *InvalidCombination: LIST(InputBin.Hopper1, PaperSize.A3toB4)
  418. *InvalidCombination: LIST(InputBin.Hopper1, PaperSize.LPtoB4)
  419. *%======== Halftone ========
  420. *Feature: Halftone
  421. {
  422. *rcNameID: =HALFTONING_DISPLAY
  423. *DefaultOption: HT_PATSIZE_AUTO
  424. *Option: HT_PATSIZE_AUTO
  425. {
  426. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  427. }
  428. *Option: HT_PATSIZE_SUPERCELL_M
  429. {
  430. *rcNameID: =HT_SUPERCELL_DISPLAY
  431. }
  432. *Option: HT_PATSIZE_6x6_M
  433. {
  434. *rcNameID: =HT_DITHER6X6_DISPLAY
  435. }
  436. *Option: HT_PATSIZE_8x8_M
  437. {
  438. *rcNameID: =HT_DITHER8X8_DISPLAY
  439. }
  440. }
  441. *%======== TextHalftoneThreshold ========
  442. *Feature: TextHalftoneThreshold
  443. {
  444. *rcNameID: =TEXTHALFTONE_DISPLAY
  445. *DefaultOption: 240
  446. *HelpIndex: 611 *%POP_DL_TEXTHALFTONE
  447. *Option: NONE
  448. {
  449. *rcNameID: =NONE_DISPLAY
  450. }
  451. *Option: 240
  452. {
  453. *Name: "240"
  454. EXTERN_GLOBAL: *TextHalftoneThreshold: 240
  455. }
  456. *Option: 400
  457. {
  458. *Name: "400"
  459. EXTERN_GLOBAL: *TextHalftoneThreshold: 400
  460. }
  461. }
  462. *%======== StartJob ========
  463. *switch: Resolution
  464. {
  465. *case: 400dpi
  466. {
  467. *Command: CmdStartJob
  468. {
  469. *Order: JOB_SETUP.1
  470. *Cmd: "<1B>c1<1C>&400.<1C>d240."
  471. }
  472. }
  473. *case: 240dpi
  474. {
  475. *Command: CmdStartJob
  476. {
  477. *Order: JOB_SETUP.1
  478. *Cmd: "<1B>c1<1C>&240.<1C>d240."
  479. }
  480. }
  481. }
  482. *%======== StartDoc ========
  483. *Command: CmdStartDoc
  484. {
  485. *Order: DOC_SETUP.1
  486. *Cmd: "<1C>R"
  487. }
  488. *%======== CopyCmd ========
  489. *Command: CmdCopies
  490. {
  491. *Order: DOC_SETUP.2
  492. *Cmd: "<1C>x" %d[1,99]{NumOfCopies }",C."
  493. }
  494. *%======== StartPage ========
  495. *Command: CmdStartPage
  496. {
  497. *Order: PAGE_SETUP.1
  498. *CallbackID: =CMD_INIT_COORDINATE
  499. }
  500. *%======== EndPage ========
  501. *Command: CmdEndPage
  502. {
  503. *Order: PAGE_FINISH.1
  504. *Cmd: "" *% Reserved
  505. }
  506. *%======== EndDoc ========
  507. *Command: CmdEndDoc
  508. {
  509. *Order: DOC_FINISH.1
  510. *Cmd: "" *% Reserved
  511. }
  512. *%======== EndJob ========
  513. *Command: CmdEndJob
  514. {
  515. *Order: JOB_FINISH.1
  516. *Cmd: "<1C>fPC1.<1C>&0.<1B>c1"
  517. }
  518. *%======== Capabilities ========
  519. *RotateCoordinate?: FALSE
  520. *RotateRaster?: TRUE
  521. *RotateFont?: TRUE
  522. *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)
  523. *%======== Cursor Control ========
  524. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  525. *switch: Resolution
  526. {
  527. *case: 400dpi
  528. {
  529. *XMoveUnit: 400
  530. *YMoveUnit: 400
  531. }
  532. *case: 240dpi
  533. {
  534. *XMoveUnit: 240
  535. *YMoveUnit: 240
  536. }
  537. }
  538. *Command: CmdXMoveAbsolute
  539. {
  540. *CallbackID: =CMD_MOVE_X
  541. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  542. }
  543. *Command: CmdYMoveAbsolute
  544. {
  545. *CallbackID: =CMD_MOVE_Y
  546. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  547. }
  548. *EjectPageWithFF?: TRUE
  549. *Command: CmdCR { *CallbackID: =CMD_CR }
  550. *Command: CmdLF { *Cmd : "<0A>" }
  551. *Command: CmdFF { *CallbackID: =CMD_FF }
  552. *Command: CmdSetSimpleRotation
  553. {
  554. *CallbackID: =CMD_PC_PRN_DIRECTION
  555. *Params: LIST(PrintDirInCCDegrees)
  556. }
  557. *%======== Raster Data ========
  558. *OutputDataFormat: H_BYTE
  559. *OptimizeLeftBound?: TRUE
  560. *CursorXAfterSendBlockData: AT_CURSOR_X_ORIGIN
  561. *CursorYAfterSendBlockData: NO_MOVE
  562. *Command: CmdSendBlockData
  563. {
  564. *CallbackID: =CMD_SEND_BLOCK_DATA
  565. *Params: RasterDataWidthInBytes
  566. }
  567. *Command: CmdBeginRaster
  568. {
  569. *% *CallbackID: =CMD_BEGIN_RASTER
  570. *CallbackID: =CMD_BEGIN_RASTER_NO_COMP
  571. }
  572. *%======== Device Font ========
  573. *DefaultFont: =RC_FONT_MINCHO
  574. *DefaultCTT: 1
  575. *CharPosition: BASELINE
  576. *DeviceFonts: LIST(=RC_FONT_COURIER,=RC_FONT_SANSERIF,=RC_FONT_ROMAN,
  577. + =RC_FONT_MINCHO,=RC_FONT_MINCHOV)
  578. *FontCartridge: Gothic
  579. {
  580. *rcCartridgeNameID: 277
  581. *Fonts: LIST(=RC_FONT_GOTHIC,=RC_FONT_GOTHICV)
  582. }
  583. *%======== Font Subsitution ========
  584. *TTFS: Mincho
  585. {
  586. *rcTTFontNameID: =RC_STR_MSMINCHO
  587. *rcDevFontNameID: =RC_STR_MINCHO
  588. }
  589. *TTFS: Gothic
  590. {
  591. *rcTTFontNameID: =RC_STR_MSGOTHIC
  592. *rcDevFontNameID: =RC_STR_GOTHIC
  593. }
  594. *TTFSEnabled?: FALSE
  595. *%======== Font Simulation ========
  596. *Command: CmdBoldOn { *CallbackID: =CMD_BOLD_ON }
  597. *Command: CmdItalicOn { *CallbackID: =CMD_ITALIC_ON }
  598. *Command: CmdClearAllFontAttribs { *CallbackID: =CMD_CLEAR_ATTRIB }
  599. *Command: CmdWhiteTextOn { *CallbackID: =CMD_WHITE_ON }
  600. *Command: CmdWhiteTextOff { *CallbackID: =CMD_WHITE_OFF }
  601. *%========== RectFill ==========
  602. *MinGrayFill: 1
  603. *MaxGrayFill: 100
  604. *Command: CmdSetRectWidth
  605. {
  606. *CallbackID: =CMD_RECTWIDTH
  607. *Params: LIST(RectXSize)
  608. }
  609. *Command: CmdSetRectHeight
  610. {
  611. *CallbackID: =CMD_RECTHEIGHT
  612. *Params: LIST(RectYSize)
  613. }
  614. *Command: CmdRectWhiteFill { *CallbackID: =CMD_RECTWHITE }
  615. *Command: CmdRectBlackFill { *CallbackID: =CMD_RECTBLACK }
  616. *Command: CmdRectGrayFill
  617. {
  618. *CallbackID: =CMD_RECTGRAY
  619. *Params: LIST(GrayPercentage)
  620. }