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.

664 lines
18 KiB

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