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.

364 lines
9.5 KiB

  1. *GPDSpecVersion: "1.0"
  2. *Include: "StdNames.gpd"
  3. *GPDFileVersion: "1.0"
  4. *GPDFileName: "t3016-2t.GPD"
  5. *ModelName: "Tally T3016-2T"
  6. *MasterUnits: PAIR(720, 720)
  7. *ResourceDLL: "T3016.Dll"
  8. *PrinterType: SERIAL
  9. *Feature: Orientation
  10. {
  11. *rcNameID: =ORIENTATION_DISPLAY
  12. *DefaultOption: PORTRAIT
  13. *Option: PORTRAIT
  14. {
  15. *rcNameID: =PORTRAIT_DISPLAY
  16. }
  17. *Option: LANDSCAPE_CC270
  18. {
  19. *rcNameID: =LANDSCAPE_DISPLAY
  20. }
  21. }
  22. *Feature: InputBin
  23. {
  24. *rcNameID: =PAPER_SOURCE_DISPLAY
  25. *DefaultOption: Option1
  26. *Option: Option1
  27. {
  28. *rcNameID: 264
  29. *OptionID: 264
  30. *Command: CmdSelect
  31. {
  32. *Order: DOC_SETUP.7
  33. *Cmd: "<1B>[5;;3{"
  34. }
  35. }
  36. *Option: Option2
  37. {
  38. *rcNameID: 265
  39. *OptionID: 265
  40. *Command: CmdSelect
  41. {
  42. *Order: DOC_SETUP.7
  43. *Cmd: "<1B>[6;;3{"
  44. }
  45. }
  46. *Option: Option3
  47. {
  48. *rcNameID: 266
  49. *OptionID: 266
  50. *Command: CmdSelect
  51. {
  52. *Order: DOC_SETUP.7
  53. *Cmd: "<1B>[7;;3{"
  54. }
  55. }
  56. *Option: MANUAL
  57. {
  58. *rcNameID: =MANUAL_FEED_DISPLAY
  59. *Command: CmdSelect
  60. {
  61. *Order: DOC_SETUP.7
  62. *Cmd: "<1B>[0;;3{"
  63. }
  64. }
  65. *Option: Option5
  66. {
  67. *rcNameID: 269
  68. *OptionID: 269
  69. *Command: CmdSelect
  70. {
  71. *Order: DOC_SETUP.7
  72. *Cmd: "<1B>[23;;3{"
  73. }
  74. }
  75. }
  76. *Feature: Resolution
  77. {
  78. *rcNameID: =RESOLUTION_DISPLAY
  79. *DefaultOption: Option1
  80. *Option: Option1
  81. {
  82. *Name: "360 x 360 " =DOTS_PER_INCH
  83. *DPI: PAIR(360, 360)
  84. *TextDPI: PAIR(360, 360)
  85. *PinsPerLogPass: 48
  86. *PinsPerPhysPass: 48
  87. *MinStripBlankPixels: 216
  88. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  89. *SpotDiameter: 120
  90. *Command: CmdSendBlockData { *Cmd : "<1B>[$2" %l{NumOfDataBytes / 6} }
  91. }
  92. *Option: Option2
  93. {
  94. *Name: "180 x 360 " =DOTS_PER_INCH
  95. *DPI: PAIR(180, 360)
  96. *TextDPI: PAIR(180, 360)
  97. *PinsPerLogPass: 48
  98. *PinsPerPhysPass: 48
  99. *MinStripBlankPixels: 108
  100. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  101. *SpotDiameter: 120
  102. *Command: CmdSendBlockData { *Cmd : "<1B>[$1" %l{NumOfDataBytes / 6} }
  103. }
  104. *Option: Option3
  105. {
  106. *Name: "360 x 180 " =DOTS_PER_INCH
  107. *DPI: PAIR(360, 180)
  108. *TextDPI: PAIR(360, 180)
  109. *PinsPerLogPass: 24
  110. *PinsPerPhysPass: 24
  111. *MinStripBlankPixels: 270
  112. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  113. *SpotDiameter: 120
  114. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  115. }
  116. *Option: Option4
  117. {
  118. *Name: "180 x 180 " =DOTS_PER_INCH
  119. *DPI: PAIR(180, 180)
  120. *TextDPI: PAIR(180, 180)
  121. *PinsPerLogPass: 24
  122. *PinsPerPhysPass: 24
  123. *MinStripBlankPixels: 135
  124. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  125. *SpotDiameter: 120
  126. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  127. }
  128. *Option: Option5
  129. {
  130. *Name: "120 x 180 " =DOTS_PER_INCH
  131. *DPI: PAIR(120, 180)
  132. *TextDPI: PAIR(120, 180)
  133. *PinsPerLogPass: 24
  134. *PinsPerPhysPass: 24
  135. *MinStripBlankPixels: 90
  136. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  137. *SpotDiameter: 120
  138. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  139. }
  140. }
  141. *Feature: PaperSize
  142. {
  143. *rcNameID: =PAPER_SIZE_DISPLAY
  144. *DefaultOption: Option1
  145. *Option: Option1
  146. {
  147. *rcNameID: 258
  148. *OptionID: 258
  149. *PageDimensions: PAIR(6120, 8640)
  150. *PrintableArea: PAIR(6120, 8640)
  151. *PrintableOrigin: PAIR(0, 0)
  152. *Command: CmdSelect
  153. {
  154. *Order: DOC_SETUP.8
  155. *Cmd: "<1B>C<000C>"
  156. }
  157. }
  158. *Option: Option2
  159. {
  160. *rcNameID: 259
  161. *OptionID: 259
  162. *PageDimensions: PAIR(5952, 8420)
  163. *PrintableArea: PAIR(5664, 8132)
  164. *PrintableOrigin: PAIR(144, 144)
  165. *Command: CmdSelect
  166. {
  167. *Order: DOC_SETUP.8
  168. *Cmd: "<1B>2<1B>[8419t"
  169. }
  170. }
  171. *Option: Option3
  172. {
  173. *rcNameID: 260
  174. *OptionID: 260
  175. *PageDimensions: PAIR(4200, 5952)
  176. *PrintableArea: PAIR(3912, 5664)
  177. *PrintableOrigin: PAIR(144, 144)
  178. *Command: CmdSelect
  179. {
  180. *Order: DOC_SETUP.8
  181. *Cmd: "<1B>2<1B>[5952t"
  182. }
  183. }
  184. *Option: Option4
  185. {
  186. *rcNameID: 261
  187. *OptionID: 261
  188. *PageDimensions: PAIR(8424, 11904)
  189. *PrintableArea: PAIR(8136, 11616)
  190. *PrintableOrigin: PAIR(144, 144)
  191. *Command: CmdSelect
  192. {
  193. *Order: DOC_SETUP.8
  194. *Cmd: "<1B>2<1B>[11906t"
  195. }
  196. }
  197. *Option: LETTER
  198. {
  199. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  200. *PrintableArea: PAIR(5832, 7632)
  201. *PrintableOrigin: PAIR(144, 144)
  202. *Command: CmdSelect
  203. {
  204. *Order: DOC_SETUP.8
  205. *Cmd: "<1B>C<000B>"
  206. }
  207. }
  208. *Option: LEGAL
  209. {
  210. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  211. *PrintableArea: PAIR(5832, 9792)
  212. *PrintableOrigin: PAIR(144, 144)
  213. *Command: CmdSelect
  214. {
  215. *Order: DOC_SETUP.8
  216. *Cmd: "<1B>C<000E>"
  217. }
  218. }
  219. *Option: EXECUTIVE
  220. {
  221. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  222. *PrintableArea: PAIR(4932, 7272)
  223. *PrintableOrigin: PAIR(144, 144)
  224. *Command: CmdSelect
  225. {
  226. *Order: DOC_SETUP.8
  227. *Cmd: "<1B>2<1B>C?"
  228. }
  229. }
  230. *Option: Option8
  231. {
  232. *rcNameID: 262
  233. *OptionID: 262
  234. *PageDimensions: PAIR(9720, 8640)
  235. *PrintableArea: PAIR(9720, 8640)
  236. *PrintableOrigin: PAIR(0, 0)
  237. *Command: CmdSelect
  238. {
  239. *Order: DOC_SETUP.8
  240. *Cmd: "<1B>C<000C>"
  241. }
  242. }
  243. *Option: Option9
  244. {
  245. *rcNameID: 263
  246. *OptionID: 263
  247. *PageDimensions: PAIR(10710, 7920)
  248. *PrintableArea: PAIR(9792, 7920)
  249. *PrintableOrigin: PAIR(456, 0)
  250. *Command: CmdSelect
  251. {
  252. *Order: DOC_SETUP.8
  253. *Cmd: "<1B>C<000B>"
  254. }
  255. }
  256. *Option: CUSTOMSIZE
  257. {
  258. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  259. *MinSize: PAIR(720, 720)
  260. *MaxSize: PAIR(11520, 15840)
  261. *MaxPrintableWidth: 9792
  262. *MinLeftMargin: 0
  263. *CenterPrintable?: FALSE
  264. *Command: CmdSelect
  265. {
  266. *Order: DOC_SETUP.8
  267. *Cmd: "<1B>[" %d{((PhysPaperLength * 2) / 2) }"t"
  268. }
  269. }
  270. }
  271. *Feature: Halftone
  272. {
  273. *rcNameID: =HALFTONING_DISPLAY
  274. *DefaultOption: HT_PATSIZE_AUTO
  275. *Option: HT_PATSIZE_AUTO
  276. {
  277. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  278. }
  279. *Option: HT_PATSIZE_SUPERCELL_M
  280. {
  281. *rcNameID: =HT_SUPERCELL_DISPLAY
  282. }
  283. *Option: HT_PATSIZE_6x6_M
  284. {
  285. *rcNameID: =HT_DITHER6X6_DISPLAY
  286. }
  287. *Option: HT_PATSIZE_8x8_M
  288. {
  289. *rcNameID: =HT_DITHER8X8_DISPLAY
  290. }
  291. }
  292. *Command: CmdStartDoc
  293. {
  294. *Order: DOC_SETUP.1
  295. *Cmd: "<1B>[6~<1B>[?6~<1B>t<011B>6<1B>(r<1B>[11h<1B>[0;0 D<1B>[1;1 D<1B>[2;2 D<1B>[3;3"
  296. + " D<1B>[4;4 D<1B>[5;5 D<1B>[6;6 D<1B>[?52h"
  297. }
  298. *Command: CmdEndJob
  299. {
  300. *Order: JOB_FINISH.1
  301. *Cmd: "<1B>[6~"
  302. }
  303. *Command: CmdEndPage
  304. {
  305. *Order: PAGE_FINISH.1
  306. *Cmd: "<1B>[54{"
  307. }
  308. *RotateCoordinate?: FALSE
  309. *RotateRaster?: FALSE
  310. *RotateFont?: FALSE
  311. *switch: Orientation
  312. {
  313. *case: PORTRAIT
  314. {
  315. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  316. }
  317. *case: LANDSCAPE_CC270
  318. {
  319. *TextCaps: LIST(TC_RA_ABLE)
  320. }
  321. }
  322. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  323. *YMoveAttributes: LIST(SEND_CR_FIRST)
  324. *XMoveThreshold: 0
  325. *YMoveThreshold: *
  326. *XMoveUnit: 720
  327. *YMoveUnit: 720
  328. *Command: CmdXMoveAbsolute { *Cmd : "<1B>[" %d{DestX}"`" }
  329. *Command: CmdXMoveRelRight { *Cmd : "<1B>[" %d{DestXRel}"a" }
  330. *Command: CmdXMoveRelLeft { *Cmd : "<1B>[" %d{DestXRel}"j" }
  331. *Command: CmdYMoveRelDown { *Cmd : "<1B>[" %d[0,14400]{max_repeat(DestYRel )}" h<0A1B>[120 h" }
  332. *Command: CmdYMoveRelUp { *Cmd : "<1B>[" %d{DestYRel}"k" }
  333. *Command: CmdCR { *Cmd : "<0D>" }
  334. *Command: CmdLF { *Cmd : "<0A>" }
  335. *Command: CmdFF { *Cmd : "<0C>" }
  336. *Command: CmdBackSpace { *Cmd : "<08>" }
  337. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  338. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  339. *EjectPageWithFF?: TRUE
  340. *OutputDataFormat: V_BYTE
  341. *OptimizeLeftBound?: FALSE
  342. *CursorXAfterSendBlockData: AT_GRXDATA_END
  343. *CursorYAfterSendBlockData: NO_MOVE
  344. *DefaultFont: 1
  345. *DefaultCTT: 1
  346. *switch: Orientation
  347. {
  348. *case: PORTRAIT
  349. {
  350. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  351. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
  352. + 33,34,35,36,37,38,39,40,41,42,43,44,45,46)
  353. }
  354. *case: LANDSCAPE_CC270
  355. {
  356. *DeviceFonts: LIST()
  357. }
  358. }
  359. *Command: CmdBoldOn { *Cmd : "<1B>[9w" }
  360. *Command: CmdBoldOff { *Cmd : "<1B>[8w" }
  361. *Command: CmdItalicOn { *Cmd : "<1B>[3m" }
  362. *Command: CmdItalicOff { *Cmd : "<1B>[23m" }
  363. *Command: CmdUnderlineOn { *Cmd : "<1B>[4m" }
  364. *Command: CmdUnderlineOff { *Cmd : "<1B>[24m" }