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.

1082 lines
39 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *Include: "StdNames.gpd"
  7. *GPDFileVersion: "1.0"
  8. *GPDFileName: "star54PC.gpd"
  9. *CodePage: 1252
  10. *ModelName: "Star AR-5400+"
  11. *MasterUnits: PAIR(720, 720)
  12. *ResourceDLL: "st24cres.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: Option1
  32. {
  33. *rcNameID: 270
  34. *OptionID: 270
  35. }
  36. *Option: MANUAL
  37. {
  38. *rcNameID: =MANUAL_FEED_DISPLAY
  39. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  40. *Command: CmdSelect
  41. {
  42. *Order: DOC_SETUP.3
  43. *Cmd: "<1B1900>"
  44. }
  45. }
  46. }
  47. *Feature: Resolution
  48. {
  49. *rcNameID: =RESOLUTION_DISPLAY
  50. *DefaultOption: Option2
  51. *Option: Option1
  52. {
  53. *Name: "360 x 180 " =DOTS_PER_INCH
  54. *DPI: PAIR(360, 180)
  55. *TextDPI: PAIR(360, 180)
  56. *PinsPerLogPass: 24
  57. *PinsPerPhysPass: 24
  58. *MinStripBlankPixels: 180
  59. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  60. *% Warning: this resolution has RES_BO_NO_ADJACENT set in GPC, which is ignored by GPD. Custom code is needed.
  61. *SpotDiameter: 170
  62. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  63. }
  64. *Option: Option2
  65. {
  66. *Name: "180 x 180 " =DOTS_PER_INCH
  67. *DPI: PAIR(180, 180)
  68. *TextDPI: PAIR(180, 180)
  69. *PinsPerLogPass: 24
  70. *PinsPerPhysPass: 24
  71. *MinStripBlankPixels: 90
  72. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  73. *SpotDiameter: 170
  74. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  75. }
  76. *Option: Option3
  77. {
  78. *Name: "120 x 180 " =DOTS_PER_INCH
  79. *DPI: PAIR(120, 180)
  80. *TextDPI: PAIR(120, 180)
  81. *PinsPerLogPass: 24
  82. *PinsPerPhysPass: 24
  83. *MinStripBlankPixels: 60
  84. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  85. *SpotDiameter: 170
  86. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  87. }
  88. }
  89. *Feature: PaperSize
  90. {
  91. *rcNameID: =PAPER_SIZE_DISPLAY
  92. *DefaultOption: A4
  93. *Option: LETTER
  94. {
  95. *rcNameID: =LETTER_DISPLAY
  96. *Command: CmdSelect
  97. {
  98. *Order: DOC_SETUP.4
  99. *Cmd: "<1B>2<1B>CB"
  100. }
  101. *switch: InputBin
  102. {
  103. *case: Option1
  104. {
  105. *PrintableArea: PAIR(5880, 7920)
  106. *PrintableOrigin: PAIR(120, 0)
  107. }
  108. *case: MANUAL
  109. {
  110. *PrintableArea: PAIR(5880, 7620)
  111. *PrintableOrigin: PAIR(120, 120)
  112. }
  113. }
  114. }
  115. *% "Letter Transverse 11 x 8.5 in"
  116. *Option: Option2
  117. {
  118. *rcNameID: 258
  119. *OptionID: 258
  120. *PageDimensions: PAIR(7920, 6120)
  121. *Command: CmdSelect
  122. {
  123. *Order: DOC_SETUP.4
  124. *Cmd: "<1B>2<1B>C3"
  125. }
  126. *switch: InputBin
  127. {
  128. *case: Option1
  129. {
  130. *PrintableArea: PAIR(7680, 6120)
  131. *PrintableOrigin: PAIR(120, 0)
  132. }
  133. *case: MANUAL
  134. {
  135. *PrintableArea: PAIR(7680, 5780)
  136. *PrintableOrigin: PAIR(120, 120)
  137. }
  138. }
  139. }
  140. *Option: A4
  141. {
  142. *rcNameID: =A4_DISPLAY
  143. *Command: CmdSelect
  144. {
  145. *Order: DOC_SETUP.4
  146. *Cmd: "<1B>2<1B>CF"
  147. }
  148. *switch: InputBin
  149. {
  150. *case: Option1
  151. {
  152. *PrintableArea: PAIR(5714, 8417)
  153. *PrintableOrigin: PAIR(120, 0)
  154. *switch: Resolution
  155. {
  156. *case: Option1
  157. {
  158. *% Warning: the following printable length is adjusted (8417->8416) so it is divisible by the resolution Y scale.
  159. *PrintableArea: PAIR(5714, 8416)
  160. }
  161. *case: Option2
  162. {
  163. *% Warning: the following printable width is adjusted (5714->5712) so it is divisible by the resolution X scale.
  164. *% Warning: the following printable length is adjusted (8417->8416) so it is divisible by the resolution Y scale.
  165. *PrintableArea: PAIR(5712, 8416)
  166. }
  167. *case: Option3
  168. {
  169. *% Warning: the following printable width is adjusted (5714->5712) so it is divisible by the resolution X scale.
  170. *% Warning: the following printable length is adjusted (8417->8416) so it is divisible by the resolution Y scale.
  171. *PrintableArea: PAIR(5712, 8416)
  172. }
  173. }
  174. }
  175. *case: MANUAL
  176. {
  177. *PrintableArea: PAIR(5714, 8077)
  178. *PrintableOrigin: PAIR(120, 120)
  179. *switch: Resolution
  180. {
  181. *case: Option1
  182. {
  183. *% Warning: the following printable length is adjusted (7937->7936) so it is divisible by the resolution Y scale.
  184. *PrintableArea: PAIR(5714, 8076)
  185. }
  186. *case: Option2
  187. {
  188. *% Warning: the following printable width is adjusted (5714->5712) so it is divisible by the resolution X scale.
  189. *% Warning: the following printable length is adjusted (7937->7936) so it is divisible by the resolution Y scale.
  190. *PrintableArea: PAIR(5712, 8076)
  191. }
  192. *case: Option3
  193. {
  194. *% Warning: the following printable width is adjusted (5714->5712) so it is divisible by the resolution X scale.
  195. *% Warning: the following printable length is adjusted (7937->7936) so it is divisible by the resolution Y scale.
  196. *PrintableArea: PAIR(5712, 8076)
  197. }
  198. }
  199. }
  200. }
  201. }
  202. *% "A4 Transverse 297 x 210 mm"
  203. *Option: Option4
  204. {
  205. *rcNameID: 261
  206. *OptionID: 261
  207. *PageDimensions: PAIR(8417, 5954)
  208. *Command: CmdSelect
  209. {
  210. *Order: DOC_SETUP.4
  211. *Cmd: "<1B>2<1B>C2"
  212. }
  213. *switch: InputBin
  214. {
  215. *case: Option1
  216. {
  217. *PrintableArea: PAIR(8177, 5954)
  218. *PrintableOrigin: PAIR(120, 0)
  219. *switch: Resolution
  220. {
  221. *case: Option1
  222. {
  223. *% Warning: the following printable width is adjusted (8177->8176) so it is divisible by the resolution X scale.
  224. *% Warning: the following printable length is adjusted (5954->5952) so it is divisible by the resolution Y scale.
  225. *PrintableArea: PAIR(8176, 5952)
  226. }
  227. *case: Option2
  228. {
  229. *% Warning: the following printable width is adjusted (8177->8176) so it is divisible by the resolution X scale.
  230. *% Warning: the following printable length is adjusted (5954->5952) so it is divisible by the resolution Y scale.
  231. *PrintableArea: PAIR(8176, 5952)
  232. }
  233. *case: Option3
  234. {
  235. *% Warning: the following printable width is adjusted (8177->8172) so it is divisible by the resolution X scale.
  236. *% Warning: the following printable length is adjusted (5954->5952) so it is divisible by the resolution Y scale.
  237. *PrintableArea: PAIR(8172, 5952)
  238. }
  239. }
  240. }
  241. *case: MANUAL
  242. {
  243. *PrintableArea: PAIR(7920, 5714)
  244. *PrintableOrigin: PAIR(120, 120)
  245. *switch: Resolution
  246. {
  247. *case: Option1
  248. {
  249. *% Warning: the following printable width is adjusted (8177->8176) so it is divisible by the resolution X scale.
  250. *% Warning: the following printable length is adjusted (4970->4968) so it is divisible by the resolution Y scale.
  251. *PrintableArea: PAIR(7920, 5712)
  252. }
  253. *case: Option2
  254. {
  255. *% Warning: the following printable width is adjusted (8177->8176) so it is divisible by the resolution X scale.
  256. *% Warning: the following printable length is adjusted (4970->4968) so it is divisible by the resolution Y scale.
  257. *PrintableArea: PAIR(7920, 5712)
  258. }
  259. *case: Option3
  260. {
  261. *% Warning: the following printable width is adjusted (8177->8172) so it is divisible by the resolution X scale.
  262. *% Warning: the following printable length is adjusted (4970->4968) so it is divisible by the resolution Y scale.
  263. *PrintableArea: PAIR(7920, 5712)
  264. }
  265. }
  266. }
  267. }
  268. }
  269. *Option: A5
  270. {
  271. *rcNameID: =A5_DISPLAY
  272. *Command: CmdSelect
  273. {
  274. *Order: DOC_SETUP.4
  275. *Cmd: "<1B>2<1B>C2"
  276. }
  277. *switch: InputBin
  278. {
  279. *case: Option1
  280. {
  281. *PrintableArea: PAIR(3958, 5954)
  282. *PrintableOrigin: PAIR(120, 0)
  283. *switch: Resolution
  284. {
  285. *case: Option1
  286. {
  287. *% Warning: the following printable length is adjusted (5954->5952) so it is divisible by the resolution Y scale.
  288. *PrintableArea: PAIR(3958, 5952)
  289. }
  290. *case: Option2
  291. {
  292. *% Warning: the following printable width is adjusted (3958->3956) so it is divisible by the resolution X scale.
  293. *% Warning: the following printable length is adjusted (5954->5952) so it is divisible by the resolution Y scale.
  294. *PrintableArea: PAIR(3956, 5952)
  295. }
  296. *case: Option3
  297. {
  298. *% Warning: the following printable width is adjusted (3958->3954) so it is divisible by the resolution X scale.
  299. *% Warning: the following printable length is adjusted (5954->5952) so it is divisible by the resolution Y scale.
  300. *PrintableArea: PAIR(3954, 5952)
  301. }
  302. }
  303. }
  304. *case: MANUAL
  305. {
  306. *PrintableArea: PAIR(3958, 5714)
  307. *PrintableOrigin: PAIR(120, 120)
  308. *switch: Resolution
  309. {
  310. *case: Option1
  311. {
  312. *% Warning: the following printable length is adjusted (5474->5472) so it is divisible by the resolution Y scale.
  313. *PrintableArea: PAIR(3958, 5712)
  314. }
  315. *case: Option2
  316. {
  317. *% Warning: the following printable width is adjusted (3958->3956) so it is divisible by the resolution X scale.
  318. *% Warning: the following printable length is adjusted (5474->5472) so it is divisible by the resolution Y scale.
  319. *PrintableArea: PAIR(3956, 5712)
  320. }
  321. *case: Option3
  322. {
  323. *% Warning: the following printable width is adjusted (3958->3954) so it is divisible by the resolution X scale.
  324. *% Warning: the following printable length is adjusted (5474->5472) so it is divisible by the resolution Y scale.
  325. *PrintableArea: PAIR(3954, 5712)
  326. }
  327. }
  328. }
  329. }
  330. }
  331. *Option: B4
  332. {
  333. *rcNameID: =B4_DISPLAY
  334. *Command: CmdSelect
  335. {
  336. *Order: DOC_SETUP.4
  337. *Cmd: "<1B>2<1B>CU"
  338. }
  339. *switch: InputBin
  340. {
  341. *case: Option1
  342. {
  343. *PrintableArea: PAIR(7046, 10318)
  344. *PrintableOrigin: PAIR(120, 0)
  345. *switch: Resolution
  346. {
  347. *case: Option1
  348. {
  349. *% Warning: the following printable length is adjusted (10318->10316) so it is divisible by the resolution Y scale.
  350. *PrintableArea: PAIR(7046, 10316)
  351. }
  352. *case: Option2
  353. {
  354. *% Warning: the following printable width is adjusted (7046->7044) so it is divisible by the resolution X scale.
  355. *% Warning: the following printable length is adjusted (10318->10316) so it is divisible by the resolution Y scale.
  356. *PrintableArea: PAIR(7044, 10316)
  357. }
  358. *case: Option3
  359. {
  360. *% Warning: the following printable width is adjusted (7046->7044) so it is divisible by the resolution X scale.
  361. *% Warning: the following printable length is adjusted (10318->10316) so it is divisible by the resolution Y scale.
  362. *PrintableArea: PAIR(7044, 10316)
  363. }
  364. }
  365. }
  366. *case: MANUAL
  367. {
  368. *PrintableArea: PAIR(7046, 10078)
  369. *PrintableOrigin: PAIR(120, 120)
  370. *switch: Resolution
  371. {
  372. *case: Option1
  373. {
  374. *% Warning: the following printable length is adjusted (9838->9836) so it is divisible by the resolution Y scale.
  375. *PrintableArea: PAIR(7046, 10076)
  376. }
  377. *case: Option2
  378. {
  379. *% Warning: the following printable width is adjusted (7046->7044) so it is divisible by the resolution X scale.
  380. *% Warning: the following printable length is adjusted (9838->9836) so it is divisible by the resolution Y scale.
  381. *PrintableArea: PAIR(7044, 10076)
  382. }
  383. *case: Option3
  384. {
  385. *% Warning: the following printable width is adjusted (7046->7044) so it is divisible by the resolution X scale.
  386. *% Warning: the following printable length is adjusted (9838->9836) so it is divisible by the resolution Y scale.
  387. *PrintableArea: PAIR(7044, 10076)
  388. }
  389. }
  390. }
  391. }
  392. }
  393. *Option: B5
  394. {
  395. *rcNameID: =B5_DISPLAY
  396. *Command: CmdSelect
  397. {
  398. *Order: DOC_SETUP.4
  399. *Cmd: "<1B>2<1B>C<3C>"
  400. }
  401. *switch: InputBin
  402. {
  403. *case: Option1
  404. {
  405. *PrintableArea: PAIR(4922, 7286)
  406. *PrintableOrigin: PAIR(120, 0)
  407. *switch: Resolution
  408. {
  409. *case: Option1
  410. {
  411. *% Warning: the following printable length is adjusted (7286->7284) so it is divisible by the resolution Y scale.
  412. *PrintableArea: PAIR(4922, 7284)
  413. }
  414. *case: Option2
  415. {
  416. *% Warning: the following printable width is adjusted (4922->4920) so it is divisible by the resolution X scale.
  417. *% Warning: the following printable length is adjusted (7286->7284) so it is divisible by the resolution Y scale.
  418. *PrintableArea: PAIR(4920, 7284)
  419. }
  420. *case: Option3
  421. {
  422. *% Warning: the following printable width is adjusted (4922->4920) so it is divisible by the resolution X scale.
  423. *% Warning: the following printable length is adjusted (7286->7284) so it is divisible by the resolution Y scale.
  424. *PrintableArea: PAIR(4920, 7284)
  425. }
  426. }
  427. }
  428. *case: MANUAL
  429. {
  430. *PrintableArea: PAIR(4922, 7010)
  431. *PrintableOrigin: PAIR(120, 120)
  432. *switch: Resolution
  433. {
  434. *case: Option1
  435. {
  436. *% Warning: the following printable length is adjusted (6806->6804) so it is divisible by the resolution Y scale.
  437. *PrintableArea: PAIR(4922, 7008)
  438. }
  439. *case: Option2
  440. {
  441. *% Warning: the following printable width is adjusted (4922->4920) so it is divisible by the resolution X scale.
  442. *% Warning: the following printable length is adjusted (6806->6804) so it is divisible by the resolution Y scale.
  443. *PrintableArea: PAIR(4920, 7008)
  444. }
  445. *case: Option3
  446. {
  447. *% Warning: the following printable width is adjusted (4922->4920) so it is divisible by the resolution X scale.
  448. *% Warning: the following printable length is adjusted (6806->6804) so it is divisible by the resolution Y scale.
  449. *PrintableArea: PAIR(4920, 7008)
  450. }
  451. }
  452. }
  453. }
  454. }
  455. *% "Fanfold 9 x 12 inch"
  456. *Option: Option8
  457. {
  458. *rcNameID: 274
  459. *OptionID: 274
  460. *PageDimensions: PAIR(6480, 8640)
  461. *Command: CmdSelect
  462. {
  463. *Order: DOC_SETUP.4
  464. *Cmd: "<1B>2<1B>CH"
  465. }
  466. *switch: InputBin
  467. {
  468. *case: Option1
  469. {
  470. *PrintableArea: PAIR(5760, 8640)
  471. *PrintableOrigin: PAIR(360, 0)
  472. }
  473. *case: MANUAL
  474. {
  475. *PrintableArea: PAIR(5760, 8400)
  476. *PrintableOrigin: PAIR(360, 120)
  477. }
  478. }
  479. }
  480. *% "Fanfold 9 x 11 inch"
  481. *Option: Option9
  482. {
  483. *rcNameID: 266
  484. *OptionID: 266
  485. *PageDimensions: PAIR(6480, 7920)
  486. *Command: CmdSelect
  487. {
  488. *Order: DOC_SETUP.4
  489. *Cmd: "<1B>2<1B>CB"
  490. }
  491. *switch: InputBin
  492. {
  493. *case: Option1
  494. {
  495. *PrintableArea: PAIR(5760, 7920)
  496. *PrintableOrigin: PAIR(360, 0)
  497. }
  498. *case: MANUAL
  499. {
  500. *PrintableArea: PAIR(5760, 7680)
  501. *PrintableOrigin: PAIR(360, 120)
  502. }
  503. }
  504. }
  505. *% "Fanfold 12 x 12 inch"
  506. *Option: Option10
  507. {
  508. *rcNameID: 276
  509. *OptionID: 276
  510. *PageDimensions: PAIR(8640, 8640)
  511. *Command: CmdSelect
  512. {
  513. *Order: DOC_SETUP.4
  514. *Cmd: "<1B>2<1B>CH"
  515. }
  516. *switch: InputBin
  517. {
  518. *case: Option1
  519. {
  520. *PrintableArea: PAIR(7920, 8640)
  521. *PrintableOrigin: PAIR(360, 0)
  522. }
  523. *case: MANUAL
  524. {
  525. *PrintableArea: PAIR(7920, 8400)
  526. *PrintableOrigin: PAIR(360, 120)
  527. }
  528. }
  529. }
  530. *% "Fanfold 12 x 11 inch"
  531. *Option: Option11
  532. {
  533. *rcNameID: 275
  534. *OptionID: 275
  535. *PageDimensions: PAIR(8640, 7920)
  536. *Command: CmdSelect
  537. {
  538. *Order: DOC_SETUP.4
  539. *Cmd: "<1B>2<1B>CB"
  540. }
  541. *switch: InputBin
  542. {
  543. *case: Option1
  544. {
  545. *PrintableArea: PAIR(7920, 7920)
  546. *PrintableOrigin: PAIR(360, 0)
  547. }
  548. *case: MANUAL
  549. {
  550. *PrintableArea: PAIR(7920, 7680)
  551. *PrintableOrigin: PAIR(360, 120)
  552. }
  553. }
  554. }
  555. *Option: ENV_9
  556. {
  557. *rcNameID: =ENV_9_DISPLAY
  558. *RotateSize? : TRUE
  559. *Command: CmdSelect
  560. {
  561. *Order: DOC_SETUP.4
  562. *Cmd: "<1B>2<1B>C<17>"
  563. }
  564. *switch: InputBin
  565. {
  566. *case: Option1
  567. {
  568. *PrintableArea: PAIR(6154, 2794)
  569. *PrintableOrigin: PAIR(120, 0)
  570. *switch: Resolution
  571. {
  572. *case: Option1
  573. {
  574. *% Warning: the following printable length is adjusted (2794->2792) so it is divisible by the resolution Y scale.
  575. *PrintableArea: PAIR(6154, 2792)
  576. }
  577. *case: Option2
  578. {
  579. *% Warning: the following printable width is adjusted (6154->6152) so it is divisible by the resolution X scale.
  580. *% Warning: the following printable length is adjusted (2794->2792) so it is divisible by the resolution Y scale.
  581. *PrintableArea: PAIR(6152, 2792)
  582. }
  583. *case: Option3
  584. {
  585. *% Warning: the following printable width is adjusted (6154->6150) so it is divisible by the resolution X scale.
  586. *% Warning: the following printable length is adjusted (2794->2792) so it is divisible by the resolution Y scale.
  587. *PrintableArea: PAIR(6150, 2792)
  588. }
  589. }
  590. }
  591. *case: MANUAL
  592. {
  593. *PrintableArea: PAIR(6154, 2554)
  594. *PrintableOrigin: PAIR(120, 120)
  595. *switch: Resolution
  596. {
  597. *case: Option1
  598. {
  599. *% Warning: the following printable length is adjusted (2314->2312) so it is divisible by the resolution Y scale.
  600. *PrintableArea: PAIR(6154, 2552)
  601. }
  602. *case: Option2
  603. {
  604. *% Warning: the following printable width is adjusted (6154->6152) so it is divisible by the resolution X scale.
  605. *% Warning: the following printable length is adjusted (2314->2312) so it is divisible by the resolution Y scale.
  606. *PrintableArea: PAIR(6152, 2552)
  607. }
  608. *case: Option3
  609. {
  610. *% Warning: the following printable width is adjusted (6154->6150) so it is divisible by the resolution X scale.
  611. *% Warning: the following printable length is adjusted (2314->2312) so it is divisible by the resolution Y scale.
  612. *PrintableArea: PAIR(6150, 2552)
  613. }
  614. }
  615. }
  616. }
  617. }
  618. *Option: ENV_10
  619. {
  620. *rcNameID: =ENV_10_DISPLAY
  621. *RotateSize? : TRUE
  622. *Command: CmdSelect
  623. {
  624. *Order: DOC_SETUP.4
  625. *Cmd: "<1B>2<1B>C<19>"
  626. }
  627. *switch: InputBin
  628. {
  629. *case: Option1
  630. {
  631. *PrintableArea: PAIR(6600, 2974)
  632. *PrintableOrigin: PAIR(120, 0)
  633. *switch: Resolution
  634. {
  635. *case: Option1
  636. {
  637. *% Warning: the following printable length is adjusted (2974->2972) so it is divisible by the resolution Y scale.
  638. *PrintableArea: PAIR(6600, 2972)
  639. }
  640. *case: Option2
  641. {
  642. *% Warning: the following printable length is adjusted (2974->2972) so it is divisible by the resolution Y scale.
  643. *PrintableArea: PAIR(6600, 2972)
  644. }
  645. *case: Option3
  646. {
  647. *% Warning: the following printable length is adjusted (2974->2972) so it is divisible by the resolution Y scale.
  648. *PrintableArea: PAIR(6600, 2972)
  649. }
  650. }
  651. }
  652. *case: MANUAL
  653. {
  654. *PrintableArea: PAIR(6600, 2734)
  655. *PrintableOrigin: PAIR(120, 120)
  656. *switch: Resolution
  657. {
  658. *case: Option1
  659. {
  660. *% Warning: the following printable length is adjusted (2494->2492) so it is divisible by the resolution Y scale.
  661. *PrintableArea: PAIR(6600, 2732)
  662. }
  663. *case: Option2
  664. {
  665. *% Warning: the following printable length is adjusted (2494->2492) so it is divisible by the resolution Y scale.
  666. *PrintableArea: PAIR(6600, 2732)
  667. }
  668. *case: Option3
  669. {
  670. *% Warning: the following printable length is adjusted (2494->2492) so it is divisible by the resolution Y scale.
  671. *PrintableArea: PAIR(6600, 2732)
  672. }
  673. }
  674. }
  675. }
  676. }
  677. *Option: ENV_DL
  678. {
  679. *rcNameID: =ENV_DL_DISPLAY
  680. *RotateSize? : TRUE
  681. *Command: CmdSelect
  682. {
  683. *Order: DOC_SETUP.4
  684. *Cmd: "<1B>2<1B>C<1A>"
  685. }
  686. *switch: InputBin
  687. {
  688. *case: Option1
  689. {
  690. *PrintableArea: PAIR(5995, 3118)
  691. *PrintableOrigin: PAIR(120, 0)
  692. *switch: Resolution
  693. {
  694. *case: Option1
  695. {
  696. *% Warning: the following printable width is adjusted (5995->5994) so it is divisible by the resolution X scale.
  697. *% Warning: the following printable length is adjusted (3118->3116) so it is divisible by the resolution Y scale.
  698. *PrintableArea: PAIR(5994, 3116)
  699. }
  700. *case: Option2
  701. {
  702. *% Warning: the following printable width is adjusted (5995->5992) so it is divisible by the resolution X scale.
  703. *% Warning: the following printable length is adjusted (3118->3116) so it is divisible by the resolution Y scale.
  704. *PrintableArea: PAIR(5992, 3116)
  705. }
  706. *case: Option3
  707. {
  708. *% Warning: the following printable width is adjusted (5995->5994) so it is divisible by the resolution X scale.
  709. *% Warning: the following printable length is adjusted (3118->3116) so it is divisible by the resolution Y scale.
  710. *PrintableArea: PAIR(5994, 3116)
  711. }
  712. }
  713. }
  714. *case: MANUAL
  715. {
  716. *PrintableArea: PAIR(5995, 2878)
  717. *PrintableOrigin: PAIR(120, 120)
  718. *switch: Resolution
  719. {
  720. *case: Option1
  721. {
  722. *% Warning: the following printable width is adjusted (5995->5994) so it is divisible by the resolution X scale.
  723. *% Warning: the following printable length is adjusted (2638->2636) so it is divisible by the resolution Y scale.
  724. *PrintableArea: PAIR(5994, 2876)
  725. }
  726. *case: Option2
  727. {
  728. *% Warning: the following printable width is adjusted (5995->5992) so it is divisible by the resolution X scale.
  729. *% Warning: the following printable length is adjusted (2638->2636) so it is divisible by the resolution Y scale.
  730. *PrintableArea: PAIR(5992, 2876)
  731. }
  732. *case: Option3
  733. {
  734. *% Warning: the following printable width is adjusted (5995->5994) so it is divisible by the resolution X scale.
  735. *% Warning: the following printable length is adjusted (2638->2636) so it is divisible by the resolution Y scale.
  736. *PrintableArea: PAIR(5994, 2876)
  737. }
  738. }
  739. }
  740. }
  741. }
  742. *Option: ENV_C5
  743. {
  744. *rcNameID: =ENV_C5_DISPLAY
  745. *RotateSize? : TRUE
  746. *Command: CmdSelect
  747. {
  748. *Order: DOC_SETUP.4
  749. *Cmd: "<1B>2<1B>C&"
  750. }
  751. *switch: InputBin
  752. {
  753. *case: Option1
  754. {
  755. *PrintableArea: PAIR(6254, 4594)
  756. *PrintableOrigin: PAIR(120, 0)
  757. *switch: Resolution
  758. {
  759. *case: Option1
  760. {
  761. *% Warning: the following printable length is adjusted (4594->4592) so it is divisible by the resolution Y scale.
  762. *PrintableArea: PAIR(6254, 4592)
  763. }
  764. *case: Option2
  765. {
  766. *% Warning: the following printable width is adjusted (6254->6252) so it is divisible by the resolution X scale.
  767. *% Warning: the following printable length is adjusted (4594->4592) so it is divisible by the resolution Y scale.
  768. *PrintableArea: PAIR(6252, 4592)
  769. }
  770. *case: Option3
  771. {
  772. *% Warning: the following printable width is adjusted (6254->6252) so it is divisible by the resolution X scale.
  773. *% Warning: the following printable length is adjusted (4594->4592) so it is divisible by the resolution Y scale.
  774. *PrintableArea: PAIR(6252, 4592)
  775. }
  776. }
  777. }
  778. *case: MANUAL
  779. {
  780. *PrintableArea: PAIR(6254, 4354)
  781. *PrintableOrigin: PAIR(120, 120)
  782. *switch: Resolution
  783. {
  784. *case: Option1
  785. {
  786. *% Warning: the following printable length is adjusted (4114->4112) so it is divisible by the resolution Y scale.
  787. *PrintableArea: PAIR(6254, 4352)
  788. }
  789. *case: Option2
  790. {
  791. *% Warning: the following printable width is adjusted (6254->6252) so it is divisible by the resolution X scale.
  792. *% Warning: the following printable length is adjusted (4114->4112) so it is divisible by the resolution Y scale.
  793. *PrintableArea: PAIR(6252, 4352)
  794. }
  795. *case: Option3
  796. {
  797. *% Warning: the following printable width is adjusted (6254->6252) so it is divisible by the resolution X scale.
  798. *% Warning: the following printable length is adjusted (4114->4112) so it is divisible by the resolution Y scale.
  799. *PrintableArea: PAIR(6252, 4352)
  800. }
  801. }
  802. }
  803. }
  804. }
  805. *Option: ENV_B5
  806. {
  807. *rcNameID: =ENV_B5_DISPLAY
  808. *RotateSize? : TRUE
  809. *Command: CmdSelect
  810. {
  811. *Order: DOC_SETUP.4
  812. *Cmd: "<1B>2<1B>C*"
  813. }
  814. *switch: InputBin
  815. {
  816. *case: Option1
  817. {
  818. *PrintableArea: PAIR(6845, 4990)
  819. *PrintableOrigin: PAIR(120, 0)
  820. *switch: Resolution
  821. {
  822. *case: Option1
  823. {
  824. *% Warning: the following printable width is adjusted (6845->6844) so it is divisible by the resolution X scale.
  825. *% Warning: the following printable length is adjusted (4990->4988) so it is divisible by the resolution Y scale.
  826. *PrintableArea: PAIR(6844, 4988)
  827. }
  828. *case: Option2
  829. {
  830. *% Warning: the following printable width is adjusted (6845->6844) so it is divisible by the resolution X scale.
  831. *% Warning: the following printable length is adjusted (4990->4988) so it is divisible by the resolution Y scale.
  832. *PrintableArea: PAIR(6844, 4988)
  833. }
  834. *case: Option3
  835. {
  836. *% Warning: the following printable width is adjusted (6845->6840) so it is divisible by the resolution X scale.
  837. *% Warning: the following printable length is adjusted (4990->4988) so it is divisible by the resolution Y scale.
  838. *PrintableArea: PAIR(6840, 4988)
  839. }
  840. }
  841. }
  842. *case: MANUAL
  843. {
  844. *PrintableArea: PAIR(6845, 4750)
  845. *PrintableOrigin: PAIR(120, 120)
  846. *switch: Resolution
  847. {
  848. *case: Option1
  849. {
  850. *% Warning: the following printable width is adjusted (6845->6844) so it is divisible by the resolution X scale.
  851. *% Warning: the following printable length is adjusted (4510->4508) so it is divisible by the resolution Y scale.
  852. *PrintableArea: PAIR(6844, 4748)
  853. }
  854. *case: Option2
  855. {
  856. *% Warning: the following printable width is adjusted (6845->6844) so it is divisible by the resolution X scale.
  857. *% Warning: the following printable length is adjusted (4510->4508) so it is divisible by the resolution Y scale.
  858. *PrintableArea: PAIR(6844, 4748)
  859. }
  860. *case: Option3
  861. {
  862. *% Warning: the following printable width is adjusted (6845->6840) so it is divisible by the resolution X scale.
  863. *% Warning: the following printable length is adjusted (4510->4508) so it is divisible by the resolution Y scale.
  864. *PrintableArea: PAIR(6840, 4748)
  865. }
  866. }
  867. }
  868. }
  869. }
  870. *Option: ENV_MONARCH
  871. {
  872. *rcNameID: =ENV_MONARCH_DISPLAY
  873. *RotateSize? : TRUE
  874. *Command: CmdSelect
  875. {
  876. *Order: DOC_SETUP.4
  877. *Cmd: "<1B>2<1B>C!"
  878. }
  879. *switch: InputBin
  880. {
  881. *case: Option1
  882. {
  883. *PrintableArea: PAIR(5160, 2794)
  884. *PrintableOrigin: PAIR(120, 0)
  885. *switch: Resolution
  886. {
  887. *case: Option1
  888. {
  889. *% Warning: the following printable length is adjusted (2794->2792) so it is divisible by the resolution Y scale.
  890. *PrintableArea: PAIR(5160, 2792)
  891. }
  892. *case: Option2
  893. {
  894. *% Warning: the following printable length is adjusted (2794->2792) so it is divisible by the resolution Y scale.
  895. *PrintableArea: PAIR(5160, 2792)
  896. }
  897. *case: Option3
  898. {
  899. *% Warning: the following printable length is adjusted (2794->2792) so it is divisible by the resolution Y scale.
  900. *PrintableArea: PAIR(5160, 2792)
  901. }
  902. }
  903. }
  904. *case: MANUAL
  905. {
  906. *PrintableArea: PAIR(5160, 2554)
  907. *PrintableOrigin: PAIR(120, 120)
  908. *switch: Resolution
  909. {
  910. *case: Option1
  911. {
  912. *% Warning: the following printable length is adjusted (2314->2312) so it is divisible by the resolution Y scale.
  913. *PrintableArea: PAIR(5160, 2552)
  914. }
  915. *case: Option2
  916. {
  917. *% Warning: the following printable length is adjusted (2314->2312) so it is divisible by the resolution Y scale.
  918. *PrintableArea: PAIR(5160, 2552)
  919. }
  920. *case: Option3
  921. {
  922. *% Warning: the following printable length is adjusted (2314->2312) so it is divisible by the resolution Y scale.
  923. *PrintableArea: PAIR(5160, 2552)
  924. }
  925. }
  926. }
  927. }
  928. }
  929. *Option: CUSTOMSIZE
  930. {
  931. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  932. *MinSize: PAIR(3240, 3960)
  933. *MaxSize: PAIR(8640, 15840)
  934. *MaxPrintableWidth: 7920
  935. *MinLeftMargin: 0
  936. *CenterPrintable?: FALSE
  937. *switch: InputBin
  938. {
  939. *case: Option1
  940. {
  941. *TopMargin: 0
  942. *BottomMargin: 0
  943. }
  944. *case: MANUAL
  945. {
  946. *TopMargin: 120
  947. *BottomMargin: 120
  948. }
  949. }
  950. *Command: CmdSelect
  951. {
  952. *Order: DOC_SETUP.4
  953. *Cmd: "<1B>2<1B>C" %c[0,127]{max_repeat((PhysPaperLength / 120) )}
  954. }
  955. }
  956. }
  957. *InvalidCombination: LIST(InputBin.Option1, PaperSize.LETTER)
  958. *InvalidCombination: LIST(InputBin.Option1, PaperSize.Option2)
  959. *InvalidCombination: LIST(InputBin.Option1, PaperSize.Option4)
  960. *InvalidCombination: LIST(InputBin.Option1, PaperSize.A4)
  961. *InvalidCombination: LIST(InputBin.Option1, PaperSize.A5)
  962. *InvalidCombination: LIST(InputBin.Option1, PaperSize.B4)
  963. *InvalidCombination: LIST(InputBin.Option1, PaperSize.B5)
  964. *InvalidCombination: LIST(InputBin.Option1, PaperSize.ENV_9)
  965. *InvalidCombination: LIST(InputBin.Option1, PaperSize.ENV_10)
  966. *InvalidCombination: LIST(InputBin.Option1, PaperSize.ENV_DL)
  967. *InvalidCombination: LIST(InputBin.Option1, PaperSize.ENV_C5)
  968. *InvalidCombination: LIST(InputBin.Option1, PaperSize.ENV_B5)
  969. *InvalidCombination: LIST(InputBin.Option1, PaperSize.ENV_MONARCH)
  970. *Feature: PrintQuality
  971. {
  972. *rcNameID: =TEXT_QUALITY_DISPLAY
  973. *DefaultOption: LETTER_QUALITY
  974. *Option: LETTER_QUALITY
  975. {
  976. *rcNameID: =LETTER_QUALITY_DISPLAY
  977. *Command: CmdSelect
  978. {
  979. *Order: DOC_SETUP.2
  980. *Cmd: "<1B>x1"
  981. }
  982. }
  983. *Option: DRAFT_QUALITY
  984. {
  985. *rcNameID: =DRAFT_QUALITY_DISPLAY
  986. *Command: CmdSelect
  987. {
  988. *Order: DOC_SETUP.2
  989. *Cmd: "<1B>x0"
  990. }
  991. }
  992. }
  993. *Feature: Halftone
  994. {
  995. *rcNameID: =HALFTONING_DISPLAY
  996. *DefaultOption: HT_PATSIZE_AUTO
  997. *Option: HT_PATSIZE_AUTO
  998. {
  999. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  1000. }
  1001. *Option: HT_PATSIZE_SUPERCELL_M
  1002. {
  1003. *rcNameID: =HT_SUPERCELL_DISPLAY
  1004. }
  1005. *Option: HT_PATSIZE_6x6_M
  1006. {
  1007. *rcNameID: =HT_DITHER6X6_DISPLAY
  1008. }
  1009. *Option: HT_PATSIZE_8x8_M
  1010. {
  1011. *rcNameID: =HT_DITHER8X8_DISPLAY
  1012. }
  1013. }
  1014. *Command: CmdStartDoc
  1015. {
  1016. *Order: DOC_SETUP.1
  1017. *Cmd: "<1B>@<1C>.<1B>t<011B>6<1B>r<00><1C>&"
  1018. }
  1019. *Command: CmdStartPage
  1020. {
  1021. *Order: PAGE_SETUP.1
  1022. *Cmd: "<0D>"
  1023. }
  1024. *Command: CmdEndJob
  1025. {
  1026. *Order: JOB_FINISH.1
  1027. *Cmd: "<0D>"
  1028. }
  1029. *RotateCoordinate?: FALSE
  1030. *RotateRaster?: FALSE
  1031. *RotateFont?: FALSE
  1032. *switch: Orientation
  1033. {
  1034. *case: PORTRAIT
  1035. {
  1036. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  1037. }
  1038. *case: LANDSCAPE_CC270
  1039. {
  1040. *TextCaps: LIST(TC_RA_ABLE)
  1041. }
  1042. }
  1043. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  1044. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  1045. *MaxLineSpacing: 255
  1046. *XMoveThreshold: 0
  1047. *YMoveThreshold: *
  1048. *XMoveUnit: 60
  1049. *YMoveUnit: 180
  1050. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  1051. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 4) )} }
  1052. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 4) } }
  1053. *Command: CmdCR { *Cmd : "<0D>" }
  1054. *Command: CmdLF { *Cmd : "<0A>" }
  1055. *Command: CmdFF { *Cmd : "<0C>" }
  1056. *Command: CmdBackSpace { *Cmd : "<08>" }
  1057. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  1058. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  1059. *EjectPageWithFF?: TRUE
  1060. *OutputDataFormat: V_BYTE
  1061. *OptimizeLeftBound?: TRUE
  1062. *CursorXAfterSendBlockData: AT_GRXDATA_END
  1063. *CursorYAfterSendBlockData: NO_MOVE
  1064. *DefaultFont: 1
  1065. *DefaultCTT: 0
  1066. *switch: Orientation
  1067. {
  1068. *case: PORTRAIT
  1069. {
  1070. *DeviceFonts: LIST(1,2,3,4,5,8,9,10,11)
  1071. }
  1072. *case: LANDSCAPE_CC270
  1073. {
  1074. *DeviceFonts: LIST()
  1075. }
  1076. }
  1077. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  1078. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  1079. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  1080. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  1081. *Command: CmdUnderlineOn { *Cmd : "<1B>-<011C>-<01>" }
  1082. *Command: CmdUnderlineOff { *Cmd : "<1B>-<001C>-<00>" }