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.

391 lines
10 KiB

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