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.

571 lines
15 KiB

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