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.

431 lines
12 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *Include: "StdNames.gpd"
  7. *GPDFileVersion: "1.0"
  8. *GPDFileName: "mtlite.gpd"
  9. *ModelName: "Mannesmann Tally MT Lite"
  10. *MasterUnits: PAIR(1800, 1800)
  11. *ResourceDLL: "mtltres.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: Option2
  30. *Option: MANUAL
  31. {
  32. *rcNameID: =MANUAL_FEED_DISPLAY
  33. }
  34. *Option: Option2
  35. {
  36. *rcNameID: 258
  37. *OptionID: 258
  38. }
  39. }
  40. *Feature: Resolution
  41. {
  42. *rcNameID: =RESOLUTION_DISPLAY
  43. *DefaultOption: Option1
  44. *Option: Option1
  45. {
  46. *Name: "200 x 180 " =DOTS_PER_INCH
  47. *DPI: PAIR(200, 180)
  48. *TextDPI: PAIR(200, 180)
  49. *PinsPerLogPass: 24
  50. *PinsPerPhysPass: 24
  51. *MinStripBlankPixels: 200
  52. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  53. *SpotDiameter: 120
  54. *Command: CmdSendBlockData { *Cmd : "<1B>*3" %l{NumOfDataBytes / 3} }
  55. }
  56. *Option: Option2
  57. {
  58. *Name: "200 x 360 " =DOTS_PER_INCH
  59. *DPI: PAIR(200, 360)
  60. *TextDPI: PAIR(200, 360)
  61. *PinsPerLogPass: 48
  62. *PinsPerPhysPass: 24
  63. *MinStripBlankPixels: 200
  64. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  65. *SpotDiameter: 100
  66. *Command: CmdSendBlockData { *Cmd : "<1B>*3" %l{NumOfDataBytes / 3} }
  67. }
  68. *Option: Option3
  69. {
  70. *Name: "120 x 180 " =DOTS_PER_INCH
  71. *DPI: PAIR(120, 180)
  72. *TextDPI: PAIR(120, 180)
  73. *PinsPerLogPass: 24
  74. *PinsPerPhysPass: 24
  75. *MinStripBlankPixels: 120
  76. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  77. *SpotDiameter: 100
  78. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  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. *Command: CmdSelect
  89. {
  90. *Order: DOC_SETUP.4
  91. *Cmd: "<1B>2<1B>CB"
  92. }
  93. *switch: InputBin
  94. {
  95. *case: MANUAL
  96. {
  97. *PrintableArea: PAIR(14592, 19092)
  98. *PrintableOrigin: PAIR(354, 354)
  99. *switch: Resolution
  100. {
  101. *case: Option1
  102. {
  103. *PrintableArea: PAIR(14580, 19080)
  104. *PrintableOrigin: PAIR(360, 360)
  105. }
  106. *case: Option2
  107. {
  108. *PrintableArea: PAIR(14580, 19090)
  109. *PrintableOrigin: PAIR(360, 355)
  110. }
  111. *case: Option3
  112. {
  113. *PrintableArea: PAIR(14580, 19080)
  114. *PrintableOrigin: PAIR(360, 360)
  115. }
  116. }
  117. }
  118. *case: Option2
  119. {
  120. *PrintableArea: PAIR(14592, 19800)
  121. *PrintableOrigin: PAIR(354, 0)
  122. *switch: Resolution
  123. {
  124. *case: Option1
  125. {
  126. *PrintableArea: PAIR(14580, 19800)
  127. *PrintableOrigin: PAIR(360, 0)
  128. }
  129. *case: Option2
  130. {
  131. *PrintableArea: PAIR(14580, 19800)
  132. *PrintableOrigin: PAIR(360, 0)
  133. }
  134. *case: Option3
  135. {
  136. *PrintableArea: PAIR(14580, 19800)
  137. *PrintableOrigin: PAIR(360, 0)
  138. }
  139. }
  140. }
  141. }
  142. }
  143. *Option: LEGAL
  144. {
  145. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  146. *Command: CmdSelect
  147. {
  148. *Order: DOC_SETUP.4
  149. *Cmd: "<1B>2<1B>CT"
  150. }
  151. *switch: InputBin
  152. {
  153. *case: MANUAL
  154. {
  155. *PrintableArea: PAIR(14592, 24492)
  156. *PrintableOrigin: PAIR(354, 354)
  157. *switch: Resolution
  158. {
  159. *case: Option1
  160. {
  161. *PrintableArea: PAIR(14580, 24480)
  162. *PrintableOrigin: PAIR(360, 360)
  163. }
  164. *case: Option2
  165. {
  166. *PrintableArea: PAIR(14580, 24490)
  167. *PrintableOrigin: PAIR(360, 355)
  168. }
  169. *case: Option3
  170. {
  171. *PrintableArea: PAIR(14580, 24480)
  172. *PrintableOrigin: PAIR(360, 360)
  173. }
  174. }
  175. }
  176. *case: Option2
  177. {
  178. *PrintableArea: PAIR(14592, 25200)
  179. *PrintableOrigin: PAIR(354, 0)
  180. *switch: Resolution
  181. {
  182. *case: Option1
  183. {
  184. *PrintableArea: PAIR(14580, 25200)
  185. *PrintableOrigin: PAIR(360, 0)
  186. }
  187. *case: Option2
  188. {
  189. *PrintableArea: PAIR(14580, 25200)
  190. *PrintableOrigin: PAIR(360, 0)
  191. }
  192. *case: Option3
  193. {
  194. *PrintableArea: PAIR(14580, 25200)
  195. *PrintableOrigin: PAIR(360, 0)
  196. }
  197. }
  198. }
  199. }
  200. }
  201. *Option: A4
  202. {
  203. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  204. *Command: CmdSelect
  205. {
  206. *Order: DOC_SETUP.4
  207. *Cmd: "<1B>3<121B>Cu"
  208. }
  209. *switch: InputBin
  210. {
  211. *case: MANUAL
  212. {
  213. *PrintableArea: PAIR(14886, 20334)
  214. *PrintableOrigin: PAIR(0, 354)
  215. *switch: Resolution
  216. {
  217. *case: Option1
  218. {
  219. *PrintableArea: PAIR(14886, 20320)
  220. *PrintableOrigin: PAIR(0, 360)
  221. }
  222. *case: Option2
  223. {
  224. *PrintableArea: PAIR(14886, 20330)
  225. *PrintableOrigin: PAIR(0, 355)
  226. }
  227. *case: Option3
  228. {
  229. *PrintableArea: PAIR(14880, 20320)
  230. *PrintableOrigin: PAIR(0, 360)
  231. }
  232. }
  233. }
  234. *case: Option2
  235. {
  236. *PrintableArea: PAIR(14886, 21042)
  237. *PrintableOrigin: PAIR(0, 0)
  238. *switch: Resolution
  239. {
  240. *case: Option1
  241. {
  242. *PrintableArea: PAIR(14886, 21040)
  243. }
  244. *case: Option2
  245. {
  246. *PrintableArea: PAIR(14886, 21040)
  247. }
  248. *case: Option3
  249. {
  250. *PrintableArea: PAIR(14880, 21040)
  251. }
  252. }
  253. }
  254. }
  255. }
  256. *Option: A5
  257. {
  258. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  259. *Command: CmdSelect
  260. {
  261. *Order: DOC_SETUP.4
  262. *Cmd: "<1B>2<1B>C2"
  263. }
  264. *switch: InputBin
  265. {
  266. *case: MANUAL
  267. {
  268. *PrintableArea: PAIR(9573, 14178)
  269. *PrintableOrigin: PAIR(567, 354)
  270. *switch: Resolution
  271. {
  272. *case: Option1
  273. {
  274. *PrintableArea: PAIR(9567, 14170)
  275. *PrintableOrigin: PAIR(567, 360)
  276. }
  277. *case: Option2
  278. {
  279. *PrintableArea: PAIR(9567, 14175)
  280. *PrintableOrigin: PAIR(567, 355)
  281. }
  282. *case: Option3
  283. {
  284. *PrintableArea: PAIR(9570, 14170)
  285. *PrintableOrigin: PAIR(570, 360)
  286. }
  287. }
  288. }
  289. *case: Option2
  290. {
  291. *PrintableArea: PAIR(9573, 14886)
  292. *PrintableOrigin: PAIR(567, 0)
  293. *switch: Resolution
  294. {
  295. *case: Option1
  296. {
  297. *PrintableArea: PAIR(9567, 14880)
  298. }
  299. *case: Option2
  300. {
  301. *PrintableArea: PAIR(9567, 14885)
  302. }
  303. *case: Option3
  304. {
  305. *PrintableArea: PAIR(9570, 14880)
  306. *PrintableOrigin: PAIR(570, 0)
  307. }
  308. }
  309. }
  310. }
  311. }
  312. *Option: CUSTOMSIZE
  313. {
  314. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  315. *MinSize: PAIR(900, 900)
  316. *MaxSize: PAIR(15300, 32760)
  317. *MaxPrintableWidth: 15300
  318. *MinLeftMargin: 0
  319. *CenterPrintable?: FALSE
  320. *switch: InputBin
  321. {
  322. *case: MANUAL
  323. {
  324. *TopMargin: 354
  325. *BottomMargin: 354
  326. }
  327. *case: Option2
  328. {
  329. *TopMargin: 0
  330. *BottomMargin: 0
  331. }
  332. }
  333. *Command: CmdSelect
  334. {
  335. *Order: DOC_SETUP.4
  336. *Cmd: "<1B>2"
  337. }
  338. }
  339. }
  340. *Feature: Halftone
  341. {
  342. *rcNameID: =HALFTONING_DISPLAY
  343. *DefaultOption: HT_PATSIZE_AUTO
  344. *Option: HT_PATSIZE_AUTO
  345. {
  346. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  347. }
  348. *Ifdef: WINNT_50
  349. *Option: HT_PATSIZE_SUPERCELL_M
  350. {
  351. *rcNameID: =HT_SUPERCELL_DISPLAY
  352. }
  353. *Endif:
  354. *Option: HT_PATSIZE_6x6_M
  355. {
  356. *rcNameID: =HT_DITHER6X6_DISPLAY
  357. }
  358. *Option: HT_PATSIZE_8x8_M
  359. {
  360. *rcNameID: =HT_DITHER8X8_DISPLAY
  361. }
  362. }
  363. *Command: CmdStartDoc
  364. {
  365. *Order: DOC_SETUP.1
  366. *Cmd: "<1B>@<1B>R<001B>P<1B>X<FC>S"
  367. }
  368. *Command: CmdStartPage
  369. {
  370. *Order: PAGE_SETUP.1
  371. *Cmd: "<0D>"
  372. }
  373. *RotateCoordinate?: FALSE
  374. *RotateRaster?: FALSE
  375. *RotateFont?: FALSE
  376. *switch: Orientation
  377. {
  378. *case: PORTRAIT
  379. {
  380. *TextCaps: LIST(TC_OP_CHARACTER,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  381. }
  382. *case: LANDSCAPE_CC270
  383. {
  384. *TextCaps: LIST(TC_RA_ABLE)
  385. }
  386. }
  387. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  388. *YMoveAttributes: LIST(FAVOR_LF)
  389. *MaxLineSpacing: 255
  390. *XMoveThreshold: 0
  391. *YMoveThreshold: *
  392. *XMoveUnit: 60
  393. *YMoveUnit: 180
  394. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,765]{max_repeat((DestX / 30) )} }
  395. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 10) )} }
  396. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 10) } }
  397. *Command: CmdCR { *Cmd : "<0D>" }
  398. *Command: CmdLF { *Cmd : "<0A>" }
  399. *Command: CmdFF { *Cmd : "<0C>" }
  400. *Command: CmdBackSpace { *Cmd : "<08>" }
  401. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  402. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  403. *EjectPageWithFF?: TRUE
  404. *switch: InputBin
  405. {
  406. *case: Option2
  407. {
  408. *EjectPageWithFF?: FALSE
  409. }
  410. }
  411. *OutputDataFormat: V_BYTE
  412. *OptimizeLeftBound?: TRUE
  413. *CursorXAfterSendBlockData: AT_GRXDATA_END
  414. *CursorYAfterSendBlockData: NO_MOVE
  415. *DefaultFont: 5
  416. *DefaultCTT: 1
  417. *switch: Orientation
  418. {
  419. *case: PORTRAIT
  420. {
  421. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14)
  422. }
  423. *case: LANDSCAPE_CC270
  424. {
  425. *DeviceFonts: LIST()
  426. }
  427. }
  428. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  429. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  430. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  431. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }