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.

1192 lines
34 KiB

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