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.

642 lines
17 KiB

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