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.

554 lines
15 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: "ty20309.gpd"
  9. *ModelName: "Tally T2030 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: LETTER
  334. {
  335. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  336. *Command: CmdSelect
  337. {
  338. *Order: DOC_SETUP.8
  339. *Cmd: "<1B>C<000B>"
  340. }
  341. *switch: InputBin
  342. {
  343. *case: Option1
  344. {
  345. *PrintableArea: PAIR(6020, 7560)
  346. *PrintableOrigin: PAIR(0, 100)
  347. }
  348. *case: Option2
  349. {
  350. *PrintableArea: PAIR(6020, 7560)
  351. *PrintableOrigin: PAIR(0, 100)
  352. }
  353. *case: MANUAL
  354. {
  355. *PrintableArea: PAIR(6020, 7420)
  356. *PrintableOrigin: PAIR(0, 100)
  357. }
  358. *case: Option4
  359. {
  360. *PrintableArea: PAIR(5980, 7680)
  361. *PrintableOrigin: PAIR(80, 90)
  362. }
  363. }
  364. }
  365. *Option: LEGAL
  366. {
  367. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  368. *Command: CmdSelect
  369. {
  370. *Order: DOC_SETUP.8
  371. *Cmd: "<1B>C<000E>"
  372. }
  373. *switch: InputBin
  374. {
  375. *case: Option1
  376. {
  377. *PrintableArea: PAIR(6120, 9720)
  378. *PrintableOrigin: PAIR(0, 180)
  379. }
  380. *case: Option2
  381. {
  382. *PrintableArea: PAIR(6120, 9720)
  383. *PrintableOrigin: PAIR(0, 180)
  384. }
  385. *case: MANUAL
  386. {
  387. *PrintableArea: PAIR(6120, 9580)
  388. *PrintableOrigin: PAIR(0, 180)
  389. }
  390. *case: Option4
  391. {
  392. *PrintableArea: PAIR(5980, 9790)
  393. *PrintableOrigin: PAIR(80, 90)
  394. }
  395. }
  396. }
  397. *Option: EXECUTIVE
  398. {
  399. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  400. *Command: CmdSelect
  401. {
  402. *Order: DOC_SETUP.8
  403. *Cmd: "<1B>2<1B>C?"
  404. }
  405. *switch: InputBin
  406. {
  407. *case: Option1
  408. {
  409. *PrintableArea: PAIR(5120, 7200)
  410. *PrintableOrigin: PAIR(0, 180)
  411. }
  412. *case: Option2
  413. {
  414. *PrintableArea: PAIR(5120, 7200)
  415. *PrintableOrigin: PAIR(0, 180)
  416. }
  417. *case: MANUAL
  418. {
  419. *PrintableArea: PAIR(5120, 7060)
  420. *PrintableOrigin: PAIR(0, 180)
  421. }
  422. *case: Option4
  423. {
  424. *PrintableArea: PAIR(5220, 7340)
  425. *PrintableOrigin: PAIR(80, 90)
  426. }
  427. }
  428. }
  429. *Option: CUSTOMSIZE
  430. {
  431. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  432. *MinSize: PAIR(2160, 2160)
  433. *MaxSize: PAIR(7200, 15840)
  434. *MaxPrintableWidth: 7200
  435. *MinLeftMargin: 0
  436. *CenterPrintable?: FALSE
  437. *switch: InputBin
  438. {
  439. *case: Option1
  440. {
  441. *TopMargin: 180
  442. *BottomMargin: 180
  443. }
  444. *case: Option2
  445. {
  446. *TopMargin: 180
  447. *BottomMargin: 180
  448. }
  449. *case: MANUAL
  450. {
  451. *TopMargin: 180
  452. *BottomMargin: 320
  453. }
  454. *case: Option4
  455. {
  456. *TopMargin: 90
  457. *BottomMargin: 0
  458. }
  459. }
  460. *Command: CmdSelect
  461. {
  462. *Order: DOC_SETUP.8
  463. *Cmd: "<1B>[" %d{PhysPaperLength}"t"
  464. }
  465. }
  466. }
  467. *Feature: Halftone
  468. {
  469. *rcNameID: =HALFTONING_DISPLAY
  470. *DefaultOption: HT_PATSIZE_AUTO
  471. *Option: HT_PATSIZE_AUTO
  472. {
  473. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  474. }
  475. *Option: HT_PATSIZE_SUPERCELL_M
  476. {
  477. *rcNameID: =HT_SUPERCELL_DISPLAY
  478. }
  479. *Option: HT_PATSIZE_6x6_M
  480. {
  481. *rcNameID: =HT_DITHER6X6_DISPLAY
  482. }
  483. *Option: HT_PATSIZE_8x8_M
  484. {
  485. *rcNameID: =HT_DITHER8X8_DISPLAY
  486. }
  487. }
  488. *Command: CmdStartDoc
  489. {
  490. *Order: DOC_SETUP.1
  491. *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"
  492. }
  493. *Command: CmdEndJob
  494. {
  495. *Order: JOB_FINISH.1
  496. *Cmd: "<1B>[6~"
  497. }
  498. *RotateCoordinate?: FALSE
  499. *RotateRaster?: FALSE
  500. *RotateFont?: FALSE
  501. *switch: Orientation
  502. {
  503. *case: PORTRAIT
  504. {
  505. *TextCaps: LIST(TC_OP_CHARACTER,TC_OP_STROKE,TC_CP_STROKE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  506. }
  507. *case: LANDSCAPE_CC270
  508. {
  509. *TextCaps: LIST(TC_RA_ABLE)
  510. }
  511. }
  512. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  513. *YMoveAttributes: LIST(SEND_CR_FIRST)
  514. *XMoveThreshold: 0
  515. *YMoveThreshold: *
  516. *XMoveUnit: 720
  517. *YMoveUnit: 720
  518. *Command: CmdXMoveAbsolute { *Cmd : "<1B>[" %d{DestX}"`" }
  519. *Command: CmdXMoveRelRight { *Cmd : "<1B>[" %d{DestXRel}"a" }
  520. *Command: CmdXMoveRelLeft { *Cmd : "<1B>[" %d{DestXRel}"j" }
  521. *Command: CmdYMoveRelDown { *Cmd : "<1B>[" %d[0,120]{max_repeat(DestYRel )}" h<0A1B>[120 h" }
  522. *Command: CmdYMoveRelUp { *Cmd : "<1B>[" %d{DestYRel}"k" }
  523. *Command: CmdCR { *Cmd : "<0D>" }
  524. *Command: CmdLF { *Cmd : "<0A>" }
  525. *Command: CmdFF { *Cmd : "<0C>" }
  526. *Command: CmdBackSpace { *Cmd : "<08>" }
  527. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  528. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  529. *EjectPageWithFF?: TRUE
  530. *OutputDataFormat: V_BYTE
  531. *OptimizeLeftBound?: TRUE
  532. *CursorXAfterSendBlockData: AT_GRXDATA_END
  533. *CursorYAfterSendBlockData: NO_MOVE
  534. *DefaultFont: 12
  535. *DefaultCTT: 1
  536. *switch: Orientation
  537. {
  538. *case: PORTRAIT
  539. {
  540. *DeviceFonts: LIST(10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,
  541. + 26,27,28,29,147,148,149,150,151,152,153,154,155,156,157,158,
  542. + 159,160,161,162,163,164)
  543. }
  544. *case: LANDSCAPE_CC270
  545. {
  546. *DeviceFonts: LIST()
  547. }
  548. }
  549. *Command: CmdBoldOn { *Cmd : "<1B>[9w" }
  550. *Command: CmdBoldOff { *Cmd : "<1B>[8w" }
  551. *Command: CmdItalicOn { *Cmd : "<1B>[3m" }
  552. *Command: CmdItalicOff { *Cmd : "<1B>[23m" }
  553. *Command: CmdUnderlineOn { *Cmd : "<1B>[4m" }
  554. *Command: CmdUnderlineOff { *Cmd : "<1B>[24m" }