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.

652 lines
21 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "EPVP300J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "EPSON VP-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. *Option: Option2
  41. {
  42. *rcNameID: 266
  43. }
  44. }
  45. *Feature: Resolution
  46. {
  47. *rcNameID: =RESOLUTION_DISPLAY
  48. *DefaultOption: Option1
  49. *Option: Option1
  50. {
  51. *Name: "180 x 180 dots per inch"
  52. *DPI: PAIR(180, 180)
  53. *TextDPI: PAIR(180, 180)
  54. *PinsPerLogPass: 24
  55. *PinsPerPhysPass: 24
  56. *MinStripBlankPixels: 360
  57. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  58. *SpotDiameter: 140
  59. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  60. }
  61. *Option: Option2
  62. {
  63. *Name: "120 x 180 dots per inch"
  64. *DPI: PAIR(120, 180)
  65. *TextDPI: PAIR(120, 180)
  66. *PinsPerLogPass: 24
  67. *PinsPerPhysPass: 24
  68. *MinStripBlankPixels: 240
  69. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  70. *SpotDiameter: 120
  71. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  72. }
  73. }
  74. *Feature: PaperSize
  75. {
  76. *rcNameID: =PAPER_SIZE_DISPLAY
  77. *DefaultOption: A4
  78. *Option: A4
  79. {
  80. *rcNameID: =A4_DISPLAY
  81. *Command: CmdSelect
  82. {
  83. *Order: DOC_SETUP.8
  84. *Cmd: "<1B>C<000C>"
  85. }
  86. *switch: InputBin
  87. {
  88. *case: MANUAL
  89. {
  90. *PrintableArea: PAIR(2880, 3875)
  91. *PrintableOrigin: PAIR(42, 120)
  92. *switch: Resolution
  93. {
  94. *case: Option1
  95. {
  96. *% Warning: the following printable length is adjusted (3875->3874) so it is divisible by the resolution Y scale.
  97. *PrintableArea: PAIR(2880, 3874)
  98. }
  99. *case: Option2
  100. {
  101. *% Warning: the following printable length is adjusted (3875->3874) so it is divisible by the resolution Y scale.
  102. *PrintableArea: PAIR(2880, 3874)
  103. }
  104. }
  105. }
  106. *case: Option2
  107. {
  108. *PrintableArea: PAIR(2880, 3896)
  109. *PrintableOrigin: PAIR(42, 120)
  110. }
  111. }
  112. }
  113. *Option: A5
  114. {
  115. *rcNameID: =A5_DISPLAY
  116. *Command: CmdSelect
  117. {
  118. *Order: DOC_SETUP.8
  119. *Cmd: "<1B>C<0008>"
  120. }
  121. *switch: InputBin
  122. {
  123. *case: MANUAL
  124. {
  125. *PrintableArea: PAIR(2015, 2644)
  126. *PrintableOrigin: PAIR(42, 120)
  127. *switch: Resolution
  128. {
  129. *case: Option1
  130. {
  131. *% Warning: the following printable width is adjusted (2015->2014) so it is divisible by the resolution X scale.
  132. *PrintableArea: PAIR(2014, 2644)
  133. }
  134. *case: Option2
  135. {
  136. *% Warning: the following printable width is adjusted (2015->2013) so it is divisible by the resolution X scale.
  137. *PrintableArea: PAIR(2013, 2644)
  138. }
  139. }
  140. }
  141. *case: Option2
  142. {
  143. *PrintableArea: PAIR(2015, 2665)
  144. *PrintableOrigin: PAIR(42, 120)
  145. *switch: Resolution
  146. {
  147. *case: Option1
  148. {
  149. *% Warning: the following printable width is adjusted (2015->2014) so it is divisible by the resolution X scale.
  150. *% Warning: the following printable length is adjusted (2665->2664) so it is divisible by the resolution Y scale.
  151. *PrintableArea: PAIR(2014, 2664)
  152. }
  153. *case: Option2
  154. {
  155. *% Warning: the following printable width is adjusted (2015->2013) so it is divisible by the resolution X scale.
  156. *% Warning: the following printable length is adjusted (2665->2664) so it is divisible by the resolution Y scale.
  157. *PrintableArea: PAIR(2013, 2664)
  158. }
  159. }
  160. }
  161. }
  162. }
  163. *Option: A5_ROTATED
  164. {
  165. *rcNameID: =A5_ROTATED_DISPLAY
  166. *Command: CmdSelect
  167. {
  168. *Order: DOC_SETUP.8
  169. *Cmd: "<1B>C<0006>"
  170. }
  171. *switch: InputBin
  172. {
  173. *case: MANUAL
  174. {
  175. *PrintableArea: PAIR(2880, 1766)
  176. *PrintableOrigin: PAIR(42, 120)
  177. }
  178. *case: Option2
  179. {
  180. *PrintableArea: PAIR(2880, 1787)
  181. *PrintableOrigin: PAIR(42, 120)
  182. *switch: Resolution
  183. {
  184. *case: Option1
  185. {
  186. *% Warning: the following printable length is adjusted (1787->1786) so it is divisible by the resolution Y scale.
  187. *PrintableArea: PAIR(2880, 1786)
  188. }
  189. *case: Option2
  190. {
  191. *% Warning: the following printable length is adjusted (1787->1786) so it is divisible by the resolution Y scale.
  192. *PrintableArea: PAIR(2880, 1786)
  193. }
  194. }
  195. }
  196. }
  197. }
  198. *Option: A6
  199. {
  200. *rcNameID: =A6_DISPLAY
  201. *Command: CmdSelect
  202. {
  203. *Order: DOC_SETUP.8
  204. *Cmd: "<1B>C<0006>"
  205. }
  206. *switch: InputBin
  207. {
  208. *case: MANUAL
  209. {
  210. *PrintableArea: PAIR(1403, 1766)
  211. *PrintableOrigin: PAIR(42, 120)
  212. *switch: Resolution
  213. {
  214. *case: Option1
  215. {
  216. *% Warning: the following printable width is adjusted (1403->1402) so it is divisible by the resolution X scale.
  217. *PrintableArea: PAIR(1402, 1766)
  218. }
  219. *case: Option2
  220. {
  221. *% Warning: the following printable width is adjusted (1403->1401) so it is divisible by the resolution X scale.
  222. *PrintableArea: PAIR(1401, 1766)
  223. }
  224. }
  225. }
  226. *case: Option2
  227. {
  228. *PrintableArea: PAIR(1403, 1787)
  229. *PrintableOrigin: PAIR(42, 120)
  230. *switch: Resolution
  231. {
  232. *case: Option1
  233. {
  234. *% Warning: the following printable width is adjusted (1403->1402) so it is divisible by the resolution X scale.
  235. *% Warning: the following printable length is adjusted (1787->1786) so it is divisible by the resolution Y scale.
  236. *PrintableArea: PAIR(1402, 1786)
  237. }
  238. *case: Option2
  239. {
  240. *% Warning: the following printable width is adjusted (1403->1401) so it is divisible by the resolution X scale.
  241. *% Warning: the following printable length is adjusted (1787->1786) so it is divisible by the resolution Y scale.
  242. *PrintableArea: PAIR(1401, 1786)
  243. }
  244. }
  245. }
  246. }
  247. }
  248. *Option: A6_ROTATED
  249. {
  250. *rcNameID: =A6_ROTATED_DISPLAY
  251. *Command: CmdSelect
  252. {
  253. *Order: DOC_SETUP.8
  254. *Cmd: "<1B>C<0004>"
  255. }
  256. *switch: InputBin
  257. {
  258. *case: MANUAL
  259. {
  260. *PrintableArea: PAIR(2015, 1154)
  261. *PrintableOrigin: PAIR(42, 120)
  262. *switch: Resolution
  263. {
  264. *case: Option1
  265. {
  266. *% Warning: the following printable width is adjusted (2015->2014) so it is divisible by the resolution X scale.
  267. *PrintableArea: PAIR(2014, 1154)
  268. }
  269. *case: Option2
  270. {
  271. *% Warning: the following printable width is adjusted (2015->2013) so it is divisible by the resolution X scale.
  272. *PrintableArea: PAIR(2013, 1154)
  273. }
  274. }
  275. }
  276. *case: Option2
  277. {
  278. *PrintableArea: PAIR(2015, 1175)
  279. *PrintableOrigin: PAIR(42, 120)
  280. *switch: Resolution
  281. {
  282. *case: Option1
  283. {
  284. *% Warning: the following printable width is adjusted (2015->2014) so it is divisible by the resolution X scale.
  285. *% Warning: the following printable length is adjusted (1175->1174) so it is divisible by the resolution Y scale.
  286. *PrintableArea: PAIR(2014, 1174)
  287. }
  288. *case: Option2
  289. {
  290. *% Warning: the following printable width is adjusted (2015->2013) so it is divisible by the resolution X scale.
  291. *% Warning: the following printable length is adjusted (1175->1174) so it is divisible by the resolution Y scale.
  292. *PrintableArea: PAIR(2013, 1174)
  293. }
  294. }
  295. }
  296. }
  297. }
  298. *Option: B5
  299. {
  300. *rcNameID: =B5_DISPLAY
  301. *Command: CmdSelect
  302. {
  303. *Order: DOC_SETUP.8
  304. *Cmd: "<1B>C<000A>"
  305. }
  306. *switch: InputBin
  307. {
  308. *case: MANUAL
  309. {
  310. *PrintableArea: PAIR(2497, 3310)
  311. *PrintableOrigin: PAIR(42, 120)
  312. *switch: Resolution
  313. {
  314. *case: Option1
  315. {
  316. *% Warning: the following printable width is adjusted (2497->2496) so it is divisible by the resolution X scale.
  317. *PrintableArea: PAIR(2496, 3310)
  318. }
  319. *case: Option2
  320. {
  321. *% Warning: the following printable width is adjusted (2497->2496) so it is divisible by the resolution X scale.
  322. *PrintableArea: PAIR(2496, 3310)
  323. }
  324. }
  325. }
  326. *case: Option2
  327. {
  328. *PrintableArea: PAIR(2497, 3331)
  329. *PrintableOrigin: PAIR(42, 120)
  330. *switch: Resolution
  331. {
  332. *case: Option1
  333. {
  334. *% Warning: the following printable width is adjusted (2497->2496) so it is divisible by the resolution X scale.
  335. *% Warning: the following printable length is adjusted (3331->3330) so it is divisible by the resolution Y scale.
  336. *PrintableArea: PAIR(2496, 3330)
  337. }
  338. *case: Option2
  339. {
  340. *% Warning: the following printable width is adjusted (2497->2496) so it is divisible by the resolution X scale.
  341. *% Warning: the following printable length is adjusted (3331->3330) so it is divisible by the resolution Y scale.
  342. *PrintableArea: PAIR(2496, 3330)
  343. }
  344. }
  345. }
  346. }
  347. }
  348. *Option: LETTER
  349. {
  350. *rcNameID: =LETTER_DISPLAY
  351. *Command: CmdSelect
  352. {
  353. *Order: DOC_SETUP.8
  354. *Cmd: "<1B>C<000B>"
  355. }
  356. *switch: InputBin
  357. {
  358. *case: MANUAL
  359. {
  360. *PrintableArea: PAIR(2880, 3627)
  361. *PrintableOrigin: PAIR(42, 120)
  362. *switch: Resolution
  363. {
  364. *case: Option1
  365. {
  366. *% Warning: the following printable length is adjusted (3627->3626) so it is divisible by the resolution Y scale.
  367. *PrintableArea: PAIR(2880, 3626)
  368. }
  369. *case: Option2
  370. {
  371. *% Warning: the following printable length is adjusted (3627->3626) so it is divisible by the resolution Y scale.
  372. *PrintableArea: PAIR(2880, 3626)
  373. }
  374. }
  375. }
  376. *case: Option2
  377. {
  378. *PrintableArea: PAIR(2880, 3648)
  379. *PrintableOrigin: PAIR(42, 120)
  380. }
  381. }
  382. }
  383. *Option: LEGAL
  384. {
  385. *rcNameID: =LEGAL_DISPLAY
  386. *Command: CmdSelect
  387. {
  388. *Order: DOC_SETUP.8
  389. *Cmd: "<1B>C<000E>"
  390. }
  391. *switch: InputBin
  392. {
  393. *case: MANUAL
  394. {
  395. *PrintableArea: PAIR(2880, 4707)
  396. *PrintableOrigin: PAIR(42, 120)
  397. *switch: Resolution
  398. {
  399. *case: Option1
  400. {
  401. *% Warning: the following printable length is adjusted (4707->4706) so it is divisible by the resolution Y scale.
  402. *PrintableArea: PAIR(2880, 4706)
  403. }
  404. *case: Option2
  405. {
  406. *% Warning: the following printable length is adjusted (4707->4706) so it is divisible by the resolution Y scale.
  407. *PrintableArea: PAIR(2880, 4706)
  408. }
  409. }
  410. }
  411. *case: Option2
  412. {
  413. *PrintableArea: PAIR(2880, 4728)
  414. *PrintableOrigin: PAIR(42, 120)
  415. }
  416. }
  417. }
  418. *Option: JAPANESE_POSTCARD
  419. {
  420. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  421. *Command: CmdSelect
  422. {
  423. *Order: DOC_SETUP.8
  424. *Cmd: "<1B>C<0006>"
  425. }
  426. *switch: InputBin
  427. {
  428. *case: MANUAL
  429. {
  430. *PrintableArea: PAIR(1334, 1766)
  431. *PrintableOrigin: PAIR(42, 120)
  432. *switch: Resolution
  433. {
  434. *case: Option2
  435. {
  436. *% Warning: the following printable width is adjusted (1334->1332) so it is divisible by the resolution X scale.
  437. *PrintableArea: PAIR(1332, 1766)
  438. }
  439. }
  440. }
  441. *case: Option2
  442. {
  443. *PrintableArea: PAIR(1334, 1787)
  444. *PrintableOrigin: PAIR(42, 120)
  445. *switch: Resolution
  446. {
  447. *case: Option1
  448. {
  449. *% Warning: the following printable length is adjusted (1787->1786) so it is divisible by the resolution Y scale.
  450. *PrintableArea: PAIR(1334, 1786)
  451. }
  452. *case: Option2
  453. {
  454. *% Warning: the following printable width is adjusted (1334->1332) so it is divisible by the resolution X scale.
  455. *% Warning: the following printable length is adjusted (1787->1786) so it is divisible by the resolution Y scale.
  456. *PrintableArea: PAIR(1332, 1786)
  457. }
  458. }
  459. }
  460. }
  461. }
  462. *Option: JAPANESE_POSTCARD_ROTATED
  463. {
  464. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  465. *Command: CmdSelect
  466. {
  467. *Order: DOC_SETUP.8
  468. *Cmd: "<1B>C<0004>"
  469. }
  470. *switch: InputBin
  471. {
  472. *case: MANUAL
  473. {
  474. *PrintableArea: PAIR(2015, 1085)
  475. *PrintableOrigin: PAIR(42, 120)
  476. *switch: Resolution
  477. {
  478. *case: Option1
  479. {
  480. *% Warning: the following printable width is adjusted (2015->2014) so it is divisible by the resolution X scale.
  481. *% Warning: the following printable length is adjusted (1085->1084) so it is divisible by the resolution Y scale.
  482. *PrintableArea: PAIR(2014, 1084)
  483. }
  484. *case: Option2
  485. {
  486. *% Warning: the following printable width is adjusted (2015->2013) so it is divisible by the resolution X scale.
  487. *% Warning: the following printable length is adjusted (1085->1084) so it is divisible by the resolution Y scale.
  488. *PrintableArea: PAIR(2013, 1084)
  489. }
  490. }
  491. }
  492. *case: Option2
  493. {
  494. *PrintableArea: PAIR(2015, 1106)
  495. *PrintableOrigin: PAIR(42, 120)
  496. *switch: Resolution
  497. {
  498. *case: Option1
  499. {
  500. *% Warning: the following printable width is adjusted (2015->2014) so it is divisible by the resolution X scale.
  501. *PrintableArea: PAIR(2014, 1106)
  502. }
  503. *case: Option2
  504. {
  505. *% Warning: the following printable width is adjusted (2015->2013) so it is divisible by the resolution X scale.
  506. *PrintableArea: PAIR(2013, 1106)
  507. }
  508. }
  509. }
  510. }
  511. }
  512. *Option: CUSTOMSIZE
  513. {
  514. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  515. *MinSize: PAIR(360, 360)
  516. *MaxSize: PAIR(3600, 7920)
  517. *MaxPrintableWidth: 2880
  518. *MinLeftMargin: 0
  519. *CenterPrintable?: FALSE
  520. *switch: InputBin
  521. {
  522. *case: MANUAL
  523. {
  524. *TopMargin: 120
  525. *BottomMargin: 213
  526. }
  527. *case: Option2
  528. {
  529. *TopMargin: 120
  530. *BottomMargin: 192
  531. }
  532. }
  533. *Command: CmdSelect
  534. {
  535. *Order: DOC_SETUP.8
  536. *Cmd: "<1B>2<1B>C" %c[0,127]{(PhysPaperLength / 60) }
  537. }
  538. }
  539. }
  540. *Feature: PrintQuality
  541. {
  542. *rcNameID: =TEXT_QUALITY_DISPLAY
  543. *DefaultOption: LETTER_QUALITY
  544. *Option: LETTER_QUALITY
  545. {
  546. *rcNameID: =LETTER_QUALITY_DISPLAY
  547. *Command: CmdSelect
  548. {
  549. *Order: DOC_SETUP.6
  550. *Cmd: "<1B>x<011C>x<00>"
  551. }
  552. }
  553. *Option: DRAFT_QUALITY
  554. {
  555. *rcNameID: =DRAFT_QUALITY_DISPLAY
  556. *Command: CmdSelect
  557. {
  558. *Order: DOC_SETUP.6
  559. *Cmd: "<1B>x<001C>x<01>"
  560. }
  561. }
  562. }
  563. *Feature: Halftone
  564. {
  565. *rcNameID: =HALFTONING_DISPLAY
  566. *DefaultOption: HT_PATSIZE_AUTO
  567. *Option: HT_PATSIZE_AUTO
  568. {
  569. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  570. }
  571. *Option: HT_PATSIZE_SUPERCELL_M
  572. {
  573. *rcNameID: =HT_SUPERCELL_DISPLAY
  574. }
  575. *Option: HT_PATSIZE_6x6_M
  576. {
  577. *rcNameID: =HT_DITHER6X6_DISPLAY
  578. }
  579. *Option: HT_PATSIZE_8x8_M
  580. {
  581. *rcNameID: =HT_DITHER8X8_DISPLAY
  582. }
  583. }
  584. *Command: CmdStartDoc
  585. {
  586. *Order: DOC_SETUP.1
  587. *Cmd: "<1B>S<1B1B>S<1C1B>@<181B>t<011B>R<00>"
  588. }
  589. *Command: CmdStartPage
  590. {
  591. *Order: PAGE_SETUP.1
  592. *Cmd: "<0D>"
  593. }
  594. *Command: CmdEndJob
  595. {
  596. *Order: JOB_FINISH.1
  597. *Cmd: "<1B>S<1B1B>SK"
  598. }
  599. *RotateCoordinate?: FALSE
  600. *RotateRaster?: FALSE
  601. *RotateFont?: FALSE
  602. *switch: Orientation
  603. {
  604. *case: PORTRAIT
  605. {
  606. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_RA_ABLE)
  607. }
  608. *case: LANDSCAPE_CC270
  609. {
  610. *TextCaps: LIST(TC_RA_ABLE)
  611. }
  612. }
  613. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  614. *YMoveAttributes: LIST(SEND_CR_FIRST)
  615. *MaxLineSpacing: 255
  616. *XMoveThreshold: 0
  617. *YMoveThreshold: *
  618. *XMoveUnit: 60
  619. *YMoveUnit: 180
  620. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,815]{max_repeat((DestX / 6) )} }
  621. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  622. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  623. *Command: CmdCR { *Cmd : "<0D>" }
  624. *Command: CmdLF { *Cmd : "<0A>" }
  625. *Command: CmdFF { *Cmd : "<0C>" }
  626. *Command: CmdBackSpace { *Cmd : "<08>" }
  627. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  628. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  629. *EjectPageWithFF?: TRUE
  630. *OutputDataFormat: V_BYTE
  631. *OptimizeLeftBound?: FALSE
  632. *CursorXAfterSendBlockData: AT_GRXDATA_END
  633. *CursorYAfterSendBlockData: NO_MOVE
  634. *DefaultFont: 1
  635. *DefaultCTT: -1
  636. *switch: Orientation
  637. {
  638. *case: PORTRAIT
  639. {
  640. *DeviceFonts: LIST(1,5,6,7,8,9,10,11,12)
  641. }
  642. *case: LANDSCAPE_CC270
  643. {
  644. *DeviceFonts: LIST()
  645. }
  646. }
  647. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  648. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  649. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  650. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  651. *Command: CmdSelectSingleByteMode { *Cmd : "<1C0F>" }
  652. *Command: CmdSelectDoubleByteMode { *Cmd : "<1C12>" }