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.

590 lines
14 KiB

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