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.

499 lines
12 KiB

  1. *GPDSpecVersion: "1.0"
  2. *Include: "StdNames.gpd"
  3. *GPDFileVersion: "1.0"
  4. *GPDFileName: "tyt2140.GPD"
  5. *ModelName: "Tally T2140"
  6. *MasterUnits: PAIR(720, 720)
  7. *ResourceDLL: "ty2x4res.dll"
  8. *PrinterType: SERIAL
  9. *FontCartSlots: 1
  10. *Feature: Orientation
  11. {
  12. *rcNameID: =ORIENTATION_DISPLAY
  13. *DefaultOption: PORTRAIT
  14. *Option: PORTRAIT
  15. {
  16. *rcNameID: =PORTRAIT_DISPLAY
  17. }
  18. *Option: LANDSCAPE_CC270
  19. {
  20. *rcNameID: =LANDSCAPE_DISPLAY
  21. }
  22. }
  23. *Feature: InputBin
  24. {
  25. *rcNameID: =PAPER_SOURCE_DISPLAY
  26. *DefaultOption: MANUAL
  27. *Option: Option1
  28. {
  29. *rcNameID: 261
  30. *OptionID: 261
  31. *Command: CmdSelect
  32. {
  33. *Order: DOC_SETUP.7
  34. *Cmd: "<1B>[5;;0{"
  35. }
  36. }
  37. *Option: Option2
  38. {
  39. *rcNameID: 262
  40. *OptionID: 262
  41. *Command: CmdSelect
  42. {
  43. *Order: DOC_SETUP.7
  44. *Cmd: "<1B>[6;;0{"
  45. }
  46. }
  47. *Option: Option3
  48. {
  49. *rcNameID: 263
  50. *OptionID: 263
  51. *Command: CmdSelect
  52. {
  53. *Order: DOC_SETUP.7
  54. *Cmd: "<1B>[7;;0{"
  55. }
  56. }
  57. *Option: MANUAL
  58. {
  59. *rcNameID: =MANUAL_FEED_DISPLAY
  60. *Command: CmdSelect
  61. {
  62. *Order: DOC_SETUP.7
  63. *Cmd: "<1B>[0;;0{"
  64. }
  65. }
  66. *Option: Option5
  67. {
  68. *rcNameID: 264
  69. *OptionID: 264
  70. *Command: CmdSelect
  71. {
  72. *Order: DOC_SETUP.7
  73. *Cmd: "<1B>[21;;0{"
  74. }
  75. }
  76. *Option: Option6
  77. {
  78. *rcNameID: 265
  79. *OptionID: 265
  80. *Command: CmdSelect
  81. {
  82. *Order: DOC_SETUP.7
  83. *Cmd: "<1B>[22;;0{"
  84. }
  85. }
  86. }
  87. *Feature: Resolution
  88. {
  89. *rcNameID: =RESOLUTION_DISPLAY
  90. *DefaultOption: Option3
  91. *Option: Option1
  92. {
  93. *Name: "360 x 360 " =DOTS_PER_INCH
  94. *DPI: PAIR(360, 360)
  95. *TextDPI: PAIR(360, 360)
  96. *PinsPerLogPass: 48
  97. *PinsPerPhysPass: 24
  98. *MinStripBlankPixels: 270
  99. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  100. *SpotDiameter: 500
  101. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  102. }
  103. *Option: Option2
  104. {
  105. *Name: "360 x 180 " =DOTS_PER_INCH
  106. *DPI: PAIR(360, 180)
  107. *TextDPI: PAIR(360, 180)
  108. *PinsPerLogPass: 24
  109. *PinsPerPhysPass: 24
  110. *MinStripBlankPixels: 270
  111. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  112. *SpotDiameter: 500
  113. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  114. }
  115. *Option: Option3
  116. {
  117. *Name: "180 x 180 " =DOTS_PER_INCH
  118. *DPI: PAIR(180, 180)
  119. *TextDPI: PAIR(180, 180)
  120. *PinsPerLogPass: 24
  121. *PinsPerPhysPass: 24
  122. *MinStripBlankPixels: 135
  123. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  124. *SpotDiameter: 120
  125. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  126. }
  127. *Option: Option4
  128. {
  129. *Name: "120 x 180 " =DOTS_PER_INCH
  130. *DPI: PAIR(120, 180)
  131. *TextDPI: PAIR(120, 180)
  132. *PinsPerLogPass: 24
  133. *PinsPerPhysPass: 24
  134. *MinStripBlankPixels: 90
  135. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  136. *SpotDiameter: 100
  137. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  138. }
  139. }
  140. *Feature: PaperSize
  141. {
  142. *rcNameID: =PAPER_SIZE_DISPLAY
  143. *DefaultOption: Option1
  144. *Option: Option1
  145. {
  146. *rcNameID: 258
  147. *OptionID: 258
  148. *PageDimensions: PAIR(6120, 8640)
  149. *PrintableArea: PAIR(5769, 8340)
  150. *PrintableOrigin: PAIR(0, 60)
  151. *switch: Resolution
  152. {
  153. *case: Option1
  154. {
  155. *PrintableArea: PAIR(5769, 8340)
  156. }
  157. *case: Option2
  158. {
  159. *PrintableArea: PAIR(5769, 8340)
  160. }
  161. *case: Option3
  162. {
  163. *PrintableArea: PAIR(5769, 8340)
  164. }
  165. *case: Option4
  166. {
  167. *PrintableArea: PAIR(5769, 8640)
  168. }
  169. }
  170. *Command: CmdSelect
  171. {
  172. *Order: DOC_SETUP.8
  173. *Cmd: "<1B>C<000C>"
  174. }
  175. }
  176. *Option: A4
  177. {
  178. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  179. *PrintableArea: PAIR(5854, 8417)
  180. *PrintableOrigin: PAIR(0, 0)
  181. *switch: Resolution
  182. {
  183. *case: Option1
  184. {
  185. *PrintableArea: PAIR(5854, 8336)
  186. }
  187. *case: Option2
  188. {
  189. *PrintableArea: PAIR(5854, 8336)
  190. }
  191. *case: Option3
  192. {
  193. *PrintableArea: PAIR(5852, 8336)
  194. }
  195. *case: Option4
  196. {
  197. *PrintableArea: PAIR(5852, 8336)
  198. }
  199. }
  200. *Command: CmdSelect
  201. {
  202. *Order: DOC_SETUP.8
  203. *Cmd: "<1B>2<1B>[8419t"
  204. }
  205. }
  206. *Option: A5
  207. {
  208. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  209. *PrintableArea: PAIR(3998, 5752)
  210. *PrintableOrigin: PAIR(0, 30)
  211. *switch: Resolution
  212. {
  213. *case: Option2
  214. {
  215. *PrintableArea: PAIR(3998, 5752)
  216. }
  217. *case: Option3
  218. {
  219. *PrintableArea: PAIR(3998, 5752)
  220. }
  221. *case: Option4
  222. {
  223. *PrintableArea: PAIR(3998, 5752)
  224. }
  225. }
  226. *Command: CmdSelect
  227. {
  228. *Order: DOC_SETUP.8
  229. *Cmd: "<1B>2<1B>[5953t"
  230. }
  231. }
  232. *Option: A3
  233. {
  234. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  235. *PrintableArea: PAIR(7856, 11449)
  236. *PrintableOrigin: PAIR(0, 60)
  237. *switch: Resolution
  238. {
  239. *case: Option1
  240. {
  241. *PrintableArea: PAIR(7856, 11448)
  242. }
  243. *case: Option2
  244. {
  245. *PrintableArea: PAIR(7856, 11448)
  246. }
  247. *case: Option3
  248. {
  249. *PrintableArea: PAIR(7856, 11448)
  250. }
  251. *case: Option4
  252. {
  253. *PrintableArea: PAIR(7852, 11448)
  254. }
  255. }
  256. *Command: CmdSelect
  257. {
  258. *Order: DOC_SETUP.8
  259. *Cmd: "<1B>2<1B>[11905t"
  260. }
  261. }
  262. *Option: LETTER
  263. {
  264. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  265. *PrintableArea: PAIR(5760, 7700)
  266. *PrintableOrigin: PAIR(0, 60)
  267. *Command: CmdSelect
  268. {
  269. *Order: DOC_SETUP.8
  270. *Cmd: "<1B>C<000B>"
  271. }
  272. }
  273. *Option: LEGAL
  274. {
  275. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  276. *PrintableArea: PAIR(5760, 9880)
  277. *PrintableOrigin: PAIR(0, 60)
  278. *Command: CmdSelect
  279. {
  280. *Order: DOC_SETUP.8
  281. *Cmd: "<1B>C<000E>"
  282. }
  283. }
  284. *Option: EXECUTIVE
  285. {
  286. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  287. *PrintableArea: PAIR(4860, 7360)
  288. *PrintableOrigin: PAIR(0, 60)
  289. *Command: CmdSelect
  290. {
  291. *Order: DOC_SETUP.8
  292. *Cmd: "<1B>2<1B>C?"
  293. }
  294. }
  295. *Option: Option8
  296. {
  297. *rcNameID: 259
  298. *OptionID: 259
  299. *PageDimensions: PAIR(9720, 8640)
  300. *PrintableArea: PAIR(9360, 8340)
  301. *PrintableOrigin: PAIR(0, 60)
  302. *Command: CmdSelect
  303. {
  304. *Order: DOC_SETUP.8
  305. *Cmd: "<1B>C<000C>"
  306. }
  307. }
  308. *Option: Option9
  309. {
  310. *rcNameID: 260
  311. *OptionID: 260
  312. *PageDimensions: PAIR(10710, 7920)
  313. *PrintableArea: PAIR(10710, 7920)
  314. *PrintableOrigin: PAIR(0, 0)
  315. *Command: CmdSelect
  316. {
  317. *Order: DOC_SETUP.8
  318. *Cmd: "<1B>C<000B>"
  319. }
  320. }
  321. *Option: CUSTOMSIZE
  322. {
  323. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  324. *MinSize: PAIR(720, 720)
  325. *MaxSize: PAIR(11520, 15840)
  326. *MaxPrintableWidth: 9792
  327. *MinLeftMargin: 0
  328. *CenterPrintable?: FALSE
  329. *Command: CmdSelect
  330. {
  331. *Order: DOC_SETUP.8
  332. *Cmd: "<1B>[" %d{PhysPaperLength}"t"
  333. }
  334. }
  335. }
  336. *Feature: PrintQuality
  337. {
  338. *rcNameID: =TEXT_QUALITY_DISPLAY
  339. *DefaultOption: Option3
  340. *Option: Option1
  341. {
  342. *rcNameID: 266
  343. *Command: CmdSelect
  344. {
  345. *Order: DOC_SETUP.6
  346. *Cmd: "<1B>[1y"
  347. }
  348. }
  349. *Option: Option2
  350. {
  351. *rcNameID: 267
  352. *Command: CmdSelect
  353. {
  354. *Order: DOC_SETUP.6
  355. *Cmd: "<1B>[12y"
  356. }
  357. }
  358. *Option: Option3
  359. {
  360. *rcNameID: 268
  361. *Command: CmdSelect
  362. {
  363. *Order: DOC_SETUP.6
  364. *Cmd: "<1B>[?51h<1B>[0y"
  365. }
  366. }
  367. *Option: Option4
  368. {
  369. *rcNameID: 269
  370. *Command: CmdSelect
  371. {
  372. *Order: DOC_SETUP.6
  373. *Cmd: "<1B>[?51h<1B>[11y"
  374. }
  375. }
  376. }
  377. *Feature: Halftone
  378. {
  379. *rcNameID: =HALFTONING_DISPLAY
  380. *DefaultOption: HT_PATSIZE_AUTO
  381. *Option: HT_PATSIZE_AUTO
  382. {
  383. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  384. }
  385. *Option: HT_PATSIZE_SUPERCELL_M
  386. {
  387. *rcNameID: =HT_SUPERCELL_DISPLAY
  388. }
  389. *Option: HT_PATSIZE_6x6_M
  390. {
  391. *rcNameID: =HT_DITHER6X6_DISPLAY
  392. }
  393. *Option: HT_PATSIZE_8x8_M
  394. {
  395. *rcNameID: =HT_DITHER8X8_DISPLAY
  396. }
  397. }
  398. *Command: CmdStartDoc
  399. {
  400. *Order: DOC_SETUP.1
  401. *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"
  402. + " D<1B>[4;4 D<1B>[5;5 D<1B>[6;6 D<1B>[?52h"
  403. }
  404. *Command: CmdEndJob
  405. {
  406. *Order: JOB_FINISH.1
  407. *Cmd: "<1B>[6~"
  408. }
  409. *Command: CmdEndPage
  410. {
  411. *Order: PAGE_FINISH.1
  412. *Cmd: "<1B>[54{"
  413. }
  414. *RotateCoordinate?: FALSE
  415. *RotateRaster?: FALSE
  416. *RotateFont?: FALSE
  417. *switch: Orientation
  418. {
  419. *case: PORTRAIT
  420. {
  421. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  422. }
  423. *case: LANDSCAPE_CC270
  424. {
  425. *TextCaps: LIST(TC_RA_ABLE)
  426. }
  427. }
  428. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  429. *YMoveAttributes: LIST(SEND_CR_FIRST)
  430. *XMoveThreshold: 0
  431. *YMoveThreshold: *
  432. *XMoveUnit: 720
  433. *YMoveUnit: 720
  434. *Command: CmdXMoveAbsolute { *Cmd : "<1B>[" %d{DestX}"`" }
  435. *Command: CmdXMoveRelRight { *Cmd : "<1B>[" %d{DestXRel}"a" }
  436. *Command: CmdXMoveRelLeft { *Cmd : "<1B>[" %d{DestXRel}"j" }
  437. *Command: CmdYMoveRelDown { *Cmd : "<1B>[" %d[0,14400]{max_repeat(DestYRel )}" h<0A1B>[120 h" }
  438. *Command: CmdYMoveRelUp { *Cmd : "<1B>[" %d{DestYRel}"k" }
  439. *Command: CmdCR { *Cmd : "<0D>" }
  440. *Command: CmdLF { *Cmd : "<0A>" }
  441. *Command: CmdFF { *Cmd : "<0C>" }
  442. *Command: CmdBackSpace { *Cmd : "<08>" }
  443. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  444. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  445. *EjectPageWithFF?: TRUE
  446. *switch: PaperSize
  447. {
  448. *case: CUSTOMSIZE
  449. {
  450. *EjectPageWithFF?: FALSE
  451. *switch: InputBin
  452. {
  453. *case: MANUAL
  454. {
  455. *EjectPageWithFF?: TRUE
  456. }
  457. *case: Option5
  458. {
  459. *EjectPageWithFF?: TRUE
  460. }
  461. *case: Option6
  462. {
  463. *EjectPageWithFF?: TRUE
  464. }
  465. }
  466. }
  467. }
  468. *OutputDataFormat: V_BYTE
  469. *OptimizeLeftBound?: FALSE
  470. *CursorXAfterSendBlockData: AT_GRXDATA_END
  471. *CursorYAfterSendBlockData: NO_MOVE
  472. *DefaultFont: 1
  473. *DefaultCTT: 1
  474. *switch: Orientation
  475. {
  476. *case: PORTRAIT
  477. {
  478. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  479. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
  480. + 33,34,35)
  481. }
  482. *case: LANDSCAPE_CC270
  483. {
  484. *DeviceFonts: LIST()
  485. }
  486. }
  487. *FontCartridge: FC1
  488. {
  489. *rcCartridgeNameID: 270
  490. *PortraitFonts: LIST(36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,
  491. + 52,53,54,55,56,57,58,59,60,61,62)
  492. *LandscapeFonts: LIST()
  493. }
  494. *Command: CmdBoldOn { *Cmd : "<1B>[9w" }
  495. *Command: CmdBoldOff { *Cmd : "<1B>[8w" }
  496. *Command: CmdItalicOn { *Cmd : "<1B>[3m" }
  497. *Command: CmdItalicOff { *Cmd : "<1B>[23m" }
  498. *Command: CmdUnderlineOn { *Cmd : "<1B>[4m" }
  499. *Command: CmdUnderlineOff { *Cmd : "<1B>[24m" }