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.

572 lines
14 KiB

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