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.

663 lines
18 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "STLC2410.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Star LC24-10"
  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: LETTER
  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, 6795)
  128. *PrintableOrigin: PAIR(0, 720)
  129. *switch: Resolution
  130. {
  131. *case: Option1
  132. {
  133. *PrintableArea: PAIR(5760, 6792)
  134. }
  135. *case: Option2
  136. {
  137. *PrintableArea: PAIR(5760, 6794)
  138. }
  139. *case: Option3
  140. {
  141. *PrintableArea: PAIR(5760, 6792)
  142. }
  143. *case: Option4
  144. {
  145. *PrintableArea: PAIR(5760, 6792)
  146. }
  147. }
  148. }
  149. *case: MANUAL
  150. {
  151. *PrintableArea: PAIR(5760, 6795)
  152. *PrintableOrigin: PAIR(0, 720)
  153. *switch: Resolution
  154. {
  155. *case: Option1
  156. {
  157. *PrintableArea: PAIR(5760, 6792)
  158. }
  159. *case: Option2
  160. {
  161. *PrintableArea: PAIR(5760, 6794)
  162. }
  163. *case: Option3
  164. {
  165. *PrintableArea: PAIR(5760, 6792)
  166. }
  167. *case: Option4
  168. {
  169. *PrintableArea: PAIR(5760, 6792)
  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, 8955)
  193. *PrintableOrigin: PAIR(0, 720)
  194. *switch: Resolution
  195. {
  196. *case: Option1
  197. {
  198. *PrintableArea: PAIR(5760, 8952)
  199. }
  200. *case: Option2
  201. {
  202. *PrintableArea: PAIR(5760, 8954)
  203. }
  204. *case: Option3
  205. {
  206. *PrintableArea: PAIR(5760, 8952)
  207. }
  208. *case: Option4
  209. {
  210. *PrintableArea: PAIR(5760, 8952)
  211. }
  212. }
  213. }
  214. *case: MANUAL
  215. {
  216. *PrintableArea: PAIR(5760, 8955)
  217. *PrintableOrigin: PAIR(0, 720)
  218. *switch: Resolution
  219. {
  220. *case: Option1
  221. {
  222. *PrintableArea: PAIR(5760, 8952)
  223. }
  224. *case: Option2
  225. {
  226. *PrintableArea: PAIR(5760, 8954)
  227. }
  228. *case: Option3
  229. {
  230. *PrintableArea: PAIR(5760, 8952)
  231. }
  232. *case: Option4
  233. {
  234. *PrintableArea: PAIR(5760, 8952)
  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, 7292)
  277. *PrintableOrigin: PAIR(0, 720)
  278. }
  279. *case: MANUAL
  280. {
  281. *PrintableArea: PAIR(5760, 7292)
  282. *PrintableOrigin: PAIR(0, 720)
  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, 6161)
  319. *PrintableOrigin: PAIR(0, 720)
  320. *switch: Resolution
  321. {
  322. *case: Option1
  323. {
  324. *PrintableArea: PAIR(5160, 6160)
  325. }
  326. *case: Option2
  327. {
  328. *PrintableArea: PAIR(5162, 6160)
  329. }
  330. *case: Option3
  331. {
  332. *PrintableArea: PAIR(5162, 6160)
  333. }
  334. *case: Option4
  335. {
  336. *PrintableArea: PAIR(5160, 6160)
  337. }
  338. }
  339. }
  340. *case: MANUAL
  341. {
  342. *PrintableArea: PAIR(5162, 6161)
  343. *PrintableOrigin: PAIR(0, 720)
  344. *switch: Resolution
  345. {
  346. *case: Option1
  347. {
  348. *PrintableArea: PAIR(5160, 6160)
  349. }
  350. *case: Option2
  351. {
  352. *PrintableArea: PAIR(5162, 6160)
  353. }
  354. *case: Option3
  355. {
  356. *PrintableArea: PAIR(5162, 6160)
  357. }
  358. *case: Option4
  359. {
  360. *PrintableArea: PAIR(5160, 6160)
  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, 6435)
  384. *PrintableOrigin: PAIR(0, 720)
  385. *switch: Resolution
  386. {
  387. *case: Option1
  388. {
  389. *PrintableArea: PAIR(5220, 6432)
  390. }
  391. *case: Option2
  392. {
  393. *PrintableArea: PAIR(5220, 6434)
  394. }
  395. *case: Option3
  396. {
  397. *PrintableArea: PAIR(5220, 6432)
  398. }
  399. *case: Option4
  400. {
  401. *PrintableArea: PAIR(5220, 6432)
  402. }
  403. }
  404. }
  405. *case: MANUAL
  406. {
  407. *PrintableArea: PAIR(5220, 6435)
  408. *PrintableOrigin: PAIR(0, 720)
  409. *switch: Resolution
  410. {
  411. *case: Option1
  412. {
  413. *PrintableArea: PAIR(5220, 6432)
  414. }
  415. *case: Option2
  416. {
  417. *PrintableArea: PAIR(5220, 6434)
  418. }
  419. *case: Option3
  420. {
  421. *PrintableArea: PAIR(5220, 6432)
  422. }
  423. *case: Option4
  424. {
  425. *PrintableArea: PAIR(5220, 6432)
  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, 7515)
  450. *PrintableOrigin: PAIR(0, 720)
  451. *switch: Resolution
  452. {
  453. *case: Option1
  454. {
  455. *PrintableArea: PAIR(5760, 7512)
  456. }
  457. *case: Option2
  458. {
  459. *PrintableArea: PAIR(5760, 7514)
  460. }
  461. *case: Option3
  462. {
  463. *PrintableArea: PAIR(5760, 7512)
  464. }
  465. *case: Option4
  466. {
  467. *PrintableArea: PAIR(5760, 7512)
  468. }
  469. }
  470. }
  471. *case: MANUAL
  472. {
  473. *PrintableArea: PAIR(5760, 7515)
  474. *PrintableOrigin: PAIR(0, 720)
  475. *switch: Resolution
  476. {
  477. *case: Option1
  478. {
  479. *PrintableArea: PAIR(5760, 7512)
  480. }
  481. *case: Option2
  482. {
  483. *PrintableArea: PAIR(5760, 7514)
  484. }
  485. *case: Option3
  486. {
  487. *PrintableArea: PAIR(5760, 7512)
  488. }
  489. *case: Option4
  490. {
  491. *PrintableArea: PAIR(5760, 7512)
  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: 720
  515. *BottomMargin: 405
  516. }
  517. *case: MANUAL
  518. {
  519. *TopMargin: 720
  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<011B>6<1B>r<00>"
  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: 56
  645. *DefaultCTT: 2
  646. *switch: Orientation
  647. {
  648. *case: PORTRAIT
  649. {
  650. *DeviceFonts: LIST(56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,
  651. + 72,73,74,75,76,77,78,79,80,81,82,83,84,85)
  652. }
  653. *case: LANDSCAPE_CC270
  654. {
  655. *DeviceFonts: LIST()
  656. }
  657. }
  658. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  659. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  660. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  661. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  662. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  663. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }