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.

692 lines
18 KiB

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