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.

568 lines
15 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "NCCP6.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "NEC Pinwriter CP6"
  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(2880, 3960)
  118. *PrintableOrigin: PAIR(90, 0)
  119. }
  120. *case: Option2
  121. {
  122. *PrintableArea: PAIR(2880, 3760)
  123. *PrintableOrigin: PAIR(90, 100)
  124. }
  125. *case: MANUAL
  126. {
  127. *PrintableArea: PAIR(2880, 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(2880, 4208)
  145. *PrintableOrigin: PAIR(90, 0)
  146. }
  147. *case: Option2
  148. {
  149. *PrintableArea: PAIR(2880, 4008)
  150. *PrintableOrigin: PAIR(90, 100)
  151. }
  152. *case: MANUAL
  153. {
  154. *PrintableArea: PAIR(2880, 4008)
  155. *PrintableOrigin: PAIR(90, 100)
  156. }
  157. }
  158. }
  159. *Option: LEGAL
  160. {
  161. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  162. *Command: CmdSelect
  163. {
  164. *Order: DOC_SETUP.4
  165. *Cmd: "<1B>2<1B>CT"
  166. }
  167. *switch: InputBin
  168. {
  169. *case: TRACTOR
  170. {
  171. *PrintableArea: PAIR(2880, 5040)
  172. *PrintableOrigin: PAIR(90, 0)
  173. }
  174. *case: Option2
  175. {
  176. *PrintableArea: PAIR(2880, 4840)
  177. *PrintableOrigin: PAIR(90, 100)
  178. }
  179. *case: MANUAL
  180. {
  181. *PrintableArea: PAIR(2880, 4840)
  182. *PrintableOrigin: PAIR(90, 100)
  183. }
  184. }
  185. }
  186. *Option: B4
  187. {
  188. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  189. *Command: CmdSelect
  190. {
  191. *Order: DOC_SETUP.4
  192. *Cmd: "<1B>2<1B>CT"
  193. }
  194. *switch: InputBin
  195. {
  196. *case: TRACTOR
  197. {
  198. *PrintableArea: PAIR(2880, 5018)
  199. *PrintableOrigin: PAIR(90, 0)
  200. }
  201. *case: Option2
  202. {
  203. *PrintableArea: PAIR(2880, 4818)
  204. *PrintableOrigin: PAIR(90, 100)
  205. }
  206. *case: MANUAL
  207. {
  208. *PrintableArea: PAIR(2880, 4818)
  209. *PrintableOrigin: PAIR(90, 100)
  210. }
  211. }
  212. }
  213. *Option: B5
  214. {
  215. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  216. *Command: CmdSelect
  217. {
  218. *Order: DOC_SETUP.4
  219. *Cmd: "<1B>2<1B>C="
  220. }
  221. *switch: InputBin
  222. {
  223. *case: TRACTOR
  224. {
  225. *PrintableArea: PAIR(2491, 3643)
  226. *PrintableOrigin: PAIR(90, 0)
  227. *switch: Resolution
  228. {
  229. *case: Option1
  230. {
  231. *PrintableArea: PAIR(2490, 3642)
  232. }
  233. *case: Option3
  234. {
  235. *PrintableArea: PAIR(2491, 3642)
  236. }
  237. *case: Option4
  238. {
  239. *PrintableArea: PAIR(2490, 3642)
  240. }
  241. }
  242. }
  243. *case: Option2
  244. {
  245. *PrintableArea: PAIR(2491, 3443)
  246. *PrintableOrigin: PAIR(90, 100)
  247. *switch: Resolution
  248. {
  249. *case: Option1
  250. {
  251. *PrintableArea: PAIR(2490, 3442)
  252. }
  253. *case: Option3
  254. {
  255. *PrintableArea: PAIR(2491, 3442)
  256. }
  257. *case: Option4
  258. {
  259. *PrintableArea: PAIR(2490, 3442)
  260. }
  261. }
  262. }
  263. *case: MANUAL
  264. {
  265. *PrintableArea: PAIR(2491, 3443)
  266. *PrintableOrigin: PAIR(90, 100)
  267. *switch: Resolution
  268. {
  269. *case: Option1
  270. {
  271. *PrintableArea: PAIR(2490, 3442)
  272. }
  273. *case: Option3
  274. {
  275. *PrintableArea: PAIR(2491, 3442)
  276. }
  277. *case: Option4
  278. {
  279. *PrintableArea: PAIR(2490, 3442)
  280. }
  281. }
  282. }
  283. }
  284. }
  285. *Option: EXECUTIVE
  286. {
  287. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  288. *Command: CmdSelect
  289. {
  290. *Order: DOC_SETUP.4
  291. *Cmd: "<1B>2<1B>C?"
  292. }
  293. *switch: InputBin
  294. {
  295. *case: TRACTOR
  296. {
  297. *PrintableArea: PAIR(2520, 3780)
  298. *PrintableOrigin: PAIR(90, 0)
  299. }
  300. *case: Option2
  301. {
  302. *PrintableArea: PAIR(2520, 3580)
  303. *PrintableOrigin: PAIR(90, 100)
  304. }
  305. *case: MANUAL
  306. {
  307. *PrintableArea: PAIR(2520, 3580)
  308. *PrintableOrigin: PAIR(90, 100)
  309. }
  310. }
  311. }
  312. *Option: FOLIO
  313. {
  314. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  315. *Command: CmdSelect
  316. {
  317. *Order: DOC_SETUP.4
  318. *Cmd: "<1B>2<1B>CN"
  319. }
  320. *switch: InputBin
  321. {
  322. *case: TRACTOR
  323. {
  324. *PrintableArea: PAIR(2880, 4680)
  325. *PrintableOrigin: PAIR(90, 0)
  326. }
  327. *case: Option2
  328. {
  329. *PrintableArea: PAIR(2880, 4480)
  330. *PrintableOrigin: PAIR(90, 100)
  331. }
  332. *case: MANUAL
  333. {
  334. *PrintableArea: PAIR(2880, 4480)
  335. *PrintableOrigin: PAIR(90, 100)
  336. }
  337. }
  338. }
  339. *Option: Option8
  340. {
  341. *rcNameID: 258
  342. *PageDimensions: PAIR(3060, 4320)
  343. *Command: CmdSelect
  344. {
  345. *Order: DOC_SETUP.4
  346. *Cmd: "<1B>2<1B>CH"
  347. }
  348. *switch: InputBin
  349. {
  350. *case: TRACTOR
  351. {
  352. *PrintableArea: PAIR(2880, 4320)
  353. *PrintableOrigin: PAIR(90, 0)
  354. }
  355. *case: Option2
  356. {
  357. *PrintableArea: PAIR(2880, 4120)
  358. *PrintableOrigin: PAIR(90, 100)
  359. }
  360. *case: MANUAL
  361. {
  362. *PrintableArea: PAIR(2880, 4120)
  363. *PrintableOrigin: PAIR(90, 100)
  364. }
  365. }
  366. }
  367. *Option: CUSTOMSIZE
  368. {
  369. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  370. *MinSize: PAIR(360, 360)
  371. *MaxSize: PAIR(3060, 32767)
  372. *MaxPrintableWidth: 2880
  373. *MinLeftMargin: 90
  374. *CenterPrintable?: FALSE
  375. *switch: InputBin
  376. {
  377. *case: TRACTOR
  378. {
  379. *TopMargin: 0
  380. *BottomMargin: 0
  381. }
  382. *case: Option2
  383. {
  384. *TopMargin: 100
  385. *BottomMargin: 100
  386. }
  387. *case: MANUAL
  388. {
  389. *TopMargin: 100
  390. *BottomMargin: 100
  391. }
  392. }
  393. *Command: CmdSelect
  394. {
  395. *Order: DOC_SETUP.4
  396. *Cmd: "<1B>2"
  397. }
  398. }
  399. }
  400. *Feature: PrintQuality
  401. {
  402. *rcNameID: =TEXT_QUALITY_DISPLAY
  403. *DefaultOption: LETTER_QUALITY
  404. *Option: LETTER_QUALITY
  405. {
  406. *rcNameID: =LETTER_QUALITY_DISPLAY
  407. *Command: CmdSelect
  408. {
  409. *Order: DOC_SETUP.2
  410. *Cmd: "<1B>x1"
  411. }
  412. }
  413. *Option: DRAFT_QUALITY
  414. {
  415. *rcNameID: =DRAFT_QUALITY_DISPLAY
  416. *Command: CmdSelect
  417. {
  418. *Order: DOC_SETUP.2
  419. *Cmd: "<1B>x0"
  420. }
  421. }
  422. }
  423. *Feature: ColorMode
  424. {
  425. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  426. *DefaultOption: Color
  427. *Option: Mono
  428. {
  429. *rcNameID: =MONO_DISPLAY
  430. *DevNumOfPlanes: 1
  431. *DevBPP: 1
  432. *Color? : FALSE
  433. }
  434. *Option: Color
  435. {
  436. *rcNameID: =COLOR_DISPLAY
  437. *DevNumOfPlanes: 4
  438. *DevBPP: 1
  439. *DrvBPP: 4
  440. EXTERN_GLOBAL: *UseExpColorSelectCmd? : TRUE
  441. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  442. *Command: CmdSendYellowData { *Cmd : "<1B>r<04>" }
  443. *Command: CmdSendMagentaData { *Cmd : "<1B>r<01>" }
  444. *Command: CmdSendCyanData { *Cmd : "<1B>r<02>" }
  445. *Command: CmdSendBlackData { *Cmd : "<1B>r<00>" }
  446. *Command: CmdSelectBlackColor { *Cmd : "<1B>r<00>" }
  447. *Command: CmdSelectRedColor { *Cmd : "<1B>r<01>" }
  448. *Command: CmdSelectGreenColor { *Cmd : "<1B>r<06>" }
  449. *Command: CmdSelectYellowColor { *Cmd : "<1B>r<04>" }
  450. *Command: CmdSelectBlueColor { *Cmd : "<1B>r<03>" }
  451. *Command: CmdSelectMagentaColor { *Cmd : "<1B>r<01>" }
  452. *Command: CmdSelectCyanColor { *Cmd : "<1B>r<02>" }
  453. }
  454. }
  455. *Feature: Halftone
  456. {
  457. *rcNameID: =HALFTONING_DISPLAY
  458. *DefaultOption: HT_PATSIZE_AUTO
  459. *Option: HT_PATSIZE_AUTO
  460. {
  461. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  462. }
  463. *Ifdef: WINNT_50
  464. *Option: HT_PATSIZE_SUPERCELL_M
  465. {
  466. *rcNameID: =HT_SUPERCELL_DISPLAY
  467. }
  468. *Endif:
  469. *Option: HT_PATSIZE_6x6_M
  470. {
  471. *rcNameID: =HT_DITHER6X6_DISPLAY
  472. }
  473. *Option: HT_PATSIZE_8x8_M
  474. {
  475. *rcNameID: =HT_DITHER8X8_DISPLAY
  476. }
  477. }
  478. *Command: CmdStartDoc
  479. {
  480. *Order: DOC_SETUP.1
  481. *Cmd: "<1B>@<1C>I<011B>l<011B>6<1B>R<001B>T<1B>r<001B>P"
  482. }
  483. *Command: CmdStartPage
  484. {
  485. *Order: PAGE_SETUP.1
  486. *Cmd: "<0D>"
  487. }
  488. *Command: CmdEndJob
  489. {
  490. *Order: JOB_FINISH.1
  491. *Cmd: "<1B>@"
  492. }
  493. *Command: CmdEndPage
  494. {
  495. *Order: PAGE_FINISH.1
  496. *Cmd: "<0D>"
  497. }
  498. *RotateCoordinate?: FALSE
  499. *RotateRaster?: FALSE
  500. *RotateFont?: FALSE
  501. *switch: Orientation
  502. {
  503. *case: PORTRAIT
  504. {
  505. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  506. }
  507. *case: LANDSCAPE_CC270
  508. {
  509. *TextCaps: LIST(TC_RA_ABLE)
  510. }
  511. }
  512. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  513. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  514. *MaxLineSpacing: 255
  515. *XMoveThreshold: 0
  516. *XMoveUnit: 60
  517. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 6) } }
  518. *Command: CmdSetLineSpacing { *Cmd : "<1C>F<1C>3" %c[0,255]{LinefeedSpacing } }
  519. *Command: CmdCR { *Cmd : "<0D>" }
  520. *Command: CmdLF { *Cmd : "<0A>" }
  521. *Command: CmdFF { *Cmd : "<0C>" }
  522. *Command: CmdBackSpace { *Cmd : "<08>" }
  523. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  524. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  525. *EjectPageWithFF?: TRUE
  526. *switch: PaperSize
  527. {
  528. *case: CUSTOMSIZE
  529. {
  530. *EjectPageWithFF?: FALSE
  531. *switch: InputBin
  532. {
  533. *case: Option2
  534. {
  535. *EjectPageWithFF?: TRUE
  536. }
  537. *case: MANUAL
  538. {
  539. *EjectPageWithFF?: TRUE
  540. }
  541. }
  542. }
  543. }
  544. *OutputDataFormat: V_BYTE
  545. *OptimizeLeftBound?: FALSE
  546. *CursorXAfterSendBlockData: AT_GRXDATA_END
  547. *CursorYAfterSendBlockData: NO_MOVE
  548. *DefaultFont: 1
  549. *DefaultCTT: 1
  550. *switch: Orientation
  551. {
  552. *case: PORTRAIT
  553. {
  554. *DeviceFonts: LIST(1,2,3,4,5,6,7,29,36)
  555. }
  556. *case: LANDSCAPE_CC270
  557. {
  558. *DeviceFonts: LIST()
  559. }
  560. }
  561. *Command: CmdBoldOn { *Cmd : "<1B>E<1B>G" }
  562. *Command: CmdBoldOff { *Cmd : "<1B>F<1B>H" }
  563. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  564. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  565. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  566. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  567. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p<01>" }
  568. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p<00>" }