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.

605 lines
17 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "STLC20.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Star LC-20"
  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(11880, 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. }
  500. *Feature: Halftone
  501. {
  502. *rcNameID: =HALFTONING_DISPLAY
  503. *DefaultOption: HT_PATSIZE_AUTO
  504. *Option: HT_PATSIZE_AUTO
  505. {
  506. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  507. }
  508. *Ifdef: WINNT_50
  509. *Option: HT_PATSIZE_SUPERCELL_M
  510. {
  511. *rcNameID: =HT_SUPERCELL_DISPLAY
  512. }
  513. *Endif:
  514. *Option: HT_PATSIZE_6x6_M
  515. {
  516. *rcNameID: =HT_DITHER6X6_DISPLAY
  517. }
  518. *Option: HT_PATSIZE_8x8_M
  519. {
  520. *rcNameID: =HT_DITHER8X8_DISPLAY
  521. }
  522. }
  523. *Command: CmdStartDoc
  524. {
  525. *Order: DOC_SETUP.1
  526. *Cmd: "<1B>@<1B>t<011B>6<1B>R<00>"
  527. }
  528. *Command: CmdStartPage
  529. {
  530. *Order: PAGE_SETUP.1
  531. *Cmd: "<0D>"
  532. }
  533. *RotateCoordinate?: FALSE
  534. *RotateRaster?: FALSE
  535. *RotateFont?: FALSE
  536. *switch: Orientation
  537. {
  538. *case: PORTRAIT
  539. {
  540. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  541. }
  542. *case: LANDSCAPE_CC270
  543. {
  544. *TextCaps: LIST(TC_RA_ABLE)
  545. }
  546. }
  547. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  548. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  549. *MaxLineSpacing: 255
  550. *XMoveThreshold: 0
  551. *YMoveThreshold: *
  552. *XMoveUnit: 60
  553. *YMoveUnit: 216
  554. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  555. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 2) )} }
  556. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[2,255]{(LinefeedSpacing / 2) } }
  557. *Command: CmdCR { *Cmd : "<0D>" }
  558. *Command: CmdLF { *Cmd : "<0A>" }
  559. *Command: CmdFF { *Cmd : "<0C>" }
  560. *Command: CmdBackSpace { *Cmd : "<08>" }
  561. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  562. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  563. *EjectPageWithFF?: TRUE
  564. *switch: PaperSize
  565. {
  566. *case: CUSTOMSIZE
  567. {
  568. *EjectPageWithFF?: FALSE
  569. *switch: InputBin
  570. {
  571. *case: Option2
  572. {
  573. *EjectPageWithFF?: TRUE
  574. }
  575. *case: MANUAL
  576. {
  577. *EjectPageWithFF?: TRUE
  578. }
  579. }
  580. }
  581. }
  582. *OutputDataFormat: V_BYTE
  583. *OptimizeLeftBound?: TRUE
  584. *CursorXAfterSendBlockData: AT_GRXDATA_END
  585. *CursorYAfterSendBlockData: NO_MOVE
  586. *DefaultFont: 1
  587. *DefaultCTT: 2
  588. *switch: Orientation
  589. {
  590. *case: PORTRAIT
  591. {
  592. *DeviceFonts: LIST(1,2,3,4,5,6,8,9,10,11,12,13,57,58,59,60,
  593. + 61,62,63,64,65,66,89,90,91,92,93,94)
  594. }
  595. *case: LANDSCAPE_CC270
  596. {
  597. *DeviceFonts: LIST()
  598. }
  599. }
  600. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  601. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  602. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  603. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  604. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  605. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }