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.

1017 lines
28 KiB

  1. *%%
  2. *%% Tally T9308 PCL
  3. *%%
  4. *%% Copyright 1998 - 1999, Microsoft Corp.
  5. *%% All Rights Reserved.
  6. *%%
  7. *%%
  8. *%% Global Entries
  9. *%%
  10. *GPDSpecVersion: "1.0"
  11. *GPDFileVersion: "1.0"
  12. *%%% ======================
  13. *%%% Include standard GPD files
  14. *%%% =====================
  15. *Include: "StdNames.gpd"
  16. *Include: "ttfsub.gpd"
  17. *%%
  18. *%% Model Specific Global Entries
  19. *%%
  20. *GPDFileName: "T9308P6.GPD"
  21. *ModelName: "Tally T9308 PCL"
  22. *MaxCopies: 999
  23. *PrintRate: 8
  24. *PrintRatePPM: 8
  25. *PrintRateUnit: PPM
  26. *%%% ======================
  27. *%%% Macros
  28. *%%% ======================
  29. *Include: "pjl.gpd"
  30. *Include: "p6font.gpd"
  31. *Include: "p6disp.gpd"
  32. *%%% ======================
  33. *%%% Main
  34. *%%% ======================
  35. *Include: "pclxl.gpd"
  36. *%%% ======================
  37. *%%% DOC_SETUP, PAGE_FINISH
  38. *%%% , JOB_FINISH
  39. *%%% ======================
  40. *Macros: PCLXLCommand
  41. {
  42. *%%% ---------------------------------------------------------------------------
  43. *%%% PCL XL Stream Header
  44. *%%% ---------------------------------------------------------------------------
  45. PCLXL_StreamHeader: ") HP-PCL XL;1;1;"
  46. + "Comment Copyright(c) 1999 Microsoft Corporation<0A>"
  47. *%%% ---------------------------------------------------------------------------
  48. *%%% BeginSession
  49. *%%% Measure(ubyte) & UnitsPerMeasure(uint16_xy) & {ErrorReport(ubyte)}
  50. *%%% ---------------------------------------------------------------------------
  51. *%%% PCLXL_BeginSession1200: =uint16_xy "<b004b004>" =attr_ubyte =UnitsPerMeasure =ubyte
  52. *%%% + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  53. PCLXL_BeginSession600: =uint16_xy "<58025802>" =attr_ubyte =UnitsPerMeasure =ubyte
  54. + =eInch =attr_ubyte =Measure =BeginSession
  55. PCLXL_BeginSession300: =uint16_xy "<2c012c01>" =attr_ubyte =UnitsPerMeasure =ubyte
  56. + =eInch =attr_ubyte =Measure =BeginSession
  57. Width: %m{ RasterDataWidthInBytes }
  58. Height: %m{ RasterDataHeightInPixels }
  59. DataSize: %l{ NumOfDataBytes }
  60. FntHeight: %l{ FontHeight*300/TextYRes }
  61. FntNextGlyph: %l{ NextGlyph }
  62. *%%% ---------------------------------------------------------------------------
  63. *%%% BeginRaster
  64. *%%% ColorDepth(ubyte) & ColorMapping(ubyte) & SourceWidth(uint16) &
  65. *%%% SourceWidth(uint16) & SourceHeight(uint16)
  66. *%%% ---------------------------------------------------------------------------
  67. PCLXL_CmdBeginRaster: =ubyte =e1Bit =attr_ubyte =ColorDepth
  68. + =ubyte =eDirectPixel =attr_ubyte =ColorMapping
  69. + =uint16 =Width =attr_ubyte =SourceWidth
  70. + =uint16 =Height =attr_ubyte =SourceHeight
  71. + =uint16_xy =Width =Height =attr_ubyte =DestinationSize
  72. + =BeginImage
  73. + =ubyte =eNoCompression =attr_ubyte =CompressMode
  74. + =ubyte "<00>" =attr_ubyte =StartLine
  75. + =uint16 =Height =attr_ubyte =BlockHeight
  76. + =ReadImage
  77. PCLXL_CmdSendBlockData: =dataLength =DataSize "<0000>"
  78. DestinationX: %l{DestX}
  79. DestinationY: %l{DestY}
  80. DestinationXRel: %l{DestYRel}
  81. DestinationYRel: %l{DestXRel}
  82. NumOfCopy: %l{NumOfCopies}
  83. PrintDir: %l{PrintDirInCCDegrees}
  84. FntName: =ubyte_array =uint16 "<1000>" "MS PCLXLFont " %3d{CurrentFontID}
  85. }
  86. *%%% ======================
  87. *%%% Features and Options
  88. *%%% ======================
  89. *%% Orientation
  90. *Feature: Orientation
  91. {
  92. *rcNameID: =ORIENTATION_DISPLAY
  93. *DefaultOption: PORTRAIT
  94. *Option: PORTRAIT
  95. {
  96. *rcNameID: =PORTRAIT_DISPLAY
  97. }
  98. *Option: LANDSCAPE_CC90
  99. {
  100. *rcNameID: =LANDSCAPE_DISPLAY
  101. }
  102. }
  103. *%%% ======================
  104. *%%% DOC_SETUP
  105. *%%% ======================
  106. *%%% ======================
  107. *%%% DOC_SETUP.1
  108. *%%% START PLJ JOB
  109. *%%% PAGEPROTECT
  110. *%%% TIMEOUT
  111. *Feature: PageProtect
  112. {
  113. *rcNameID: =PAGE_PROTECTION_DISPLAY
  114. *DefaultOption: OFF
  115. *Option: ON
  116. {
  117. *rcNameID: =ON_DISPLAY
  118. *Command: CmdSelect
  119. {
  120. *Order: DOC_SETUP.1
  121. *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
  122. }
  123. }
  124. *Option: OFF
  125. {
  126. *rcNameID: =OFF_DISPLAY
  127. *Command: CmdSelect
  128. {
  129. *Order: DOC_SETUP.1
  130. *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_OFF =PJL_TIMEOUT_90
  131. }
  132. }
  133. }
  134. *%%% ======================
  135. *%%% DOC_SETUP.2
  136. *%%% ECONOMODE
  137. *Feature: Economode
  138. {
  139. *rcNameID: =ECONOMODE_DISPLAY
  140. *DefaultOption: Option1
  141. *Option: Option1
  142. {
  143. *rcNameID: =ECONOMODE_DEFAULT_DISPLAY
  144. }
  145. *Option: Option2
  146. {
  147. *rcNameID: =ECONOMODE_OFF_DISPLAY
  148. *Command: CmdSelect
  149. {
  150. *Order: DOC_SETUP.2
  151. *Cmd: =PJL_ECONOMODE_OFF
  152. }
  153. }
  154. *Option: Option3
  155. {
  156. *rcNameID: =ECONOMODE_ON_DISPLAY
  157. *Command: CmdSelect
  158. {
  159. *Order: DOC_SETUP.2
  160. *Cmd: =PJL_ECONOMODE_ON
  161. }
  162. }
  163. }
  164. *%%% ======================
  165. *%%% DOC_SETUP.3
  166. *%%% RET
  167. *Feature: RET
  168. {
  169. *rcNameID: =PRINT_QUALITY
  170. *DefaultOption: Option1
  171. *Option: Option1
  172. {
  173. *rcNameID: =PRINT_QUALITY_DEFAULT
  174. }
  175. *Option: Option2
  176. {
  177. *rcNameID: =PRINT_QUALITY_LIGHT
  178. *Command: CmdSelect
  179. {
  180. *Order: DOC_SETUP.3
  181. *Cmd: =PJL_RET_LIGHT
  182. }
  183. }
  184. *Option: Option3
  185. {
  186. *rcNameID: =PRINT_QUALITY_MEDIUM
  187. *Command: CmdSelect
  188. {
  189. *Order: DOC_SETUP.3
  190. *Cmd: =PJL_RET_MEDIUM
  191. }
  192. }
  193. *Option: Option4
  194. {
  195. *rcNameID: =PRINT_QUALITY_DARK
  196. *Command: CmdSelect
  197. {
  198. *Order: DOC_SETUP.3
  199. *Cmd: =PJL_RET_DARK
  200. }
  201. }
  202. *Option: Option5
  203. {
  204. *rcNameID: =PRINT_QUALITY_OFF
  205. *Command: CmdSelect
  206. {
  207. *Order: DOC_SETUP.3
  208. *Cmd: =PJL_RET_OFF
  209. }
  210. }
  211. }
  212. *%%% ======================
  213. *%%% DOC_SETUP.5
  214. *%%% RESOLUTION
  215. *%%% ENTER LANGUAGE=PCLXL
  216. *%%% PCL XL Stream Header
  217. *%%% BeginSession
  218. *%%% CmdEndRaster
  219. *%%% EndImage
  220. *%%% CmdSendBlockData
  221. *%%% EndImage
  222. *Feature: Resolution
  223. {
  224. *rcNameID: =RESOLUTION_DISPLAY
  225. *DefaultOption: Option1
  226. *Option: Option1
  227. {
  228. *Name: "600 x 600 " =DOTS_PER_INCH
  229. *DPI: PAIR(600, 600)
  230. *TextDPI: PAIR(600, 600)
  231. *MinStripBlankPixels: 32
  232. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING, ENCLOSED,TRAILING)
  233. *SpotDiameter: 100
  234. *Command: CmdBeginRaster
  235. {
  236. *Cmd : =PCLXL_CmdBeginRaster
  237. }
  238. *Command: CmdSendBlockData
  239. {
  240. *Cmd : =PCLXL_CmdBeginRaster =PCLXL_CmdSendBlockData
  241. }
  242. *% EndImage(0xb2)
  243. *%
  244. *Command: CmdEndBlockData { *Cmd : =EndImage}
  245. *Command: CmdSelect
  246. {
  247. *Order: DOC_SETUP.5
  248. *Cmd: =PJL_RESOLUTION_600 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600
  249. }
  250. }
  251. *Option: Option2
  252. {
  253. *Name: "300 x 300 " =DOTS_PER_INCH
  254. *DPI: PAIR(300, 300)
  255. *TextDPI: PAIR(300, 300)
  256. *MinStripBlankPixels: 32
  257. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  258. *SpotDiameter: 100
  259. *Command: CmdBeginRaster
  260. {
  261. *Cmd : =PCLXL_CmdBeginRaster
  262. }
  263. *Command: CmdEndRaster { *Cmd : =EndImage }
  264. *Command: CmdSendBlockData
  265. {
  266. *Cmd: =PCLXL_CmdSendBlockData
  267. }
  268. *Command: CmdSelect
  269. {
  270. *Order: DOC_SETUP.5
  271. *Cmd: =PJL_RESOLUTION_300 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession300
  272. }
  273. }
  274. }
  275. *%%% ======================
  276. *%%% DOC_SETUP.6
  277. *%%% OpenDataSource(0x48)
  278. *%%% SourceType(ubyte) & DataOrg(ubyte)
  279. *%%% 136(0x88) 130(0x82)
  280. *Command: CmdStartDoc
  281. {
  282. *Order: DOC_SETUP.6
  283. *Cmd: =ubyte "<00>" =attr_ubyte =SourceType =ubyte "<01>" =attr_ubyte =DataOrg =OpenDataSource
  284. }
  285. *%%% ======================
  286. *%%% PAGE_FINISH
  287. *%%% ======================
  288. *%%% ======================
  289. *%%% PAGE_FINISH.3
  290. *Command: CmdEndPage
  291. {
  292. *Order: PAGE_FINISH.1
  293. *Cmd: =uint16 =NumOfCopy =attr_ubyte =PageCopies =EndPage
  294. }
  295. *%%% ======================
  296. *%%% JOB_FINISH.1
  297. *%%% CmdEndJob
  298. *Command: CmdEndJob
  299. {
  300. *Order: JOB_FINISH.1
  301. *Cmd: =CloseDataSource =EndSession =PJL_ENDJOB
  302. }
  303. *%%% ======================
  304. *%%% PAGE_SETUP
  305. *%%% ======================
  306. *%%% ======================
  307. *%%% PAGE_SETUP.1
  308. *%%% BeginPage(0x43)
  309. *%%% Orientation(40), MediaSize(37), MediaSource(38)
  310. *%%% ubyte ubyte ubyte
  311. *BlockMacro: PaperConstraints
  312. {
  313. *Constraints: LIST(InputBin.Option2)
  314. }
  315. *Feature: PaperSize
  316. {
  317. *rcNameID: =PAPER_SIZE_DISPLAY
  318. *DefaultOption: LETTER
  319. *Option: LETTER
  320. {
  321. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1000
  322. *PageProtectMem: 4109
  323. *switch: Orientation
  324. {
  325. *case: PORTRAIT
  326. {
  327. *PrintableArea: PAIR(4896, 6396)
  328. *PrintableOrigin: PAIR(102, 102)
  329. *CursorOrigin: PAIR(102, 80)
  330. *Command: CmdSelect
  331. {
  332. *Order: PAGE_SETUP.1
  333. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  334. + =ubyte =eLetterPaper =attr_ubyte =MediaSize
  335. }
  336. }
  337. *case: LANDSCAPE_CC90
  338. {
  339. *PrintableArea: PAIR(4896, 6396)
  340. *PrintableOrigin: PAIR(102, 102)
  341. *CursorOrigin: PAIR(100, 6450)
  342. *Command: CmdSelect
  343. {
  344. *Order: PAGE_SETUP.1
  345. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  346. + =ubyte =eLetterPaper =attr_ubyte =MediaSize
  347. }
  348. }
  349. }
  350. }
  351. *Option: LEGAL
  352. {
  353. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  354. *PageProtectMem: 5230
  355. *switch: Orientation
  356. {
  357. *case: PORTRAIT
  358. {
  359. *PrintableArea: PAIR(4896, 8196)
  360. *PrintableOrigin: PAIR(102, 102)
  361. *CursorOrigin: PAIR(102, 80)
  362. *Command: CmdSelect
  363. {
  364. *Order: PAGE_SETUP.1
  365. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  366. + =ubyte =eLegalPaper =attr_ubyte =MediaSize
  367. }
  368. }
  369. *case: LANDSCAPE_CC90
  370. {
  371. *PrintableArea: PAIR(4896, 8196)
  372. *PrintableOrigin: PAIR(102, 102)
  373. *CursorOrigin: PAIR(102, 8250)
  374. *Command: CmdSelect
  375. {
  376. *Order: PAGE_SETUP.1
  377. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  378. + =ubyte =eLegalPaper =attr_ubyte =MediaSize
  379. }
  380. }
  381. }
  382. }
  383. *Option: EXECUTIVE
  384. {
  385. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  386. *PageProtectMem: 4109
  387. *switch: Orientation
  388. {
  389. *case: PORTRAIT
  390. {
  391. *PrintableArea: PAIR(4146, 6096)
  392. *PrintableOrigin: PAIR(102, 102)
  393. *CursorOrigin: PAIR(102, 80)
  394. *Command: CmdSelect
  395. {
  396. *Order: PAGE_SETUP.1
  397. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  398. + =ubyte =eExecPaper =attr_ubyte =MediaSize
  399. }
  400. }
  401. *case: LANDSCAPE_CC90
  402. {
  403. *PrintableArea: PAIR(4146, 6096)
  404. *PrintableOrigin: PAIR(102, 102)
  405. *CursorOrigin: PAIR(100, 6150)
  406. *Command: CmdSelect
  407. {
  408. *Order: PAGE_SETUP.1
  409. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  410. + =ubyte =eExecPaper =attr_ubyte =MediaSize
  411. }
  412. }
  413. }
  414. }
  415. *Option: A4
  416. {
  417. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1008
  418. *PageProtectMem: 4249
  419. *switch: Orientation
  420. {
  421. *case: PORTRAIT
  422. {
  423. *PrintableArea: PAIR(4756, 6810)
  424. *PrintableOrigin: PAIR(102, 102)
  425. *CursorOrigin: PAIR(102, 100)
  426. *Command: CmdSelect
  427. {
  428. *Order: PAGE_SETUP.1
  429. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  430. + =ubyte =eA4Paper =attr_ubyte =MediaSize
  431. }
  432. }
  433. *case: LANDSCAPE_CC90
  434. {
  435. *PrintableArea: PAIR(4756, 6810)
  436. *PrintableOrigin: PAIR(102, 102)
  437. *CursorOrigin: PAIR(100, 6842)
  438. *Command: CmdSelect
  439. {
  440. *Order: PAGE_SETUP.1
  441. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  442. + =ubyte =eA4Paper =attr_ubyte =MediaSize
  443. }
  444. }
  445. }
  446. }
  447. *Option: FOLIO
  448. {
  449. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1000
  450. *PageProtectMem: 4600
  451. *switch: Orientation
  452. {
  453. *case: PORTRAIT
  454. {
  455. *PrintableArea: PAIR(4896, 7596)
  456. *PrintableOrigin: PAIR(102, 102)
  457. *CursorOrigin: PAIR(102, 80)
  458. *Command: CmdSelect
  459. {
  460. *Order: PAGE_SETUP.1
  461. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  462. + =ubyte "<11>" =attr_ubyte =MediaSize
  463. }
  464. }
  465. *case: LANDSCAPE_CC90
  466. {
  467. *PrintableArea: PAIR(4896, 7596)
  468. *PrintableOrigin: PAIR(102, 102)
  469. *CursorOrigin: PAIR(100, 7650)
  470. *Command: CmdSelect
  471. {
  472. *Order: PAGE_SETUP.1
  473. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  474. + =ubyte "<11>" =attr_ubyte =MediaSize
  475. }
  476. }
  477. }
  478. }
  479. *Option: A5
  480. {
  481. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  482. *PageProtectMem: 2125
  483. *switch: Orientation
  484. {
  485. *case: PORTRAIT
  486. {
  487. *PrintableArea: PAIR(3302, 4756)
  488. *PrintableOrigin: PAIR(102, 102)
  489. *CursorOrigin: PAIR(102, 76)
  490. *Command: CmdSelect
  491. {
  492. *Order: PAGE_SETUP.1
  493. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  494. + =ubyte =eA5Paper =attr_ubyte =MediaSize
  495. }
  496. }
  497. *case: LANDSCAPE_CC90
  498. {
  499. *PrintableArea: PAIR(3302, 4756)
  500. *PrintableOrigin: PAIR(102, 102)
  501. *CursorOrigin: PAIR(100, 4790)
  502. *Command: CmdSelect
  503. {
  504. *Order: PAGE_SETUP.1
  505. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  506. + =ubyte =eA5Paper =attr_ubyte =MediaSize
  507. }
  508. }
  509. }
  510. }
  511. *Option: ENV_10
  512. {
  513. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1019
  514. *InsertBlock: =PaperConstraints
  515. *PageProtectMem: 4109
  516. *switch: Orientation
  517. {
  518. *case: PORTRAIT
  519. {
  520. *PrintableArea: PAIR(2270, 5496)
  521. *PrintableOrigin: PAIR(102, 102)
  522. *CursorOrigin: PAIR(102, 90)
  523. *Command: CmdSelect
  524. {
  525. *Order: PAGE_SETUP.1
  526. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  527. + =ubyte =eCOM10Envelope =attr_ubyte =MediaSize
  528. }
  529. }
  530. *case: LANDSCAPE_CC90
  531. {
  532. *PrintableArea: PAIR(2270, 5496)
  533. *PrintableOrigin: PAIR(102, 102)
  534. *CursorOrigin: PAIR(102, 5550)
  535. *Command: CmdSelect
  536. {
  537. *Order: PAGE_SETUP.1
  538. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  539. + =ubyte =eCOM10Envelope =attr_ubyte =MediaSize
  540. }
  541. }
  542. }
  543. }
  544. *Option: ENV_DL
  545. {
  546. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1026
  547. *InsertBlock: =PaperConstraints
  548. *PageProtectMem: 4109
  549. *switch: Orientation
  550. {
  551. *case: PORTRAIT
  552. {
  553. *PrintableArea: PAIR(2394, 4992)
  554. *PrintableOrigin: PAIR(102, 102)
  555. *CursorOrigin: PAIR(102, 90)
  556. *Command: CmdSelect
  557. {
  558. *Order: PAGE_SETUP.1
  559. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  560. + =ubyte =eDLEnvelope =attr_ubyte =MediaSize
  561. }
  562. }
  563. *case: LANDSCAPE_CC90
  564. {
  565. *PrintableArea: PAIR(2394, 4992)
  566. *PrintableOrigin: PAIR(102, 102)
  567. *CursorOrigin: PAIR(100, 5046)
  568. *Command: CmdSelect
  569. {
  570. *Order: PAGE_SETUP.1
  571. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  572. + =ubyte =eDLEnvelope =attr_ubyte =MediaSize
  573. }
  574. }
  575. }
  576. }
  577. *Option: ENV_C5
  578. {
  579. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1027
  580. *InsertBlock: =PaperConstraints
  581. *PageProtectMem: 4109
  582. *switch: Orientation
  583. {
  584. *case: PORTRAIT
  585. {
  586. *PrintableArea: PAIR(3622, 5204)
  587. *PrintableOrigin: PAIR(102, 102)
  588. *CursorOrigin: PAIR(150, 90)
  589. *Command: CmdSelect
  590. {
  591. *Order: PAGE_SETUP.1
  592. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  593. + =ubyte =eC5Envelope =attr_ubyte =MediaSize
  594. }
  595. }
  596. *case: LANDSCAPE_CC90
  597. {
  598. *PrintableArea: PAIR(3622, 5204)
  599. *PrintableOrigin: PAIR(102, 102)
  600. *CursorOrigin: PAIR(100, 5257)
  601. *Command: CmdSelect
  602. {
  603. *Order: PAGE_SETUP.1
  604. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  605. + =ubyte =eC5Envelope =attr_ubyte =MediaSize
  606. }
  607. }
  608. }
  609. }
  610. *Option: ENV_MONARCH
  611. {
  612. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1036
  613. *InsertBlock: =PaperConstraints
  614. *PageProtectMem: 4109
  615. *switch: Orientation
  616. {
  617. *case: PORTRAIT
  618. {
  619. *PrintableArea: PAIR(2120, 4296)
  620. *PrintableOrigin: PAIR(102, 102)
  621. *CursorOrigin: PAIR(102, 90)
  622. *Command: CmdSelect
  623. {
  624. *Order: PAGE_SETUP.1
  625. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  626. + =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize
  627. }
  628. }
  629. *case: LANDSCAPE_CC90
  630. {
  631. *PrintableArea: PAIR(2120, 4206)
  632. *PrintableOrigin: PAIR(102, 102)
  633. *CursorOrigin: PAIR(100, 4350)
  634. *Command: CmdSelect
  635. {
  636. *Order: PAGE_SETUP.1
  637. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  638. + =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize
  639. }
  640. }
  641. }
  642. }
  643. *Option: ENV_B5
  644. {
  645. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  646. *PageProtectMem: 4109
  647. *InsertBlock: =PaperConstraints
  648. *switch: Orientation
  649. {
  650. *case: PORTRAIT
  651. {
  652. *PrintableArea: PAIR(3956, 5704)
  653. *PrintableOrigin: PAIR(102, 102)
  654. *CursorOrigin: PAIR(102, 70)
  655. *Command: CmdSelect
  656. {
  657. *Order: PAGE_SETUP.1
  658. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  659. + =ubyte =eB5Envelope =attr_ubyte =MediaSize
  660. }
  661. }
  662. *case: LANDSCAPE_CC90
  663. {
  664. *PrintableArea: PAIR(3956, 5704)
  665. *PrintableOrigin: PAIR(102, 102)
  666. *CursorOrigin: PAIR(100, 5754)
  667. *Command: CmdSelect
  668. {
  669. *Order: PAGE_SETUP.1
  670. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  671. + =ubyte =eB5Envelope =attr_ubyte =MediaSize
  672. }
  673. }
  674. }
  675. }
  676. }
  677. *%%% ======================
  678. *%%% PAGE_SETUP.2
  679. *%%% BeginPage(0x43)
  680. *%%% Orientation(0x40), MediaSize(0x37), MediaSource(0x38)
  681. *%%% ubyte ubyte ubyte
  682. *%%% MediaSource
  683. *Feature: InputBin
  684. {
  685. *rcNameID: =PAPER_SOURCE_DISPLAY
  686. *DefaultOption: Option1
  687. *Option: Option1
  688. {
  689. *rcNameID: =AUTO_DISPLAY
  690. *Command: CmdSelect
  691. {
  692. *Order: PAGE_SETUP.2
  693. *Cmd: =ubyte =eAutoSelect =attr_ubyte =MediaSource
  694. }
  695. }
  696. *Option: Option2
  697. {
  698. *rcNameID: =TRAY1_DISPLAY
  699. *Command: CmdSelect
  700. {
  701. *Order: PAGE_SETUP.2
  702. *Cmd: =ubyte =eUpperCassette =attr_ubyte =MediaSource
  703. }
  704. }
  705. *Option: Option3
  706. {
  707. *rcNameID: =MANUAL_FEED_DISPLAY
  708. *Command: CmdSelect
  709. {
  710. *Order: PAGE_SETUP.2
  711. *Cmd: =ubyte =eManualFeed =attr_ubyte =MediaSource
  712. }
  713. }
  714. }
  715. *%%% ======================
  716. *%%% PAGE_SETUP.4
  717. *%%% SetPageOrigin
  718. *%%% PageOrigin
  719. *%%% SetPageScale
  720. *switch: Resolution
  721. {
  722. *case: Option2
  723. {
  724. *Command: CmdStartPage
  725. {
  726. *Order: PAGE_SETUP.3
  727. *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  728. + =sint16_xy "<3300><3300>" =attr_ubyte =PageOrigin =SetPageOrigin
  729. + =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  730. + =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  731. }
  732. }
  733. *default
  734. {
  735. *Command: CmdStartPage
  736. {
  737. *Order: PAGE_SETUP.3
  738. *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  739. + =sint16_xy "<6600><6600>" =attr_ubyte =PageOrigin =SetPageOrigin
  740. + =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  741. + =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  742. }
  743. }
  744. }
  745. *%%% ======================
  746. *%%% Feature
  747. *%%% Memory
  748. *Feature: Memory
  749. {
  750. *rcNameID: =PRINTER_MEMORY_DISPLAY
  751. *DefaultOption: 4MB
  752. *MemConfigMB: PAIR(4, 3)
  753. *MemConfigMB: PAIR(8, 7)
  754. *MemConfigMB: PAIR(16, 13)
  755. *MemConfigMB: PAIR(36, 31)
  756. }
  757. *%%% ======================
  758. *%%% Device fonts
  759. *%%% ======================
  760. *DefaultFont: =RC_FONT_COURIERR
  761. *DefaultCTT: 0
  762. *DeviceFonts: LIST(
  763. + =RC_FONT_ALBERTX,
  764. + =RC_FONT_AOLIVEB,
  765. + =RC_FONT_AOLIVER,
  766. + =RC_FONT_ARIALB,
  767. + =RC_FONT_ARIALI,
  768. + =RC_FONT_ARIALJ,
  769. + =RC_FONT_ARIALR,
  770. + =RC_FONT_COURIERB,
  771. + =RC_FONT_COURIERI,
  772. + =RC_FONT_COURIERJ,
  773. + =RC_FONT_COURIERR,
  774. + =RC_FONT_LETGOTHB,
  775. + =RC_FONT_LETGOTHI,
  776. + =RC_FONT_LETGOTHR,
  777. + =RC_FONT_MARGOLDR,
  778. + =RC_FONT_TIMESNRB,
  779. + =RC_FONT_TIMESNRI,
  780. + =RC_FONT_TIMESNRJ,
  781. + =RC_FONT_TIMESNRR,
  782. + =RC_FONT_WINGDINGS,
  783. + =RC_FONT_SYMBOL)
  784. *TTFS: AlbertusX
  785. {
  786. *TTFontName: "Albertus Extra Bold"
  787. *DevFontName: "Albertus Extra Bold"
  788. }
  789. *TTFS: AntiqueOlive
  790. {
  791. *TTFontName: "Antique Olive"
  792. *DevFontName: "Antique Olive"
  793. }
  794. *TTFS: Courier
  795. {
  796. *TTFontName: "Courier New"
  797. *DevFontName: "Courier"
  798. }
  799. *TTFS: LetterGothic
  800. {
  801. *TTFontName: "Letter Gothic"
  802. *DevFontName: "Letter Gothic"
  803. }
  804. *TTFS: Marigold
  805. {
  806. *TTFontName: "Marigold"
  807. *DevFontName: "Marigold"
  808. }
  809. *%% =======================
  810. *%% Optional Input Trays
  811. *%% =======================
  812. *%%% ======================
  813. *%%% PCL XL GPD file main
  814. *%%% ======================
  815. *%%% ======================
  816. *%%% Global Entries
  817. *%%% Attributes
  818. *%%% ======================
  819. *MasterUnits: PAIR(600, 600)
  820. *CodePage: 1252
  821. *ResourceDLL: "pclxl.dll"
  822. *PrinterType: PAGE
  823. *Personality: =PERSONALITY_PCLXL
  824. *rcPersonalityID: =PERSONALITY_PCLXL_DISPLAY
  825. *%%% *rcPrinterIconID:
  826. *%%% *HelpFile:
  827. *%%% ======================
  828. *%%% Printing attributes
  829. *%%% ======================
  830. *RotateCoordinate?: TRUE
  831. *RotateRaster?: TRUE
  832. *RotateFont?: TRUE
  833. *EjectPageWithFF?: FALSE
  834. *TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
  835. *MemoryUsage: LIST(FONT)
  836. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  837. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  838. *CursorYAfterSendBlockData: AUTO_INCREMENT
  839. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  840. *XMoveThreshold: 0
  841. *YMoveThreshold: 0
  842. *XMoveUnit: 600
  843. *YMoveUnit: 600
  844. *%%% *MinGrayFill: 1
  845. *%%% *MaxGrayFill: 100
  846. *%%% *OutputDataFormat: H_BYTE
  847. *%%% *OptimizeLeftBound?: TRUE
  848. *%%% ======================
  849. *%%% Color
  850. *%%% ======================
  851. *Feature: ColorMode
  852. {
  853. *ConcealFromUI?: TRUE
  854. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  855. *DefaultOption: Mono
  856. *Option: Mono
  857. {
  858. *rcNameID: =COLOR_DISPLAY
  859. *Color?: FALSE
  860. *DevNumOfPlanes: 1
  861. *DevBPP: 24
  862. *DrvBPP: 24
  863. *PaletteSize: 256
  864. *PaletteProgrammable?: FALSE
  865. }
  866. }
  867. *%%% ======================
  868. *%%% TrueType fonts
  869. *%%% ======================
  870. *CharPosition: BASELINE
  871. *TTFSEnabled?: TRUE
  872. *FontFormat: OEM_CALLBACK
  873. *MinFontID: 1
  874. *MaxFontID: 65535
  875. *MinGlyphID: 1
  876. *MaxGlyphID: 1000
  877. *%%% ======================
  878. *%%% Cursor commands
  879. *%%% ======================
  880. *Command: CmdCR { *Cmd: =CR}
  881. *Command: CmdLF { *Cmd: =LF}
  882. *Command: CmdFF { *Cmd: =FF}
  883. *%%% SetCursor(0x6b)
  884. *%%% Point(76(0x40c)) uint_16
  885. *%%% SetCursorRel(0x6c)
  886. *%%% Point(76(0x40c)) uint_16
  887. *Command: CmdXMoveAbsolute
  888. {
  889. *Cmd: ""
  890. }
  891. *Command: CmdXMoveRelRight
  892. {
  893. *Cmd: ""
  894. *Params: LIST(DestXRel, TextXRes)
  895. }
  896. *Command: CmdXMoveRelLeft
  897. {
  898. *Cmd: ""
  899. *Params: LIST(DestXRel, TextXRes)
  900. }
  901. *Command: CmdYMoveAbsolute
  902. {
  903. *Cmd: ""
  904. *Params: LIST(DestY, TextYRes)
  905. }
  906. *Command: CmdYMoveRelDown
  907. {
  908. *Cmd: ""
  909. *Params: LIST(DestYRel, TextYRes)
  910. }
  911. *Command: CmdYMoveRelUp
  912. {
  913. *Cmd: ""
  914. *Params: LIST(DestYRel, TextYRes)
  915. }
  916. *%%% *Command: CmdPushCursor
  917. *%%% *Command: CmdPopCursor
  918. *%%% =======================
  919. *%%% Font commands
  920. *%%% =======================
  921. *Command: CmdSetFontID { *Cmd : "" }
  922. *Command: CmdSelectFontID
  923. {
  924. *Cmd: ""
  925. *Params: LIST(FontHeight, CurrentFontID, TextYRes)
  926. }
  927. *Command: CmdSetCharCode
  928. {
  929. *Cmd : ""
  930. }
  931. *Command: CmdBoldOn
  932. {
  933. *Cmd : ""
  934. }
  935. *Command: CmdBoldOff
  936. {
  937. *Cmd : ""
  938. }
  939. *%%% *Command: CmdItalicOn: "=real32_xy "<3ea1e4f700000000>" =attr_ubyte =eCharShear =SetCharShear"
  940. *%%% *Command: CmdItalicOff: "=real32_xy "<0000000000000000>" =attr_ubyte =eCharShear =SetCharShear"
  941. *%%% *Command: CmdWhiteTextOn:
  942. *%%% *Command: CmdWhiteTextOff:
  943. *%%% *Command: CmdSelectSingleByteMode:
  944. *%%% *Command: CmdSelectDoubleByteMode:
  945. *Command: CmdSetAnyRotation
  946. {
  947. *Cmd: ""
  948. *Params: LIST(PrintDirInCCDegrees)
  949. }
  950. *Command: CmdSetSimpleRotation
  951. {
  952. *Cmd: ""
  953. *Params: LIST(PrintDirInCCDegrees)
  954. }
  955.