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.

439 lines
12 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "MT90.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Mannesmann Tally MT 90"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "mt90res.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. }
  34. *Option: MANUAL
  35. {
  36. *rcNameID: =MANUAL_FEED_DISPLAY
  37. }
  38. }
  39. *Feature: Resolution
  40. {
  41. *rcNameID: =RESOLUTION_DISPLAY
  42. *DefaultOption: Option1
  43. *Option: Option1
  44. {
  45. *Name: "240 x 144 " =DOTS_PER_INCH
  46. *DPI: PAIR(240, 144)
  47. *TextDPI: PAIR(240, 144)
  48. *PinsPerLogPass: 24
  49. *PinsPerPhysPass: 8
  50. *RequireUniDir?: TRUE
  51. *SpotDiameter: 170
  52. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  53. }
  54. *Option: Option2
  55. {
  56. *Name: "60 x 72 " =DOTS_PER_INCH
  57. *DPI: PAIR(60, 72)
  58. *TextDPI: PAIR(60, 72)
  59. *PinsPerLogPass: 8
  60. *PinsPerPhysPass: 8
  61. *MinStripBlankPixels: 60
  62. *RequireUniDir?: TRUE
  63. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  64. *SpotDiameter: 100
  65. *Command: CmdSendBlockData { *Cmd : "<1B>K" %l{NumOfDataBytes} }
  66. }
  67. *Option: Option3
  68. {
  69. *Name: "120 x 72 " =DOTS_PER_INCH
  70. *DPI: PAIR(120, 72)
  71. *TextDPI: PAIR(120, 72)
  72. *PinsPerLogPass: 8
  73. *PinsPerPhysPass: 8
  74. *MinStripBlankPixels: 120
  75. *RequireUniDir?: TRUE
  76. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  77. *SpotDiameter: 100
  78. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  79. }
  80. }
  81. *Feature: PaperSize
  82. {
  83. *rcNameID: =PAPER_SIZE_DISPLAY
  84. *DefaultOption: LETTER
  85. *Option: LETTER
  86. {
  87. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  88. *switch: InputBin
  89. {
  90. *case: TRACTOR
  91. {
  92. *PrintableArea: PAIR(5940, 4752)
  93. *PrintableOrigin: PAIR(90, 0)
  94. *switch: Resolution
  95. {
  96. *case: Option2
  97. {
  98. *PrintableArea: PAIR(5928, 4752)
  99. *PrintableOrigin: PAIR(96, 0)
  100. }
  101. }
  102. }
  103. *case: MANUAL
  104. {
  105. *PrintableArea: PAIR(5940, 4379)
  106. *PrintableOrigin: PAIR(90, 144)
  107. *switch: Resolution
  108. {
  109. *case: Option1
  110. {
  111. *PrintableArea: PAIR(5940, 4377)
  112. }
  113. *case: Option2
  114. {
  115. *PrintableArea: PAIR(5928, 4374)
  116. *PrintableOrigin: PAIR(96, 144)
  117. }
  118. *case: Option3
  119. {
  120. *PrintableArea: PAIR(5940, 4374)
  121. }
  122. }
  123. }
  124. }
  125. }
  126. *Option: LEGAL
  127. {
  128. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  129. *switch: InputBin
  130. {
  131. *case: TRACTOR
  132. {
  133. *PrintableArea: PAIR(5940, 6048)
  134. *PrintableOrigin: PAIR(90, 0)
  135. *switch: Resolution
  136. {
  137. *case: Option2
  138. {
  139. *PrintableArea: PAIR(5928, 6048)
  140. *PrintableOrigin: PAIR(96, 0)
  141. }
  142. }
  143. }
  144. *case: MANUAL
  145. {
  146. *PrintableArea: PAIR(5940, 5675)
  147. *PrintableOrigin: PAIR(90, 144)
  148. *switch: Resolution
  149. {
  150. *case: Option1
  151. {
  152. *PrintableArea: PAIR(5940, 5673)
  153. }
  154. *case: Option2
  155. {
  156. *PrintableArea: PAIR(5928, 5670)
  157. *PrintableOrigin: PAIR(96, 144)
  158. }
  159. *case: Option3
  160. {
  161. *PrintableArea: PAIR(5940, 5670)
  162. }
  163. }
  164. }
  165. }
  166. }
  167. *Option: Option3
  168. {
  169. *rcNameID: 258
  170. *PageDimensions: PAIR(6120, 5184)
  171. *switch: InputBin
  172. {
  173. *case: TRACTOR
  174. {
  175. *PrintableArea: PAIR(5940, 5184)
  176. *PrintableOrigin: PAIR(90, 0)
  177. *switch: Resolution
  178. {
  179. *case: Option2
  180. {
  181. *PrintableArea: PAIR(5928, 5184)
  182. *PrintableOrigin: PAIR(96, 0)
  183. }
  184. }
  185. }
  186. *case: MANUAL
  187. {
  188. *PrintableArea: PAIR(5940, 4811)
  189. *PrintableOrigin: PAIR(90, 144)
  190. *switch: Resolution
  191. {
  192. *case: Option1
  193. {
  194. *PrintableArea: PAIR(5940, 4809)
  195. }
  196. *case: Option2
  197. {
  198. *PrintableArea: PAIR(5928, 4806)
  199. *PrintableOrigin: PAIR(96, 144)
  200. }
  201. *case: Option3
  202. {
  203. *PrintableArea: PAIR(5940, 4806)
  204. }
  205. }
  206. }
  207. }
  208. }
  209. *Option: A4
  210. {
  211. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  212. *switch: InputBin
  213. {
  214. *case: TRACTOR
  215. {
  216. *PrintableArea: PAIR(5774, 5050)
  217. *PrintableOrigin: PAIR(90, 0)
  218. *switch: Resolution
  219. {
  220. *case: Option1
  221. {
  222. *PrintableArea: PAIR(5772, 5049)
  223. }
  224. *case: Option2
  225. {
  226. *PrintableArea: PAIR(5760, 5046)
  227. *PrintableOrigin: PAIR(96, 0)
  228. }
  229. *case: Option3
  230. {
  231. *PrintableArea: PAIR(5772, 5046)
  232. }
  233. }
  234. }
  235. *case: MANUAL
  236. {
  237. *PrintableArea: PAIR(5774, 4677)
  238. *PrintableOrigin: PAIR(90, 144)
  239. *switch: Resolution
  240. {
  241. *case: Option1
  242. {
  243. *PrintableArea: PAIR(5772, 4677)
  244. }
  245. *case: Option2
  246. {
  247. *PrintableArea: PAIR(5760, 4674)
  248. *PrintableOrigin: PAIR(96, 144)
  249. }
  250. *case: Option3
  251. {
  252. *PrintableArea: PAIR(5772, 4674)
  253. }
  254. }
  255. }
  256. }
  257. }
  258. *Option: B5
  259. {
  260. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  261. *switch: InputBin
  262. {
  263. *case: TRACTOR
  264. {
  265. *PrintableArea: PAIR(4982, 4372)
  266. *PrintableOrigin: PAIR(90, 0)
  267. *switch: Resolution
  268. {
  269. *case: Option1
  270. {
  271. *PrintableArea: PAIR(4980, 4371)
  272. }
  273. *case: Option2
  274. {
  275. *PrintableArea: PAIR(4968, 4368)
  276. *PrintableOrigin: PAIR(96, 0)
  277. }
  278. *case: Option3
  279. {
  280. *PrintableArea: PAIR(4980, 4368)
  281. }
  282. }
  283. }
  284. *case: MANUAL
  285. {
  286. *PrintableArea: PAIR(4982, 3999)
  287. *PrintableOrigin: PAIR(90, 144)
  288. *switch: Resolution
  289. {
  290. *case: Option1
  291. {
  292. *PrintableArea: PAIR(4980, 3999)
  293. }
  294. *case: Option2
  295. {
  296. *PrintableArea: PAIR(4968, 3996)
  297. *PrintableOrigin: PAIR(96, 144)
  298. }
  299. *case: Option3
  300. {
  301. *PrintableArea: PAIR(4980, 3996)
  302. }
  303. }
  304. }
  305. }
  306. }
  307. *Option: CUSTOMSIZE
  308. {
  309. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  310. *MinSize: PAIR(720, 432)
  311. *MaxSize: PAIR(6120, 9504)
  312. *MaxPrintableWidth: 6120
  313. *MinLeftMargin: 90
  314. *CenterPrintable?: FALSE
  315. *switch: InputBin
  316. {
  317. *case: TRACTOR
  318. {
  319. *TopMargin: 0
  320. *BottomMargin: 0
  321. }
  322. *case: MANUAL
  323. {
  324. *TopMargin: 144
  325. *BottomMargin: 229
  326. }
  327. }
  328. }
  329. }
  330. *Feature: PrintQuality
  331. {
  332. *rcNameID: =TEXT_QUALITY_DISPLAY
  333. *DefaultOption: NEAR_LETTER_QUALITY
  334. *Option: NEAR_LETTER_QUALITY
  335. {
  336. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  337. *Command: CmdSelect
  338. {
  339. *Order: DOC_SETUP.2
  340. *Cmd: "<1B>I<02>"
  341. }
  342. }
  343. *Option: DRAFT_QUALITY
  344. {
  345. *rcNameID: =DRAFT_QUALITY_DISPLAY
  346. *Command: CmdSelect
  347. {
  348. *Order: DOC_SETUP.2
  349. *Cmd: "<1B>I<01>"
  350. }
  351. }
  352. }
  353. *Feature: Halftone
  354. {
  355. *rcNameID: =HALFTONING_DISPLAY
  356. *DefaultOption: HT_PATSIZE_AUTO
  357. *Option: HT_PATSIZE_AUTO
  358. {
  359. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  360. }
  361. *Ifdef: WINNT_50
  362. *Option: HT_PATSIZE_SUPERCELL_M
  363. {
  364. *rcNameID: =HT_SUPERCELL_DISPLAY
  365. }
  366. *Endif:
  367. *Option: HT_PATSIZE_6x6_M
  368. {
  369. *rcNameID: =HT_DITHER6X6_DISPLAY
  370. }
  371. *Option: HT_PATSIZE_8x8_M
  372. {
  373. *rcNameID: =HT_DITHER8X8_DISPLAY
  374. }
  375. }
  376. *Command: CmdStartDoc
  377. {
  378. *Order: DOC_SETUP.1
  379. *Cmd: "<1B>@<1B>W0<12>"
  380. }
  381. *Command: CmdStartPage
  382. {
  383. *Order: PAGE_SETUP.1
  384. *Cmd: "<0D>"
  385. }
  386. *RotateCoordinate?: FALSE
  387. *RotateRaster?: FALSE
  388. *RotateFont?: FALSE
  389. *switch: Orientation
  390. {
  391. *case: PORTRAIT
  392. {
  393. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_RA_ABLE)
  394. }
  395. *case: LANDSCAPE_CC270
  396. {
  397. *TextCaps: LIST(TC_RA_ABLE)
  398. }
  399. }
  400. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  401. *YMoveAttributes: LIST(SEND_CR_FIRST)
  402. *YMoveThreshold: *
  403. *YMoveUnit: 216
  404. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  405. *Command: CmdCR { *Cmd : "<0D>" }
  406. *Command: CmdLF { *Cmd : "<0A>" }
  407. *Command: CmdFF { *Cmd : "<0C>" }
  408. *Command: CmdBackSpace { *Cmd : "<08>" }
  409. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  410. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  411. *EjectPageWithFF?: FALSE
  412. *switch: InputBin
  413. {
  414. *case: MANUAL
  415. {
  416. *EjectPageWithFF?: TRUE
  417. }
  418. }
  419. *OutputDataFormat: V_BYTE
  420. *OptimizeLeftBound?: FALSE
  421. *CursorXAfterSendBlockData: AT_GRXDATA_END
  422. *CursorYAfterSendBlockData: NO_MOVE
  423. *DefaultFont: 1
  424. *DefaultCTT: 1
  425. *switch: Orientation
  426. {
  427. *case: PORTRAIT
  428. {
  429. *DeviceFonts: LIST(1,2,3,4)
  430. }
  431. *case: LANDSCAPE_CC270
  432. {
  433. *DeviceFonts: LIST()
  434. }
  435. }
  436. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  437. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  438. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  439. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }