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.

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