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.

622 lines
17 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "NCP6200.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "NEC Pinwriter P6200"
  10. *MasterUnits: PAIR(360, 360)
  11. *ResourceDLL: "nc24res.dll"
  12. *PrintRate: 300
  13. *PrintRateUnit: CPS
  14. *PrinterType: SERIAL
  15. *Feature: Orientation
  16. {
  17. *rcNameID: =ORIENTATION_DISPLAY
  18. *DefaultOption: PORTRAIT
  19. *Option: PORTRAIT
  20. {
  21. *rcNameID: =PORTRAIT_DISPLAY
  22. }
  23. *Option: LANDSCAPE_CC270
  24. {
  25. *rcNameID: =LANDSCAPE_DISPLAY
  26. }
  27. }
  28. *Feature: InputBin
  29. {
  30. *rcNameID: =PAPER_SOURCE_DISPLAY
  31. *DefaultOption: TRACTOR
  32. *Option: TRACTOR
  33. {
  34. *rcNameID: =TRACTOR_DISPLAY
  35. }
  36. *Option: Option2
  37. {
  38. *rcNameID: 260
  39. *Command: CmdSelect
  40. {
  41. *Order: DOC_SETUP.3
  42. *Cmd: "<1B19>1"
  43. }
  44. }
  45. *Option: Option3
  46. {
  47. *rcNameID: 261
  48. *Command: CmdSelect
  49. {
  50. *Order: DOC_SETUP.3
  51. *Cmd: "<1B19>2"
  52. }
  53. }
  54. *Option: MANUAL
  55. {
  56. *rcNameID: =MANUAL_FEED_DISPLAY
  57. }
  58. }
  59. *Feature: Resolution
  60. {
  61. *rcNameID: =RESOLUTION_DISPLAY
  62. *DefaultOption: Option1
  63. *Option: Option1
  64. {
  65. *Name: "180 x 180 " =DOTS_PER_INCH
  66. *DPI: PAIR(180, 180)
  67. *TextDPI: PAIR(180, 180)
  68. *PinsPerLogPass: 24
  69. *PinsPerPhysPass: 24
  70. *MinStripBlankPixels: 180
  71. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  72. *SpotDiameter: 140
  73. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  74. }
  75. *Option: Option2
  76. {
  77. *Name: "360 x 360 " =DOTS_PER_INCH
  78. *DPI: PAIR(360, 360)
  79. *TextDPI: PAIR(360, 360)
  80. *PinsPerLogPass: 48
  81. *PinsPerPhysPass: 24
  82. *MinStripBlankPixels: 360
  83. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  84. *SpotDiameter: 170
  85. *Command: CmdSendBlockData { *Cmd : "<1C>Z" %l{NumOfDataBytes / 3} }
  86. }
  87. *Option: Option3
  88. {
  89. *Name: "360 x 180 " =DOTS_PER_INCH
  90. *DPI: PAIR(360, 180)
  91. *TextDPI: PAIR(360, 180)
  92. *PinsPerLogPass: 24
  93. *PinsPerPhysPass: 24
  94. *MinStripBlankPixels: 360
  95. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  96. *SpotDiameter: 150
  97. *Command: CmdSendBlockData { *Cmd : "<1C>Z" %l{NumOfDataBytes / 3} }
  98. }
  99. *Option: Option4
  100. {
  101. *Name: "120 x 180 " =DOTS_PER_INCH
  102. *DPI: PAIR(120, 180)
  103. *TextDPI: PAIR(120, 180)
  104. *PinsPerLogPass: 24
  105. *PinsPerPhysPass: 24
  106. *MinStripBlankPixels: 120
  107. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  108. *SpotDiameter: 120
  109. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  110. }
  111. }
  112. *Feature: PaperSize
  113. {
  114. *rcNameID: =PAPER_SIZE_DISPLAY
  115. *DefaultOption: LETTER
  116. *Option: LETTER
  117. {
  118. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  119. *Command: CmdSelect
  120. {
  121. *Order: DOC_SETUP.4
  122. *Cmd: "<1B>2<1B>CB"
  123. }
  124. *switch: InputBin
  125. {
  126. *case: TRACTOR
  127. {
  128. *PrintableArea: PAIR(2880, 3960)
  129. *PrintableOrigin: PAIR(90, 0)
  130. }
  131. *case: Option2
  132. {
  133. *PrintableArea: PAIR(2880, 3760)
  134. *PrintableOrigin: PAIR(90, 100)
  135. }
  136. *case: Option3
  137. {
  138. *PrintableArea: PAIR(2880, 3760)
  139. *PrintableOrigin: PAIR(90, 100)
  140. }
  141. *case: MANUAL
  142. {
  143. *PrintableArea: PAIR(2880, 3760)
  144. *PrintableOrigin: PAIR(90, 100)
  145. }
  146. }
  147. }
  148. *Option: A4
  149. {
  150. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  151. *Command: CmdSelect
  152. {
  153. *Order: DOC_SETUP.4
  154. *Cmd: "<1B>2<1B>CF"
  155. }
  156. *switch: InputBin
  157. {
  158. *case: TRACTOR
  159. {
  160. *PrintableArea: PAIR(2880, 4208)
  161. *PrintableOrigin: PAIR(90, 0)
  162. }
  163. *case: Option2
  164. {
  165. *PrintableArea: PAIR(2880, 4008)
  166. *PrintableOrigin: PAIR(90, 100)
  167. }
  168. *case: Option3
  169. {
  170. *PrintableArea: PAIR(2880, 4008)
  171. *PrintableOrigin: PAIR(90, 100)
  172. }
  173. *case: MANUAL
  174. {
  175. *PrintableArea: PAIR(2880, 4008)
  176. *PrintableOrigin: PAIR(90, 100)
  177. }
  178. }
  179. }
  180. *Option: LEGAL
  181. {
  182. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  183. *Command: CmdSelect
  184. {
  185. *Order: DOC_SETUP.4
  186. *Cmd: "<1B>2<1B>CT"
  187. }
  188. *switch: InputBin
  189. {
  190. *case: TRACTOR
  191. {
  192. *PrintableArea: PAIR(2880, 5040)
  193. *PrintableOrigin: PAIR(90, 0)
  194. }
  195. *case: Option2
  196. {
  197. *PrintableArea: PAIR(2880, 4840)
  198. *PrintableOrigin: PAIR(90, 100)
  199. }
  200. *case: Option3
  201. {
  202. *PrintableArea: PAIR(2880, 4840)
  203. *PrintableOrigin: PAIR(90, 100)
  204. }
  205. *case: MANUAL
  206. {
  207. *PrintableArea: PAIR(2880, 4840)
  208. *PrintableOrigin: PAIR(90, 100)
  209. }
  210. }
  211. }
  212. *Option: B4
  213. {
  214. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  215. *Command: CmdSelect
  216. {
  217. *Order: DOC_SETUP.4
  218. *Cmd: "<1B>2<1B>CT"
  219. }
  220. *switch: InputBin
  221. {
  222. *case: TRACTOR
  223. {
  224. *PrintableArea: PAIR(2880, 5018)
  225. *PrintableOrigin: PAIR(90, 0)
  226. }
  227. *case: Option2
  228. {
  229. *PrintableArea: PAIR(2880, 4818)
  230. *PrintableOrigin: PAIR(90, 100)
  231. }
  232. *case: Option3
  233. {
  234. *PrintableArea: PAIR(2880, 4818)
  235. *PrintableOrigin: PAIR(90, 100)
  236. }
  237. *case: MANUAL
  238. {
  239. *PrintableArea: PAIR(2880, 4818)
  240. *PrintableOrigin: PAIR(90, 100)
  241. }
  242. }
  243. }
  244. *Option: B5
  245. {
  246. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  247. *Command: CmdSelect
  248. {
  249. *Order: DOC_SETUP.4
  250. *Cmd: "<1B>2<1B>C="
  251. }
  252. *switch: InputBin
  253. {
  254. *case: TRACTOR
  255. {
  256. *PrintableArea: PAIR(2491, 3643)
  257. *PrintableOrigin: PAIR(90, 0)
  258. *switch: Resolution
  259. {
  260. *case: Option1
  261. {
  262. *PrintableArea: PAIR(2490, 3642)
  263. }
  264. *case: Option3
  265. {
  266. *PrintableArea: PAIR(2491, 3642)
  267. }
  268. *case: Option4
  269. {
  270. *PrintableArea: PAIR(2490, 3642)
  271. }
  272. }
  273. }
  274. *case: Option2
  275. {
  276. *PrintableArea: PAIR(2491, 3443)
  277. *PrintableOrigin: PAIR(90, 100)
  278. *switch: Resolution
  279. {
  280. *case: Option1
  281. {
  282. *PrintableArea: PAIR(2490, 3442)
  283. }
  284. *case: Option3
  285. {
  286. *PrintableArea: PAIR(2491, 3442)
  287. }
  288. *case: Option4
  289. {
  290. *PrintableArea: PAIR(2490, 3442)
  291. }
  292. }
  293. }
  294. *case: Option3
  295. {
  296. *PrintableArea: PAIR(2491, 3443)
  297. *PrintableOrigin: PAIR(90, 100)
  298. *switch: Resolution
  299. {
  300. *case: Option1
  301. {
  302. *PrintableArea: PAIR(2490, 3442)
  303. }
  304. *case: Option3
  305. {
  306. *PrintableArea: PAIR(2491, 3442)
  307. }
  308. *case: Option4
  309. {
  310. *PrintableArea: PAIR(2490, 3442)
  311. }
  312. }
  313. }
  314. *case: MANUAL
  315. {
  316. *PrintableArea: PAIR(2491, 3443)
  317. *PrintableOrigin: PAIR(90, 100)
  318. *switch: Resolution
  319. {
  320. *case: Option1
  321. {
  322. *PrintableArea: PAIR(2490, 3442)
  323. }
  324. *case: Option3
  325. {
  326. *PrintableArea: PAIR(2491, 3442)
  327. }
  328. *case: Option4
  329. {
  330. *PrintableArea: PAIR(2490, 3442)
  331. }
  332. }
  333. }
  334. }
  335. }
  336. *Option: EXECUTIVE
  337. {
  338. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  339. *Command: CmdSelect
  340. {
  341. *Order: DOC_SETUP.4
  342. *Cmd: "<1B>2<1B>C?"
  343. }
  344. *switch: InputBin
  345. {
  346. *case: TRACTOR
  347. {
  348. *PrintableArea: PAIR(2520, 3780)
  349. *PrintableOrigin: PAIR(90, 0)
  350. }
  351. *case: Option2
  352. {
  353. *PrintableArea: PAIR(2520, 3580)
  354. *PrintableOrigin: PAIR(90, 100)
  355. }
  356. *case: Option3
  357. {
  358. *PrintableArea: PAIR(2520, 3580)
  359. *PrintableOrigin: PAIR(90, 100)
  360. }
  361. *case: MANUAL
  362. {
  363. *PrintableArea: PAIR(2520, 3580)
  364. *PrintableOrigin: PAIR(90, 100)
  365. }
  366. }
  367. }
  368. *Option: FOLIO
  369. {
  370. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  371. *Command: CmdSelect
  372. {
  373. *Order: DOC_SETUP.4
  374. *Cmd: "<1B>2<1B>CN"
  375. }
  376. *switch: InputBin
  377. {
  378. *case: TRACTOR
  379. {
  380. *PrintableArea: PAIR(2880, 4680)
  381. *PrintableOrigin: PAIR(90, 0)
  382. }
  383. *case: Option2
  384. {
  385. *PrintableArea: PAIR(2880, 4480)
  386. *PrintableOrigin: PAIR(90, 100)
  387. }
  388. *case: Option3
  389. {
  390. *PrintableArea: PAIR(2880, 4480)
  391. *PrintableOrigin: PAIR(90, 100)
  392. }
  393. *case: MANUAL
  394. {
  395. *PrintableArea: PAIR(2880, 4480)
  396. *PrintableOrigin: PAIR(90, 100)
  397. }
  398. }
  399. }
  400. *Option: Option8
  401. {
  402. *rcNameID: 258
  403. *PageDimensions: PAIR(3060, 4320)
  404. *Command: CmdSelect
  405. {
  406. *Order: DOC_SETUP.4
  407. *Cmd: "<1B>2<1B>CH"
  408. }
  409. *switch: InputBin
  410. {
  411. *case: TRACTOR
  412. {
  413. *PrintableArea: PAIR(2880, 4320)
  414. *PrintableOrigin: PAIR(90, 0)
  415. }
  416. *case: Option2
  417. {
  418. *PrintableArea: PAIR(2880, 4120)
  419. *PrintableOrigin: PAIR(90, 100)
  420. }
  421. *case: Option3
  422. {
  423. *PrintableArea: PAIR(2880, 4120)
  424. *PrintableOrigin: PAIR(90, 100)
  425. }
  426. *case: MANUAL
  427. {
  428. *PrintableArea: PAIR(2880, 4120)
  429. *PrintableOrigin: PAIR(90, 100)
  430. }
  431. }
  432. }
  433. *Option: CUSTOMSIZE
  434. {
  435. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  436. *MinSize: PAIR(360, 360)
  437. *MaxSize: PAIR(3060, 32767)
  438. *MaxPrintableWidth: 2880
  439. *MinLeftMargin: 90
  440. *CenterPrintable?: FALSE
  441. *switch: InputBin
  442. {
  443. *case: TRACTOR
  444. {
  445. *TopMargin: 0
  446. *BottomMargin: 0
  447. }
  448. *case: Option2
  449. {
  450. *TopMargin: 100
  451. *BottomMargin: 100
  452. }
  453. *case: Option3
  454. {
  455. *TopMargin: 100
  456. *BottomMargin: 100
  457. }
  458. *case: MANUAL
  459. {
  460. *TopMargin: 100
  461. *BottomMargin: 100
  462. }
  463. }
  464. *Command: CmdSelect
  465. {
  466. *Order: DOC_SETUP.4
  467. *Cmd: "<1B>2"
  468. }
  469. }
  470. }
  471. *Feature: ColorMode
  472. {
  473. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  474. *DefaultOption: Color
  475. *Option: Mono
  476. {
  477. *rcNameID: =MONO_DISPLAY
  478. *DevNumOfPlanes: 1
  479. *DevBPP: 1
  480. *Color? : FALSE
  481. }
  482. *Option: Color
  483. {
  484. *rcNameID: =COLOR_DISPLAY
  485. *DevNumOfPlanes: 4
  486. *DevBPP: 1
  487. *DrvBPP: 4
  488. EXTERN_GLOBAL: *UseExpColorSelectCmd? : TRUE
  489. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  490. *Command: CmdSendYellowData { *Cmd : "<1B>r<04>" }
  491. *Command: CmdSendMagentaData { *Cmd : "<1B>r<01>" }
  492. *Command: CmdSendCyanData { *Cmd : "<1B>r<02>" }
  493. *Command: CmdSendBlackData { *Cmd : "<1B>r<00>" }
  494. *Command: CmdSelectBlackColor { *Cmd : "<1B>r<00>" }
  495. *Command: CmdSelectRedColor { *Cmd : "<1B>r<01>" }
  496. *Command: CmdSelectGreenColor { *Cmd : "<1B>r<06>" }
  497. *Command: CmdSelectYellowColor { *Cmd : "<1B>r<04>" }
  498. *Command: CmdSelectBlueColor { *Cmd : "<1B>r<03>" }
  499. *Command: CmdSelectMagentaColor { *Cmd : "<1B>r<01>" }
  500. *Command: CmdSelectCyanColor { *Cmd : "<1B>r<02>" }
  501. }
  502. }
  503. *Feature: Halftone
  504. {
  505. *rcNameID: =HALFTONING_DISPLAY
  506. *DefaultOption: HT_PATSIZE_AUTO
  507. *Option: HT_PATSIZE_AUTO
  508. {
  509. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  510. }
  511. *Ifdef: WINNT_50
  512. *Option: HT_PATSIZE_SUPERCELL_M
  513. {
  514. *rcNameID: =HT_SUPERCELL_DISPLAY
  515. }
  516. *Endif:
  517. *Option: HT_PATSIZE_6x6_M
  518. {
  519. *rcNameID: =HT_DITHER6X6_DISPLAY
  520. }
  521. *Option: HT_PATSIZE_8x8_M
  522. {
  523. *rcNameID: =HT_DITHER8X8_DISPLAY
  524. }
  525. }
  526. *Command: CmdStartDoc
  527. {
  528. *Order: DOC_SETUP.1
  529. *Cmd: "<1B>@<1C>I<011B>l<011B>6<1B>R<001B>T<1B>r<001B>P"
  530. }
  531. *Command: CmdStartPage
  532. {
  533. *Order: PAGE_SETUP.1
  534. *Cmd: "<0D>"
  535. }
  536. *Command: CmdEndJob
  537. {
  538. *Order: JOB_FINISH.1
  539. *Cmd: "<1B>@"
  540. }
  541. *Command: CmdEndPage
  542. {
  543. *Order: PAGE_FINISH.1
  544. *Cmd: "<0D>"
  545. }
  546. *RotateCoordinate?: FALSE
  547. *RotateRaster?: FALSE
  548. *RotateFont?: FALSE
  549. *switch: Orientation
  550. {
  551. *case: PORTRAIT
  552. {
  553. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  554. }
  555. *case: LANDSCAPE_CC270
  556. {
  557. *TextCaps: LIST(TC_RA_ABLE)
  558. }
  559. }
  560. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  561. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  562. *MaxLineSpacing: 255
  563. *XMoveThreshold: 0
  564. *XMoveUnit: 60
  565. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 6) } }
  566. *Command: CmdSetLineSpacing { *Cmd : "<1C>F<1C>3" %c[0,255]{LinefeedSpacing } }
  567. *Command: CmdCR { *Cmd : "<0D>" }
  568. *Command: CmdLF { *Cmd : "<0A>" }
  569. *Command: CmdFF { *Cmd : "<0C>" }
  570. *Command: CmdBackSpace { *Cmd : "<08>" }
  571. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  572. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  573. *EjectPageWithFF?: TRUE
  574. *switch: PaperSize
  575. {
  576. *case: CUSTOMSIZE
  577. {
  578. *EjectPageWithFF?: FALSE
  579. *switch: InputBin
  580. {
  581. *case: Option2
  582. {
  583. *EjectPageWithFF?: TRUE
  584. }
  585. *case: Option3
  586. {
  587. *EjectPageWithFF?: TRUE
  588. }
  589. *case: MANUAL
  590. {
  591. *EjectPageWithFF?: TRUE
  592. }
  593. }
  594. }
  595. }
  596. *OutputDataFormat: V_BYTE
  597. *OptimizeLeftBound?: FALSE
  598. *CursorXAfterSendBlockData: AT_GRXDATA_END
  599. *CursorYAfterSendBlockData: NO_MOVE
  600. *DefaultFont: 1
  601. *DefaultCTT: 1
  602. *switch: Orientation
  603. {
  604. *case: PORTRAIT
  605. {
  606. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  607. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
  608. + 33,34,35,36,37,38)
  609. }
  610. *case: LANDSCAPE_CC270
  611. {
  612. *DeviceFonts: LIST()
  613. }
  614. }
  615. *Command: CmdBoldOn { *Cmd : "<1B>E<1B>G" }
  616. *Command: CmdBoldOff { *Cmd : "<1B>F<1B>H" }
  617. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  618. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  619. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  620. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  621. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p<01>" }
  622. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p<00>" }