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.

1142 lines
43 KiB

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