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.

705 lines
19 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "STLC15.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Star LC-15"
  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(6120, 4752)
  111. *PrintableOrigin: PAIR(0, 0)
  112. }
  113. *case: Option2
  114. {
  115. *PrintableArea: PAIR(6120, 3880)
  116. *PrintableOrigin: PAIR(0, 432)
  117. *switch: Resolution
  118. {
  119. *case: Option1
  120. {
  121. *PrintableArea: PAIR(6120, 3879)
  122. }
  123. *case: Option2
  124. {
  125. *PrintableArea: PAIR(6120, 3879)
  126. }
  127. *case: Option3
  128. {
  129. *PrintableArea: PAIR(6120, 3876)
  130. }
  131. }
  132. }
  133. *case: MANUAL
  134. {
  135. *PrintableArea: PAIR(6120, 3880)
  136. *PrintableOrigin: PAIR(0, 432)
  137. *switch: Resolution
  138. {
  139. *case: Option1
  140. {
  141. *PrintableArea: PAIR(6120, 3879)
  142. }
  143. *case: Option2
  144. {
  145. *PrintableArea: PAIR(6120, 3879)
  146. }
  147. *case: Option3
  148. {
  149. *PrintableArea: PAIR(6120, 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(6120, 6048)
  168. *PrintableOrigin: PAIR(0, 0)
  169. }
  170. *case: Option2
  171. {
  172. *PrintableArea: PAIR(6120, 5176)
  173. *PrintableOrigin: PAIR(0, 432)
  174. *switch: Resolution
  175. {
  176. *case: Option1
  177. {
  178. *PrintableArea: PAIR(6120, 5175)
  179. }
  180. *case: Option2
  181. {
  182. *PrintableArea: PAIR(6120, 5175)
  183. }
  184. *case: Option3
  185. {
  186. *PrintableArea: PAIR(6120, 5172)
  187. }
  188. }
  189. }
  190. *case: MANUAL
  191. {
  192. *PrintableArea: PAIR(6120, 5176)
  193. *PrintableOrigin: PAIR(0, 432)
  194. *switch: Resolution
  195. {
  196. *case: Option1
  197. {
  198. *PrintableArea: PAIR(6120, 5175)
  199. }
  200. *case: Option2
  201. {
  202. *PrintableArea: PAIR(6120, 5175)
  203. }
  204. *case: Option3
  205. {
  206. *PrintableArea: PAIR(6120, 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(5954, 5050)
  225. *PrintableOrigin: PAIR(0, 0)
  226. *switch: Resolution
  227. {
  228. *case: Option1
  229. {
  230. *PrintableArea: PAIR(5952, 5049)
  231. }
  232. *case: Option2
  233. {
  234. *PrintableArea: PAIR(5952, 5049)
  235. }
  236. *case: Option3
  237. {
  238. *PrintableArea: PAIR(5952, 5046)
  239. }
  240. }
  241. }
  242. *case: Option2
  243. {
  244. *PrintableArea: PAIR(5954, 4178)
  245. *PrintableOrigin: PAIR(0, 432)
  246. *switch: Resolution
  247. {
  248. *case: Option1
  249. {
  250. *PrintableArea: PAIR(5952, 4176)
  251. }
  252. *case: Option2
  253. {
  254. *PrintableArea: PAIR(5952, 4176)
  255. }
  256. *case: Option3
  257. {
  258. *PrintableArea: PAIR(5952, 4176)
  259. }
  260. }
  261. }
  262. *case: MANUAL
  263. {
  264. *PrintableArea: PAIR(5954, 4178)
  265. *PrintableOrigin: PAIR(0, 432)
  266. *switch: Resolution
  267. {
  268. *case: Option1
  269. {
  270. *PrintableArea: PAIR(5952, 4176)
  271. }
  272. *case: Option2
  273. {
  274. *PrintableArea: PAIR(5952, 4176)
  275. }
  276. *case: Option3
  277. {
  278. *PrintableArea: PAIR(5952, 4176)
  279. }
  280. }
  281. }
  282. }
  283. }
  284. *Option: A3
  285. {
  286. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  287. *Command: CmdSelect
  288. {
  289. *Order: DOC_SETUP.5
  290. *Cmd: "<1B>2<1B>Cc"
  291. }
  292. *switch: InputBin
  293. {
  294. *case: TRACTOR
  295. {
  296. *PrintableArea: PAIR(8417, 7145)
  297. *PrintableOrigin: PAIR(0, 0)
  298. *switch: Resolution
  299. {
  300. *case: Option1
  301. {
  302. *PrintableArea: PAIR(8415, 7143)
  303. }
  304. *case: Option2
  305. {
  306. *PrintableArea: PAIR(8412, 7143)
  307. }
  308. *case: Option3
  309. {
  310. *PrintableArea: PAIR(8412, 7140)
  311. }
  312. }
  313. }
  314. *case: Option2
  315. {
  316. *PrintableArea: PAIR(8417, 6273)
  317. *PrintableOrigin: PAIR(0, 432)
  318. *switch: Resolution
  319. {
  320. *case: Option1
  321. {
  322. *PrintableArea: PAIR(8415, 6273)
  323. }
  324. *case: Option2
  325. {
  326. *PrintableArea: PAIR(8412, 6273)
  327. }
  328. *case: Option3
  329. {
  330. *PrintableArea: PAIR(8412, 6270)
  331. }
  332. }
  333. }
  334. *case: MANUAL
  335. {
  336. *PrintableArea: PAIR(8417, 6273)
  337. *PrintableOrigin: PAIR(0, 432)
  338. *switch: Resolution
  339. {
  340. *case: Option1
  341. {
  342. *PrintableArea: PAIR(8415, 6273)
  343. }
  344. *case: Option2
  345. {
  346. *PrintableArea: PAIR(8412, 6273)
  347. }
  348. *case: Option3
  349. {
  350. *PrintableArea: PAIR(8412, 6270)
  351. }
  352. }
  353. }
  354. }
  355. }
  356. *Option: B5
  357. {
  358. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  359. *Command: CmdSelect
  360. {
  361. *Order: DOC_SETUP.5
  362. *Cmd: "<1B>2<1B>C="
  363. }
  364. *switch: InputBin
  365. {
  366. *case: TRACTOR
  367. {
  368. *PrintableArea: PAIR(5162, 4372)
  369. *PrintableOrigin: PAIR(0, 0)
  370. *switch: Resolution
  371. {
  372. *case: Option1
  373. {
  374. *PrintableArea: PAIR(5160, 4371)
  375. }
  376. *case: Option2
  377. {
  378. *PrintableArea: PAIR(5160, 4371)
  379. }
  380. *case: Option3
  381. {
  382. *PrintableArea: PAIR(5160, 4368)
  383. }
  384. }
  385. }
  386. *case: Option2
  387. {
  388. *PrintableArea: PAIR(5162, 3500)
  389. *PrintableOrigin: PAIR(0, 432)
  390. *switch: Resolution
  391. {
  392. *case: Option1
  393. {
  394. *PrintableArea: PAIR(5160, 3498)
  395. }
  396. *case: Option2
  397. {
  398. *PrintableArea: PAIR(5160, 3498)
  399. }
  400. *case: Option3
  401. {
  402. *PrintableArea: PAIR(5160, 3498)
  403. }
  404. }
  405. }
  406. *case: MANUAL
  407. {
  408. *PrintableArea: PAIR(5162, 3500)
  409. *PrintableOrigin: PAIR(0, 432)
  410. *switch: Resolution
  411. {
  412. *case: Option1
  413. {
  414. *PrintableArea: PAIR(5160, 3498)
  415. }
  416. *case: Option2
  417. {
  418. *PrintableArea: PAIR(5160, 3498)
  419. }
  420. *case: Option3
  421. {
  422. *PrintableArea: PAIR(5160, 3498)
  423. }
  424. }
  425. }
  426. }
  427. }
  428. *Option: Option6
  429. {
  430. *rcNameID: 259
  431. *PageDimensions: PAIR(6120, 5184)
  432. *Command: CmdSelect
  433. {
  434. *Order: DOC_SETUP.5
  435. *Cmd: "<1B>2<1B>CH"
  436. }
  437. *switch: InputBin
  438. {
  439. *case: TRACTOR
  440. {
  441. *PrintableArea: PAIR(6120, 5184)
  442. *PrintableOrigin: PAIR(0, 0)
  443. }
  444. *case: Option2
  445. {
  446. *PrintableArea: PAIR(6120, 4312)
  447. *PrintableOrigin: PAIR(0, 432)
  448. *switch: Resolution
  449. {
  450. *case: Option1
  451. {
  452. *PrintableArea: PAIR(6120, 4311)
  453. }
  454. *case: Option2
  455. {
  456. *PrintableArea: PAIR(6120, 4311)
  457. }
  458. *case: Option3
  459. {
  460. *PrintableArea: PAIR(6120, 4308)
  461. }
  462. }
  463. }
  464. *case: MANUAL
  465. {
  466. *PrintableArea: PAIR(6120, 4312)
  467. *PrintableOrigin: PAIR(0, 432)
  468. *switch: Resolution
  469. {
  470. *case: Option1
  471. {
  472. *PrintableArea: PAIR(6120, 4311)
  473. }
  474. *case: Option2
  475. {
  476. *PrintableArea: PAIR(6120, 4311)
  477. }
  478. *case: Option3
  479. {
  480. *PrintableArea: PAIR(6120, 4308)
  481. }
  482. }
  483. }
  484. }
  485. }
  486. *Option: Option7
  487. {
  488. *rcNameID: 260
  489. *PageDimensions: PAIR(10800, 5184)
  490. *Command: CmdSelect
  491. {
  492. *Order: DOC_SETUP.5
  493. *Cmd: "<1B>2<1B>CH"
  494. }
  495. *switch: InputBin
  496. {
  497. *case: TRACTOR
  498. {
  499. *PrintableArea: PAIR(9792, 5184)
  500. *PrintableOrigin: PAIR(0, 0)
  501. }
  502. *case: Option2
  503. {
  504. *PrintableArea: PAIR(9792, 4312)
  505. *PrintableOrigin: PAIR(0, 432)
  506. *switch: Resolution
  507. {
  508. *case: Option1
  509. {
  510. *PrintableArea: PAIR(9792, 4311)
  511. }
  512. *case: Option2
  513. {
  514. *PrintableArea: PAIR(9792, 4311)
  515. }
  516. *case: Option3
  517. {
  518. *PrintableArea: PAIR(9792, 4308)
  519. }
  520. }
  521. }
  522. *case: MANUAL
  523. {
  524. *PrintableArea: PAIR(9792, 4312)
  525. *PrintableOrigin: PAIR(0, 432)
  526. *switch: Resolution
  527. {
  528. *case: Option1
  529. {
  530. *PrintableArea: PAIR(9792, 4311)
  531. }
  532. *case: Option2
  533. {
  534. *PrintableArea: PAIR(9792, 4311)
  535. }
  536. *case: Option3
  537. {
  538. *PrintableArea: PAIR(9792, 4308)
  539. }
  540. }
  541. }
  542. }
  543. }
  544. *Option: CUSTOMSIZE
  545. {
  546. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  547. *MinSize: PAIR(720, 432)
  548. *MaxSize: PAIR(11880, 9504)
  549. *MaxPrintableWidth: 9792
  550. *MinLeftMargin: 0
  551. *CenterPrintable?: FALSE
  552. *switch: InputBin
  553. {
  554. *case: TRACTOR
  555. {
  556. *TopMargin: 0
  557. *BottomMargin: 0
  558. }
  559. *case: Option2
  560. {
  561. *TopMargin: 432
  562. *BottomMargin: 440
  563. }
  564. *case: MANUAL
  565. {
  566. *TopMargin: 432
  567. *BottomMargin: 440
  568. }
  569. }
  570. *Command: CmdSelect
  571. {
  572. *Order: DOC_SETUP.5
  573. *Cmd: "<1B>2"
  574. }
  575. }
  576. }
  577. *Feature: PrintQuality
  578. {
  579. *rcNameID: =TEXT_QUALITY_DISPLAY
  580. *DefaultOption: NEAR_LETTER_QUALITY
  581. *Option: NEAR_LETTER_QUALITY
  582. {
  583. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  584. *Command: CmdSelect
  585. {
  586. *Order: DOC_SETUP.3
  587. *Cmd: "<1B>x<01>"
  588. }
  589. }
  590. *Option: DRAFT_QUALITY
  591. {
  592. *rcNameID: =DRAFT_QUALITY_DISPLAY
  593. *Command: CmdSelect
  594. {
  595. *Order: DOC_SETUP.3
  596. *Cmd: "<1B>x<00>"
  597. }
  598. }
  599. }
  600. *Feature: Halftone
  601. {
  602. *rcNameID: =HALFTONING_DISPLAY
  603. *DefaultOption: HT_PATSIZE_AUTO
  604. *Option: HT_PATSIZE_AUTO
  605. {
  606. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  607. }
  608. *Ifdef: WINNT_50
  609. *Option: HT_PATSIZE_SUPERCELL_M
  610. {
  611. *rcNameID: =HT_SUPERCELL_DISPLAY
  612. }
  613. *Endif:
  614. *Option: HT_PATSIZE_6x6_M
  615. {
  616. *rcNameID: =HT_DITHER6X6_DISPLAY
  617. }
  618. *Option: HT_PATSIZE_8x8_M
  619. {
  620. *rcNameID: =HT_DITHER8X8_DISPLAY
  621. }
  622. }
  623. *Command: CmdStartDoc
  624. {
  625. *Order: DOC_SETUP.1
  626. *Cmd: "<1B>@<1B>t<011B>6<1B>R<00>"
  627. }
  628. *Command: CmdStartPage
  629. {
  630. *Order: PAGE_SETUP.1
  631. *Cmd: "<0D>"
  632. }
  633. *RotateCoordinate?: FALSE
  634. *RotateRaster?: FALSE
  635. *RotateFont?: FALSE
  636. *switch: Orientation
  637. {
  638. *case: PORTRAIT
  639. {
  640. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  641. }
  642. *case: LANDSCAPE_CC270
  643. {
  644. *TextCaps: LIST(TC_RA_ABLE)
  645. }
  646. }
  647. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  648. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  649. *MaxLineSpacing: 255
  650. *XMoveThreshold: 0
  651. *YMoveThreshold: *
  652. *XMoveUnit: 60
  653. *YMoveUnit: 216
  654. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  655. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 2) )} }
  656. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[2,255]{(LinefeedSpacing / 2) } }
  657. *Command: CmdCR { *Cmd : "<0D>" }
  658. *Command: CmdLF { *Cmd : "<0A>" }
  659. *Command: CmdFF { *Cmd : "<0C>" }
  660. *Command: CmdBackSpace { *Cmd : "<08>" }
  661. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  662. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  663. *EjectPageWithFF?: TRUE
  664. *switch: PaperSize
  665. {
  666. *case: CUSTOMSIZE
  667. {
  668. *EjectPageWithFF?: FALSE
  669. *switch: InputBin
  670. {
  671. *case: Option2
  672. {
  673. *EjectPageWithFF?: TRUE
  674. }
  675. *case: MANUAL
  676. {
  677. *EjectPageWithFF?: TRUE
  678. }
  679. }
  680. }
  681. }
  682. *OutputDataFormat: V_BYTE
  683. *OptimizeLeftBound?: TRUE
  684. *CursorXAfterSendBlockData: AT_GRXDATA_END
  685. *CursorYAfterSendBlockData: NO_MOVE
  686. *DefaultFont: 1
  687. *DefaultCTT: 2
  688. *switch: Orientation
  689. {
  690. *case: PORTRAIT
  691. {
  692. *DeviceFonts: LIST(1,2,3,4,5,6,8,9,10,11,12,13,64,66,67,68,
  693. + 69,70,71,72,73,74,75,76,77,78,79,80)
  694. }
  695. *case: LANDSCAPE_CC270
  696. {
  697. *DeviceFonts: LIST()
  698. }
  699. }
  700. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  701. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  702. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  703. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  704. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  705. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }