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.

1140 lines
33 KiB

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