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.

682 lines
18 KiB

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