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.

759 lines
21 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "OLDM309L.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Olivetti DM 309 L"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "ol9res.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: UPPER
  30. *Option: UPPER
  31. {
  32. *rcNameID: =UPPER_TRAY_DISPLAY
  33. *Command: CmdSelect
  34. {
  35. *Order: DOC_SETUP.7
  36. *Cmd: "<1B19>4<1B19>1"
  37. }
  38. }
  39. *Option: TRACTOR
  40. {
  41. *rcNameID: =TRACTOR_DISPLAY
  42. }
  43. *Option: MANUAL
  44. {
  45. *rcNameID: =MANUAL_FEED_DISPLAY
  46. }
  47. *Option: LOWER
  48. {
  49. *rcNameID: =LOWER_TRAY_DISPLAY
  50. *Command: CmdSelect
  51. {
  52. *Order: DOC_SETUP.7
  53. *Cmd: "<1B19>4<1B19>2"
  54. }
  55. }
  56. }
  57. *Feature: Resolution
  58. {
  59. *rcNameID: =RESOLUTION_DISPLAY
  60. *DefaultOption: Option1
  61. *Option: Option1
  62. {
  63. *Name: "120 x 144 " =DOTS_PER_INCH
  64. *DPI: PAIR(120, 144)
  65. *TextDPI: PAIR(120, 144)
  66. *PinsPerLogPass: 16
  67. *PinsPerPhysPass: 8
  68. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  69. *SpotDiameter: 140
  70. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  71. }
  72. *Option: Option2
  73. {
  74. *Name: "240 x 144 " =DOTS_PER_INCH
  75. *DPI: PAIR(240, 144)
  76. *TextDPI: PAIR(240, 144)
  77. *PinsPerLogPass: 16
  78. *PinsPerPhysPass: 8
  79. *MinStripBlankPixels: 240
  80. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  81. *SpotDiameter: 170
  82. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  83. }
  84. *Option: Option3
  85. {
  86. *Name: "120 x 72 " =DOTS_PER_INCH
  87. *DPI: PAIR(120, 72)
  88. *TextDPI: PAIR(120, 72)
  89. *PinsPerLogPass: 8
  90. *PinsPerPhysPass: 8
  91. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  92. *SpotDiameter: 100
  93. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  94. }
  95. }
  96. *Feature: PaperSize
  97. {
  98. *rcNameID: =PAPER_SIZE_DISPLAY
  99. *DefaultOption: LETTER
  100. *Option: LETTER
  101. {
  102. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  103. *Command: CmdSelect
  104. {
  105. *Order: DOC_SETUP.8
  106. *Cmd: "<1B>2<1B>CB"
  107. }
  108. *switch: InputBin
  109. {
  110. *case: UPPER
  111. {
  112. *PrintableArea: PAIR(5760, 4320)
  113. *PrintableOrigin: PAIR(180, 108)
  114. }
  115. *case: TRACTOR
  116. {
  117. *PrintableArea: PAIR(5760, 4752)
  118. *PrintableOrigin: PAIR(180, 0)
  119. }
  120. *case: MANUAL
  121. {
  122. *PrintableArea: PAIR(5760, 4320)
  123. *PrintableOrigin: PAIR(180, 108)
  124. }
  125. *case: LOWER
  126. {
  127. *PrintableArea: PAIR(5760, 4320)
  128. *PrintableOrigin: PAIR(180, 108)
  129. }
  130. }
  131. }
  132. *Option: LEGAL
  133. {
  134. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  135. *Command: CmdSelect
  136. {
  137. *Order: DOC_SETUP.8
  138. *Cmd: "<1B>2<1B>CT"
  139. }
  140. *switch: InputBin
  141. {
  142. *case: UPPER
  143. {
  144. *PrintableArea: PAIR(5760, 5616)
  145. *PrintableOrigin: PAIR(180, 108)
  146. }
  147. *case: TRACTOR
  148. {
  149. *PrintableArea: PAIR(5760, 6048)
  150. *PrintableOrigin: PAIR(180, 0)
  151. }
  152. *case: MANUAL
  153. {
  154. *PrintableArea: PAIR(5760, 5616)
  155. *PrintableOrigin: PAIR(180, 108)
  156. }
  157. *case: LOWER
  158. {
  159. *PrintableArea: PAIR(5760, 5616)
  160. *PrintableOrigin: PAIR(180, 108)
  161. }
  162. }
  163. }
  164. *Option: A4
  165. {
  166. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  167. *Command: CmdSelect
  168. {
  169. *Order: DOC_SETUP.8
  170. *Cmd: "<1B>2<1B>CF"
  171. }
  172. *switch: InputBin
  173. {
  174. *case: UPPER
  175. {
  176. *PrintableArea: PAIR(5774, 4618)
  177. *PrintableOrigin: PAIR(90, 108)
  178. *switch: Resolution
  179. {
  180. *case: Option1
  181. {
  182. *PrintableArea: PAIR(5772, 4617)
  183. }
  184. *case: Option2
  185. {
  186. *PrintableArea: PAIR(5772, 4617)
  187. }
  188. *case: Option3
  189. {
  190. *PrintableArea: PAIR(5772, 4614)
  191. }
  192. }
  193. }
  194. *case: TRACTOR
  195. {
  196. *PrintableArea: PAIR(5774, 5050)
  197. *PrintableOrigin: PAIR(90, 0)
  198. *switch: Resolution
  199. {
  200. *case: Option1
  201. {
  202. *PrintableArea: PAIR(5772, 5049)
  203. }
  204. *case: Option2
  205. {
  206. *PrintableArea: PAIR(5772, 5049)
  207. }
  208. *case: Option3
  209. {
  210. *PrintableArea: PAIR(5772, 5046)
  211. }
  212. }
  213. }
  214. *case: MANUAL
  215. {
  216. *PrintableArea: PAIR(5774, 4618)
  217. *PrintableOrigin: PAIR(90, 108)
  218. *switch: Resolution
  219. {
  220. *case: Option1
  221. {
  222. *PrintableArea: PAIR(5772, 4617)
  223. }
  224. *case: Option2
  225. {
  226. *PrintableArea: PAIR(5772, 4617)
  227. }
  228. *case: Option3
  229. {
  230. *PrintableArea: PAIR(5772, 4614)
  231. }
  232. }
  233. }
  234. *case: LOWER
  235. {
  236. *PrintableArea: PAIR(5774, 4618)
  237. *PrintableOrigin: PAIR(90, 108)
  238. *switch: Resolution
  239. {
  240. *case: Option1
  241. {
  242. *PrintableArea: PAIR(5772, 4617)
  243. }
  244. *case: Option2
  245. {
  246. *PrintableArea: PAIR(5772, 4617)
  247. }
  248. *case: Option3
  249. {
  250. *PrintableArea: PAIR(5772, 4614)
  251. }
  252. }
  253. }
  254. }
  255. }
  256. *Option: A5
  257. {
  258. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  259. *Command: CmdSelect
  260. {
  261. *Order: DOC_SETUP.8
  262. *Cmd: "<1B>2<1B>C2"
  263. }
  264. *switch: InputBin
  265. {
  266. *case: UPPER
  267. {
  268. *PrintableArea: PAIR(4018, 3141)
  269. *PrintableOrigin: PAIR(90, 108)
  270. *switch: Resolution
  271. {
  272. *case: Option1
  273. {
  274. *PrintableArea: PAIR(4014, 3141)
  275. }
  276. *case: Option2
  277. {
  278. *PrintableArea: PAIR(4017, 3141)
  279. }
  280. *case: Option3
  281. {
  282. *PrintableArea: PAIR(4014, 3138)
  283. }
  284. }
  285. }
  286. *case: TRACTOR
  287. {
  288. *PrintableArea: PAIR(4018, 3573)
  289. *PrintableOrigin: PAIR(90, 0)
  290. *switch: Resolution
  291. {
  292. *case: Option1
  293. {
  294. *PrintableArea: PAIR(4014, 3573)
  295. }
  296. *case: Option2
  297. {
  298. *PrintableArea: PAIR(4017, 3573)
  299. }
  300. *case: Option3
  301. {
  302. *PrintableArea: PAIR(4014, 3570)
  303. }
  304. }
  305. }
  306. *case: MANUAL
  307. {
  308. *PrintableArea: PAIR(4018, 3141)
  309. *PrintableOrigin: PAIR(90, 108)
  310. *switch: Resolution
  311. {
  312. *case: Option1
  313. {
  314. *PrintableArea: PAIR(4014, 3141)
  315. }
  316. *case: Option2
  317. {
  318. *PrintableArea: PAIR(4017, 3141)
  319. }
  320. *case: Option3
  321. {
  322. *PrintableArea: PAIR(4014, 3138)
  323. }
  324. }
  325. }
  326. *case: LOWER
  327. {
  328. *PrintableArea: PAIR(4018, 3141)
  329. *PrintableOrigin: PAIR(90, 108)
  330. *switch: Resolution
  331. {
  332. *case: Option1
  333. {
  334. *PrintableArea: PAIR(4014, 3141)
  335. }
  336. *case: Option2
  337. {
  338. *PrintableArea: PAIR(4017, 3141)
  339. }
  340. *case: Option3
  341. {
  342. *PrintableArea: PAIR(4014, 3138)
  343. }
  344. }
  345. }
  346. }
  347. }
  348. *Option: B5
  349. {
  350. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  351. *Command: CmdSelect
  352. {
  353. *Order: DOC_SETUP.8
  354. *Cmd: "<1B>2<1B>C="
  355. }
  356. *switch: InputBin
  357. {
  358. *case: UPPER
  359. {
  360. *PrintableArea: PAIR(4982, 3940)
  361. *PrintableOrigin: PAIR(90, 108)
  362. *switch: Resolution
  363. {
  364. *case: Option1
  365. {
  366. *PrintableArea: PAIR(4980, 3939)
  367. }
  368. *case: Option2
  369. {
  370. *PrintableArea: PAIR(4980, 3939)
  371. }
  372. *case: Option3
  373. {
  374. *PrintableArea: PAIR(4980, 3936)
  375. }
  376. }
  377. }
  378. *case: TRACTOR
  379. {
  380. *PrintableArea: PAIR(4982, 4372)
  381. *PrintableOrigin: PAIR(90, 0)
  382. *switch: Resolution
  383. {
  384. *case: Option1
  385. {
  386. *PrintableArea: PAIR(4980, 4371)
  387. }
  388. *case: Option2
  389. {
  390. *PrintableArea: PAIR(4980, 4371)
  391. }
  392. *case: Option3
  393. {
  394. *PrintableArea: PAIR(4980, 4368)
  395. }
  396. }
  397. }
  398. *case: MANUAL
  399. {
  400. *PrintableArea: PAIR(4982, 3940)
  401. *PrintableOrigin: PAIR(90, 108)
  402. *switch: Resolution
  403. {
  404. *case: Option1
  405. {
  406. *PrintableArea: PAIR(4980, 3939)
  407. }
  408. *case: Option2
  409. {
  410. *PrintableArea: PAIR(4980, 3939)
  411. }
  412. *case: Option3
  413. {
  414. *PrintableArea: PAIR(4980, 3936)
  415. }
  416. }
  417. }
  418. *case: LOWER
  419. {
  420. *PrintableArea: PAIR(4982, 3940)
  421. *PrintableOrigin: PAIR(90, 108)
  422. *switch: Resolution
  423. {
  424. *case: Option1
  425. {
  426. *PrintableArea: PAIR(4980, 3939)
  427. }
  428. *case: Option2
  429. {
  430. *PrintableArea: PAIR(4980, 3939)
  431. }
  432. *case: Option3
  433. {
  434. *PrintableArea: PAIR(4980, 3936)
  435. }
  436. }
  437. }
  438. }
  439. }
  440. *Option: A3
  441. {
  442. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  443. *Command: CmdSelect
  444. {
  445. *Order: DOC_SETUP.8
  446. *Cmd: "<1B>2<1B>Cc"
  447. }
  448. *switch: InputBin
  449. {
  450. *case: UPPER
  451. {
  452. *PrintableArea: PAIR(8237, 6713)
  453. *PrintableOrigin: PAIR(90, 108)
  454. *switch: Resolution
  455. {
  456. *case: Option1
  457. {
  458. *PrintableArea: PAIR(8232, 6711)
  459. }
  460. *case: Option2
  461. {
  462. *PrintableArea: PAIR(8235, 6711)
  463. }
  464. *case: Option3
  465. {
  466. *PrintableArea: PAIR(8232, 6708)
  467. }
  468. }
  469. }
  470. *case: TRACTOR
  471. {
  472. *PrintableArea: PAIR(8237, 7145)
  473. *PrintableOrigin: PAIR(90, 0)
  474. *switch: Resolution
  475. {
  476. *case: Option1
  477. {
  478. *PrintableArea: PAIR(8232, 7143)
  479. }
  480. *case: Option2
  481. {
  482. *PrintableArea: PAIR(8235, 7143)
  483. }
  484. *case: Option3
  485. {
  486. *PrintableArea: PAIR(8232, 7140)
  487. }
  488. }
  489. }
  490. *case: MANUAL
  491. {
  492. *PrintableArea: PAIR(8237, 6713)
  493. *PrintableOrigin: PAIR(90, 108)
  494. *switch: Resolution
  495. {
  496. *case: Option1
  497. {
  498. *PrintableArea: PAIR(8232, 6711)
  499. }
  500. *case: Option2
  501. {
  502. *PrintableArea: PAIR(8235, 6711)
  503. }
  504. *case: Option3
  505. {
  506. *PrintableArea: PAIR(8232, 6708)
  507. }
  508. }
  509. }
  510. *case: LOWER
  511. {
  512. *PrintableArea: PAIR(8237, 6713)
  513. *PrintableOrigin: PAIR(90, 108)
  514. *switch: Resolution
  515. {
  516. *case: Option1
  517. {
  518. *PrintableArea: PAIR(8232, 6711)
  519. }
  520. *case: Option2
  521. {
  522. *PrintableArea: PAIR(8235, 6711)
  523. }
  524. *case: Option3
  525. {
  526. *PrintableArea: PAIR(8232, 6708)
  527. }
  528. }
  529. }
  530. }
  531. }
  532. *Option: Option7
  533. {
  534. *rcNameID: 258
  535. *PageDimensions: PAIR(6120, 5184)
  536. *Command: CmdSelect
  537. {
  538. *Order: DOC_SETUP.8
  539. *Cmd: "<1B>2<1B>CH"
  540. }
  541. *switch: InputBin
  542. {
  543. *case: UPPER
  544. {
  545. *PrintableArea: PAIR(5940, 4752)
  546. *PrintableOrigin: PAIR(90, 108)
  547. }
  548. *case: TRACTOR
  549. {
  550. *PrintableArea: PAIR(5940, 5184)
  551. *PrintableOrigin: PAIR(90, 0)
  552. }
  553. *case: MANUAL
  554. {
  555. *PrintableArea: PAIR(5940, 4752)
  556. *PrintableOrigin: PAIR(90, 108)
  557. }
  558. *case: LOWER
  559. {
  560. *PrintableArea: PAIR(5940, 4752)
  561. *PrintableOrigin: PAIR(90, 108)
  562. }
  563. }
  564. }
  565. *Option: FANFOLD_US
  566. {
  567. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  568. *Command: CmdSelect
  569. {
  570. *Order: DOC_SETUP.8
  571. *Cmd: "<1B>2<1B>CB"
  572. }
  573. *switch: InputBin
  574. {
  575. *case: UPPER
  576. {
  577. *PrintableArea: PAIR(9792, 4320)
  578. *PrintableOrigin: PAIR(90, 108)
  579. }
  580. *case: TRACTOR
  581. {
  582. *PrintableArea: PAIR(9792, 4752)
  583. *PrintableOrigin: PAIR(90, 0)
  584. }
  585. *case: MANUAL
  586. {
  587. *PrintableArea: PAIR(9792, 4320)
  588. *PrintableOrigin: PAIR(90, 108)
  589. }
  590. *case: LOWER
  591. {
  592. *PrintableArea: PAIR(9792, 4320)
  593. *PrintableOrigin: PAIR(90, 108)
  594. }
  595. }
  596. }
  597. *Option: CUSTOMSIZE
  598. {
  599. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  600. *MinSize: PAIR(720, 432)
  601. *MaxSize: PAIR(10080, 9504)
  602. *MaxPrintableWidth: 9792
  603. *MinLeftMargin: 90
  604. *CenterPrintable?: FALSE
  605. *switch: InputBin
  606. {
  607. *case: UPPER
  608. {
  609. *TopMargin: 108
  610. *BottomMargin: 324
  611. }
  612. *case: TRACTOR
  613. {
  614. *TopMargin: 0
  615. *BottomMargin: 0
  616. }
  617. *case: MANUAL
  618. {
  619. *TopMargin: 108
  620. *BottomMargin: 324
  621. }
  622. *case: LOWER
  623. {
  624. *TopMargin: 108
  625. *BottomMargin: 324
  626. }
  627. }
  628. *Command: CmdSelect
  629. {
  630. *Order: DOC_SETUP.8
  631. *Cmd: "<1B>2"
  632. }
  633. }
  634. }
  635. *Feature: PrintQuality
  636. {
  637. *rcNameID: =TEXT_QUALITY_DISPLAY
  638. *DefaultOption: LETTER_QUALITY
  639. *Option: LETTER_QUALITY
  640. {
  641. *rcNameID: =LETTER_QUALITY_DISPLAY
  642. *Command: CmdSelect
  643. {
  644. *Order: DOC_SETUP.6
  645. *Cmd: "<1B>x<01>"
  646. }
  647. }
  648. *Option: DRAFT_QUALITY
  649. {
  650. *rcNameID: =DRAFT_QUALITY_DISPLAY
  651. *Command: CmdSelect
  652. {
  653. *Order: DOC_SETUP.6
  654. *Cmd: "<1B>x<00>"
  655. }
  656. }
  657. }
  658. *Feature: Halftone
  659. {
  660. *rcNameID: =HALFTONING_DISPLAY
  661. *DefaultOption: HT_PATSIZE_AUTO
  662. *Option: HT_PATSIZE_AUTO
  663. {
  664. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  665. }
  666. *Ifdef: WINNT_50
  667. *Option: HT_PATSIZE_SUPERCELL_M
  668. {
  669. *rcNameID: =HT_SUPERCELL_DISPLAY
  670. }
  671. *Endif:
  672. *Option: HT_PATSIZE_6x6_M
  673. {
  674. *rcNameID: =HT_DITHER6X6_DISPLAY
  675. }
  676. *Option: HT_PATSIZE_8x8_M
  677. {
  678. *rcNameID: =HT_DITHER8X8_DISPLAY
  679. }
  680. }
  681. *Command: CmdStartDoc
  682. {
  683. *Order: DOC_SETUP.1
  684. *Cmd: "<1B>@<0D1B>t<011B>I<011B>6<1B>R<00>"
  685. }
  686. *Command: CmdStartPage
  687. {
  688. *Order: PAGE_SETUP.1
  689. *Cmd: "<0D>"
  690. }
  691. *RotateCoordinate?: FALSE
  692. *RotateRaster?: FALSE
  693. *RotateFont?: FALSE
  694. *switch: Orientation
  695. {
  696. *case: PORTRAIT
  697. {
  698. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  699. }
  700. *case: LANDSCAPE_CC270
  701. {
  702. *TextCaps: LIST(TC_RA_ABLE)
  703. }
  704. }
  705. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  706. *YMoveAttributes: LIST(SEND_CR_FIRST)
  707. *MaxLineSpacing: 255
  708. *XMoveThreshold: *
  709. *YMoveThreshold: *
  710. *XMoveUnit: 120
  711. *YMoveUnit: 216
  712. *Command: CmdXMoveRelRight { *Cmd : "<1B>\" %l{(DestXRel / 6) } }
  713. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  714. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  715. *Command: CmdCR { *Cmd : "<0D>" }
  716. *Command: CmdLF { *Cmd : "<0A>" }
  717. *Command: CmdFF { *Cmd : "<0C>" }
  718. *Command: CmdBackSpace { *Cmd : "<08>" }
  719. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  720. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  721. *EjectPageWithFF?: TRUE
  722. *switch: PaperSize
  723. {
  724. *case: CUSTOMSIZE
  725. {
  726. *EjectPageWithFF?: TRUE
  727. *switch: InputBin
  728. {
  729. *case: TRACTOR
  730. {
  731. *EjectPageWithFF?: FALSE
  732. }
  733. }
  734. }
  735. }
  736. *OutputDataFormat: V_BYTE
  737. *OptimizeLeftBound?: FALSE
  738. *CursorXAfterSendBlockData: AT_GRXDATA_END
  739. *CursorYAfterSendBlockData: NO_MOVE
  740. *DefaultFont: 1
  741. *DefaultCTT: 1
  742. *switch: Orientation
  743. {
  744. *case: PORTRAIT
  745. {
  746. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  747. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32)
  748. }
  749. *case: LANDSCAPE_CC270
  750. {
  751. *DeviceFonts: LIST()
  752. }
  753. }
  754. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  755. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  756. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  757. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  758. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  759. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }