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.

424 lines
10 KiB

  1. *GPDSpecVersion: "1.0"
  2. *Include: "StdNames.gpd"
  3. *GPDFileVersion: "1.0"
  4. *GPDFileName: "T2145.GPD"
  5. *ModelName: "Tally T2145"
  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(6129, 8640)
  149. *PrintableArea: PAIR(5760, 8640)
  150. *PrintableOrigin: PAIR(0, 0)
  151. *Command: CmdSelect
  152. {
  153. *Order: DOC_SETUP.8
  154. *Cmd: "<1B>C<000C>"
  155. }
  156. }
  157. *Option: A4
  158. {
  159. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  160. *PrintableArea: PAIR(5760, 8417)
  161. *PrintableOrigin: PAIR(0, 0)
  162. *switch: Resolution
  163. {
  164. *case: Option1
  165. {
  166. *PrintableArea: PAIR(5760, 8416)
  167. }
  168. *case: Option2
  169. {
  170. *PrintableArea: PAIR(5760, 8416)
  171. }
  172. *case: Option3
  173. {
  174. *PrintableArea: PAIR(5760, 8416)
  175. }
  176. *case: Option4
  177. {
  178. *PrintableArea: PAIR(5760, 8416)
  179. }
  180. }
  181. *Command: CmdSelect
  182. {
  183. *Order: DOC_SETUP.8
  184. *Cmd: "<1B>2<1B>[8419t"
  185. }
  186. }
  187. *Option: A5
  188. {
  189. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  190. *PrintableArea: PAIR(4198, 5954)
  191. *PrintableOrigin: PAIR(0, 0)
  192. *switch: Resolution
  193. {
  194. *case: Option2
  195. {
  196. *PrintableArea: PAIR(4198, 5952)
  197. }
  198. *case: Option3
  199. {
  200. *PrintableArea: PAIR(4196, 5952)
  201. }
  202. *case: Option4
  203. {
  204. *PrintableArea: PAIR(4194, 5952)
  205. }
  206. }
  207. *Command: CmdSelect
  208. {
  209. *Order: DOC_SETUP.8
  210. *Cmd: "<1B>2<1B>[5953t"
  211. }
  212. }
  213. *Option: LETTER
  214. {
  215. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  216. *PrintableArea: PAIR(5760, 7920)
  217. *PrintableOrigin: PAIR(0, 0)
  218. *Command: CmdSelect
  219. {
  220. *Order: DOC_SETUP.8
  221. *Cmd: "<1B>C<000B>"
  222. }
  223. }
  224. *Option: LEGAL
  225. {
  226. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  227. *PrintableArea: PAIR(5760, 10080)
  228. *PrintableOrigin: PAIR(0, 0)
  229. *Command: CmdSelect
  230. {
  231. *Order: DOC_SETUP.8
  232. *Cmd: "<1B>C<000E>"
  233. }
  234. }
  235. *Option: EXECUTIVE
  236. {
  237. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  238. *PrintableArea: PAIR(5220, 7560)
  239. *PrintableOrigin: PAIR(0, 0)
  240. *Command: CmdSelect
  241. {
  242. *Order: DOC_SETUP.8
  243. *Cmd: "<1B>2<1B>C?"
  244. }
  245. }
  246. *Option: CUSTOMSIZE
  247. {
  248. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  249. *MinSize: PAIR(720, 720)
  250. *MaxSize: PAIR(7200, 15840)
  251. *MaxPrintableWidth: 5760
  252. *MinLeftMargin: 0
  253. *CenterPrintable?: FALSE
  254. *Command: CmdSelect
  255. {
  256. *Order: DOC_SETUP.8
  257. *Cmd: "<1B>[" %d{PhysPaperLength}"t"
  258. }
  259. }
  260. }
  261. *Feature: PrintQuality
  262. {
  263. *rcNameID: =TEXT_QUALITY_DISPLAY
  264. *DefaultOption: Option3
  265. *Option: Option1
  266. {
  267. *rcNameID: 266
  268. *Command: CmdSelect
  269. {
  270. *Order: DOC_SETUP.6
  271. *Cmd: "<1B>[1y"
  272. }
  273. }
  274. *Option: Option2
  275. {
  276. *rcNameID: 267
  277. *Command: CmdSelect
  278. {
  279. *Order: DOC_SETUP.6
  280. *Cmd: "<1B>[12y"
  281. }
  282. }
  283. *Option: Option3
  284. {
  285. *rcNameID: 268
  286. *Command: CmdSelect
  287. {
  288. *Order: DOC_SETUP.6
  289. *Cmd: "<1B>[?51h<1B>[0y"
  290. }
  291. }
  292. *Option: Option4
  293. {
  294. *rcNameID: 269
  295. *Command: CmdSelect
  296. {
  297. *Order: DOC_SETUP.6
  298. *Cmd: "<1B>[?51h<1B>[11y"
  299. }
  300. }
  301. }
  302. *Feature: Halftone
  303. {
  304. *rcNameID: =HALFTONING_DISPLAY
  305. *DefaultOption: HT_PATSIZE_AUTO
  306. *Option: HT_PATSIZE_AUTO
  307. {
  308. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  309. }
  310. *Option: HT_PATSIZE_SUPERCELL_M
  311. {
  312. *rcNameID: =HT_SUPERCELL_DISPLAY
  313. }
  314. *Option: HT_PATSIZE_6x6_M
  315. {
  316. *rcNameID: =HT_DITHER6X6_DISPLAY
  317. }
  318. *Option: HT_PATSIZE_8x8_M
  319. {
  320. *rcNameID: =HT_DITHER8X8_DISPLAY
  321. }
  322. }
  323. *Command: CmdStartDoc
  324. {
  325. *Order: DOC_SETUP.1
  326. *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"
  327. + " D<1B>[4;4 D<1B>[5;5 D<1B>[6;6 D<1B>[?52h"
  328. }
  329. *Command: CmdEndJob
  330. {
  331. *Order: JOB_FINISH.1
  332. *Cmd: "<1B>[6~"
  333. }
  334. *Command: CmdEndPage
  335. {
  336. *Order: PAGE_FINISH.1
  337. *Cmd: "<1B>[54{"
  338. }
  339. *RotateCoordinate?: FALSE
  340. *RotateRaster?: FALSE
  341. *RotateFont?: FALSE
  342. *switch: Orientation
  343. {
  344. *case: PORTRAIT
  345. {
  346. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  347. }
  348. *case: LANDSCAPE_CC270
  349. {
  350. *TextCaps: LIST(TC_RA_ABLE)
  351. }
  352. }
  353. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  354. *YMoveAttributes: LIST(SEND_CR_FIRST)
  355. *XMoveThreshold: 0
  356. *YMoveThreshold: *
  357. *XMoveUnit: 720
  358. *YMoveUnit: 720
  359. *Command: CmdXMoveAbsolute { *Cmd : "<1B>[" %d{DestX}"`" }
  360. *Command: CmdXMoveRelRight { *Cmd : "<1B>[" %d{DestXRel}"a" }
  361. *Command: CmdXMoveRelLeft { *Cmd : "<1B>[" %d{DestXRel}"j" }
  362. *Command: CmdYMoveRelDown { *Cmd : "<1B>[" %d[0,14400]{max_repeat(DestYRel )}" h<0A1B>[120 h" }
  363. *Command: CmdYMoveRelUp { *Cmd : "<1B>[" %d{DestYRel}"k" }
  364. *Command: CmdCR { *Cmd : "<0D>" }
  365. *Command: CmdLF { *Cmd : "<0A>" }
  366. *Command: CmdFF { *Cmd : "<0C>" }
  367. *Command: CmdBackSpace { *Cmd : "<08>" }
  368. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  369. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  370. *EjectPageWithFF?: TRUE
  371. *switch: PaperSize
  372. {
  373. *case: CUSTOMSIZE
  374. {
  375. *EjectPageWithFF?: FALSE
  376. *switch: InputBin
  377. {
  378. *case: MANUAL
  379. {
  380. *EjectPageWithFF?: TRUE
  381. }
  382. *case: Option5
  383. {
  384. *EjectPageWithFF?: TRUE
  385. }
  386. *case: Option6
  387. {
  388. *EjectPageWithFF?: TRUE
  389. }
  390. }
  391. }
  392. }
  393. *OutputDataFormat: V_BYTE
  394. *OptimizeLeftBound?: FALSE
  395. *CursorXAfterSendBlockData: AT_GRXDATA_END
  396. *CursorYAfterSendBlockData: NO_MOVE
  397. *DefaultFont: 1
  398. *DefaultCTT: 1
  399. *switch: Orientation
  400. {
  401. *case: PORTRAIT
  402. {
  403. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  404. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
  405. + 33,34,35)
  406. }
  407. *case: LANDSCAPE_CC270
  408. {
  409. *DeviceFonts: LIST()
  410. }
  411. }
  412. *FontCartridge: FC1
  413. {
  414. *rcCartridgeNameID: 270
  415. *PortraitFonts: LIST(36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,
  416. + 52,53,54,55,56,57,58,59,60,61,62)
  417. *LandscapeFonts: LIST()
  418. }
  419. *Command: CmdBoldOn { *Cmd : "<1B>[9w" }
  420. *Command: CmdBoldOff { *Cmd : "<1B>[8w" }
  421. *Command: CmdItalicOn { *Cmd : "<1B>[3m" }
  422. *Command: CmdItalicOff { *Cmd : "<1B>[23m" }
  423. *Command: CmdUnderlineOn { *Cmd : "<1B>[4m" }
  424. *Command: CmdUnderlineOff { *Cmd : "<1B>[24m" }