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.

529 lines
19 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "EPMJ50J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "EPSON MJ-500"
  11. *MasterUnits: PAIR(720, 720)
  12. *ResourceDLL: "EPRSTRES.DLL"
  13. *PrinterType: SERIAL
  14. *OutputOrderReversed?: TRUE
  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: Option2
  32. *Option: Option1
  33. {
  34. *rcNameID: 287
  35. *Command: CmdSelect
  36. {
  37. *Order: DOC_SETUP.3
  38. *Cmd: "<1B>O"
  39. }
  40. }
  41. *Option: Option2
  42. {
  43. *rcNameID: 289
  44. *Command: CmdSelect
  45. {
  46. *Order: DOC_SETUP.3
  47. *Cmd: "<1B19>1"
  48. }
  49. }
  50. *Option: Option3
  51. {
  52. *rcNameID: 290
  53. *Command: CmdSelect
  54. {
  55. *Order: DOC_SETUP.3
  56. *Cmd: "<1B19>2"
  57. }
  58. }
  59. }
  60. *Feature: Resolution
  61. {
  62. *rcNameID: =RESOLUTION_DISPLAY
  63. *DefaultOption: Option1
  64. *Option: Option1
  65. {
  66. *Name: "360 x 360 dots per inch"
  67. *DPI: PAIR(360, 360)
  68. *TextDPI: PAIR(360, 360)
  69. *PinsPerLogPass: 24
  70. *MinStripBlankPixels: 1
  71. *RequireUniDir?: TRUE
  72. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  73. *SpotDiameter: 160
  74. *Command: CmdSendBlockData { *Cmd : "<1B>.<010A0A18>" %l{(RasterDataWidthInBytes * 8) } }
  75. *Command: CmdEndBlockData { *Cmd : "<0D0A>" }
  76. *Command: CmdSelect
  77. {
  78. *Order: DOC_SETUP.5
  79. *Cmd: "<1B>+<18>"
  80. }
  81. }
  82. *Option: Option2
  83. {
  84. *Name: "360 x 180 dots per inch"
  85. *DPI: PAIR(360, 180)
  86. *TextDPI: PAIR(360, 180)
  87. *PinsPerLogPass: 24
  88. *MinStripBlankPixels: 1
  89. *RequireUniDir?: TRUE
  90. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  91. *SpotDiameter: 140
  92. *Command: CmdSendBlockData { *Cmd : "<1B>.<01140A18>" %l{(RasterDataWidthInBytes * 8) } }
  93. *Command: CmdEndBlockData { *Cmd : "<0D0A>" }
  94. *Command: CmdSelect
  95. {
  96. *Order: DOC_SETUP.5
  97. *Cmd: "<1B>+0"
  98. }
  99. }
  100. *Option: Option3
  101. {
  102. *Name: "180 x 180 dots per inch"
  103. *DPI: PAIR(180, 180)
  104. *TextDPI: PAIR(180, 180)
  105. *PinsPerLogPass: 24
  106. *MinStripBlankPixels: 1
  107. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  108. *SpotDiameter: 120
  109. *Command: CmdSendBlockData { *Cmd : "<1B>.<01141418>" %l{(RasterDataWidthInBytes * 8) } }
  110. *Command: CmdEndBlockData { *Cmd : "<0D0A>" }
  111. *Command: CmdSelect
  112. {
  113. *Order: DOC_SETUP.5
  114. *Cmd: "<1B>+0"
  115. }
  116. }
  117. }
  118. *Feature: PaperSize
  119. {
  120. *rcNameID: =PAPER_SIZE_DISPLAY
  121. *DefaultOption: A4
  122. *Option: A4
  123. {
  124. *rcNameID: =A4_DISPLAY
  125. *PrintableArea: PAIR(5760, 7695)
  126. *PrintableOrigin: PAIR(86, 242)
  127. *switch: Resolution
  128. {
  129. *case: Option1
  130. {
  131. *% Warning: the following printable length is adjusted (7695->7694) so it is divisible by the resolution Y scale.
  132. *PrintableArea: PAIR(5760, 7694)
  133. }
  134. *case: Option2
  135. {
  136. *% Warning: the following printable length is adjusted (7695->7692) so it is divisible by the resolution Y scale.
  137. *PrintableArea: PAIR(5760, 7692)
  138. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  139. *PrintableOrigin: PAIR(86, 244)
  140. }
  141. *case: Option3
  142. {
  143. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  144. *% Warning: the following printable length is adjusted (7695->7692) so it is divisible by the resolution Y scale.
  145. *PrintableArea: PAIR(5756, 7692)
  146. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  147. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  148. *PrintableOrigin: PAIR(88, 244)
  149. }
  150. }
  151. *Command: CmdSelect
  152. {
  153. *Order: DOC_SETUP.4
  154. *Cmd: "<1B>(c<04000000910F>"
  155. }
  156. }
  157. *Option: A5
  158. {
  159. *rcNameID: =A5_DISPLAY
  160. *PrintableArea: PAIR(4026, 5232)
  161. *PrintableOrigin: PAIR(86, 242)
  162. *switch: Resolution
  163. {
  164. *case: Option2
  165. {
  166. *% Warning: the following printable length is adjusted (5232->5228) so it is divisible by the resolution Y scale.
  167. *PrintableArea: PAIR(4026, 5228)
  168. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  169. *PrintableOrigin: PAIR(86, 244)
  170. }
  171. *case: Option3
  172. {
  173. *% Warning: the following printable width is adjusted (4026->4024) so it is divisible by the resolution X scale.
  174. *% Warning: the following printable length is adjusted (5232->5228) so it is divisible by the resolution Y scale.
  175. *PrintableArea: PAIR(4024, 5228)
  176. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  177. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  178. *PrintableOrigin: PAIR(88, 244)
  179. }
  180. }
  181. *Command: CmdSelect
  182. {
  183. *Order: DOC_SETUP.4
  184. *Cmd: "<1B>(c<04000000B10A>"
  185. }
  186. }
  187. *Option: A5_ROTATED
  188. {
  189. *rcNameID: =A5_ROTATED_DISPLAY
  190. *PrintableArea: PAIR(5760, 3476)
  191. *PrintableOrigin: PAIR(86, 242)
  192. *switch: Resolution
  193. {
  194. *case: Option2
  195. {
  196. *% Warning: the following printable length is adjusted (3476->3472) so it is divisible by the resolution Y scale.
  197. *PrintableArea: PAIR(5760, 3472)
  198. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  199. *PrintableOrigin: PAIR(86, 244)
  200. }
  201. *case: Option3
  202. {
  203. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  204. *% Warning: the following printable length is adjusted (3476->3472) so it is divisible by the resolution Y scale.
  205. *PrintableArea: PAIR(5756, 3472)
  206. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  207. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  208. *PrintableOrigin: PAIR(88, 244)
  209. }
  210. }
  211. *Command: CmdSelect
  212. {
  213. *Order: DOC_SETUP.4
  214. *Cmd: "<1B>(c<04000000>Q<07>"
  215. }
  216. }
  217. *Option: A6
  218. {
  219. *rcNameID: =A6_DISPLAY
  220. *PrintableArea: PAIR(2802, 3476)
  221. *PrintableOrigin: PAIR(86, 242)
  222. *switch: Resolution
  223. {
  224. *case: Option2
  225. {
  226. *% Warning: the following printable length is adjusted (3476->3472) so it is divisible by the resolution Y scale.
  227. *PrintableArea: PAIR(2802, 3472)
  228. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  229. *PrintableOrigin: PAIR(86, 244)
  230. }
  231. *case: Option3
  232. {
  233. *% Warning: the following printable width is adjusted (2802->2800) so it is divisible by the resolution X scale.
  234. *% Warning: the following printable length is adjusted (3476->3472) so it is divisible by the resolution Y scale.
  235. *PrintableArea: PAIR(2800, 3472)
  236. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  237. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  238. *PrintableOrigin: PAIR(88, 244)
  239. }
  240. }
  241. *Command: CmdSelect
  242. {
  243. *Order: DOC_SETUP.4
  244. *Cmd: "<1B>(c<04000000>Q<07>"
  245. }
  246. }
  247. *Option: A6_ROTATED
  248. {
  249. *rcNameID: =A6_ROTATED_DISPLAY
  250. *PrintableArea: PAIR(4026, 2252)
  251. *PrintableOrigin: PAIR(86, 242)
  252. *switch: Resolution
  253. {
  254. *case: Option2
  255. {
  256. *% Warning: the following printable length is adjusted (2252->2248) so it is divisible by the resolution Y scale.
  257. *PrintableArea: PAIR(4026, 2248)
  258. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  259. *PrintableOrigin: PAIR(86, 244)
  260. }
  261. *case: Option3
  262. {
  263. *% Warning: the following printable width is adjusted (4026->4024) so it is divisible by the resolution X scale.
  264. *% Warning: the following printable length is adjusted (2252->2248) so it is divisible by the resolution Y scale.
  265. *PrintableArea: PAIR(4024, 2248)
  266. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  267. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  268. *PrintableOrigin: PAIR(88, 244)
  269. }
  270. }
  271. *Command: CmdSelect
  272. {
  273. *Order: DOC_SETUP.4
  274. *Cmd: "<1B>(c<04000000E104>"
  275. }
  276. }
  277. *Option: B5
  278. {
  279. *rcNameID: =B5_DISPLAY
  280. *PrintableArea: PAIR(4990, 6564)
  281. *PrintableOrigin: PAIR(86, 242)
  282. *switch: Resolution
  283. {
  284. *case: Option2
  285. {
  286. *% Warning: the following printable length is adjusted (6564->6560) so it is divisible by the resolution Y scale.
  287. *PrintableArea: PAIR(4990, 6560)
  288. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  289. *PrintableOrigin: PAIR(86, 244)
  290. }
  291. *case: Option3
  292. {
  293. *% Warning: the following printable width is adjusted (4990->4988) so it is divisible by the resolution X scale.
  294. *% Warning: the following printable length is adjusted (6564->6560) so it is divisible by the resolution Y scale.
  295. *PrintableArea: PAIR(4988, 6560)
  296. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  297. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  298. *PrintableOrigin: PAIR(88, 244)
  299. }
  300. }
  301. *Command: CmdSelect
  302. {
  303. *Order: DOC_SETUP.4
  304. *Cmd: "<1B>(c<04000000>Q<0D>"
  305. }
  306. }
  307. *Option: LETTER
  308. {
  309. *rcNameID: =LETTER_DISPLAY
  310. *PrintableArea: PAIR(5760, 7198)
  311. *PrintableOrigin: PAIR(86, 242)
  312. *switch: Resolution
  313. {
  314. *case: Option2
  315. {
  316. *% Warning: the following printable length is adjusted (7198->7196) so it is divisible by the resolution Y scale.
  317. *PrintableArea: PAIR(5760, 7196)
  318. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  319. *PrintableOrigin: PAIR(86, 244)
  320. }
  321. *case: Option3
  322. {
  323. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  324. *% Warning: the following printable length is adjusted (7198->7196) so it is divisible by the resolution Y scale.
  325. *PrintableArea: PAIR(5756, 7196)
  326. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  327. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  328. *PrintableOrigin: PAIR(88, 244)
  329. }
  330. }
  331. *Command: CmdSelect
  332. {
  333. *Order: DOC_SETUP.4
  334. *Cmd: "<1B>(c<04000000890E>"
  335. }
  336. }
  337. *Option: JAPANESE_POSTCARD
  338. {
  339. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  340. *PrintableArea: PAIR(2665, 3476)
  341. *PrintableOrigin: PAIR(86, 242)
  342. *switch: Resolution
  343. {
  344. *case: Option1
  345. {
  346. *% Warning: the following printable width is adjusted (2665->2664) so it is divisible by the resolution X scale.
  347. *PrintableArea: PAIR(2664, 3476)
  348. }
  349. *case: Option2
  350. {
  351. *% Warning: the following printable width is adjusted (2665->2664) so it is divisible by the resolution X scale.
  352. *% Warning: the following printable length is adjusted (3476->3472) so it is divisible by the resolution Y scale.
  353. *PrintableArea: PAIR(2664, 3472)
  354. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  355. *PrintableOrigin: PAIR(86, 244)
  356. }
  357. *case: Option3
  358. {
  359. *% Warning: the following printable width is adjusted (2665->2660) so it is divisible by the resolution X scale.
  360. *% Warning: the following printable length is adjusted (3476->3472) so it is divisible by the resolution Y scale.
  361. *PrintableArea: PAIR(2660, 3472)
  362. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  363. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  364. *PrintableOrigin: PAIR(88, 244)
  365. }
  366. }
  367. *Command: CmdSelect
  368. {
  369. *Order: DOC_SETUP.4
  370. *Cmd: "<1B>(c<04000000>Q<07>"
  371. }
  372. }
  373. *Option: DBL_JAPANESE_POSTCARD_ROTATED
  374. {
  375. *rcNameID: =DBL_JAPANESE_POSTCARD_ROTATED_DISPLAY
  376. *PrintableArea: PAIR(4026, 4944)
  377. *PrintableOrigin: PAIR(86, 242)
  378. *switch: Resolution
  379. {
  380. *case: Option2
  381. {
  382. *% Warning: the following printable length is adjusted (4944->4940) so it is divisible by the resolution Y scale.
  383. *PrintableArea: PAIR(4026, 4940)
  384. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  385. *PrintableOrigin: PAIR(86, 244)
  386. }
  387. *case: Option3
  388. {
  389. *% Warning: the following printable width is adjusted (4026->4024) so it is divisible by the resolution X scale.
  390. *% Warning: the following printable length is adjusted (4944->4940) so it is divisible by the resolution Y scale.
  391. *PrintableArea: PAIR(4024, 4940)
  392. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  393. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  394. *PrintableOrigin: PAIR(88, 244)
  395. }
  396. }
  397. *Command: CmdSelect
  398. {
  399. *Order: DOC_SETUP.4
  400. *Cmd: "<1B>(R<080000>REMOTE1SC<020000021B0000001B>(c<04000000>Q<07>"
  401. }
  402. }
  403. *Option: JAPANESE_POSTCARD_ROTATED
  404. {
  405. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  406. *PrintableArea: PAIR(4026, 2115)
  407. *PrintableOrigin: PAIR(86, 242)
  408. *switch: Resolution
  409. {
  410. *case: Option1
  411. {
  412. *% Warning: the following printable length is adjusted (2115->2114) so it is divisible by the resolution Y scale.
  413. *PrintableArea: PAIR(4026, 2114)
  414. }
  415. *case: Option2
  416. {
  417. *% Warning: the following printable length is adjusted (2115->2112) so it is divisible by the resolution Y scale.
  418. *PrintableArea: PAIR(4026, 2112)
  419. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  420. *PrintableOrigin: PAIR(86, 244)
  421. }
  422. *case: Option3
  423. {
  424. *% Warning: the following printable width is adjusted (4026->4024) so it is divisible by the resolution X scale.
  425. *% Warning: the following printable length is adjusted (2115->2112) so it is divisible by the resolution Y scale.
  426. *PrintableArea: PAIR(4024, 2112)
  427. *% Warning: the following printable origin X is adjusted (86->88) so it is divisible by the resolution X scale.
  428. *% Warning: the following printable origin Y is adjusted (242->244) so it is divisible by the resolution Y scale.
  429. *PrintableOrigin: PAIR(88, 244)
  430. }
  431. }
  432. *Command: CmdSelect
  433. {
  434. *Order: DOC_SETUP.4
  435. *Cmd: "<1B>(c<040000009904>"
  436. }
  437. }
  438. }
  439. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A4)
  440. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A5)
  441. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A5_ROTATED)
  442. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A6)
  443. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A6_ROTATED)
  444. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B5)
  445. *InvalidCombination: LIST(InputBin.Option3, PaperSize.LETTER)
  446. *Feature: PrintQuality
  447. {
  448. *rcNameID: =TEXT_QUALITY_DISPLAY
  449. *DefaultOption: Option1
  450. *Option: Option1
  451. {
  452. *rcNameID: 294
  453. }
  454. *Option: Option2
  455. {
  456. *rcNameID: 295
  457. *Command: CmdSelect
  458. {
  459. *Order: DOC_SETUP.2
  460. *Cmd: "<1B>U<00>"
  461. }
  462. }
  463. *Option: Option3
  464. {
  465. *rcNameID: 296
  466. *Command: CmdSelect
  467. {
  468. *Order: DOC_SETUP.2
  469. *Cmd: "<1B>U<01>"
  470. }
  471. }
  472. }
  473. *Feature: Halftone
  474. {
  475. *rcNameID: =HALFTONING_DISPLAY
  476. *DefaultOption: HT_PATSIZE_AUTO
  477. *Option: HT_PATSIZE_AUTO
  478. {
  479. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  480. }
  481. *Option: HT_PATSIZE_SUPERCELL_M
  482. {
  483. *rcNameID: =HT_SUPERCELL_DISPLAY
  484. }
  485. *Option: HT_PATSIZE_6x6_M
  486. {
  487. *rcNameID: =HT_DITHER6X6_DISPLAY
  488. }
  489. *Option: HT_PATSIZE_8x8_M
  490. {
  491. *rcNameID: =HT_DITHER8X8_DISPLAY
  492. }
  493. }
  494. *Command: CmdStartDoc
  495. {
  496. *Order: DOC_SETUP.1
  497. *Cmd: "<1B>@<1B>(G<0100011B>(U<01000A1B>U<011B>r<00>"
  498. }
  499. *Command: CmdEndJob
  500. {
  501. *Order: JOB_FINISH.1
  502. *Cmd: "<1B>@"
  503. }
  504. *RotateCoordinate?: FALSE
  505. *RotateRaster?: FALSE
  506. *RotateFont?: FALSE
  507. *TextCaps: LIST(TC_RA_ABLE)
  508. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  509. *MaxLineSpacing: 255
  510. *XMoveThreshold: 0
  511. *YMoveThreshold: 0
  512. *XMoveUnit: 360
  513. *YMoveUnit: 360
  514. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 2) } }
  515. *Command: CmdYMoveAbsolute { *Cmd : "<1B>(V<0200>" %l{(DestY / 2) } }
  516. *Command: CmdYMoveRelDown { *Cmd : "<1B>(v<0200>" %l{(DestYRel / 2) } }
  517. *Command: CmdSetLineSpacing { *Cmd : "<1B>+" %c[0,255]{(LinefeedSpacing / 2) } }
  518. *Command: CmdCR { *Cmd : "<0D>" }
  519. *Command: CmdLF { *Cmd : "<0A>" }
  520. *Command: CmdFF { *Cmd : "<0C>" }
  521. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  522. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  523. *EjectPageWithFF?: TRUE
  524. *Command: CmdEnableTIFF4 { *Cmd : "" }
  525. *OutputDataFormat: H_BYTE
  526. *OptimizeLeftBound?: FALSE
  527. *CursorXAfterSendBlockData: AT_GRXDATA_END
  528. *CursorYAfterSendBlockData: AUTO_INCREMENT
  529. *DefaultCTT: -1