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.

510 lines
20 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "EPAP300J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "EPSON AP-300"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "epsnjres.dll"
  13. *PrinterType: SERIAL
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: MANUAL
  31. *Option: MANUAL
  32. {
  33. *rcNameID: =MANUAL_FEED_DISPLAY
  34. *Command: CmdSelect
  35. {
  36. *Order: DOC_SETUP.7
  37. *Cmd: "<1B>O"
  38. }
  39. }
  40. }
  41. *Feature: Resolution
  42. {
  43. *rcNameID: =RESOLUTION_DISPLAY
  44. *DefaultOption: Option3
  45. *Option: Option1
  46. {
  47. *Name: "360 x 360 dots per inch"
  48. *DPI: PAIR(360, 360)
  49. *TextDPI: PAIR(360, 360)
  50. *PinsPerLogPass: 48
  51. *PinsPerPhysPass: 48
  52. *MinStripBlankPixels: 720
  53. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  54. *SpotDiameter: 100
  55. *Command: CmdSendBlockData { *Cmd : "<1B>*I" %l{NumOfDataBytes / 6} }
  56. }
  57. *Option: Option2
  58. {
  59. *Name: "180 x 360 dots per inch"
  60. *DPI: PAIR(180, 360)
  61. *TextDPI: PAIR(180, 360)
  62. *PinsPerLogPass: 48
  63. *PinsPerPhysPass: 48
  64. *MinStripBlankPixels: 720
  65. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  66. *SpotDiameter: 100
  67. *Command: CmdSendBlockData { *Cmd : "<1B>*G" %l{NumOfDataBytes / 6} }
  68. }
  69. *Option: Option3
  70. {
  71. *Name: "180 x 180 dots per inch"
  72. *DPI: PAIR(180, 180)
  73. *TextDPI: PAIR(180, 180)
  74. *PinsPerLogPass: 24
  75. *PinsPerPhysPass: 24
  76. *MinStripBlankPixels: 360
  77. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  78. *SpotDiameter: 140
  79. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  80. }
  81. *Option: Option4
  82. {
  83. *Name: "120 x 180 dots per inch"
  84. *DPI: PAIR(120, 180)
  85. *TextDPI: PAIR(120, 180)
  86. *PinsPerLogPass: 24
  87. *PinsPerPhysPass: 24
  88. *MinStripBlankPixels: 240
  89. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  90. *SpotDiameter: 120
  91. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  92. }
  93. }
  94. *Feature: PaperSize
  95. {
  96. *rcNameID: =PAPER_SIZE_DISPLAY
  97. *DefaultOption: A4
  98. *Option: A4
  99. {
  100. *rcNameID: =A4_DISPLAY
  101. *PrintableArea: PAIR(2835, 3875)
  102. *PrintableOrigin: PAIR(71, 120)
  103. *switch: Resolution
  104. {
  105. *case: Option2
  106. {
  107. *% Warning: the following printable width is adjusted (2835->2834) so it is divisible by the resolution X scale.
  108. *PrintableArea: PAIR(2834, 3875)
  109. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  110. *PrintableOrigin: PAIR(72, 120)
  111. }
  112. *case: Option3
  113. {
  114. *% Warning: the following printable width is adjusted (2835->2834) so it is divisible by the resolution X scale.
  115. *% Warning: the following printable length is adjusted (3875->3874) so it is divisible by the resolution Y scale.
  116. *PrintableArea: PAIR(2834, 3874)
  117. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  118. *PrintableOrigin: PAIR(72, 120)
  119. }
  120. *case: Option4
  121. {
  122. *% Warning: the following printable width is adjusted (2835->2832) so it is divisible by the resolution X scale.
  123. *% Warning: the following printable length is adjusted (3875->3874) so it is divisible by the resolution Y scale.
  124. *PrintableArea: PAIR(2832, 3874)
  125. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  126. *PrintableOrigin: PAIR(72, 120)
  127. }
  128. }
  129. }
  130. *Option: A5
  131. {
  132. *rcNameID: =A5_DISPLAY
  133. *PrintableArea: PAIR(1957, 2644)
  134. *PrintableOrigin: PAIR(71, 120)
  135. *switch: Resolution
  136. {
  137. *case: Option2
  138. {
  139. *% Warning: the following printable width is adjusted (1957->1956) so it is divisible by the resolution X scale.
  140. *PrintableArea: PAIR(1956, 2644)
  141. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  142. *PrintableOrigin: PAIR(72, 120)
  143. }
  144. *case: Option3
  145. {
  146. *% Warning: the following printable width is adjusted (1957->1956) so it is divisible by the resolution X scale.
  147. *PrintableArea: PAIR(1956, 2644)
  148. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  149. *PrintableOrigin: PAIR(72, 120)
  150. }
  151. *case: Option4
  152. {
  153. *% Warning: the following printable width is adjusted (1957->1956) so it is divisible by the resolution X scale.
  154. *PrintableArea: PAIR(1956, 2644)
  155. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  156. *PrintableOrigin: PAIR(72, 120)
  157. }
  158. }
  159. }
  160. *Option: A5_ROTATED
  161. {
  162. *rcNameID: =A5_ROTATED_DISPLAY
  163. *PrintableArea: PAIR(2835, 1766)
  164. *PrintableOrigin: PAIR(71, 120)
  165. *switch: Resolution
  166. {
  167. *case: Option2
  168. {
  169. *% Warning: the following printable width is adjusted (2835->2834) so it is divisible by the resolution X scale.
  170. *PrintableArea: PAIR(2834, 1766)
  171. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  172. *PrintableOrigin: PAIR(72, 120)
  173. }
  174. *case: Option3
  175. {
  176. *% Warning: the following printable width is adjusted (2835->2834) so it is divisible by the resolution X scale.
  177. *PrintableArea: PAIR(2834, 1766)
  178. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  179. *PrintableOrigin: PAIR(72, 120)
  180. }
  181. *case: Option4
  182. {
  183. *% Warning: the following printable width is adjusted (2835->2832) so it is divisible by the resolution X scale.
  184. *PrintableArea: PAIR(2832, 1766)
  185. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  186. *PrintableOrigin: PAIR(72, 120)
  187. }
  188. }
  189. }
  190. *Option: A6
  191. {
  192. *rcNameID: =A6_DISPLAY
  193. *PrintableArea: PAIR(1345, 1766)
  194. *PrintableOrigin: PAIR(71, 120)
  195. *switch: Resolution
  196. {
  197. *case: Option2
  198. {
  199. *% Warning: the following printable width is adjusted (1345->1344) so it is divisible by the resolution X scale.
  200. *PrintableArea: PAIR(1344, 1766)
  201. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  202. *PrintableOrigin: PAIR(72, 120)
  203. }
  204. *case: Option3
  205. {
  206. *% Warning: the following printable width is adjusted (1345->1344) so it is divisible by the resolution X scale.
  207. *PrintableArea: PAIR(1344, 1766)
  208. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  209. *PrintableOrigin: PAIR(72, 120)
  210. }
  211. *case: Option4
  212. {
  213. *% Warning: the following printable width is adjusted (1345->1344) so it is divisible by the resolution X scale.
  214. *PrintableArea: PAIR(1344, 1766)
  215. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  216. *PrintableOrigin: PAIR(72, 120)
  217. }
  218. }
  219. }
  220. *Option: A6_ROTATED
  221. {
  222. *rcNameID: =A6_ROTATED_DISPLAY
  223. *PrintableArea: PAIR(1957, 1154)
  224. *PrintableOrigin: PAIR(71, 120)
  225. *switch: Resolution
  226. {
  227. *case: Option2
  228. {
  229. *% Warning: the following printable width is adjusted (1957->1956) so it is divisible by the resolution X scale.
  230. *PrintableArea: PAIR(1956, 1154)
  231. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  232. *PrintableOrigin: PAIR(72, 120)
  233. }
  234. *case: Option3
  235. {
  236. *% Warning: the following printable width is adjusted (1957->1956) so it is divisible by the resolution X scale.
  237. *PrintableArea: PAIR(1956, 1154)
  238. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  239. *PrintableOrigin: PAIR(72, 120)
  240. }
  241. *case: Option4
  242. {
  243. *% Warning: the following printable width is adjusted (1957->1956) so it is divisible by the resolution X scale.
  244. *PrintableArea: PAIR(1956, 1154)
  245. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  246. *PrintableOrigin: PAIR(72, 120)
  247. }
  248. }
  249. }
  250. *Option: B5
  251. {
  252. *rcNameID: =B5_DISPLAY
  253. *PrintableArea: PAIR(2439, 3310)
  254. *PrintableOrigin: PAIR(71, 120)
  255. *switch: Resolution
  256. {
  257. *case: Option2
  258. {
  259. *% Warning: the following printable width is adjusted (2439->2438) so it is divisible by the resolution X scale.
  260. *PrintableArea: PAIR(2438, 3310)
  261. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  262. *PrintableOrigin: PAIR(72, 120)
  263. }
  264. *case: Option3
  265. {
  266. *% Warning: the following printable width is adjusted (2439->2438) so it is divisible by the resolution X scale.
  267. *PrintableArea: PAIR(2438, 3310)
  268. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  269. *PrintableOrigin: PAIR(72, 120)
  270. }
  271. *case: Option4
  272. {
  273. *% Warning: the following printable width is adjusted (2439->2436) so it is divisible by the resolution X scale.
  274. *PrintableArea: PAIR(2436, 3310)
  275. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  276. *PrintableOrigin: PAIR(72, 120)
  277. }
  278. }
  279. }
  280. *Option: LETTER
  281. {
  282. *rcNameID: =LETTER_DISPLAY
  283. *PrintableArea: PAIR(2880, 3627)
  284. *PrintableOrigin: PAIR(71, 120)
  285. *switch: Resolution
  286. {
  287. *case: Option2
  288. {
  289. *% Warning: the following printable width is adjusted (2880->2878) so it is divisible by the resolution X scale.
  290. *PrintableArea: PAIR(2878, 3627)
  291. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  292. *PrintableOrigin: PAIR(72, 120)
  293. }
  294. *case: Option3
  295. {
  296. *% Warning: the following printable width is adjusted (2880->2878) so it is divisible by the resolution X scale.
  297. *% Warning: the following printable length is adjusted (3627->3626) so it is divisible by the resolution Y scale.
  298. *PrintableArea: PAIR(2878, 3626)
  299. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  300. *PrintableOrigin: PAIR(72, 120)
  301. }
  302. *case: Option4
  303. {
  304. *% Warning: the following printable width is adjusted (2880->2877) so it is divisible by the resolution X scale.
  305. *% Warning: the following printable length is adjusted (3627->3626) so it is divisible by the resolution Y scale.
  306. *PrintableArea: PAIR(2877, 3626)
  307. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  308. *PrintableOrigin: PAIR(72, 120)
  309. }
  310. }
  311. }
  312. *Option: LEGAL
  313. {
  314. *rcNameID: =LEGAL_DISPLAY
  315. *PrintableArea: PAIR(2880, 4707)
  316. *PrintableOrigin: PAIR(71, 120)
  317. *switch: Resolution
  318. {
  319. *case: Option2
  320. {
  321. *% Warning: the following printable width is adjusted (2880->2878) so it is divisible by the resolution X scale.
  322. *PrintableArea: PAIR(2878, 4707)
  323. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  324. *PrintableOrigin: PAIR(72, 120)
  325. }
  326. *case: Option3
  327. {
  328. *% Warning: the following printable width is adjusted (2880->2878) so it is divisible by the resolution X scale.
  329. *% Warning: the following printable length is adjusted (4707->4706) so it is divisible by the resolution Y scale.
  330. *PrintableArea: PAIR(2878, 4706)
  331. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  332. *PrintableOrigin: PAIR(72, 120)
  333. }
  334. *case: Option4
  335. {
  336. *% Warning: the following printable width is adjusted (2880->2877) so it is divisible by the resolution X scale.
  337. *% Warning: the following printable length is adjusted (4707->4706) so it is divisible by the resolution Y scale.
  338. *PrintableArea: PAIR(2877, 4706)
  339. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  340. *PrintableOrigin: PAIR(72, 120)
  341. }
  342. }
  343. }
  344. *Option: JAPANESE_POSTCARD
  345. {
  346. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  347. *PrintableArea: PAIR(1276, 1744)
  348. *PrintableOrigin: PAIR(71, 142)
  349. *switch: Resolution
  350. {
  351. *case: Option2
  352. {
  353. *% Warning: the following printable width is adjusted (1276->1274) so it is divisible by the resolution X scale.
  354. *PrintableArea: PAIR(1274, 1744)
  355. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  356. *PrintableOrigin: PAIR(72, 142)
  357. }
  358. *case: Option3
  359. {
  360. *% Warning: the following printable width is adjusted (1276->1274) so it is divisible by the resolution X scale.
  361. *PrintableArea: PAIR(1274, 1744)
  362. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  363. *PrintableOrigin: PAIR(72, 142)
  364. }
  365. *case: Option4
  366. {
  367. *% Warning: the following printable width is adjusted (1276->1275) so it is divisible by the resolution X scale.
  368. *PrintableArea: PAIR(1275, 1744)
  369. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  370. *PrintableOrigin: PAIR(72, 142)
  371. }
  372. }
  373. }
  374. *Option: JAPANESE_POSTCARD_ROTATED
  375. {
  376. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  377. *PrintableArea: PAIR(1957, 1063)
  378. *PrintableOrigin: PAIR(71, 142)
  379. *switch: Resolution
  380. {
  381. *case: Option2
  382. {
  383. *% Warning: the following printable width is adjusted (1957->1956) so it is divisible by the resolution X scale.
  384. *PrintableArea: PAIR(1956, 1063)
  385. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  386. *PrintableOrigin: PAIR(72, 142)
  387. }
  388. *case: Option3
  389. {
  390. *% Warning: the following printable width is adjusted (1957->1956) so it is divisible by the resolution X scale.
  391. *% Warning: the following printable length is adjusted (1063->1062) so it is divisible by the resolution Y scale.
  392. *PrintableArea: PAIR(1956, 1062)
  393. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  394. *PrintableOrigin: PAIR(72, 142)
  395. }
  396. *case: Option4
  397. {
  398. *% Warning: the following printable width is adjusted (1957->1956) so it is divisible by the resolution X scale.
  399. *% Warning: the following printable length is adjusted (1063->1062) so it is divisible by the resolution Y scale.
  400. *PrintableArea: PAIR(1956, 1062)
  401. *% Warning: the following printable origin X is adjusted (71->72) so it is divisible by the resolution X scale.
  402. *PrintableOrigin: PAIR(72, 142)
  403. }
  404. }
  405. }
  406. *Option: CUSTOMSIZE
  407. {
  408. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  409. *MinSize: PAIR(360, 360)
  410. *MaxSize: PAIR(3600, 7920)
  411. *MaxPrintableWidth: 2880
  412. *MinLeftMargin: 0
  413. *CenterPrintable?: FALSE
  414. *TopMargin: 120
  415. *BottomMargin: 213
  416. *Command: CmdSelect
  417. {
  418. *Order: DOC_SETUP.8
  419. *Cmd: "<1B>2<1B>C" %c[0,127]{(PhysPaperLength / 60) }
  420. }
  421. }
  422. }
  423. *InvalidCombination: LIST(InputBin.MANUAL, PaperSize.JAPANESE_POSTCARD)
  424. *Feature: Halftone
  425. {
  426. *rcNameID: =HALFTONING_DISPLAY
  427. *DefaultOption: HT_PATSIZE_AUTO
  428. *Option: HT_PATSIZE_AUTO
  429. {
  430. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  431. }
  432. *Option: HT_PATSIZE_SUPERCELL_M
  433. {
  434. *rcNameID: =HT_SUPERCELL_DISPLAY
  435. }
  436. *Option: HT_PATSIZE_6x6_M
  437. {
  438. *rcNameID: =HT_DITHER6X6_DISPLAY
  439. }
  440. *Option: HT_PATSIZE_8x8_M
  441. {
  442. *rcNameID: =HT_DITHER8X8_DISPLAY
  443. }
  444. }
  445. *Command: CmdStartDoc
  446. {
  447. *Order: DOC_SETUP.1
  448. *Cmd: "<1B>S<1B1B>S<1C1B>@<181B>t<011B>R<00>"
  449. }
  450. *Command: CmdStartPage
  451. {
  452. *Order: PAGE_SETUP.1
  453. *Cmd: "<0D>"
  454. }
  455. *Command: CmdEndJob
  456. {
  457. *Order: JOB_FINISH.1
  458. *Cmd: "<1B>S<1B1B>SK"
  459. }
  460. *RotateCoordinate?: FALSE
  461. *RotateRaster?: FALSE
  462. *RotateFont?: FALSE
  463. *switch: Orientation
  464. {
  465. *case: PORTRAIT
  466. {
  467. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_RA_ABLE)
  468. }
  469. *case: LANDSCAPE_CC270
  470. {
  471. *TextCaps: LIST(TC_RA_ABLE)
  472. }
  473. }
  474. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  475. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  476. *MaxLineSpacing: 255
  477. *XMoveThreshold: 0
  478. *XMoveUnit: 60
  479. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,815]{max_repeat((DestX / 6) )} }
  480. *Command: CmdSetLineSpacing { *Cmd : "<1B>+" %c[0,255]{LinefeedSpacing } }
  481. *Command: CmdCR { *Cmd : "<0D>" }
  482. *Command: CmdLF { *Cmd : "<0A>" }
  483. *Command: CmdFF { *Cmd : "<0C>" }
  484. *Command: CmdBackSpace { *Cmd : "<08>" }
  485. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  486. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  487. *EjectPageWithFF?: TRUE
  488. *OutputDataFormat: V_BYTE
  489. *OptimizeLeftBound?: FALSE
  490. *CursorXAfterSendBlockData: AT_GRXDATA_END
  491. *CursorYAfterSendBlockData: NO_MOVE
  492. *DefaultFont: 1
  493. *DefaultCTT: -1
  494. *switch: Orientation
  495. {
  496. *case: PORTRAIT
  497. {
  498. *DeviceFonts: LIST(1,5,6,7,8,9,10,11,12)
  499. }
  500. *case: LANDSCAPE_CC270
  501. {
  502. *DeviceFonts: LIST()
  503. }
  504. }
  505. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  506. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  507. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  508. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  509. *Command: CmdSelectSingleByteMode { *Cmd : "<1C0F>" }
  510. *Command: CmdSelectDoubleByteMode { *Cmd : "<1C12>" }