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.

1258 lines
36 KiB

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