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.

611 lines
16 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "NCP2200.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "NEC Pinwriter P2200"
  10. *MasterUnits: PAIR(360, 360)
  11. *ResourceDLL: "nc24res.dll"
  12. *PrintRate: 170
  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: PrintQuality
  472. {
  473. *rcNameID: =TEXT_QUALITY_DISPLAY
  474. *DefaultOption: LETTER_QUALITY
  475. *Option: LETTER_QUALITY
  476. {
  477. *rcNameID: =LETTER_QUALITY_DISPLAY
  478. *Command: CmdSelect
  479. {
  480. *Order: DOC_SETUP.2
  481. *Cmd: "<1B>x1"
  482. }
  483. }
  484. *Option: DRAFT_QUALITY
  485. {
  486. *rcNameID: =DRAFT_QUALITY_DISPLAY
  487. *Command: CmdSelect
  488. {
  489. *Order: DOC_SETUP.2
  490. *Cmd: "<1B>x0"
  491. }
  492. }
  493. }
  494. *Feature: Halftone
  495. {
  496. *rcNameID: =HALFTONING_DISPLAY
  497. *DefaultOption: HT_PATSIZE_AUTO
  498. *Option: HT_PATSIZE_AUTO
  499. {
  500. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  501. }
  502. *Ifdef: WINNT_50
  503. *Option: HT_PATSIZE_SUPERCELL_M
  504. {
  505. *rcNameID: =HT_SUPERCELL_DISPLAY
  506. }
  507. *Endif:
  508. *Option: HT_PATSIZE_6x6_M
  509. {
  510. *rcNameID: =HT_DITHER6X6_DISPLAY
  511. }
  512. *Option: HT_PATSIZE_8x8_M
  513. {
  514. *rcNameID: =HT_DITHER8X8_DISPLAY
  515. }
  516. }
  517. *Command: CmdStartDoc
  518. {
  519. *Order: DOC_SETUP.1
  520. *Cmd: "<1B>@<1B>t<011B>R<001B>P<1B>6<1B>T<1B>r<00>"
  521. }
  522. *Command: CmdStartPage
  523. {
  524. *Order: PAGE_SETUP.1
  525. *Cmd: "<0D>"
  526. }
  527. *Command: CmdEndJob
  528. {
  529. *Order: JOB_FINISH.1
  530. *Cmd: "<1B>@"
  531. }
  532. *Command: CmdEndPage
  533. {
  534. *Order: PAGE_FINISH.1
  535. *Cmd: "<0D>"
  536. }
  537. *RotateCoordinate?: FALSE
  538. *RotateRaster?: FALSE
  539. *RotateFont?: FALSE
  540. *switch: Orientation
  541. {
  542. *case: PORTRAIT
  543. {
  544. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  545. }
  546. *case: LANDSCAPE_CC270
  547. {
  548. *TextCaps: LIST(TC_RA_ABLE)
  549. }
  550. }
  551. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  552. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  553. *MaxLineSpacing: 255
  554. *XMoveThreshold: 0
  555. *XMoveUnit: 60
  556. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 6) } }
  557. *Command: CmdSetLineSpacing { *Cmd : "<1C>F<1C>3" %c[0,255]{LinefeedSpacing } }
  558. *Command: CmdCR { *Cmd : "<0D>" }
  559. *Command: CmdLF { *Cmd : "<0A>" }
  560. *Command: CmdFF { *Cmd : "<0C>" }
  561. *Command: CmdBackSpace { *Cmd : "<08>" }
  562. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  563. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  564. *EjectPageWithFF?: TRUE
  565. *switch: PaperSize
  566. {
  567. *case: CUSTOMSIZE
  568. {
  569. *EjectPageWithFF?: FALSE
  570. *switch: InputBin
  571. {
  572. *case: Option2
  573. {
  574. *EjectPageWithFF?: TRUE
  575. }
  576. *case: Option3
  577. {
  578. *EjectPageWithFF?: TRUE
  579. }
  580. *case: MANUAL
  581. {
  582. *EjectPageWithFF?: TRUE
  583. }
  584. }
  585. }
  586. }
  587. *OutputDataFormat: V_BYTE
  588. *OptimizeLeftBound?: FALSE
  589. *CursorXAfterSendBlockData: AT_GRXDATA_END
  590. *CursorYAfterSendBlockData: NO_MOVE
  591. *DefaultFont: 1
  592. *DefaultCTT: 1
  593. *switch: Orientation
  594. {
  595. *case: PORTRAIT
  596. {
  597. *DeviceFonts: LIST(1,2,3,4,5,6,7,29,36,37,38)
  598. }
  599. *case: LANDSCAPE_CC270
  600. {
  601. *DeviceFonts: LIST()
  602. }
  603. }
  604. *Command: CmdBoldOn { *Cmd : "<1B>E<1B>G" }
  605. *Command: CmdBoldOff { *Cmd : "<1B>F<1B>H" }
  606. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  607. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  608. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  609. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  610. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p<01>" }
  611. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p<00>" }