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.

666 lines
20 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: "ty203024.GPD"
  9. *ModelName: "Tally T2030 24 Pin"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "ty2x3res.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: MANUAL
  30. *Option: Option1
  31. {
  32. *rcNameID: 261
  33. *OptionID: 261
  34. *Command: CmdSelect
  35. {
  36. *Order: DOC_SETUP.7
  37. *Cmd: "<1B>[5;;0{"
  38. }
  39. }
  40. *Option: Option2
  41. {
  42. *rcNameID: 262
  43. *OptionID: 262
  44. *Command: CmdSelect
  45. {
  46. *Order: DOC_SETUP.7
  47. *Cmd: "<1B>[6;;0{"
  48. }
  49. }
  50. *Option: MANUAL
  51. {
  52. *rcNameID: =MANUAL_FEED_DISPLAY
  53. *Command: CmdSelect
  54. {
  55. *Order: DOC_SETUP.7
  56. *Cmd: "<1B>[0;;0{"
  57. }
  58. }
  59. *Option: Option4
  60. {
  61. *rcNameID: 263
  62. *OptionID: 263
  63. *Command: CmdSelect
  64. {
  65. *Order: DOC_SETUP.7
  66. *Cmd: "<1B>[21;;0{"
  67. }
  68. }
  69. }
  70. *Feature: Resolution
  71. {
  72. *rcNameID: =RESOLUTION_DISPLAY
  73. *DefaultOption: Option1
  74. *Option: Option1
  75. {
  76. *Name: "360 x 360 " =DOTS_PER_INCH
  77. *DPI: PAIR(360, 360)
  78. *TextDPI: PAIR(360, 360)
  79. *PinsPerLogPass: 48
  80. *PinsPerPhysPass: 24
  81. *MinStripBlankPixels: 270
  82. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  83. *SpotDiameter: 160
  84. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  85. }
  86. *Option: Option2
  87. {
  88. *Name: "360 x 180 " =DOTS_PER_INCH
  89. *DPI: PAIR(360, 180)
  90. *TextDPI: PAIR(360, 180)
  91. *PinsPerLogPass: 24
  92. *PinsPerPhysPass: 24
  93. *MinStripBlankPixels: 270
  94. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  95. *SpotDiameter: 170
  96. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  97. }
  98. *Option: Option3
  99. {
  100. *Name: "180 x 180 " =DOTS_PER_INCH
  101. *DPI: PAIR(180, 180)
  102. *TextDPI: PAIR(180, 180)
  103. *PinsPerLogPass: 24
  104. *PinsPerPhysPass: 24
  105. *MinStripBlankPixels: 135
  106. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  107. *SpotDiameter: 120
  108. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  109. }
  110. *Option: Option4
  111. {
  112. *Name: "120 x 180 " =DOTS_PER_INCH
  113. *DPI: PAIR(120, 180)
  114. *TextDPI: PAIR(120, 180)
  115. *PinsPerLogPass: 24
  116. *PinsPerPhysPass: 24
  117. *MinStripBlankPixels: 90
  118. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  119. *SpotDiameter: 100
  120. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  121. }
  122. }
  123. *Feature: PaperSize
  124. {
  125. *rcNameID: =PAPER_SIZE_DISPLAY
  126. *DefaultOption: Option1
  127. *Option: Option1
  128. {
  129. *rcNameID: 258
  130. *OptionID: 258
  131. *PageDimensions: PAIR(6120, 8640)
  132. *Command: CmdSelect
  133. {
  134. *Order: DOC_SETUP.8
  135. *Cmd: "<1B>C<000C>"
  136. }
  137. *switch: InputBin
  138. {
  139. *case: Option1
  140. {
  141. *PrintableArea: PAIR(6120, 8280)
  142. *PrintableOrigin: PAIR(0, 180)
  143. }
  144. *case: Option2
  145. {
  146. *PrintableArea: PAIR(6120, 8280)
  147. *PrintableOrigin: PAIR(0, 180)
  148. }
  149. *case: MANUAL
  150. {
  151. *PrintableArea: PAIR(6120, 8140)
  152. *PrintableOrigin: PAIR(0, 180)
  153. }
  154. *case: Option4
  155. {
  156. *PrintableArea: PAIR(6120, 8550)
  157. *PrintableOrigin: PAIR(0, 90)
  158. *switch: Resolution
  159. {
  160. *case: Option2
  161. {
  162. *PrintableArea: PAIR(6120, 8548)
  163. *PrintableOrigin: PAIR(0, 92)
  164. }
  165. *case: Option3
  166. {
  167. *PrintableArea: PAIR(6120, 8548)
  168. *PrintableOrigin: PAIR(0, 92)
  169. }
  170. *case: Option4
  171. {
  172. *PrintableArea: PAIR(6120, 8548)
  173. *PrintableOrigin: PAIR(0, 92)
  174. }
  175. }
  176. }
  177. }
  178. }
  179. *Option: A4
  180. {
  181. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  182. *Command: CmdSelect
  183. {
  184. *Order: DOC_SETUP.8
  185. *Cmd: "<1B>2<1B>[8418t"
  186. }
  187. *switch: InputBin
  188. {
  189. *case: Option1
  190. {
  191. *PrintableArea: PAIR(5800, 8057)
  192. *PrintableOrigin: PAIR(0, 180)
  193. *switch: Resolution
  194. {
  195. *case: Option1
  196. {
  197. *PrintableArea: PAIR(5800, 8056)
  198. }
  199. *case: Option2
  200. {
  201. *PrintableArea: PAIR(5800, 8056)
  202. }
  203. *case: Option3
  204. {
  205. *PrintableArea: PAIR(5800, 8056)
  206. }
  207. *case: Option4
  208. {
  209. *PrintableArea: PAIR(5800, 8056)
  210. }
  211. }
  212. }
  213. *case: Option2
  214. {
  215. *PrintableArea: PAIR(5800, 8057)
  216. *PrintableOrigin: PAIR(0, 180)
  217. *switch: Resolution
  218. {
  219. *case: Option1
  220. {
  221. *PrintableArea: PAIR(5800, 8056)
  222. }
  223. *case: Option2
  224. {
  225. *PrintableArea: PAIR(5800, 8056)
  226. }
  227. *case: Option3
  228. {
  229. *PrintableArea: PAIR(5800, 8056)
  230. }
  231. *case: Option4
  232. {
  233. *PrintableArea: PAIR(5800, 8056)
  234. }
  235. }
  236. }
  237. *case: MANUAL
  238. {
  239. *PrintableArea: PAIR(5800, 7917)
  240. *PrintableOrigin: PAIR(0, 180)
  241. *switch: Resolution
  242. {
  243. *case: Option1
  244. {
  245. *PrintableArea: PAIR(5800, 7916)
  246. }
  247. *case: Option2
  248. {
  249. *PrintableArea: PAIR(5800, 7916)
  250. }
  251. *case: Option3
  252. {
  253. *PrintableArea: PAIR(5800, 7916)
  254. }
  255. *case: Option4
  256. {
  257. *PrintableArea: PAIR(5800, 7916)
  258. }
  259. }
  260. }
  261. *case: Option4
  262. {
  263. *PrintableArea: PAIR(5900, 8160)
  264. *PrintableOrigin: PAIR(0, 90)
  265. *switch: Resolution
  266. {
  267. *case: Option1
  268. {
  269. *PrintableArea: PAIR(5900, 8160)
  270. }
  271. *case: Option2
  272. {
  273. *PrintableArea: PAIR(5900, 8160)
  274. *PrintableOrigin: PAIR(0, 92)
  275. }
  276. *case: Option3
  277. {
  278. *PrintableArea: PAIR(5900, 8160)
  279. *PrintableOrigin: PAIR(0, 92)
  280. }
  281. *case: Option4
  282. {
  283. *PrintableArea: PAIR(5900, 8160)
  284. *PrintableOrigin: PAIR(0, 92)
  285. }
  286. }
  287. }
  288. }
  289. }
  290. *Option: A5
  291. {
  292. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  293. *Command: CmdSelect
  294. {
  295. *Order: DOC_SETUP.8
  296. *Cmd: "<1B>2<1B>[5952t"
  297. }
  298. *switch: InputBin
  299. {
  300. *case: Option1
  301. {
  302. *PrintableArea: PAIR(4100, 5594)
  303. *PrintableOrigin: PAIR(0, 180)
  304. *switch: Resolution
  305. {
  306. *case: Option2
  307. {
  308. *PrintableArea: PAIR(4100, 5592)
  309. }
  310. *case: Option3
  311. {
  312. *PrintableArea: PAIR(4100, 5592)
  313. }
  314. *case: Option4
  315. {
  316. *PrintableArea: PAIR(4100, 5592)
  317. }
  318. }
  319. }
  320. *case: Option2
  321. {
  322. *PrintableArea: PAIR(4100, 5594)
  323. *PrintableOrigin: PAIR(0, 180)
  324. *switch: Resolution
  325. {
  326. *case: Option2
  327. {
  328. *PrintableArea: PAIR(4100, 5592)
  329. }
  330. *case: Option3
  331. {
  332. *PrintableArea: PAIR(4100, 5592)
  333. }
  334. *case: Option4
  335. {
  336. *PrintableArea: PAIR(4100, 5592)
  337. }
  338. }
  339. }
  340. *case: MANUAL
  341. {
  342. *PrintableArea: PAIR(4100, 5454)
  343. *PrintableOrigin: PAIR(0, 180)
  344. *switch: Resolution
  345. {
  346. *case: Option2
  347. {
  348. *PrintableArea: PAIR(4100, 5452)
  349. }
  350. *case: Option3
  351. {
  352. *PrintableArea: PAIR(4100, 5452)
  353. }
  354. *case: Option4
  355. {
  356. *PrintableArea: PAIR(4100, 5452)
  357. }
  358. }
  359. }
  360. *case: Option4
  361. {
  362. *PrintableArea: PAIR(4100, 5760)
  363. *PrintableOrigin: PAIR(0, 90)
  364. *switch: Resolution
  365. {
  366. *case: Option2
  367. {
  368. *PrintableArea: PAIR(4100, 5760)
  369. *PrintableOrigin: PAIR(0, 92)
  370. }
  371. *case: Option3
  372. {
  373. *PrintableArea: PAIR(4100, 5760)
  374. *PrintableOrigin: PAIR(0, 92)
  375. }
  376. *case: Option4
  377. {
  378. *PrintableArea: PAIR(4100, 5760)
  379. *PrintableOrigin: PAIR(0, 92)
  380. }
  381. }
  382. }
  383. }
  384. }
  385. *Option: LETTER
  386. {
  387. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  388. *Command: CmdSelect
  389. {
  390. *Order: DOC_SETUP.8
  391. *Cmd: "<1B>C<000B>"
  392. }
  393. *switch: InputBin
  394. {
  395. *case: Option1
  396. {
  397. *PrintableArea: PAIR(6000, 7560)
  398. *PrintableOrigin: PAIR(0, 180)
  399. }
  400. *case: Option2
  401. {
  402. *PrintableArea: PAIR(6000, 7560)
  403. *PrintableOrigin: PAIR(0, 180)
  404. }
  405. *case: MANUAL
  406. {
  407. *PrintableArea: PAIR(6000, 7420)
  408. *PrintableOrigin: PAIR(0, 180)
  409. }
  410. *case: Option4
  411. {
  412. *PrintableArea: PAIR(6000, 7670)
  413. *PrintableOrigin: PAIR(0, 90)
  414. *switch: Resolution
  415. {
  416. *case: Option2
  417. {
  418. *PrintableArea: PAIR(6000, 7670)
  419. *PrintableOrigin: PAIR(0, 92)
  420. }
  421. *case: Option3
  422. {
  423. *PrintableArea: PAIR(6000, 7670)
  424. *PrintableOrigin: PAIR(0, 92)
  425. }
  426. *case: Option4
  427. {
  428. *PrintableArea: PAIR(6000, 7670)
  429. *PrintableOrigin: PAIR(0, 92)
  430. }
  431. }
  432. }
  433. }
  434. }
  435. *Option: LEGAL
  436. {
  437. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  438. *Command: CmdSelect
  439. {
  440. *Order: DOC_SETUP.8
  441. *Cmd: "<1B>C<000E>"
  442. }
  443. *switch: InputBin
  444. {
  445. *case: Option1
  446. {
  447. *PrintableArea: PAIR(6020, 9720)
  448. *PrintableOrigin: PAIR(0, 180)
  449. }
  450. *case: Option2
  451. {
  452. *PrintableArea: PAIR(6020, 9720)
  453. *PrintableOrigin: PAIR(0, 180)
  454. }
  455. *case: MANUAL
  456. {
  457. *PrintableArea: PAIR(6020, 9580)
  458. *PrintableOrigin: PAIR(0, 180)
  459. }
  460. *case: Option4
  461. {
  462. *PrintableArea: PAIR(6020, 9780)
  463. *PrintableOrigin: PAIR(0, 90)
  464. *switch: Resolution
  465. {
  466. *case: Option2
  467. {
  468. *PrintableArea: PAIR(6020, 9780)
  469. *PrintableOrigin: PAIR(0, 92)
  470. }
  471. *case: Option3
  472. {
  473. *PrintableArea: PAIR(6020, 9780)
  474. *PrintableOrigin: PAIR(0, 92)
  475. }
  476. *case: Option4
  477. {
  478. *PrintableArea: PAIR(6020, 9780)
  479. *PrintableOrigin: PAIR(0, 92)
  480. }
  481. }
  482. }
  483. }
  484. }
  485. *Option: EXECUTIVE
  486. {
  487. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  488. *Command: CmdSelect
  489. {
  490. *Order: DOC_SETUP.8
  491. *Cmd: "<1B>2<1B>C?"
  492. }
  493. *switch: InputBin
  494. {
  495. *case: Option1
  496. {
  497. *PrintableArea: PAIR(5120, 7200)
  498. *PrintableOrigin: PAIR(0, 180)
  499. }
  500. *case: Option2
  501. {
  502. *PrintableArea: PAIR(5120, 7200)
  503. *PrintableOrigin: PAIR(0, 180)
  504. }
  505. *case: MANUAL
  506. {
  507. *PrintableArea: PAIR(5120, 7060)
  508. *PrintableOrigin: PAIR(0, 180)
  509. }
  510. *case: Option4
  511. {
  512. *PrintableArea: PAIR(5120, 7280)
  513. *PrintableOrigin: PAIR(0, 90)
  514. *switch: Resolution
  515. {
  516. *case: Option2
  517. {
  518. *PrintableArea: PAIR(5120, 7280)
  519. *PrintableOrigin: PAIR(0, 92)
  520. }
  521. *case: Option3
  522. {
  523. *PrintableArea: PAIR(5120, 7280)
  524. *PrintableOrigin: PAIR(0, 92)
  525. }
  526. *case: Option4
  527. {
  528. *PrintableArea: PAIR(5120, 7280)
  529. *PrintableOrigin: PAIR(0, 92)
  530. }
  531. }
  532. }
  533. }
  534. }
  535. *Option: CUSTOMSIZE
  536. {
  537. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  538. *MinSize: PAIR(2160, 2160)
  539. *MaxSize: PAIR(7200, 15840)
  540. *MaxPrintableWidth: 7200
  541. *MinLeftMargin: 0
  542. *CenterPrintable?: FALSE
  543. *switch: InputBin
  544. {
  545. *case: Option1
  546. {
  547. *TopMargin: 180
  548. *BottomMargin: 180
  549. }
  550. *case: Option2
  551. {
  552. *TopMargin: 180
  553. *BottomMargin: 180
  554. }
  555. *case: MANUAL
  556. {
  557. *TopMargin: 180
  558. *BottomMargin: 320
  559. }
  560. *case: Option4
  561. {
  562. *TopMargin: 90
  563. *BottomMargin: 0
  564. }
  565. }
  566. *Command: CmdSelect
  567. {
  568. *Order: DOC_SETUP.8
  569. *Cmd: "<1B>[" %d{PhysPaperLength}"t"
  570. }
  571. }
  572. }
  573. *Feature: Halftone
  574. {
  575. *rcNameID: =HALFTONING_DISPLAY
  576. *DefaultOption: HT_PATSIZE_AUTO
  577. *Option: HT_PATSIZE_AUTO
  578. {
  579. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  580. }
  581. *Option: HT_PATSIZE_SUPERCELL_M
  582. {
  583. *rcNameID: =HT_SUPERCELL_DISPLAY
  584. }
  585. *Option: HT_PATSIZE_6x6_M
  586. {
  587. *rcNameID: =HT_DITHER6X6_DISPLAY
  588. }
  589. *Option: HT_PATSIZE_8x8_M
  590. {
  591. *rcNameID: =HT_DITHER8X8_DISPLAY
  592. }
  593. }
  594. *Command: CmdStartDoc
  595. {
  596. *Order: DOC_SETUP.1
  597. *Cmd: "<1B>[6~<1B>[?6~<1B>t<011B>6<1B>(B<1B>[11h<1B>[0;0 D<1B>[1;1 D<1B>[2;2 D<1B>[3;3"
  598. + " D<1B>[4;4 D<1B>[5;5 D<1B>[6;6 D"
  599. }
  600. *Command: CmdEndJob
  601. {
  602. *Order: JOB_FINISH.1
  603. *Cmd: "<1B>[6~"
  604. }
  605. *RotateCoordinate?: FALSE
  606. *RotateRaster?: FALSE
  607. *RotateFont?: FALSE
  608. *switch: Orientation
  609. {
  610. *case: PORTRAIT
  611. {
  612. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  613. }
  614. *case: LANDSCAPE_CC270
  615. {
  616. *TextCaps: LIST(TC_RA_ABLE)
  617. }
  618. }
  619. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  620. *YMoveAttributes: LIST(SEND_CR_FIRST)
  621. *XMoveThreshold: 0
  622. *YMoveThreshold: *
  623. *XMoveUnit: 720
  624. *YMoveUnit: 720
  625. *Command: CmdXMoveAbsolute { *Cmd : "<1B>[" %d{DestX}"`" }
  626. *Command: CmdXMoveRelRight { *Cmd : "<1B>[" %d{DestXRel}"a" }
  627. *Command: CmdXMoveRelLeft { *Cmd : "<1B>[" %d{DestXRel}"j" }
  628. *Command: CmdYMoveRelDown { *Cmd : "<1B>[" %d[0,120]{max_repeat(DestYRel )}" h<0A1B>[120 h" }
  629. *Command: CmdYMoveRelUp { *Cmd : "<1B>[" %d{DestYRel}"k" }
  630. *Command: CmdCR { *Cmd : "<0D>" }
  631. *Command: CmdLF { *Cmd : "<0A>" }
  632. *Command: CmdFF { *Cmd : "<0C>" }
  633. *Command: CmdBackSpace { *Cmd : "<08>" }
  634. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  635. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  636. *EjectPageWithFF?: TRUE
  637. *OutputDataFormat: V_BYTE
  638. *OptimizeLeftBound?: FALSE
  639. *CursorXAfterSendBlockData: AT_GRXDATA_END
  640. *CursorYAfterSendBlockData: NO_MOVE
  641. *DefaultFont: 1
  642. *DefaultCTT: 1
  643. *switch: Orientation
  644. {
  645. *case: PORTRAIT
  646. {
  647. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,30,31,32,33,34,35,36,
  648. + 37,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,
  649. + 54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,
  650. + 70,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,
  651. + 87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,
  652. + 103,104,105,106,107,108,109,110,111,112,113,115,116,117,118,119,
  653. + 120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,
  654. + 136,137,138,139,140,141,142,143,144,145)
  655. }
  656. *case: LANDSCAPE_CC270
  657. {
  658. *DeviceFonts: LIST()
  659. }
  660. }
  661. *Command: CmdBoldOn { *Cmd : "<1B>[9w" }
  662. *Command: CmdBoldOff { *Cmd : "<1B>[8w" }
  663. *Command: CmdItalicOn { *Cmd : "<1B>[3m" }
  664. *Command: CmdItalicOff { *Cmd : "<1B>[23m" }
  665. *Command: CmdUnderlineOn { *Cmd : "<1B>[4m" }
  666. *Command: CmdUnderlineOff { *Cmd : "<1B>[24m" }