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.

672 lines
18 KiB

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