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.

531 lines
17 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "EPMJ51C.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "EPSON MJ-510"
  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: AUTO
  32. *Option: AUTO
  33. {
  34. *rcNameID: =AUTO_DISPLAY
  35. *Command: CmdSelect
  36. {
  37. *Order: DOC_SETUP.3
  38. *Cmd: "<1B19>0"
  39. }
  40. }
  41. *Option: MANUAL
  42. {
  43. *rcNameID: =MANUAL_FEED_DISPLAY
  44. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  45. *Command: CmdSelect
  46. {
  47. *Order: DOC_SETUP.3
  48. *Cmd: "<1B19>0"
  49. }
  50. }
  51. }
  52. *Feature: Resolution
  53. {
  54. *rcNameID: =RESOLUTION_DISPLAY
  55. *DefaultOption: Option1
  56. *Option: Option1
  57. {
  58. *Name: "360 x 360 dots per inch"
  59. *DPI: PAIR(360, 360)
  60. *TextDPI: PAIR(360, 360)
  61. *PinsPerLogPass: 24
  62. *MinStripBlankPixels: 1
  63. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  64. *SpotDiameter: 170
  65. *Command: CmdSendBlockData { *Cmd : "<1B>.<010A0A18>" %l{(RasterDataWidthInBytes * 8) } }
  66. *Command: CmdEndBlockData { *Cmd : "<0D>" }
  67. }
  68. *Option: Option2
  69. {
  70. *Name: "360 x 180 dots per inch"
  71. *DPI: PAIR(360, 180)
  72. *TextDPI: PAIR(360, 180)
  73. *PinsPerLogPass: 24
  74. *MinStripBlankPixels: 1
  75. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  76. *SpotDiameter: 140
  77. *Command: CmdSendBlockData { *Cmd : "<1B>.<01140A18>" %l{(RasterDataWidthInBytes * 8) } }
  78. *Command: CmdEndBlockData { *Cmd : "<0D>" }
  79. }
  80. *Option: Option3
  81. {
  82. *Name: "180 x 180 dots per inch"
  83. *DPI: PAIR(180, 180)
  84. *TextDPI: PAIR(180, 180)
  85. *PinsPerLogPass: 24
  86. *MinStripBlankPixels: 1
  87. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  88. *SpotDiameter: 120
  89. *Command: CmdSendBlockData { *Cmd : "<1B>.<01141418>" %l{(RasterDataWidthInBytes * 8) } }
  90. *Command: CmdEndBlockData { *Cmd : "<0D>" }
  91. }
  92. }
  93. *Feature: PaperSize
  94. {
  95. *rcNameID: =PAPER_SIZE_DISPLAY
  96. *DefaultOption: LETTER
  97. *Option: LETTER
  98. {
  99. *rcNameID: =LETTER_DISPLAY
  100. *PrintableArea: PAIR(5760, 7230)
  101. *PrintableOrigin: PAIR(90, 240)
  102. *switch: Resolution
  103. {
  104. *case: Option2
  105. {
  106. *% Warning: the following printable length is adjusted (7230->7228) so it is divisible by the resolution Y scale.
  107. *PrintableArea: PAIR(5760, 7228)
  108. }
  109. *case: Option3
  110. {
  111. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  112. *% Warning: the following printable length is adjusted (7230->7228) so it is divisible by the resolution Y scale.
  113. *PrintableArea: PAIR(5756, 7228)
  114. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  115. *PrintableOrigin: PAIR(92, 240)
  116. }
  117. }
  118. *Command: CmdSelect
  119. {
  120. *Order: DOC_SETUP.4
  121. *Cmd: "<1B>(C<0200>x<0F1B>(c<04000000>x<0F>"
  122. }
  123. }
  124. *Option: LEGAL
  125. {
  126. *rcNameID: =LEGAL_DISPLAY
  127. *PrintableArea: PAIR(5760, 9390)
  128. *PrintableOrigin: PAIR(90, 240)
  129. *switch: Resolution
  130. {
  131. *case: Option2
  132. {
  133. *% Warning: the following printable length is adjusted (9390->9388) so it is divisible by the resolution Y scale.
  134. *PrintableArea: PAIR(5760, 9388)
  135. }
  136. *case: Option3
  137. {
  138. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  139. *% Warning: the following printable length is adjusted (9390->9388) so it is divisible by the resolution Y scale.
  140. *PrintableArea: PAIR(5756, 9388)
  141. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  142. *PrintableOrigin: PAIR(92, 240)
  143. }
  144. }
  145. *Command: CmdSelect
  146. {
  147. *Order: DOC_SETUP.4
  148. *Cmd: "<1B>(C<0200B0131B>(c<04000000B013>"
  149. }
  150. }
  151. *Option: EXECUTIVE
  152. {
  153. *rcNameID: =EXECUTIVE_DISPLAY
  154. *PrintableArea: PAIR(5130, 6870)
  155. *PrintableOrigin: PAIR(90, 240)
  156. *switch: Resolution
  157. {
  158. *case: Option2
  159. {
  160. *% Warning: the following printable length is adjusted (6870->6868) so it is divisible by the resolution Y scale.
  161. *PrintableArea: PAIR(5130, 6868)
  162. }
  163. *case: Option3
  164. {
  165. *% Warning: the following printable width is adjusted (5130->5128) so it is divisible by the resolution X scale.
  166. *% Warning: the following printable length is adjusted (6870->6868) so it is divisible by the resolution Y scale.
  167. *PrintableArea: PAIR(5128, 6868)
  168. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  169. *PrintableOrigin: PAIR(92, 240)
  170. }
  171. }
  172. *Command: CmdSelect
  173. {
  174. *Order: DOC_SETUP.4
  175. *Cmd: "<1B>(C<0200C40E1B>(c<04000000C40E>"
  176. }
  177. }
  178. *Option: FOLIO
  179. {
  180. *rcNameID: =FOLIO_DISPLAY
  181. *PrintableArea: PAIR(5760, 8670)
  182. *PrintableOrigin: PAIR(90, 240)
  183. *switch: Resolution
  184. {
  185. *case: Option2
  186. {
  187. *% Warning: the following printable length is adjusted (8670->8668) so it is divisible by the resolution Y scale.
  188. *PrintableArea: PAIR(5760, 8668)
  189. }
  190. *case: Option3
  191. {
  192. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  193. *% Warning: the following printable length is adjusted (8670->8668) so it is divisible by the resolution Y scale.
  194. *PrintableArea: PAIR(5756, 8668)
  195. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  196. *PrintableOrigin: PAIR(92, 240)
  197. }
  198. }
  199. *Command: CmdSelect
  200. {
  201. *Order: DOC_SETUP.4
  202. *Cmd: "<1B>(C<0200>H<121B>(c<04000000>H<12>"
  203. }
  204. }
  205. *Option: A4
  206. {
  207. *rcNameID: =A4_DISPLAY
  208. *PrintableArea: PAIR(5760, 7727)
  209. *PrintableOrigin: PAIR(90, 240)
  210. *switch: Resolution
  211. {
  212. *case: Option1
  213. {
  214. *% Warning: the following printable length is adjusted (7727->7726) so it is divisible by the resolution Y scale.
  215. *PrintableArea: PAIR(5760, 7726)
  216. }
  217. *case: Option2
  218. {
  219. *% Warning: the following printable length is adjusted (7727->7724) so it is divisible by the resolution Y scale.
  220. *PrintableArea: PAIR(5760, 7724)
  221. }
  222. *case: Option3
  223. {
  224. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  225. *% Warning: the following printable length is adjusted (7727->7724) so it is divisible by the resolution Y scale.
  226. *PrintableArea: PAIR(5756, 7724)
  227. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  228. *PrintableOrigin: PAIR(92, 240)
  229. }
  230. }
  231. *Command: CmdSelect
  232. {
  233. *Order: DOC_SETUP.4
  234. *Cmd: "<1B>(C<0200>f<101B>(c<04000000>f<10>"
  235. }
  236. }
  237. *Option: A5
  238. {
  239. *rcNameID: =A5_DISPLAY
  240. *PrintableArea: PAIR(4108, 5264)
  241. *PrintableOrigin: PAIR(90, 240)
  242. *switch: Resolution
  243. {
  244. *case: Option3
  245. {
  246. *% Warning: the following printable width is adjusted (4108->4104) so it is divisible by the resolution X scale.
  247. *PrintableArea: PAIR(4104, 5264)
  248. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  249. *PrintableOrigin: PAIR(92, 240)
  250. }
  251. }
  252. *Command: CmdSelect
  253. {
  254. *Order: DOC_SETUP.4
  255. *Cmd: "<1B>(C<0200A10B1B>(c<04000000A10B>"
  256. }
  257. }
  258. *Option: B4
  259. {
  260. *rcNameID: =B4_DISPLAY
  261. *PrintableArea: PAIR(5760, 9628)
  262. *PrintableOrigin: PAIR(90, 240)
  263. *switch: Resolution
  264. {
  265. *case: Option3
  266. {
  267. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  268. *PrintableArea: PAIR(5756, 9628)
  269. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  270. *PrintableOrigin: PAIR(92, 240)
  271. }
  272. }
  273. *Command: CmdSelect
  274. {
  275. *Order: DOC_SETUP.4
  276. *Cmd: "<1B>(C<02009A131B>(c<040000009A13>"
  277. }
  278. }
  279. *Option: B5
  280. {
  281. *rcNameID: =B5_DISPLAY
  282. *PrintableArea: PAIR(5072, 6596)
  283. *PrintableOrigin: PAIR(90, 240)
  284. *switch: Resolution
  285. {
  286. *case: Option3
  287. {
  288. *% Warning: the following printable width is adjusted (5072->5068) so it is divisible by the resolution X scale.
  289. *PrintableArea: PAIR(5068, 6596)
  290. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  291. *PrintableOrigin: PAIR(92, 240)
  292. }
  293. }
  294. *Command: CmdSelect
  295. {
  296. *Order: DOC_SETUP.4
  297. *Cmd: "<1B>(C<0200>K<0E1B>(c<04000000>K<0E>"
  298. }
  299. }
  300. *Option: ENV_9
  301. {
  302. *rcNameID: =ENV_9_DISPLAY
  303. *RotateSize? : TRUE
  304. *PrintableArea: PAIR(5760, 2104)
  305. *PrintableOrigin: PAIR(90, 240)
  306. *switch: Resolution
  307. {
  308. *case: Option3
  309. {
  310. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  311. *PrintableArea: PAIR(5756, 2104)
  312. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  313. *PrintableOrigin: PAIR(92, 240)
  314. }
  315. }
  316. *Command: CmdSelect
  317. {
  318. *Order: DOC_SETUP.4
  319. *Cmd: "<1B>(C<0200>s<051B>(c<04000000>s<05>"
  320. }
  321. }
  322. *Option: ENV_10
  323. {
  324. *rcNameID: =ENV_10_DISPLAY
  325. *RotateSize? : TRUE
  326. *PrintableArea: PAIR(5760, 2284)
  327. *PrintableOrigin: PAIR(90, 240)
  328. *switch: Resolution
  329. {
  330. *case: Option3
  331. {
  332. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  333. *PrintableArea: PAIR(5756, 2284)
  334. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  335. *PrintableOrigin: PAIR(92, 240)
  336. }
  337. }
  338. *Command: CmdSelect
  339. {
  340. *Order: DOC_SETUP.4
  341. *Cmd: "<1B>(C<0200CF051B>(c<04000000CF05>"
  342. }
  343. }
  344. *Option: ENV_DL
  345. {
  346. *rcNameID: =ENV_DL_DISPLAY
  347. *RotateSize? : TRUE
  348. *PrintableArea: PAIR(5760, 2428)
  349. *PrintableOrigin: PAIR(90, 240)
  350. *switch: Resolution
  351. {
  352. *case: Option3
  353. {
  354. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  355. *PrintableArea: PAIR(5756, 2428)
  356. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  357. *PrintableOrigin: PAIR(92, 240)
  358. }
  359. }
  360. *Command: CmdSelect
  361. {
  362. *Order: DOC_SETUP.4
  363. *Cmd: "<1B>(C<020017061B>(c<040000001706>"
  364. }
  365. }
  366. *Option: ENV_C5
  367. {
  368. *rcNameID: =ENV_C5_DISPLAY
  369. *RotateSize? : TRUE
  370. *PrintableArea: PAIR(5760, 3904)
  371. *PrintableOrigin: PAIR(90, 240)
  372. *switch: Resolution
  373. {
  374. *case: Option3
  375. {
  376. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  377. *PrintableArea: PAIR(5756, 3904)
  378. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  379. *PrintableOrigin: PAIR(92, 240)
  380. }
  381. }
  382. *Command: CmdSelect
  383. {
  384. *Order: DOC_SETUP.4
  385. *Cmd: "<1B>(C<0200F9081B>(c<04000000F908>"
  386. }
  387. }
  388. *Option: ENV_B5
  389. {
  390. *rcNameID: =ENV_B5_DISPLAY
  391. *RotateSize? : TRUE
  392. *PrintableArea: PAIR(5760, 4300)
  393. *PrintableOrigin: PAIR(90, 240)
  394. *switch: Resolution
  395. {
  396. *case: Option3
  397. {
  398. *% Warning: the following printable width is adjusted (5760->5756) so it is divisible by the resolution X scale.
  399. *PrintableArea: PAIR(5756, 4300)
  400. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  401. *PrintableOrigin: PAIR(92, 240)
  402. }
  403. }
  404. *Command: CmdSelect
  405. {
  406. *Order: DOC_SETUP.4
  407. *Cmd: "<1B>(C<0200BE091B>(c<04000000BE09>"
  408. }
  409. }
  410. *Option: ENV_MONARCH
  411. {
  412. *rcNameID: =ENV_MONARCH_DISPLAY
  413. *RotateSize? : TRUE
  414. *PrintableArea: PAIR(5310, 2104)
  415. *PrintableOrigin: PAIR(90, 240)
  416. *switch: Resolution
  417. {
  418. *case: Option3
  419. {
  420. *% Warning: the following printable width is adjusted (5310->5308) so it is divisible by the resolution X scale.
  421. *PrintableArea: PAIR(5308, 2104)
  422. *% Warning: the following printable origin X is adjusted (90->92) so it is divisible by the resolution X scale.
  423. *PrintableOrigin: PAIR(92, 240)
  424. }
  425. }
  426. *Command: CmdSelect
  427. {
  428. *Order: DOC_SETUP.4
  429. *Cmd: "<1B>(C<02008C0A1B>(c<040000008C0A>"
  430. }
  431. }
  432. *Option: CUSTOMSIZE
  433. {
  434. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  435. *MinSize: PAIR(720, 720)
  436. *MaxSize: PAIR(8280, 15840)
  437. *MaxPrintableWidth: 5760
  438. *MinLeftMargin: 90
  439. *CenterPrintable?: FALSE
  440. *TopMargin: 240
  441. *BottomMargin: 450
  442. *Command: CmdSelect
  443. {
  444. *Order: DOC_SETUP.4
  445. *Cmd: "<1B>(C<0200>" %l{(PhysPaperLength / 2) }
  446. }
  447. }
  448. }
  449. *Feature: PrintQuality
  450. {
  451. *rcNameID: =TEXT_QUALITY_DISPLAY
  452. *DefaultOption: Option1
  453. *Option: Option1
  454. {
  455. *rcNameID: 294
  456. }
  457. *Option: Option2
  458. {
  459. *rcNameID: 295
  460. *Command: CmdSelect
  461. {
  462. *Order: DOC_SETUP.2
  463. *Cmd: "<1B>U<00>"
  464. }
  465. }
  466. *Option: Option3
  467. {
  468. *rcNameID: 296
  469. *Command: CmdSelect
  470. {
  471. *Order: DOC_SETUP.2
  472. *Cmd: "<1B>U<01>"
  473. }
  474. }
  475. }
  476. *Feature: Halftone
  477. {
  478. *rcNameID: =HALFTONING_DISPLAY
  479. *DefaultOption: HT_PATSIZE_AUTO
  480. *Option: HT_PATSIZE_AUTO
  481. {
  482. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  483. }
  484. *Option: HT_PATSIZE_SUPERCELL_M
  485. {
  486. *rcNameID: =HT_SUPERCELL_DISPLAY
  487. }
  488. *Option: HT_PATSIZE_6x6_M
  489. {
  490. *rcNameID: =HT_DITHER6X6_DISPLAY
  491. }
  492. *Option: HT_PATSIZE_8x8_M
  493. {
  494. *rcNameID: =HT_DITHER8X8_DISPLAY
  495. }
  496. }
  497. *Command: CmdStartDoc
  498. {
  499. *Order: DOC_SETUP.1
  500. *Cmd: "<1B>@<1B>(G<0100011B>(U<01000A1B>r<00>"
  501. }
  502. *Command: CmdEndJob
  503. {
  504. *Order: JOB_FINISH.1
  505. *Cmd: "<1B>@"
  506. }
  507. *RotateCoordinate?: FALSE
  508. *RotateRaster?: FALSE
  509. *RotateFont?: FALSE
  510. *TextCaps: LIST(TC_RA_ABLE)
  511. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  512. *YMoveAttributes: LIST(FAVOR_LF)
  513. *MaxLineSpacing: 255
  514. *XMoveThreshold: 0
  515. *YMoveThreshold: 0
  516. *XMoveUnit: 360
  517. *YMoveUnit: 360
  518. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 2) } }
  519. *Command: CmdYMoveAbsolute { *Cmd : "<1B>(V<0200>" %l{(DestY / 2) } }
  520. *Command: CmdSetLineSpacing { *Cmd : "<1B>+" %c[0,255]{(LinefeedSpacing / 2) } }
  521. *Command: CmdCR { *Cmd : "<0D>" }
  522. *Command: CmdLF { *Cmd : "<0A>" }
  523. *Command: CmdFF { *Cmd : "<0C>" }
  524. *EjectPageWithFF?: TRUE
  525. *Command: CmdEnableTIFF4 { *Cmd : "<0000>" }
  526. *Command: CmdDisableCompression { *Cmd : "<0000>" }
  527. *OutputDataFormat: H_BYTE
  528. *OptimizeLeftBound?: FALSE
  529. *CursorXAfterSendBlockData: AT_CURSOR_X_ORIGIN
  530. *CursorYAfterSendBlockData: NO_MOVE
  531. *DefaultCTT: 0