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.

708 lines
19 KiB

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