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.

556 lines
15 KiB

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