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.

663 lines
18 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "MT13024.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Mannesmann Tally MT 130/24"
  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(90, 0)
  142. }
  143. *case: MANUAL
  144. {
  145. *PrintableArea: PAIR(2880, 4116)
  146. *PrintableOrigin: PAIR(90, 68)
  147. }
  148. *case: AUTO
  149. {
  150. *PrintableArea: PAIR(2880, 4028)
  151. *PrintableOrigin: PAIR(90, 180)
  152. }
  153. *case: Option4
  154. {
  155. *PrintableArea: PAIR(2880, 4208)
  156. *PrintableOrigin: PAIR(90, 0)
  157. }
  158. *case: Option5
  159. {
  160. *PrintableArea: PAIR(2880, 4208)
  161. *PrintableOrigin: PAIR(90, 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(90, 0)
  179. }
  180. *case: MANUAL
  181. {
  182. *PrintableArea: PAIR(2880, 3868)
  183. *PrintableOrigin: PAIR(90, 68)
  184. }
  185. *case: AUTO
  186. {
  187. *PrintableArea: PAIR(2880, 3780)
  188. *PrintableOrigin: PAIR(90, 180)
  189. }
  190. *case: Option4
  191. {
  192. *PrintableArea: PAIR(2880, 3960)
  193. *PrintableOrigin: PAIR(90, 0)
  194. }
  195. *case: Option5
  196. {
  197. *PrintableArea: PAIR(2880, 3960)
  198. *PrintableOrigin: PAIR(90, 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(2009, 2977)
  215. *PrintableOrigin: PAIR(90, 0)
  216. *switch: Resolution
  217. {
  218. *case: Option1
  219. {
  220. *PrintableArea: PAIR(2008, 2976)
  221. }
  222. *case: Option3
  223. {
  224. *PrintableArea: PAIR(2009, 2976)
  225. }
  226. *case: Option4
  227. {
  228. *PrintableArea: PAIR(2007, 2976)
  229. }
  230. }
  231. }
  232. *case: MANUAL
  233. {
  234. *PrintableArea: PAIR(2009, 2885)
  235. *PrintableOrigin: PAIR(90, 68)
  236. *switch: Resolution
  237. {
  238. *case: Option1
  239. {
  240. *PrintableArea: PAIR(2008, 2884)
  241. }
  242. *case: Option3
  243. {
  244. *PrintableArea: PAIR(2009, 2884)
  245. }
  246. *case: Option4
  247. {
  248. *PrintableArea: PAIR(2007, 2884)
  249. }
  250. }
  251. }
  252. *case: AUTO
  253. {
  254. *PrintableArea: PAIR(2009, 2797)
  255. *PrintableOrigin: PAIR(90, 180)
  256. *switch: Resolution
  257. {
  258. *case: Option1
  259. {
  260. *PrintableArea: PAIR(2008, 2796)
  261. }
  262. *case: Option3
  263. {
  264. *PrintableArea: PAIR(2009, 2796)
  265. }
  266. *case: Option4
  267. {
  268. *PrintableArea: PAIR(2007, 2796)
  269. }
  270. }
  271. }
  272. *case: Option4
  273. {
  274. *PrintableArea: PAIR(2009, 2977)
  275. *PrintableOrigin: PAIR(90, 0)
  276. *switch: Resolution
  277. {
  278. *case: Option1
  279. {
  280. *PrintableArea: PAIR(2008, 2976)
  281. }
  282. *case: Option3
  283. {
  284. *PrintableArea: PAIR(2009, 2976)
  285. }
  286. *case: Option4
  287. {
  288. *PrintableArea: PAIR(2007, 2976)
  289. }
  290. }
  291. }
  292. *case: Option5
  293. {
  294. *PrintableArea: PAIR(2009, 2977)
  295. *PrintableOrigin: PAIR(90, 0)
  296. *switch: Resolution
  297. {
  298. *case: Option1
  299. {
  300. *PrintableArea: PAIR(2008, 2976)
  301. }
  302. *case: Option3
  303. {
  304. *PrintableArea: PAIR(2009, 2976)
  305. }
  306. *case: Option4
  307. {
  308. *PrintableArea: PAIR(2007, 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(90, 0)
  328. }
  329. *case: MANUAL
  330. {
  331. *PrintableArea: PAIR(2880, 4948)
  332. *PrintableOrigin: PAIR(90, 68)
  333. }
  334. *case: AUTO
  335. {
  336. *PrintableArea: PAIR(2880, 4860)
  337. *PrintableOrigin: PAIR(90, 180)
  338. }
  339. *case: Option4
  340. {
  341. *PrintableArea: PAIR(2880, 5040)
  342. *PrintableOrigin: PAIR(90, 0)
  343. }
  344. *case: Option5
  345. {
  346. *PrintableArea: PAIR(2880, 5040)
  347. *PrintableOrigin: PAIR(90, 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(2520, 3780)
  364. *PrintableOrigin: PAIR(90, 0)
  365. }
  366. *case: MANUAL
  367. {
  368. *PrintableArea: PAIR(2520, 3688)
  369. *PrintableOrigin: PAIR(90, 68)
  370. }
  371. *case: AUTO
  372. {
  373. *PrintableArea: PAIR(2520, 3600)
  374. *PrintableOrigin: PAIR(90, 180)
  375. }
  376. *case: Option4
  377. {
  378. *PrintableArea: PAIR(2520, 3780)
  379. *PrintableOrigin: PAIR(90, 0)
  380. }
  381. *case: Option5
  382. {
  383. *PrintableArea: PAIR(2520, 3780)
  384. *PrintableOrigin: PAIR(90, 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(90, 0)
  402. }
  403. *case: MANUAL
  404. {
  405. *PrintableArea: PAIR(2880, 4228)
  406. *PrintableOrigin: PAIR(90, 68)
  407. }
  408. *case: AUTO
  409. {
  410. *PrintableArea: PAIR(2880, 4140)
  411. *PrintableOrigin: PAIR(90, 180)
  412. }
  413. *case: Option4
  414. {
  415. *PrintableArea: PAIR(2880, 4320)
  416. *PrintableOrigin: PAIR(90, 0)
  417. }
  418. *case: Option5
  419. {
  420. *PrintableArea: PAIR(2880, 4320)
  421. *PrintableOrigin: PAIR(90, 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(90, 0)
  439. }
  440. *case: MANUAL
  441. {
  442. *PrintableArea: PAIR(2880, 4588)
  443. *PrintableOrigin: PAIR(90, 68)
  444. }
  445. *case: AUTO
  446. {
  447. *PrintableArea: PAIR(2880, 4500)
  448. *PrintableOrigin: PAIR(90, 180)
  449. }
  450. *case: Option4
  451. {
  452. *PrintableArea: PAIR(2880, 4680)
  453. *PrintableOrigin: PAIR(90, 0)
  454. }
  455. *case: Option5
  456. {
  457. *PrintableArea: PAIR(2880, 4680)
  458. *PrintableOrigin: PAIR(90, 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: 90
  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: DRAFT_QUALITY
  504. *Option: DRAFT_QUALITY
  505. {
  506. *rcNameID: =DRAFT_QUALITY_DISPLAY
  507. *Command: CmdSelect
  508. {
  509. *Order: DOC_SETUP.6
  510. *Cmd: "<1B>x<00>"
  511. }
  512. }
  513. *Option: NEAR_LETTER_QUALITY
  514. {
  515. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  516. *Command: CmdSelect
  517. {
  518. *Order: DOC_SETUP.6
  519. *Cmd: "<1B>[1y"
  520. }
  521. }
  522. *Option: LETTER_QUALITY
  523. {
  524. *rcNameID: =LETTER_QUALITY_DISPLAY
  525. *Command: CmdSelect
  526. {
  527. *Order: DOC_SETUP.6
  528. *Cmd: "<1B>x<01>"
  529. }
  530. }
  531. }
  532. *Feature: ColorMode
  533. {
  534. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  535. *DefaultOption: Color
  536. *Option: Mono
  537. {
  538. *rcNameID: =MONO_DISPLAY
  539. *DevNumOfPlanes: 1
  540. *DevBPP: 1
  541. *Color? : FALSE
  542. }
  543. *Option: Color
  544. {
  545. *rcNameID: =COLOR_DISPLAY
  546. *DevNumOfPlanes: 4
  547. *DevBPP: 1
  548. *DrvBPP: 4
  549. EXTERN_GLOBAL: *UseExpColorSelectCmd? : TRUE
  550. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  551. *Command: CmdSendYellowData { *Cmd : "<1B>r<04>" }
  552. *Command: CmdSendMagentaData { *Cmd : "<1B>r<01>" }
  553. *Command: CmdSendCyanData { *Cmd : "<1B>r<02>" }
  554. *Command: CmdSendBlackData { *Cmd : "<1B>r<00>" }
  555. *Command: CmdSelectBlackColor { *Cmd : "<1B>r<00>" }
  556. *Command: CmdSelectRedColor { *Cmd : "<1B>r<05>" }
  557. *Command: CmdSelectGreenColor { *Cmd : "<1B>r<06>" }
  558. *Command: CmdSelectYellowColor { *Cmd : "<1B>r<04>" }
  559. *Command: CmdSelectBlueColor { *Cmd : "<1B>r<02>" }
  560. *Command: CmdSelectMagentaColor { *Cmd : "<1B>r<01>" }
  561. *Command: CmdSelectCyanColor { *Cmd : "<1B>r<02>" }
  562. }
  563. }
  564. *Feature: Halftone
  565. {
  566. *rcNameID: =HALFTONING_DISPLAY
  567. *DefaultOption: HT_PATSIZE_AUTO
  568. *Option: HT_PATSIZE_AUTO
  569. {
  570. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  571. }
  572. *Ifdef: WINNT_50
  573. *Option: HT_PATSIZE_SUPERCELL_M
  574. {
  575. *rcNameID: =HT_SUPERCELL_DISPLAY
  576. }
  577. *Endif:
  578. *Option: HT_PATSIZE_6x6_M
  579. {
  580. *rcNameID: =HT_DITHER6X6_DISPLAY
  581. }
  582. *Option: HT_PATSIZE_8x8_M
  583. {
  584. *rcNameID: =HT_DITHER8X8_DISPLAY
  585. }
  586. }
  587. *Command: CmdStartDoc
  588. {
  589. *Order: DOC_SETUP.1
  590. *Cmd: "<1B>t<011B>6<1B>R<00>"
  591. }
  592. *Command: CmdEndJob
  593. {
  594. *Order: JOB_FINISH.1
  595. *Cmd: "<1B>@"
  596. }
  597. *RotateCoordinate?: FALSE
  598. *RotateRaster?: FALSE
  599. *RotateFont?: FALSE
  600. *switch: Orientation
  601. {
  602. *case: PORTRAIT
  603. {
  604. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  605. }
  606. *case: LANDSCAPE_CC270
  607. {
  608. *TextCaps: LIST(TC_RA_ABLE)
  609. }
  610. }
  611. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  612. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  613. *MaxLineSpacing: 255
  614. *XMoveThreshold: 0
  615. *YMoveThreshold: *
  616. *XMoveUnit: 60
  617. *YMoveUnit: 180
  618. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,816]{max_repeat((DestX / 6) )} }
  619. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  620. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  621. *Command: CmdCR { *Cmd : "<0D>" }
  622. *Command: CmdLF { *Cmd : "<0A>" }
  623. *Command: CmdFF { *Cmd : "<0C>" }
  624. *Command: CmdBackSpace { *Cmd : "<08>" }
  625. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  626. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  627. *EjectPageWithFF?: FALSE
  628. *switch: InputBin
  629. {
  630. *case: MANUAL
  631. {
  632. *EjectPageWithFF?: TRUE
  633. }
  634. *case: AUTO
  635. {
  636. *EjectPageWithFF?: TRUE
  637. }
  638. }
  639. *OutputDataFormat: V_BYTE
  640. *OptimizeLeftBound?: FALSE
  641. *CursorXAfterSendBlockData: AT_GRXDATA_END
  642. *CursorYAfterSendBlockData: NO_MOVE
  643. *DefaultFont: 8
  644. *DefaultCTT: 1
  645. *switch: Orientation
  646. {
  647. *case: PORTRAIT
  648. {
  649. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  650. + 17,18,19,20,21,22,31,32,33,34,35,36,37,38,39,40,
  651. + 41,42,43,44,45,63,65,66,67,68,69,70,71,72)
  652. }
  653. *case: LANDSCAPE_CC270
  654. {
  655. *DeviceFonts: LIST()
  656. }
  657. }
  658. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  659. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  660. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  661. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  662. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  663. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }