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.

569 lines
14 KiB

  1. *GPDSpecVersion: "1.0"
  2. *CodePage: 1252
  3. *ModelName: "NEC NM-9700"
  4. *MasterUnits: PAIR(360, 360)
  5. *ResourceDLL: "ncnmjres.dll"
  6. *PrinterType: SERIAL
  7. *rcInstalledOptionNameID: 350
  8. *rcNotInstalledOptionNameID: 351
  9. *PrintRateUnit: CPS
  10. *PrintRate: 83
  11. *GPDFileName: "NCNM970J.GPD"
  12. *Include: "STDNAMES.GPD"
  13. *GPDFileVersion: "1.000"
  14. *HelpFile: "NCNMJRES.HLP"
  15. *%======== Macros ========
  16. *Macros: PopupHelpIDs
  17. {
  18. POP_NM_FEEDPOS_A3 : 701
  19. POP_NM_FEEDPOS_B4 : 702
  20. POP_NM_FEEDPOS_A4 : 703
  21. POP_NM_QUARITY : 704
  22. }
  23. *%======== Orientation ========
  24. *Feature: Orientation
  25. {
  26. *rcNameID: =ORIENTATION_DISPLAY
  27. *DefaultOption: PORTRAIT
  28. *Option: PORTRAIT
  29. {
  30. *rcNameID: =PORTRAIT_DISPLAY
  31. }
  32. *Option: LANDSCAPE_CC270
  33. {
  34. *rcNameID: =LANDSCAPE_DISPLAY
  35. }
  36. }
  37. *%======== InputBin ========
  38. *Feature: InputBin
  39. {
  40. *rcNameID: =PAPER_SOURCE_DISPLAY
  41. *DefaultOption: SheetGuide
  42. *Option: SheetGuide
  43. {
  44. *rcNameID: 305
  45. *Constraints: PaperSize.10X11
  46. }
  47. *Option: SheetFeeder
  48. {
  49. *rcNameID: 306
  50. *Installable?: TRUE
  51. *rcInstallableFeatureNameID: 306
  52. *Constraints: PaperSize.A5_ROTATED
  53. *Constraints: PaperSize.JAPANESE_POSTCARD
  54. *Constraints: PaperSize.10X11
  55. *Command: CmdSelect
  56. {
  57. *Order: DOC_SETUP.5
  58. *Cmd: "<1B>m1"
  59. }
  60. }
  61. *Option: TractorFeeder
  62. {
  63. *rcNameID: 310
  64. *Installable?: TRUE
  65. *rcInstallableFeatureNameID: 310
  66. *Constraints: PaperSize.A4
  67. *Constraints: PaperSize.A5
  68. *Constraints: PaperSize.A5_ROTATED
  69. *Constraints: PaperSize.B5
  70. *Constraints: PaperSize.JAPANESE_POSTCARD
  71. }
  72. *Option: HagakiFeeder
  73. {
  74. *rcNameID: 314
  75. *Installable?: TRUE
  76. *rcInstallableFeatureNameID: 314
  77. *Constraints: PaperSize.A4
  78. *Constraints: PaperSize.A5
  79. *Constraints: PaperSize.A5_ROTATED
  80. *Constraints: PaperSize.B5
  81. *Constraints: PaperSize.10X11
  82. *Constraints: PaperSize.CUSTOMSIZE
  83. *Command: CmdSelect
  84. {
  85. *Order: DOC_SETUP.5
  86. *Cmd: "<1B>m1"
  87. }
  88. }
  89. }
  90. *InvalidInstallableCombination: LIST(InputBin.SheetFeeder, InputBin.TractorFeeder)
  91. *InvalidInstallableCombination: LIST(InputBin.TractorFeeder, InputBin.HagakiFeeder)
  92. *%======== Resolution ========
  93. *Feature: Resolution
  94. {
  95. *rcNameID: =RESOLUTION_DISPLAY
  96. *DefaultOption: 180dpi
  97. *Option: 180dpi
  98. {
  99. *rcNameID: 320
  100. *DPI: PAIR(180, 180)
  101. *TextDPI: PAIR(180, 180)
  102. *PinsPerLogPass: 24
  103. *PinsPerPhysPass: 24
  104. *MinStripBlankPixels: 270
  105. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  106. *SpotDiameter: 140
  107. *Command: CmdSendBlockData { *Cmd : "<1B>%"<1B>J" %4d{NumOfDataBytes / 3} }
  108. *Command: CmdSelect
  109. {
  110. *Order: DOC_SETUP.4
  111. *Cmd: "<1A>G<0D1B>C0"
  112. }
  113. }
  114. }
  115. *%======== PaperSize ========
  116. *Feature: PaperSize
  117. {
  118. *rcNameID: =PAPER_SIZE_DISPLAY
  119. *DefaultOption: A4
  120. *Option: A4
  121. {
  122. *rcNameID: =A4_DISPLAY
  123. *PrintableArea: PAIR(2832, 3938)
  124. *PrintableOrigin: PAIR(72, 94)
  125. *Command: CmdSelect
  126. {
  127. *Order: DOC_SETUP.3
  128. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 60) + 15}
  129. }
  130. }
  131. *Option: A5
  132. {
  133. *rcNameID: =A5_DISPLAY
  134. *PrintableArea: PAIR(1954, 2706)
  135. *PrintableOrigin: PAIR(72, 94)
  136. *switch: KyuusiIti
  137. {
  138. *case: Center
  139. {
  140. *Command: CmdSelect
  141. {
  142. *Order: DOC_SETUP.3
  143. *Cmd: "<1B>H<1B>L012" %v{(PhysPaperLength / 60) + 15}
  144. }
  145. }
  146. *case: Left
  147. {
  148. *Command: CmdSelect
  149. {
  150. *Order: DOC_SETUP.3
  151. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 60) + 15}
  152. }
  153. }
  154. }
  155. }
  156. *Option: A5_ROTATED
  157. {
  158. *rcNameID: =A5_ROTATED_DISPLAY
  159. *PrintableArea: PAIR(2832, 1828)
  160. *PrintableOrigin: PAIR(72, 94)
  161. *Command: CmdSelect
  162. {
  163. *Order: DOC_SETUP.3
  164. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 60) + 15}
  165. }
  166. }
  167. *Option: B5
  168. {
  169. *rcNameID: =B5_DISPLAY
  170. *PrintableArea: PAIR(2436, 3372)
  171. *PrintableOrigin: PAIR(72, 94)
  172. *switch: KyuusiIti
  173. {
  174. *case: Center
  175. {
  176. *Command: CmdSelect
  177. {
  178. *Order: DOC_SETUP.3
  179. *Cmd: "<1B>H<1B>L006" %v{(PhysPaperLength / 60) + 15}
  180. }
  181. }
  182. *case: Left
  183. {
  184. *Command: CmdSelect
  185. {
  186. *Order: DOC_SETUP.3
  187. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 60) + 15}
  188. }
  189. }
  190. }
  191. }
  192. *Option: JAPANESE_POSTCARD
  193. {
  194. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  195. *PrintableArea: PAIR(1274, 1828)
  196. *PrintableOrigin: PAIR(72, 94)
  197. *switch: KyuusiIti
  198. {
  199. *case: Center
  200. {
  201. *Command: CmdSelect
  202. {
  203. *Order: DOC_SETUP.3
  204. *Cmd: "<1B>H<1B>L022" %v{(PhysPaperLength / 60) + 15}
  205. }
  206. }
  207. *case: Left
  208. {
  209. *Command: CmdSelect
  210. {
  211. *Order: DOC_SETUP.3
  212. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 60) + 15}
  213. }
  214. }
  215. }
  216. }
  217. *Option: 10X11
  218. {
  219. *rcNameID: =10X11_DISPLAY
  220. *PrintableArea: PAIR(2880, 3744)
  221. *PrintableOrigin: PAIR(360, 94)
  222. *Command: CmdSelect
  223. {
  224. *Order: DOC_SETUP.3
  225. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 60) }
  226. }
  227. }
  228. *Option: CUSTOMSIZE
  229. {
  230. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  231. *MinSize: PAIR(720, 360) *% 2' x 1'
  232. *MaxSize: PAIR(3600, 7668) *% (10', 21.3')
  233. *MaxPrintableWidth: 2880 *% 80 keta
  234. *MinLeftMargin: 0
  235. *CenterPrintable?: FALSE
  236. *switch: InputBin
  237. {
  238. *case: SheetGuide
  239. {
  240. *CustCursorOriginX: %d{0}
  241. *CustCursorOriginY: %d{94}
  242. *CustPrintableOriginX: %d{0}
  243. *CustPrintableOriginY: %d{94}
  244. *CustPrintableSizeX: %d{min(2880, PhysPaperWidth)}
  245. *CustPrintableSizeY: %d{PhysPaperLength - (94+176)}
  246. }
  247. *case: SheetFeeder
  248. {
  249. *CustCursorOriginX: %d{0}
  250. *CustCursorOriginY: %d{94}
  251. *CustPrintableOriginX: %d{0}
  252. *CustPrintableOriginY: %d{94}
  253. *CustPrintableSizeX: %d{min(2880, PhysPaperWidth)}
  254. *CustPrintableSizeY: %d{PhysPaperLength - (94+176)}
  255. }
  256. *case: TractorFeeder
  257. {
  258. *CustCursorOriginX: %d{0}
  259. *CustCursorOriginY: %d{0}
  260. *CustPrintableOriginX: %d{0}
  261. *CustPrintableOriginY: %d{0}
  262. *CustPrintableSizeX: %d{min(2880, PhysPaperWidth)}
  263. *CustPrintableSizeY: %d{PhysPaperLength - (0+0)}
  264. }
  265. *case: HagakiFeeder
  266. {
  267. *CustCursorOriginX: %d{0}
  268. *CustCursorOriginY: %d{94}
  269. *CustPrintableOriginX: %d{0}
  270. *CustPrintableOriginY: %d{94}
  271. *CustPrintableSizeX: %d{min(2880, PhysPaperWidth)}
  272. *CustPrintableSizeY: %d{PhysPaperLength - (94+176)}
  273. }
  274. }
  275. *Command: CmdSelect
  276. {
  277. *Order: DOC_SETUP.3
  278. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 60) }
  279. }
  280. }
  281. }
  282. *%======== Paperfeed pos ========
  283. *Feature: KyuusiIti
  284. {
  285. *rcNameID: 330
  286. *DefaultOption: Center
  287. *HelpIndex: 703 *%POP_NM_FEEDPOS_A4
  288. *Option: Center
  289. {
  290. *rcNameID: 331
  291. *Constraints: PaperSize.CUSTOMSIZE
  292. }
  293. *Option: Left
  294. {
  295. *rcNameID: 332
  296. }
  297. }
  298. *%======== PrintQuality ========
  299. *Feature: PrintQuality
  300. {
  301. *rcNameID: =TEXT_QUALITY_DISPLAY
  302. *DefaultOption: StandardR
  303. *HelpIndex: 704 *%POP_NM_QUARITY
  304. *Option: StandardS
  305. {
  306. *rcNameID: 340
  307. *Command: CmdSelect
  308. {
  309. *Order: DOC_SETUP.2
  310. *Cmd: "<1B>d1<1B><3E>"
  311. }
  312. }
  313. *Option: StandardR
  314. {
  315. *rcNameID: 341
  316. *Command: CmdSelect
  317. {
  318. *Order: DOC_SETUP.2
  319. *Cmd: "<1B>d1<1B>]"
  320. }
  321. }
  322. *Option: DraftS
  323. {
  324. *rcNameID: 342
  325. *Command: CmdSelect
  326. {
  327. *Order: DOC_SETUP.2
  328. *Cmd: "<1B>d0<1B><3E>"
  329. }
  330. }
  331. *Option: DraftR
  332. {
  333. *rcNameID: 343
  334. *Command: CmdSelect
  335. {
  336. *Order: DOC_SETUP.2
  337. *Cmd: "<1B>d0<1B>]"
  338. }
  339. }
  340. }
  341. *%======== Color ========
  342. *Feature: ColorMode
  343. {
  344. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  345. *DefaultOption: Color
  346. *Option: Mono
  347. {
  348. *rcNameID: =MONO_DISPLAY
  349. *DevNumOfPlanes: 1
  350. *DevBPP: 1
  351. *Color? : FALSE
  352. }
  353. *Option: Color
  354. {
  355. *rcNameID: =COLOR_DISPLAY
  356. *DevNumOfPlanes: 4
  357. *DevBPP: 1
  358. *DrvBPP: 4
  359. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK )
  360. *Command: CmdSendBlackData { *Cmd : "<1B>C0" }
  361. *Command: CmdSendCyanData { *Cmd : "<1B>C5" }
  362. *Command: CmdSendMagentaData { *Cmd : "<1B>C3" }
  363. *Command: CmdSendYellowData { *Cmd : "<1B>C6" }
  364. *Command: CmdSelectBlackColor { *Cmd : "<1B>C0" }
  365. *Command: CmdSelectRedColor { *Cmd : "<1B>C2" }
  366. *Command: CmdSelectGreenColor { *Cmd : "<1B>C4" }
  367. *Command: CmdSelectYellowColor { *Cmd : "<1B>C6" }
  368. *Command: CmdSelectBlueColor { *Cmd : "<1B>C1" }
  369. *Command: CmdSelectMagentaColor { *Cmd : "<1B>C3" }
  370. *Command: CmdSelectCyanColor { *Cmd : "<1B>C5" }
  371. *Command: CmdSelectWhiteColor { *Cmd : "<1B>C7" }
  372. }
  373. }
  374. *%======== Halftone ========
  375. *Feature: Halftone
  376. {
  377. *rcNameID: =HALFTONING_DISPLAY
  378. *DefaultOption: HT_PATSIZE_AUTO
  379. *Option: HT_PATSIZE_AUTO
  380. {
  381. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  382. }
  383. *Option: HT_PATSIZE_SUPERCELL_M
  384. {
  385. *rcNameID: =HT_SUPERCELL_DISPLAY
  386. }
  387. *Option: HT_PATSIZE_6x6_M
  388. {
  389. *rcNameID: =HT_DITHER6X6_DISPLAY
  390. }
  391. *Option: HT_PATSIZE_8x8_M
  392. {
  393. *rcNameID: =HT_DITHER8X8_DISPLAY
  394. }
  395. }
  396. *%======== TextHalftoneThreshold ========
  397. *Feature: TextHalftoneThreshold
  398. {
  399. *rcNameID: =TEXTHALFTONE_DISPLAY
  400. *DefaultOption: 180
  401. *HelpIndex: 705
  402. *Option: NONE
  403. {
  404. *rcNameID: =NONE_DISPLAY
  405. }
  406. *Option: 180
  407. {
  408. *Name: "180"
  409. EXTERN_GLOBAL: *TextHalftoneThreshold: 180
  410. }
  411. }
  412. *%======== StartJob ========
  413. *Command: CmdStartJob
  414. {
  415. *% from nm.c OemCharSet() case 9: Page Control 2
  416. *Order: JOB_SETUP.1
  417. *Cmd: "<1A>C<18><0F><1B>$<1B>%"<1B>Y<1B>_1<1B>M<1B>2<1B>h0<1B>A<1B>f<1B>s0"
  418. }
  419. *%======== StartDoc ========
  420. *Command: CmdStartDoc
  421. {
  422. *% from nm.c OemCharSet() case 9: Page Control 2
  423. *Order: DOC_SETUP.1
  424. *Cmd: "<1B>H<1B>e11<1C>A<1C>06F1-000"
  425. }
  426. *%======== StartPage ========
  427. *switch: InputBin
  428. {
  429. *case: SheetGuide
  430. {
  431. *Command: CmdStartPage
  432. {
  433. *Order: PAGE_SETUP.1
  434. *Cmd: "<0D>"
  435. }
  436. }
  437. *case: SheetFeeder
  438. {
  439. *Command: CmdStartPage
  440. {
  441. *Order: PAGE_SETUP.1
  442. *Cmd: "<0D><1B>a"
  443. }
  444. }
  445. *case: HagakiFeeder
  446. {
  447. *Command: CmdStartPage
  448. {
  449. *Order: PAGE_SETUP.1
  450. *Cmd: "<0D><1B>a"
  451. }
  452. }
  453. }
  454. *%======== EndPage ========
  455. *switch: InputBin
  456. {
  457. *case: SheetGuide
  458. {
  459. *EjectPageWithFF?: TRUE
  460. }
  461. *case: SheetFeeder
  462. {
  463. *EjectPageWithFF?: FALSE
  464. *Command: CmdEndPage
  465. {
  466. *Order: PAGE_FINISH.1
  467. *Cmd: "<0D><1B>b"
  468. }
  469. }
  470. *case: TractorFeeder
  471. {
  472. *EjectPageWithFF?: TRUE
  473. }
  474. *case: HagakiFeeder
  475. {
  476. *EjectPageWithFF?: FALSE
  477. *Command: CmdEndPage
  478. {
  479. *Order: PAGE_FINISH.1
  480. *Cmd: "<0D><1B>b"
  481. }
  482. }
  483. }
  484. *%======== EndJob ========
  485. *Command: CmdEndJob
  486. {
  487. *Order: JOB_FINISH.1
  488. *Cmd: "<1A>N"
  489. }
  490. *%======== Capabilities ========
  491. *RotateCoordinate?: FALSE
  492. *RotateRaster?: FALSE
  493. *RotateFont?: FALSE
  494. *switch: Orientation
  495. {
  496. *case: PORTRAIT
  497. {
  498. *TextCaps: LIST(TC_EA_DOUBLE,TC_UA_ABLE,TC_RA_ABLE)
  499. }
  500. *case: LANDSCAPE_CC270
  501. {
  502. *TextCaps: LIST()
  503. }
  504. }
  505. *%======== Cursor Control ========
  506. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  507. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  508. *MaxLineSpacing: 198
  509. *XMoveThreshold: 0
  510. *XMoveUnit: 180
  511. *AbsXMovesRightOnly?: TRUE
  512. *Command: CmdXMoveAbsolute { *Cmd : "<1B>F" %4d[0,1440]{max_repeat((DestX / 2) )} }
  513. *LineSpacingMoveUnit: 120
  514. *Command: CmdSetLineSpacing { *Cmd : "<1B>T" %2d[0,99]{(LinefeedSpacing / 2) } }
  515. *Command: CmdCR { *Cmd : "<0D>" }
  516. *Command: CmdLF { *Cmd : "<0A>" }
  517. *Command: CmdFF { *Cmd : "<0D0C>" }
  518. *%======== Raster Data ========
  519. *OutputDataFormat: V_BYTE
  520. *OptimizeLeftBound?: FALSE
  521. *CursorXAfterSendBlockData: AT_GRXDATA_END
  522. *CursorYAfterSendBlockData: NO_MOVE
  523. *UseExpColorSelectCmd?: TRUE
  524. *MoveToX0BeforeSetColor?: TRUE
  525. *MirrorRasterByte?: TRUE
  526. *ReselectFont: AFTER_GRXDATA
  527. *%======== Device Font ========
  528. *DefaultFont: 1
  529. *DefaultCTT: 1
  530. *switch: Orientation
  531. {
  532. *case: PORTRAIT
  533. {
  534. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11)
  535. }
  536. *case: LANDSCAPE_CC270
  537. {
  538. *DeviceFonts: LIST()
  539. }
  540. }
  541. *%======== Font Simulation ========
  542. *Command: CmdBoldOn { *Cmd : "<1B><21>" }
  543. *Command: CmdBoldOff { *Cmd : "<1B><22>" }
  544. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  545. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }