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.

626 lines
15 KiB

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