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.

578 lines
15 KiB

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