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.

702 lines
19 KiB

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