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.

546 lines
15 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "EPRX100.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Epson RX-100"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "ep9res.dll"
  12. *PrintRate: 100
  13. *PrintRateUnit: CPS
  14. *PrinterType: SERIAL
  15. *Feature: Orientation
  16. {
  17. *rcNameID: =ORIENTATION_DISPLAY
  18. *DefaultOption: PORTRAIT
  19. *Option: PORTRAIT
  20. {
  21. *rcNameID: =PORTRAIT_DISPLAY
  22. }
  23. *Option: LANDSCAPE_CC270
  24. {
  25. *rcNameID: =LANDSCAPE_DISPLAY
  26. }
  27. }
  28. *Feature: InputBin
  29. {
  30. *rcNameID: =PAPER_SOURCE_DISPLAY
  31. *DefaultOption: TRACTOR
  32. *Option: TRACTOR
  33. {
  34. *rcNameID: =TRACTOR_DISPLAY
  35. }
  36. *Option: MANUAL
  37. {
  38. *rcNameID: =MANUAL_FEED_DISPLAY
  39. }
  40. }
  41. *Feature: Resolution
  42. {
  43. *rcNameID: =RESOLUTION_DISPLAY
  44. *DefaultOption: Option1
  45. *Option: Option1
  46. {
  47. *Name: "120 x 144 " =DOTS_PER_INCH
  48. *DPI: PAIR(120, 144)
  49. *TextDPI: PAIR(120, 144)
  50. *PinsPerLogPass: 16
  51. *PinsPerPhysPass: 8
  52. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  53. *SpotDiameter: 140
  54. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  55. }
  56. *Option: Option2
  57. {
  58. *Name: "240 x 144 " =DOTS_PER_INCH
  59. *DPI: PAIR(240, 144)
  60. *TextDPI: PAIR(240, 144)
  61. *PinsPerLogPass: 16
  62. *PinsPerPhysPass: 8
  63. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  64. *SpotDiameter: 170
  65. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  66. }
  67. *Option: Option3
  68. {
  69. *Name: "120 x 72 " =DOTS_PER_INCH
  70. *DPI: PAIR(120, 72)
  71. *TextDPI: PAIR(120, 72)
  72. *PinsPerLogPass: 8
  73. *PinsPerPhysPass: 8
  74. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  75. *SpotDiameter: 100
  76. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  77. }
  78. }
  79. *Feature: PaperSize
  80. {
  81. *rcNameID: =PAPER_SIZE_DISPLAY
  82. *DefaultOption: LETTER
  83. *Option: LETTER
  84. {
  85. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  86. *Command: CmdSelect
  87. {
  88. *Order: DOC_SETUP.4
  89. *Cmd: "<1B>2<1B>CB"
  90. }
  91. *switch: InputBin
  92. {
  93. *case: TRACTOR
  94. {
  95. *PrintableArea: PAIR(6120, 4752)
  96. *PrintableOrigin: PAIR(0, 0)
  97. }
  98. *case: MANUAL
  99. {
  100. *PrintableArea: PAIR(6120, 4401)
  101. *PrintableOrigin: PAIR(0, 135)
  102. *switch: Resolution
  103. {
  104. *case: Option3
  105. {
  106. *PrintableArea: PAIR(6120, 4398)
  107. *PrintableOrigin: PAIR(0, 138)
  108. }
  109. }
  110. }
  111. }
  112. }
  113. *Option: LEGAL
  114. {
  115. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  116. *Command: CmdSelect
  117. {
  118. *Order: DOC_SETUP.4
  119. *Cmd: "<1B>2<1B>CT"
  120. }
  121. *switch: InputBin
  122. {
  123. *case: TRACTOR
  124. {
  125. *PrintableArea: PAIR(6120, 6048)
  126. *PrintableOrigin: PAIR(0, 0)
  127. }
  128. *case: MANUAL
  129. {
  130. *PrintableArea: PAIR(6120, 5697)
  131. *PrintableOrigin: PAIR(0, 135)
  132. *switch: Resolution
  133. {
  134. *case: Option3
  135. {
  136. *PrintableArea: PAIR(6120, 5694)
  137. *PrintableOrigin: PAIR(0, 138)
  138. }
  139. }
  140. }
  141. }
  142. }
  143. *Option: A4
  144. {
  145. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  146. *Command: CmdSelect
  147. {
  148. *Order: DOC_SETUP.4
  149. *Cmd: "<1B>2<1B>CF"
  150. }
  151. *switch: InputBin
  152. {
  153. *case: TRACTOR
  154. {
  155. *PrintableArea: PAIR(5954, 5050)
  156. *PrintableOrigin: PAIR(0, 0)
  157. *switch: Resolution
  158. {
  159. *case: Option1
  160. {
  161. *PrintableArea: PAIR(5952, 5049)
  162. }
  163. *case: Option2
  164. {
  165. *PrintableArea: PAIR(5952, 5049)
  166. }
  167. *case: Option3
  168. {
  169. *PrintableArea: PAIR(5952, 5046)
  170. }
  171. }
  172. }
  173. *case: MANUAL
  174. {
  175. *PrintableArea: PAIR(5954, 4699)
  176. *PrintableOrigin: PAIR(0, 135)
  177. *switch: Resolution
  178. {
  179. *case: Option1
  180. {
  181. *PrintableArea: PAIR(5952, 4698)
  182. }
  183. *case: Option2
  184. {
  185. *PrintableArea: PAIR(5952, 4698)
  186. }
  187. *case: Option3
  188. {
  189. *PrintableArea: PAIR(5952, 4692)
  190. *PrintableOrigin: PAIR(0, 138)
  191. }
  192. }
  193. }
  194. }
  195. }
  196. *Option: A3
  197. {
  198. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  199. *Command: CmdSelect
  200. {
  201. *Order: DOC_SETUP.4
  202. *Cmd: "<1B>2<1B>Cc"
  203. }
  204. *switch: InputBin
  205. {
  206. *case: TRACTOR
  207. {
  208. *PrintableArea: PAIR(8417, 7145)
  209. *PrintableOrigin: PAIR(0, 0)
  210. *switch: Resolution
  211. {
  212. *case: Option1
  213. {
  214. *PrintableArea: PAIR(8412, 7143)
  215. }
  216. *case: Option2
  217. {
  218. *PrintableArea: PAIR(8415, 7143)
  219. }
  220. *case: Option3
  221. {
  222. *PrintableArea: PAIR(8412, 7140)
  223. }
  224. }
  225. }
  226. *case: MANUAL
  227. {
  228. *PrintableArea: PAIR(8417, 6794)
  229. *PrintableOrigin: PAIR(0, 135)
  230. *switch: Resolution
  231. {
  232. *case: Option1
  233. {
  234. *PrintableArea: PAIR(8412, 6792)
  235. }
  236. *case: Option2
  237. {
  238. *PrintableArea: PAIR(8415, 6792)
  239. }
  240. *case: Option3
  241. {
  242. *PrintableArea: PAIR(8412, 6786)
  243. *PrintableOrigin: PAIR(0, 138)
  244. }
  245. }
  246. }
  247. }
  248. }
  249. *Option: A5
  250. {
  251. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  252. *Command: CmdSelect
  253. {
  254. *Order: DOC_SETUP.4
  255. *Cmd: "<1B>2<1B>C2"
  256. }
  257. *switch: InputBin
  258. {
  259. *case: TRACTOR
  260. {
  261. *PrintableArea: PAIR(4198, 3573)
  262. *PrintableOrigin: PAIR(0, 0)
  263. *switch: Resolution
  264. {
  265. *case: Option1
  266. {
  267. *PrintableArea: PAIR(4194, 3573)
  268. }
  269. *case: Option2
  270. {
  271. *PrintableArea: PAIR(4197, 3573)
  272. }
  273. *case: Option3
  274. {
  275. *PrintableArea: PAIR(4194, 3570)
  276. }
  277. }
  278. }
  279. *case: MANUAL
  280. {
  281. *PrintableArea: PAIR(4198, 3222)
  282. *PrintableOrigin: PAIR(0, 135)
  283. *switch: Resolution
  284. {
  285. *case: Option1
  286. {
  287. *PrintableArea: PAIR(4194, 3222)
  288. }
  289. *case: Option2
  290. {
  291. *PrintableArea: PAIR(4197, 3222)
  292. }
  293. *case: Option3
  294. {
  295. *PrintableArea: PAIR(4194, 3216)
  296. *PrintableOrigin: PAIR(0, 138)
  297. }
  298. }
  299. }
  300. }
  301. }
  302. *Option: B5
  303. {
  304. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  305. *Command: CmdSelect
  306. {
  307. *Order: DOC_SETUP.4
  308. *Cmd: "<1B>2<1B>C="
  309. }
  310. *switch: InputBin
  311. {
  312. *case: TRACTOR
  313. {
  314. *PrintableArea: PAIR(5162, 4372)
  315. *PrintableOrigin: PAIR(0, 0)
  316. *switch: Resolution
  317. {
  318. *case: Option1
  319. {
  320. *PrintableArea: PAIR(5160, 4371)
  321. }
  322. *case: Option2
  323. {
  324. *PrintableArea: PAIR(5160, 4371)
  325. }
  326. *case: Option3
  327. {
  328. *PrintableArea: PAIR(5160, 4368)
  329. }
  330. }
  331. }
  332. *case: MANUAL
  333. {
  334. *PrintableArea: PAIR(5162, 4021)
  335. *PrintableOrigin: PAIR(0, 135)
  336. *switch: Resolution
  337. {
  338. *case: Option1
  339. {
  340. *PrintableArea: PAIR(5160, 4020)
  341. }
  342. *case: Option2
  343. {
  344. *PrintableArea: PAIR(5160, 4020)
  345. }
  346. *case: Option3
  347. {
  348. *PrintableArea: PAIR(5160, 4014)
  349. *PrintableOrigin: PAIR(0, 138)
  350. }
  351. }
  352. }
  353. }
  354. }
  355. *Option: FANFOLD_US
  356. {
  357. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  358. *Command: CmdSelect
  359. {
  360. *Order: DOC_SETUP.4
  361. *Cmd: "<1B>2<1B>CB"
  362. }
  363. *switch: InputBin
  364. {
  365. *case: TRACTOR
  366. {
  367. *PrintableArea: PAIR(9792, 4752)
  368. *PrintableOrigin: PAIR(0, 0)
  369. }
  370. *case: MANUAL
  371. {
  372. *PrintableArea: PAIR(9792, 4401)
  373. *PrintableOrigin: PAIR(0, 135)
  374. *switch: Resolution
  375. {
  376. *case: Option3
  377. {
  378. *PrintableArea: PAIR(9792, 4398)
  379. *PrintableOrigin: PAIR(0, 138)
  380. }
  381. }
  382. }
  383. }
  384. }
  385. *Option: Option8
  386. {
  387. *rcNameID: 258
  388. *PageDimensions: PAIR(6120, 5184)
  389. *Command: CmdSelect
  390. {
  391. *Order: DOC_SETUP.4
  392. *Cmd: "<1B>2<1B>CH"
  393. }
  394. *switch: InputBin
  395. {
  396. *case: TRACTOR
  397. {
  398. *PrintableArea: PAIR(6120, 5184)
  399. *PrintableOrigin: PAIR(0, 0)
  400. }
  401. *case: MANUAL
  402. {
  403. *PrintableArea: PAIR(6120, 4833)
  404. *PrintableOrigin: PAIR(0, 135)
  405. *switch: Resolution
  406. {
  407. *case: Option3
  408. {
  409. *PrintableArea: PAIR(6120, 4830)
  410. *PrintableOrigin: PAIR(0, 138)
  411. }
  412. }
  413. }
  414. }
  415. }
  416. *Option: CUSTOMSIZE
  417. {
  418. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  419. *MinSize: PAIR(720, 432)
  420. *MaxSize: PAIR(10080, 9504)
  421. *MaxPrintableWidth: 9792
  422. *MinLeftMargin: 0
  423. *CenterPrintable?: FALSE
  424. *switch: InputBin
  425. {
  426. *case: TRACTOR
  427. {
  428. *TopMargin: 0
  429. *BottomMargin: 0
  430. }
  431. *case: MANUAL
  432. {
  433. *TopMargin: 135
  434. *BottomMargin: 216
  435. }
  436. }
  437. *Command: CmdSelect
  438. {
  439. *Order: DOC_SETUP.4
  440. *Cmd: "<1B>2"
  441. }
  442. }
  443. }
  444. *Feature: Halftone
  445. {
  446. *rcNameID: =HALFTONING_DISPLAY
  447. *DefaultOption: HT_PATSIZE_AUTO
  448. *Option: HT_PATSIZE_AUTO
  449. {
  450. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  451. }
  452. *Ifdef: WINNT_50
  453. *Option: HT_PATSIZE_SUPERCELL_M
  454. {
  455. *rcNameID: =HT_SUPERCELL_DISPLAY
  456. }
  457. *Endif:
  458. *Option: HT_PATSIZE_6x6_M
  459. {
  460. *rcNameID: =HT_DITHER6X6_DISPLAY
  461. }
  462. *Option: HT_PATSIZE_8x8_M
  463. {
  464. *rcNameID: =HT_DITHER8X8_DISPLAY
  465. }
  466. }
  467. *Command: CmdStartDoc
  468. {
  469. *Order: DOC_SETUP.1
  470. *Cmd: "<1B>@<0D1B>t<011B>6<1B>R<001B>P"
  471. }
  472. *Command: CmdStartPage
  473. {
  474. *Order: PAGE_SETUP.1
  475. *Cmd: "<0D>"
  476. }
  477. *Command: CmdEndJob
  478. {
  479. *Order: JOB_FINISH.1
  480. *Cmd: "<0D>"
  481. }
  482. *RotateCoordinate?: FALSE
  483. *RotateRaster?: FALSE
  484. *RotateFont?: FALSE
  485. *switch: Orientation
  486. {
  487. *case: PORTRAIT
  488. {
  489. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  490. }
  491. *case: LANDSCAPE_CC270
  492. {
  493. *TextCaps: LIST(TC_RA_ABLE)
  494. }
  495. }
  496. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  497. *YMoveAttributes: LIST(SEND_CR_FIRST)
  498. *MaxLineSpacing: 255
  499. *YMoveThreshold: *
  500. *YMoveUnit: 216
  501. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  502. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  503. *Command: CmdCR { *Cmd : "<0D>" }
  504. *Command: CmdLF { *Cmd : "<0A>" }
  505. *Command: CmdFF { *Cmd : "<0C>" }
  506. *Command: CmdBackSpace { *Cmd : "<08>" }
  507. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  508. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  509. *EjectPageWithFF?: TRUE
  510. *switch: PaperSize
  511. {
  512. *case: CUSTOMSIZE
  513. {
  514. *EjectPageWithFF?: FALSE
  515. *switch: InputBin
  516. {
  517. *case: MANUAL
  518. {
  519. *EjectPageWithFF?: TRUE
  520. }
  521. }
  522. }
  523. }
  524. *OutputDataFormat: V_BYTE
  525. *OptimizeLeftBound?: FALSE
  526. *CursorXAfterSendBlockData: AT_GRXDATA_END
  527. *CursorYAfterSendBlockData: NO_MOVE
  528. *DefaultFont: 35
  529. *DefaultCTT: 2
  530. *switch: Orientation
  531. {
  532. *case: PORTRAIT
  533. {
  534. *DeviceFonts: LIST(35,36,37,39,40)
  535. }
  536. *case: LANDSCAPE_CC270
  537. {
  538. *DeviceFonts: LIST()
  539. }
  540. }
  541. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  542. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  543. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  544. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  545. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  546. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }