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.

607 lines
17 KiB

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