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.

648 lines
19 KiB

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