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.

573 lines
18 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "NCT413RJ.GPD"
  7. *Include: "STDNAMES.GPD"
  8. *GPDFileVersion: "1.000"
  9. *CodePage: 1252
  10. *ModelName: "NEC PC-PR101/TN103R"
  11. *MasterUnits: PAIR(1600, 1600)
  12. *ResourceDLL: "NCT4JRES.DLL"
  13. *PrinterType: SERIAL
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: Option1
  31. *Option: Option1
  32. {
  33. *rcNameID: 258
  34. }
  35. *Option: Option2
  36. {
  37. *rcNameID: 259
  38. }
  39. *Option: Option3
  40. {
  41. *rcNameID: 260
  42. }
  43. }
  44. *Feature: Resolution
  45. {
  46. *rcNameID: =RESOLUTION_DISPLAY
  47. *DefaultOption: Option1
  48. *Option: Option1
  49. {
  50. *Name: "400 x 400 dots per inch"
  51. *DPI: PAIR(400, 400)
  52. *TextDPI: PAIR(400, 400)
  53. *PinsPerLogPass: 32
  54. *PinsPerPhysPass: 32
  55. *MinStripBlankPixels: 270
  56. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  57. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  58. *SpotDiameter: 120
  59. *Command: CmdSendBlockData { *Cmd : "<1C>bP,32," %4d{NumOfDataBytes / 4}"." }
  60. *Command: CmdSelect
  61. {
  62. *Order: DOC_SETUP.1
  63. *Cmd: "<1C>d400."
  64. }
  65. }
  66. *Option: Option2
  67. {
  68. *Name: "160 x 160 dots per inch"
  69. *DPI: PAIR(160, 160)
  70. *TextDPI: PAIR(160, 160)
  71. *PinsPerLogPass: 24
  72. *PinsPerPhysPass: 24
  73. *MinStripBlankPixels: 270
  74. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  75. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  76. *SpotDiameter: 120
  77. *Command: CmdSendBlockData { *Cmd : "<1B>J" %4d{NumOfDataBytes / 3} }
  78. *Command: CmdSelect
  79. {
  80. *Order: DOC_SETUP.1
  81. *Cmd: "<1C>d400."
  82. }
  83. }
  84. }
  85. *Feature: PaperSize
  86. {
  87. *rcNameID: =PAPER_SIZE_DISPLAY
  88. *DefaultOption: A4
  89. *Option: A4
  90. {
  91. *rcNameID: =A4_DISPLAY
  92. *switch: InputBin
  93. {
  94. *case: Option1
  95. {
  96. *PrintableArea: PAIR(12390, 16660)
  97. *PrintableOrigin: PAIR(520, 850)
  98. }
  99. *case: Option2
  100. {
  101. *PrintableArea: PAIR(12600, 15869)
  102. *PrintableOrigin: PAIR(316, 1575)
  103. *switch: Resolution
  104. {
  105. *case: Option1
  106. {
  107. *switch: Orientation
  108. {
  109. *case: PORTRAIT
  110. {
  111. *CursorOrigin: PAIR(325, 700)
  112. *PrintableOrigin: PAIR(316, 1260)
  113. *PrintableArea: PAIR(12400, 16749)
  114. }
  115. *case: LANDSCAPE_CC270
  116. {
  117. *CursorOrigin: PAIR(325, 620)
  118. *PrintableOrigin: PAIR(350, 700)
  119. *PrintableArea: PAIR(11960, 16749)
  120. }
  121. }
  122. }
  123. *case: Option2
  124. {
  125. *PrintableArea: PAIR(12400, 17049)
  126. *PrintableOrigin: PAIR(280, 700)
  127. *CursorOrigin: PAIR(120, 700)
  128. *switch: Orientation
  129. {
  130. *case: PORTRAIT
  131. {
  132. *CursorOrigin: PAIR(120, 700)
  133. *PrintableArea: PAIR(12400, 17049)
  134. *PrintableOrigin: PAIR(280, 700)
  135. }
  136. *case: LANDSCAPE_CC270
  137. {
  138. *CursorOrigin: PAIR(120, 700)
  139. *PrintableArea: PAIR(12400, 17049)
  140. *PrintableOrigin: PAIR(320, 700)
  141. }
  142. }
  143. }
  144. }
  145. }
  146. *case: Option3
  147. {
  148. *PrintableArea: PAIR(12600, 17631)
  149. *PrintableOrigin: PAIR(316, 315)
  150. *switch: Resolution
  151. {
  152. *case: Option1
  153. {
  154. *PrintableArea: PAIR(12600, 17628)
  155. *PrintableOrigin: PAIR(316, 316)
  156. }
  157. *case: Option2
  158. {
  159. *PrintableArea: PAIR(12590, 17620)
  160. *PrintableOrigin: PAIR(320, 320)
  161. }
  162. }
  163. }
  164. }
  165. }
  166. *Option: B4
  167. {
  168. *rcNameID: =B4_DISPLAY
  169. *switch: InputBin
  170. {
  171. *case: Option1
  172. {
  173. *PrintableArea: PAIR(12664, 20093)
  174. *PrintableOrigin: PAIR(1890, 1575)
  175. *switch: Resolution
  176. {
  177. *case: Option1
  178. {
  179. *PrintableArea: PAIR(12660, 20092)
  180. *PrintableOrigin: PAIR(1892, 1576)
  181. }
  182. *case: Option2
  183. {
  184. *PrintableArea: PAIR(12660, 20080)
  185. *PrintableOrigin: PAIR(1890, 1580)
  186. }
  187. }
  188. }
  189. *case: Option2
  190. {
  191. *PrintableArea: PAIR(12664, 21038)
  192. *PrintableOrigin: PAIR(1890, 630)
  193. *switch: Resolution
  194. {
  195. *case: Option1
  196. {
  197. *PrintableArea: PAIR(12660, 21036)
  198. *PrintableOrigin: PAIR(1892, 632)
  199. }
  200. *case: Option2
  201. {
  202. *PrintableArea: PAIR(12660, 21030)
  203. }
  204. }
  205. }
  206. *case: Option3
  207. {
  208. *PrintableArea: PAIR(12664, 21855)
  209. *PrintableOrigin: PAIR(1890, 315)
  210. *switch: Resolution
  211. {
  212. *case: Option1
  213. {
  214. *PrintableArea: PAIR(12660, 21852)
  215. *PrintableOrigin: PAIR(1892, 316)
  216. }
  217. *case: Option2
  218. {
  219. *PrintableArea: PAIR(12660, 21850)
  220. *PrintableOrigin: PAIR(1890, 320)
  221. }
  222. }
  223. }
  224. }
  225. }
  226. *Option: A5
  227. {
  228. *rcNameID: =A5_DISPLAY
  229. *switch: InputBin
  230. {
  231. *case: Option1
  232. {
  233. *PrintableArea: PAIR(8690, 11397)
  234. *PrintableOrigin: PAIR(520, 850)
  235. }
  236. *case: Option2
  237. {
  238. *PrintableArea: PAIR(8690, 10397)
  239. *PrintableOrigin: PAIR(319, 1575)
  240. *switch: Resolution
  241. {
  242. *case: Option1
  243. {
  244. *switch: Orientation
  245. {
  246. *CursorOrigin: PAIR(325, 600)
  247. *PrintableArea: PAIR(8384, 11330)
  248. *PrintableOrigin: PAIR(320, 800)
  249. }
  250. }
  251. *case: Option2
  252. {
  253. *switch: Orientation
  254. {
  255. *case: PORTRAIT
  256. {
  257. *CursorOrigin: PAIR(325, 600)
  258. *PrintableArea: PAIR(8384, 11330)
  259. *PrintableOrigin: PAIR(320, 800)
  260. }
  261. *case: LANDSCAPE_CC270
  262. {
  263. *CursorOrigin: PAIR(325, 600)
  264. *PrintableArea: PAIR(8384, 11330)
  265. *PrintableOrigin: PAIR(320, 800)
  266. }
  267. }
  268. }
  269. }
  270. }
  271. *case: Option3
  272. {
  273. *PrintableArea: PAIR(8690, 12159)
  274. *PrintableOrigin: PAIR(319, 315)
  275. *switch: Resolution
  276. {
  277. *case: Option1
  278. {
  279. *PrintableArea: PAIR(8688, 12156)
  280. *PrintableOrigin: PAIR(320, 316)
  281. }
  282. *case: Option2
  283. {
  284. *PrintableArea: PAIR(8680, 12150)
  285. *PrintableOrigin: PAIR(320, 320)
  286. }
  287. }
  288. }
  289. }
  290. }
  291. *Option: B5
  292. {
  293. *rcNameID: =B5_DISPLAY
  294. *switch: InputBin
  295. {
  296. *case: Option1
  297. {
  298. *PrintableArea: PAIR(10830, 13357)
  299. *PrintableOrigin: PAIR(321, 1575)
  300. *switch: Resolution
  301. {
  302. *case: Option1
  303. {
  304. *PrintableArea: PAIR(10514, 14237)
  305. *PrintableOrigin: PAIR(480, 850)
  306. }
  307. *case: Option2
  308. {
  309. *PrintableArea: PAIR(10820, 13350)
  310. *PrintableOrigin: PAIR(330, 1580)
  311. }
  312. }
  313. }
  314. *case: Option2
  315. {
  316. *PrintableArea: PAIR(10830, 13357)
  317. *PrintableOrigin: PAIR(321, 1575)
  318. *switch: Resolution
  319. {
  320. *case: Option1
  321. {
  322. *switch: Orientation
  323. {
  324. *case: PORTRAIT
  325. {
  326. *CursorOrigin: PAIR(325, 600)
  327. *PrintableArea: PAIR(10570, 14200)
  328. *PrintableOrigin: PAIR(320, 800)
  329. }
  330. *case: LANDSCAPE_CC270
  331. {
  332. *CursorOrigin: PAIR(325, 600)
  333. *PrintableArea: PAIR(10570, 14200)
  334. *PrintableOrigin: PAIR(320, 600)
  335. }
  336. }
  337. }
  338. *case: Option2
  339. {
  340. *switch: Orientation
  341. {
  342. *case: PORTRAIT
  343. {
  344. *CursorOrigin: PAIR(325, 600)
  345. *PrintableArea: PAIR(10570, 14200)
  346. *PrintableOrigin: PAIR(320, 800)
  347. }
  348. *case: LANDSCAPE_CC270
  349. {
  350. *CursorOrigin: PAIR(325, 600)
  351. *PrintableArea: PAIR(10570, 14500)
  352. *PrintableOrigin: PAIR(320, 600)
  353. }
  354. }
  355. }
  356. }
  357. }
  358. *case: Option3
  359. {
  360. *PrintableArea: PAIR(10830, 15119)
  361. *PrintableOrigin: PAIR(321, 315)
  362. *switch: Resolution
  363. {
  364. *case: Option1
  365. {
  366. *PrintableArea: PAIR(10824, 15116)
  367. *PrintableOrigin: PAIR(324, 316)
  368. }
  369. *case: Option2
  370. {
  371. *PrintableArea: PAIR(10820, 15110)
  372. *PrintableOrigin: PAIR(330, 320)
  373. }
  374. }
  375. }
  376. }
  377. }
  378. *Option: JAPANESE_POSTCARD
  379. {
  380. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  381. *switch: InputBin
  382. {
  383. *case: Option1
  384. {
  385. *PrintableArea: PAIR(5674, 6493)
  386. *PrintableOrigin: PAIR(315, 1575)
  387. *switch: Resolution
  388. {
  389. *case: Option1
  390. {
  391. *PrintableArea: PAIR(5672, 6492)
  392. *PrintableOrigin: PAIR(316, 1576)
  393. }
  394. *case: Option2
  395. {
  396. *PrintableArea: PAIR(5660, 6480)
  397. *PrintableOrigin: PAIR(320, 1580)
  398. }
  399. }
  400. }
  401. *case: Option2
  402. {
  403. *PrintableArea: PAIR(5674, 7438)
  404. *PrintableOrigin: PAIR(315, 630)
  405. *switch: Resolution
  406. {
  407. *case: Option1
  408. {
  409. *PrintableArea: PAIR(5672, 7436)
  410. *PrintableOrigin: PAIR(316, 632)
  411. }
  412. *case: Option2
  413. {
  414. *PrintableArea: PAIR(5660, 7430)
  415. *PrintableOrigin: PAIR(320, 630)
  416. }
  417. }
  418. }
  419. *case: Option3
  420. {
  421. *PrintableArea: PAIR(5674, 8255)
  422. *PrintableOrigin: PAIR(315, 315)
  423. *switch: Resolution
  424. {
  425. *case: Option1
  426. {
  427. *PrintableArea: PAIR(5672, 8252)
  428. *PrintableOrigin: PAIR(316, 316)
  429. }
  430. *case: Option2
  431. {
  432. *PrintableArea: PAIR(5660, 8250)
  433. *PrintableOrigin: PAIR(320, 320)
  434. }
  435. }
  436. }
  437. }
  438. }
  439. }
  440. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JAPANESE_POSTCARD)
  441. *InvalidCombination: LIST(InputBin.Option2, PaperSize.B4)
  442. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A4)
  443. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B4)
  444. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A5)
  445. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B5)
  446. *Feature: ColorMode
  447. {
  448. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  449. *DefaultOption: Color
  450. *Option: Mono
  451. {
  452. *rcNameID: =MONO_DISPLAY
  453. *DevNumOfPlanes: 1
  454. *DevBPP: 1
  455. *Color? : FALSE
  456. }
  457. *Option: Color
  458. {
  459. *rcNameID: =COLOR_DISPLAY
  460. *DevNumOfPlanes: 4
  461. *DevBPP: 1
  462. *DrvBPP: 4
  463. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  464. *Command: CmdSendBlackData { *Cmd : "<1B>C0" }
  465. *Command: CmdSendCyanData { *Cmd : "<1B>C5" }
  466. *Command: CmdSendMagentaData { *Cmd : "<1B>C3" }
  467. *Command: CmdSendYellowData { *Cmd : "<1B>C6" }
  468. *Command: CmdSelectBlackColor { *Cmd : "<1B>C0" }
  469. *Command: CmdSelectRedColor { *Cmd : "<1B>C2" }
  470. *Command: CmdSelectGreenColor { *Cmd : "<1B>C4" }
  471. *Command: CmdSelectYellowColor { *Cmd : "<1B>C6" }
  472. *Command: CmdSelectBlueColor { *Cmd : "<1B>C1" }
  473. *Command: CmdSelectMagentaColor { *Cmd : "<1B>C3" }
  474. *Command: CmdSelectCyanColor { *Cmd : "<1B>C5" }
  475. }
  476. }
  477. *Feature: Halftone
  478. {
  479. *rcNameID: =HALFTONING_DISPLAY
  480. *DefaultOption: HT_PATSIZE_AUTO
  481. *Option: HT_PATSIZE_AUTO
  482. {
  483. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  484. }
  485. *Option: HT_PATSIZE_SUPERCELL_M
  486. {
  487. *rcNameID: =HT_SUPERCELL_DISPLAY
  488. }
  489. *Option: HT_PATSIZE_6x6_M
  490. {
  491. *rcNameID: =HT_DITHER6X6_DISPLAY
  492. }
  493. *Option: HT_PATSIZE_8x8_M
  494. {
  495. *rcNameID: =HT_DITHER8X8_DISPLAY
  496. }
  497. }
  498. *Command: CmdStartDoc
  499. {
  500. *Order: DOC_SETUP.2
  501. *Cmd: "<1B>O0<1C>c,,0,7."
  502. }
  503. *Command: CmdStartPage
  504. {
  505. *Order: PAGE_SETUP.1
  506. *Cmd: "<0D>"
  507. }
  508. *Command: CmdEndJob
  509. {
  510. *Order: JOB_FINISH.1
  511. *Cmd: "<1B>c1"
  512. }
  513. *Command: CmdEndPage
  514. {
  515. *Order: PAGE_FINISH.1
  516. *Cmd: "<0D0C>"
  517. }
  518. *RotateCoordinate?: FALSE
  519. *RotateRaster?: FALSE
  520. *RotateFont?: FALSE
  521. *switch: Orientation
  522. {
  523. *case: PORTRAIT
  524. {
  525. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  526. }
  527. *case: LANDSCAPE_CC270
  528. {
  529. *TextCaps: LIST()
  530. }
  531. }
  532. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  533. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  534. *MaxLineSpacing: 4000
  535. *XMoveThreshold: 0
  536. *XMoveUnit: 400
  537. *AbsXMovesRightOnly?: TRUE
  538. *Command: CmdXMoveAbsolute { *Cmd : "<1B>F" %4d[0,3200]{max_repeat((DestX / 4) )} }
  539. *Command: CmdSetLineSpacing { *Cmd : "<1C>h" %d[0,4000]{(LinefeedSpacing / 4) }"/400." }
  540. *Command: CmdCR { *Cmd : "<0D>" }
  541. *Command: CmdLF { *Cmd : "<0A>" }
  542. *Command: CmdFF { *Cmd : "<0C>" }
  543. *Command: CmdBackSpace { *Cmd : "<08>" }
  544. *EjectPageWithFF?: FALSE
  545. *OutputDataFormat: V_BYTE
  546. *OptimizeLeftBound?: FALSE
  547. *CursorXAfterSendBlockData: AT_GRXDATA_END
  548. *CursorYAfterSendBlockData: NO_MOVE
  549. *DefaultFont: 12
  550. *DefaultCTT: 1
  551. *switch: Orientation
  552. {
  553. *case: PORTRAIT
  554. {
  555. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  556. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32)
  557. }
  558. *case: LANDSCAPE_CC270
  559. {
  560. *DeviceFonts: LIST()
  561. }
  562. }
  563. *Command: CmdBoldOn { *Cmd : "<1B>!" }
  564. *Command: CmdBoldOff { *Cmd : "<1B>%"" }
  565. *Command: CmdItalicOn { *Cmd : "<1B>i1" }
  566. *Command: CmdItalicOff { *Cmd : "<1B>i0" }
  567. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  568. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  569. *MirrorRasterByte?: TRUE
  570. *MoveToX0BeforeSetColor?: TRUE
  571. *UseExpColorSelectCmd?: TRUE
  572. *ReselectFont: LIST(AFTER_GRXDATA, AFTER_XMOVE, AFTER_FF)