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.

620 lines
17 KiB

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