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.

1041 lines
29 KiB

  1. *%%
  2. *%% Tally T9212 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: "T9212P6.GPD"
  21. *ModelName: "Tally T9212 PCL"
  22. *MaxCopies: 999
  23. *PrintRate: 12
  24. *PrintRatePPM: 12
  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, InputBin.Option3)
  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: =TRAY2_DISPLAY
  708. *Command: CmdSelect
  709. {
  710. *Order: PAGE_SETUP.2
  711. *Cmd: =ubyte =eLowerCassette =attr_ubyte =MediaSource
  712. }
  713. }
  714. *Option: Option4
  715. {
  716. *rcNameID: =MANUAL_FEED_DISPLAY
  717. *Command: CmdSelect
  718. {
  719. *Order: PAGE_SETUP.2
  720. *Cmd: =ubyte =eManualFeed =attr_ubyte =MediaSource
  721. }
  722. }
  723. }
  724. *%%% ======================
  725. *%%% PAGE_SETUP.4
  726. *%%% SetPageOrigin
  727. *%%% PageOrigin
  728. *%%% SetPageScale
  729. *switch: Resolution
  730. {
  731. *case: Option2
  732. {
  733. *Command: CmdStartPage
  734. {
  735. *Order: PAGE_SETUP.3
  736. *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  737. + =sint16_xy "<3300><3300>" =attr_ubyte =PageOrigin =SetPageOrigin
  738. + =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  739. + =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  740. }
  741. }
  742. *default
  743. {
  744. *Command: CmdStartPage
  745. {
  746. *Order: PAGE_SETUP.3
  747. *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  748. + =sint16_xy "<6600><6600>" =attr_ubyte =PageOrigin =SetPageOrigin
  749. + =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  750. + =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  751. }
  752. }
  753. }
  754. *%%% ======================
  755. *%%% Feature
  756. *%%% Memory
  757. *Feature: Memory
  758. {
  759. *rcNameID: =PRINTER_MEMORY_DISPLAY
  760. *DefaultOption: 4MB
  761. *MemConfigMB: PAIR(4, 3)
  762. *MemConfigMB: PAIR(8, 7)
  763. *MemConfigMB: PAIR(16, 13)
  764. *MemConfigMB: PAIR(36, 31)
  765. }
  766. *%%% ======================
  767. *%%% Device fonts
  768. *%%% ======================
  769. *DefaultFont: =RC_FONT_COURIERR
  770. *DefaultCTT: 0
  771. *DeviceFonts: LIST(
  772. + =RC_FONT_ALBERTX,
  773. + =RC_FONT_AOLIVEB,
  774. + =RC_FONT_AOLIVER,
  775. + =RC_FONT_ARIALB,
  776. + =RC_FONT_ARIALI,
  777. + =RC_FONT_ARIALJ,
  778. + =RC_FONT_ARIALR,
  779. + =RC_FONT_COURIERB,
  780. + =RC_FONT_COURIERI,
  781. + =RC_FONT_COURIERJ,
  782. + =RC_FONT_COURIERR,
  783. + =RC_FONT_LETGOTHB,
  784. + =RC_FONT_LETGOTHI,
  785. + =RC_FONT_LETGOTHR,
  786. + =RC_FONT_MARGOLDR,
  787. + =RC_FONT_TIMESNRB,
  788. + =RC_FONT_TIMESNRI,
  789. + =RC_FONT_TIMESNRJ,
  790. + =RC_FONT_TIMESNRR,
  791. + =RC_FONT_WINGDINGS,
  792. + =RC_FONT_SYMBOL)
  793. *TTFS: AlbertusX
  794. {
  795. *TTFontName: "Albertus Extra Bold"
  796. *DevFontName: "Albertus Extra Bold"
  797. }
  798. *TTFS: AntiqueOlive
  799. {
  800. *TTFontName: "Antique Olive"
  801. *DevFontName: "Antique Olive"
  802. }
  803. *TTFS: Courier
  804. {
  805. *TTFontName: "Courier New"
  806. *DevFontName: "Courier"
  807. }
  808. *TTFS: LetterGothic
  809. {
  810. *TTFontName: "Letter Gothic"
  811. *DevFontName: "Letter Gothic"
  812. }
  813. *TTFS: Marigold
  814. {
  815. *TTFontName: "Marigold"
  816. *DevFontName: "Marigold"
  817. }
  818. *%% =======================
  819. *%% Optional Input Trays
  820. *%% =======================
  821. *Feature: TRAY2
  822. {
  823. *rcNameID: =TRAY2_DISPLAY
  824. *FeatureType: PRINTER_PROPERTY
  825. *DefaultOption: FALSE
  826. *Option: FALSE
  827. {
  828. *rcNameID: =NOT_INSTALLED_DISPLAY
  829. }
  830. *Option: TRUE
  831. {
  832. *rcNameID: =INSTALLED_DISPLAY
  833. }
  834. }
  835. *InvalidCombination: LIST(TRAY2.FALSE,InputBin.Option3)
  836. *%%% ======================
  837. *%%% PCL XL GPD file main
  838. *%%% ======================
  839. *%%% ======================
  840. *%%% Global Entries
  841. *%%% Attributes
  842. *%%% ======================
  843. *MasterUnits: PAIR(600, 600)
  844. *CodePage: 1252
  845. *ResourceDLL: "pclxl.dll"
  846. *PrinterType: PAGE
  847. *Personality: =PERSONALITY_PCLXL
  848. *rcPersonalityID: =PERSONALITY_PCLXL_DISPLAY
  849. *%%% *rcPrinterIconID:
  850. *%%% *HelpFile:
  851. *%%% ======================
  852. *%%% Printing attributes
  853. *%%% ======================
  854. *RotateCoordinate?: TRUE
  855. *RotateRaster?: TRUE
  856. *RotateFont?: TRUE
  857. *EjectPageWithFF?: FALSE
  858. *TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
  859. *MemoryUsage: LIST(FONT)
  860. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  861. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  862. *CursorYAfterSendBlockData: AUTO_INCREMENT
  863. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  864. *XMoveThreshold: 0
  865. *YMoveThreshold: 0
  866. *XMoveUnit: 600
  867. *YMoveUnit: 600
  868. *%%% *MinGrayFill: 1
  869. *%%% *MaxGrayFill: 100
  870. *%%% *OutputDataFormat: H_BYTE
  871. *%%% *OptimizeLeftBound?: TRUE
  872. *%%% ======================
  873. *%%% Color
  874. *%%% ======================
  875. *Feature: ColorMode
  876. {
  877. *ConcealFromUI?: TRUE
  878. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  879. *DefaultOption: Mono
  880. *Option: Mono
  881. {
  882. *rcNameID: =COLOR_DISPLAY
  883. *Color?: FALSE
  884. *DevNumOfPlanes: 1
  885. *DevBPP: 24
  886. *DrvBPP: 24
  887. *PaletteSize: 256
  888. *PaletteProgrammable?: FALSE
  889. }
  890. }
  891. *%%% ======================
  892. *%%% TrueType fonts
  893. *%%% ======================
  894. *CharPosition: BASELINE
  895. *TTFSEnabled?: TRUE
  896. *FontFormat: OEM_CALLBACK
  897. *MinFontID: 1
  898. *MaxFontID: 65535
  899. *MinGlyphID: 1
  900. *MaxGlyphID: 1000
  901. *%%% ======================
  902. *%%% Cursor commands
  903. *%%% ======================
  904. *Command: CmdCR { *Cmd: =CR}
  905. *Command: CmdLF { *Cmd: =LF}
  906. *Command: CmdFF { *Cmd: =FF}
  907. *%%% SetCursor(0x6b)
  908. *%%% Point(76(0x40c)) uint_16
  909. *%%% SetCursorRel(0x6c)
  910. *%%% Point(76(0x40c)) uint_16
  911. *Command: CmdXMoveAbsolute
  912. {
  913. *Cmd: ""
  914. }
  915. *Command: CmdXMoveRelRight
  916. {
  917. *Cmd: ""
  918. *Params: LIST(DestXRel, TextXRes)
  919. }
  920. *Command: CmdXMoveRelLeft
  921. {
  922. *Cmd: ""
  923. *Params: LIST(DestXRel, TextXRes)
  924. }
  925. *Command: CmdYMoveAbsolute
  926. {
  927. *Cmd: ""
  928. *Params: LIST(DestY, TextYRes)
  929. }
  930. *Command: CmdYMoveRelDown
  931. {
  932. *Cmd: ""
  933. *Params: LIST(DestYRel, TextYRes)
  934. }
  935. *Command: CmdYMoveRelUp
  936. {
  937. *Cmd: ""
  938. *Params: LIST(DestYRel, TextYRes)
  939. }
  940. *%%% *Command: CmdPushCursor
  941. *%%% *Command: CmdPopCursor
  942. *%%% =======================
  943. *%%% Font commands
  944. *%%% =======================
  945. *Command: CmdSetFontID { *Cmd : "" }
  946. *Command: CmdSelectFontID
  947. {
  948. *Cmd: ""
  949. *Params: LIST(FontHeight, CurrentFontID, TextYRes)
  950. }
  951. *Command: CmdSetCharCode
  952. {
  953. *Cmd : ""
  954. }
  955. *Command: CmdBoldOn
  956. {
  957. *Cmd : ""
  958. }
  959. *Command: CmdBoldOff
  960. {
  961. *Cmd : ""
  962. }
  963. *%%% *Command: CmdItalicOn: "=real32_xy "<3ea1e4f700000000>" =attr_ubyte =eCharShear =SetCharShear"
  964. *%%% *Command: CmdItalicOff: "=real32_xy "<0000000000000000>" =attr_ubyte =eCharShear =SetCharShear"
  965. *%%% *Command: CmdWhiteTextOn:
  966. *%%% *Command: CmdWhiteTextOff:
  967. *%%% *Command: CmdSelectSingleByteMode:
  968. *%%% *Command: CmdSelectDoubleByteMode:
  969. *Command: CmdSetAnyRotation
  970. {
  971. *Cmd: ""
  972. *Params: LIST(PrintDirInCCDegrees)
  973. }
  974. *Command: CmdSetSimpleRotation
  975. {
  976. *Cmd: ""
  977. *Params: LIST(PrintDirInCCDegrees)
  978. }
  979.