home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 March / Chip_2011.03_CD.iso / I386 / DRIVER.CAB / t9020p6.gpd < prev    next >
Encoding:
Text File  |  2001-07-22  |  46.0 KB  |  1,514 lines

  1. *%%
  2. *%% Tally T9020 PCL
  3. *%%
  4. *%% Copyright 1998 - 1999, Microsoft Corp.
  5. *%% All Rights Reserved.
  6. *%%
  7.  
  8. *%%
  9. *%% Global Entries
  10. *%%
  11. *GPDSpecVersion: "1.0"
  12. *GPDFileVersion: "1.0"
  13.  
  14. *%%% ======================
  15. *%%% Include standard GPD files
  16. *%%% =====================
  17. *Include: "StdNames.gpd"
  18. *Include: "ttfsub.gpd"
  19.  
  20. *%%
  21. *%% Model Specific Global Entries
  22. *%%
  23. *GPDFileName: "T9020P6.GPD"
  24. *ModelName:   "Tally T9020 PCL"
  25. *MaxCopies: 999
  26. *PrintRate: 20
  27. *PrintRatePPM: 20
  28. *PrintRateUnit: PPM
  29.  
  30.  
  31. *%%% ======================
  32. *%%% Macros
  33. *%%% ======================
  34. *Include: "pjl.gpd"
  35. *Include: "p6font.gpd"
  36. *Include: "p6disp.gpd"
  37.  
  38. *Macros: TallyPJLCommand
  39. {
  40.     PJL_FEIT_ON:         "@PJL SET FEIT=ON<0A>"
  41.     PJL_FEIT_OFF:        "@PJL SET FEIT=OFF<0A>"
  42.  
  43.     PJL_TRAY1_LOCKED:    "@PJL SET INTRAY1=LOCKED<0A>"
  44.     PJL_TRAY1_UNLOCKED:  "@PJL SET INTRAY1=UNLOCKED<0A>"
  45.     PJL_TRAY2_LOCKED:    "@PJL SET INTRAY2=LOCKED<0A>"
  46.     PJL_TRAY2_UNLOCKED:  "@PJL SET INTRAY2=UNLOCKED<0A>"
  47.     PJL_TRAY3_LOCKED:    "@PJL SET INTRAY3=LOCKED<0A>"
  48.     PJL_TRAY3_UNLOCKED:  "@PJL SET INTRAY3=UNLOCKED<0A>"
  49.     PJL_TRAY4_LOCKED:    "@PJL SET INTRAY4=LOCKED<0A>"
  50.     PJL_TRAY4_UNLOCKED:  "@PJL SET INTRAY4=UNLOCKED<0A>"
  51.     PJL_TRAYMFF_LOCKED:    "@PJL SET INTRAYMFF=LOCKED<0A>"
  52.     PJL_TRAYMFF_UNLOCKED:  "@PJL SET INTRAYMFF=UNLOCKED<0A>"
  53.  
  54.     PJL_MANUALFEED_ON:    "@PJL SET MANUALFEED=ON<0A>"
  55.     PJL_MANUALFEED_OFF:    "@PJL SET MANUALFEED=OFF<0A>"
  56. }
  57.  
  58. *%%% ======================
  59. *%%% Main
  60. *%%% ======================
  61. *Include: "pclxl.gpd"
  62.  
  63. *%%% ======================
  64. *%%% DOC_SETUP, PAGE_FINISH
  65. *%%% , JOB_FINISH
  66. *%%% ======================
  67. *Macros: PCLXLCommand
  68. {
  69. *%%% ---------------------------------------------------------------------------
  70. *%%% PCL XL Stream Header
  71. *%%% ---------------------------------------------------------------------------
  72. PCLXL_StreamHeader: ") HP-PCL XL;1;1;"
  73. +                   "Comment Copyright(c) 1999 Microsoft Corporation<0A>"
  74.  
  75. *%%% ---------------------------------------------------------------------------
  76. *%%% BeginSession
  77. *%%%     Measure(ubyte) & UnitsPerMeasure(uint16_xy) & {ErrorReport(ubyte)}
  78. *%%% ---------------------------------------------------------------------------
  79. PCLXL_BeginSession1200: =uint16_xy "<b004b004>" =attr_ubyte =UnitsPerMeasure =ubyte
  80. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  81.  
  82. PCLXL_BeginSession600: =uint16_xy "<58025802>" =attr_ubyte =UnitsPerMeasure =ubyte
  83. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  84.  
  85. PCLXL_BeginSession300: =uint16_xy "<2c012c01>" =attr_ubyte =UnitsPerMeasure =ubyte
  86. + =eInch =attr_ubyte =Measure =BeginSession
  87.  
  88. Width: %m{ RasterDataWidthInBytes }
  89. Height: %m{ RasterDataHeightInPixels }
  90. DataSize: %l{ NumOfDataBytes }
  91. FntHeight: %l{ FontHeight*600/TextYRes }
  92. FntNextGlyph: %l{ NextGlyph }
  93.  
  94. *%%% ---------------------------------------------------------------------------
  95. *%%% BeginRaster
  96. *%%%     ColorDepth(ubyte) & ColorMapping(ubyte) & SourceWidth(uint16) &
  97. *%%%     SourceWidth(uint16) & SourceHeight(uint16)
  98. *%%% ---------------------------------------------------------------------------
  99. PCLXL_CmdBeginRaster: =ubyte =e1Bit =attr_ubyte =ColorDepth
  100. +                     =ubyte =eDirectPixel =attr_ubyte =ColorMapping
  101. +                     =uint16 =Width =attr_ubyte =SourceWidth
  102. +                     =uint16 =Height =attr_ubyte =SourceHeight
  103. +                     =uint16_xy =Width =Height =attr_ubyte =DestinationSize
  104. +                     =BeginImage
  105. +                     =ubyte =eNoCompression =attr_ubyte =CompressMode
  106. +                     =ubyte "<00>" =attr_ubyte =StartLine
  107. +                     =uint16 =Height =attr_ubyte =BlockHeight
  108. +                     =ReadImage
  109.  
  110. PCLXL_CmdSendBlockData: =dataLength =DataSize "<0000>"
  111.  
  112. DestinationX: %l{DestX}
  113. DestinationY: %l{DestY}
  114. DestinationXRel: %l{DestYRel}
  115. DestinationYRel: %l{DestXRel}
  116. NumOfCopy: %l{NumOfCopies}
  117. PrintDir: %l{PrintDirInCCDegrees}
  118. FntName: =ubyte_array =uint16 "<1000>" "MS PCLXLFont " %3d{CurrentFontID}
  119. }
  120.  
  121. *%%% ======================
  122. *%%% Features and Options
  123. *%%% ======================
  124.  
  125. *%% Orientation
  126. *Feature: Orientation
  127. {
  128.     *rcNameID: =ORIENTATION_DISPLAY
  129.     *DefaultOption: PORTRAIT
  130.     *Option: PORTRAIT
  131.     {
  132.         *rcNameID: =PORTRAIT_DISPLAY
  133.     }
  134.     *Option: LANDSCAPE_CC90
  135.     {
  136.         *rcNameID: =LANDSCAPE_DISPLAY
  137.     }
  138. }
  139.  
  140. *%%% ======================
  141. *%%% DOC_SETUP
  142. *%%% ======================
  143.  
  144. *%%% ======================
  145. *%%% DOC_SETUP.1
  146. *%%% START PLJ JOB
  147. *%%% PAGEPROTECT
  148. *%%% TIMEOUT
  149. *Feature: PageProtect
  150. {
  151.     *rcNameID: =PAGE_PROTECTION_DISPLAY
  152.     *DefaultOption: OFF
  153.     *Option: ON
  154.     {
  155.         *rcNameID: =ON_DISPLAY
  156.         *Command: CmdSelect
  157.         {
  158.             *Order: DOC_SETUP.1
  159.             *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
  160.         }
  161.     }
  162.     *Option: OFF
  163.     {
  164.         *rcNameID: =OFF_DISPLAY
  165.         *Command: CmdSelect
  166.         {
  167.             *Order: DOC_SETUP.1
  168.             *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
  169.         }
  170.     }
  171. }
  172. *%%% ======================
  173. *%%% DOC_SETUP.2
  174. *%%% ECONOMODE
  175. *Feature: Economode
  176. {
  177.     *rcNameID: =ECONOMODE_DISPLAY
  178.     *DefaultOption: Option1
  179.     *Option: Option1
  180.     {
  181.         *rcNameID: =ECONOMODE_DEFAULT_DISPLAY
  182.     }
  183.     *Option: Option2
  184.     {
  185.         *rcNameID: =ECONOMODE_OFF_DISPLAY
  186.         *Command: CmdSelect
  187.         {
  188.             *Order: DOC_SETUP.2
  189.             *Cmd: =PJL_ECONOMODE_OFF
  190.         }
  191.     }
  192.     *Option: Option3
  193.     {
  194.         *rcNameID: =ECONOMODE_ON_DISPLAY
  195.         *Command: CmdSelect
  196.         {
  197.             *Order: DOC_SETUP.2
  198.             *Cmd: =PJL_ECONOMODE_ON
  199.         }
  200.     }
  201. }
  202.  
  203. *%%% ======================
  204. *%%% DOC_SETUP.3
  205. *%%% EDGE_SMOOTHING
  206. *Feature: EDGE_SMOOTHING
  207. {
  208.     *rcNameID: =EDGE_SMOOTHING_DISPLAY
  209.     *DefaultOption: Option1
  210.     *Option: Option1
  211.     {
  212.         *rcNameID: =ON_DISPLAY
  213.         *switch: InputBin
  214.         {
  215.                 *Case: Option3
  216.                 {
  217.                         *Command: CmdSelect
  218.                         {
  219.                                 *Order: DOC_SETUP.3
  220.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_UNLOCKED =PJL_TRAY3_LOCKED 
  221. +                                     =PJL_TRAY4_LOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_OFF 
  222. +                                     =PJL_FEIT_ON
  223.                         }
  224.                 }
  225.                 *Case: Option4
  226.                 {
  227.                         *Command: CmdSelect
  228.                         {
  229.                                 *Order: DOC_SETUP.3
  230.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAY3_UNLOCKED 
  231. +                                     =PJL_TRAY4_LOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_OFF 
  232. +                                     =PJL_FEIT_ON
  233.                         }
  234.                 }
  235.                 *Case: Option5
  236.                 {
  237.                         *Command: CmdSelect
  238.                         {
  239.                                 *Order: DOC_SETUP.3
  240.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAY3_LOCKED 
  241. +                                     =PJL_TRAY4_UNLOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_OFF 
  242. +                                     =PJL_FEIT_ON
  243.                         }
  244.                 }
  245.                 *Case: Option6
  246.                 {
  247.                         *Command: CmdSelect
  248.                         {
  249.                                 *Order: DOC_SETUP.3
  250.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAY3_LOCKED 
  251. +                                     =PJL_TRAY4_LOCKED =PJL_TRAYMFF_UNLOCKED =PJL_MANUALFEED_OFF 
  252. +                                     =PJL_FEIT_ON
  253.                         }
  254.                 }
  255.                 *Case: Option7
  256.                 {
  257.                         *Command: CmdSelect
  258.                         {
  259.                                 *Order: DOC_SETUP.3
  260.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAY3_LOCKED 
  261. +                                     =PJL_TRAY4_LOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_ON
  262. +                                     =PJL_FEIT_ON
  263.                         }
  264.                 }
  265.                 *default
  266.                 {
  267.                         *Command: CmdSelect
  268.                         {
  269.                                 *Order: DOC_SETUP.3
  270.                                 *Cmd: =PJL_FEIT_ON
  271.                         }
  272.                 }
  273.         }
  274.     }
  275.     *Option: Option2
  276.     {
  277.         *rcNameID: =OFF_DISPLAY
  278.         *switch: InputBin
  279.         {
  280.                 *Case: Option3
  281.                 {
  282.                         *Command: CmdSelect
  283.                         {
  284.                                 *Order: DOC_SETUP.3
  285.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_UNLOCKED =PJL_TRAY3_LOCKED 
  286. +                                     =PJL_TRAY4_LOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_OFF 
  287. +                                     =PJL_FEIT_OFF
  288.                         }
  289.                 }
  290.                 *Case: Option4
  291.                 {
  292.                         *Command: CmdSelect
  293.                         {
  294.                                 *Order: DOC_SETUP.3
  295.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAY3_UNLOCKED 
  296. +                                     =PJL_TRAY4_LOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_OFF 
  297. +                                     =PJL_FEIT_OFF
  298.                         }
  299.                 }
  300.                 *Case: Option5
  301.                 {
  302.                         *Command: CmdSelect
  303.                         {
  304.                                 *Order: DOC_SETUP.3
  305.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAY3_LOCKED 
  306. +                                     =PJL_TRAY4_UNLOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_OFF 
  307. +                                     =PJL_FEIT_OFF
  308.                         }
  309.                 }
  310.                 *Case: Option6
  311.                 {
  312.                         *Command: CmdSelect
  313.                         {
  314.                                 *Order: DOC_SETUP.3
  315.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAY3_LOCKED 
  316. +                                     =PJL_TRAY4_LOCKED =PJL_TRAYMFF_UNLOCKED =PJL_MANUALFEED_OFF 
  317. +                                     =PJL_FEIT_OFF
  318.                         }
  319.                 }
  320.                 *Case: Option7
  321.                 {
  322.                         *Command: CmdSelect
  323.                         {
  324.                                 *Order: DOC_SETUP.3
  325.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAY3_LOCKED 
  326. +                                     =PJL_TRAY4_LOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_ON
  327. +                                     =PJL_FEIT_OFF
  328.                         }
  329.                 }
  330.                 *default
  331.                 {
  332.                         *Command: CmdSelect
  333.                         {
  334.                                 *Order: DOC_SETUP.3
  335.                                 *Cmd: =PJL_FEIT_OFF
  336.                         }
  337.                 }
  338.         }
  339.     }
  340. }
  341.  
  342.  
  343. *%%% ======================
  344. *%%% DOC_SETUP.5
  345. *%%%     RESOLUTION
  346. *%%%     ENTER LANGUAGE=PCLXL
  347. *%%%     PCL XL Stream Header
  348. *%%%     BeginSession
  349. *%%% CmdEndRaster
  350. *%%%     EndImage
  351. *%%% CmdSendBlockData
  352. *%%%     EndImage
  353. *Feature: Resolution
  354. {
  355.     *rcNameID: =RESOLUTION_DISPLAY
  356.     *DefaultOption: Option1
  357.     *Option: Option1
  358.     {
  359.         *Name: "1200 x 1200 " =DOTS_PER_INCH
  360.         *DPI: PAIR(1200, 1200)
  361.         *TextDPI: PAIR(1200, 1200)
  362.         *MinStripBlankPixels: 32
  363.         EXTERN_GLOBAL: *StripBlanks: LIST(LEADING, ENCLOSED,TRAILING)
  364.         *SpotDiameter: 120
  365.         *Command: CmdBeginRaster
  366.         {
  367.             *Cmd : =PCLXL_CmdBeginRaster
  368.         }
  369.  
  370.         *Command: CmdSendBlockData
  371.         {
  372.             *Cmd : =PCLXL_CmdBeginRaster =PCLXL_CmdSendBlockData
  373.         }
  374.  
  375.         *% EndImage(0xb2)
  376.         *%
  377.         *Command: CmdEndBlockData { *Cmd : =EndImage}
  378.  
  379.         *Command: CmdSelect
  380.         {
  381.             *Order: DOC_SETUP.5
  382.             *Cmd: =PJL_RESOLUTION_1200 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession1200
  383.         }
  384.     }
  385.     *Option: Option2
  386.     {
  387.         *Name: "600 x 600 " =DOTS_PER_INCH
  388.         *DPI: PAIR(600, 600)
  389.         *TextDPI: PAIR(600, 600)
  390.         *MinStripBlankPixels: 32
  391.         EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  392.         *SpotDiameter: 100
  393.         *Command: CmdBeginRaster
  394.         {
  395.             *Cmd : =PCLXL_CmdBeginRaster
  396.         }
  397.  
  398.         *Command: CmdEndRaster { *Cmd : =EndImage }
  399.         *Command: CmdSendBlockData
  400.         {
  401.             *Cmd : =PCLXL_CmdSendBlockData
  402.         }
  403.  
  404.         *Command: CmdSelect
  405.         {
  406.             *Order: DOC_SETUP.5
  407.             *Cmd: =PJL_RESOLUTION_600 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600
  408.         }
  409.     }
  410.     *Option: Option3
  411.     {
  412.         *Name: "300 x 300 " =DOTS_PER_INCH
  413.         *DPI: PAIR(300, 300)
  414.         *TextDPI: PAIR(300, 300)
  415.         *MinStripBlankPixels: 32
  416.         EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  417.         *SpotDiameter: 100
  418.         *Command: CmdBeginRaster
  419.         {
  420.             *Cmd : =PCLXL_CmdBeginRaster
  421.         }
  422.  
  423.         *Command: CmdEndRaster { *Cmd : =EndImage }
  424.         *Command: CmdSendBlockData
  425.         {
  426.             *Cmd : =PCLXL_CmdSendBlockData
  427.         }
  428.  
  429.         *Command: CmdSelect
  430.         {
  431.             *Order: DOC_SETUP.5
  432.             *Cmd: =PJL_RESOLUTION_300 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession300
  433.         }
  434.     }
  435. }
  436.  
  437. *%%% ======================
  438. *%%% DOC_SETUP.6
  439. *%%% OpenDataSource(0x48)
  440. *%%%     SourceType(ubyte) & DataOrg(ubyte)
  441. *%%%     136(0x88)           130(0x82)
  442. *Command: CmdStartDoc
  443. {
  444.     *Order: DOC_SETUP.6
  445.     *Cmd: =ubyte "<00>" =attr_ubyte =SourceType =ubyte "<01>" =attr_ubyte =DataOrg =OpenDataSource
  446. }
  447.  
  448. *%%% ======================
  449. *%%% PAGE_FINISH
  450. *%%% ======================
  451.  
  452. *%%% ======================
  453. *%%% PAGE_FINISH.3
  454. *Command: CmdEndPage
  455. {
  456.     *Order: PAGE_FINISH.1
  457.     *Cmd: =uint16 =NumOfCopy =attr_ubyte =PageCopies =EndPage
  458. }
  459.  
  460. *%%% ======================
  461. *%%% JOB_FINISH.1
  462. *%%% CmdEndJob
  463. *Command: CmdEndJob
  464. {
  465.     *Order: JOB_FINISH.1
  466.     *Cmd: =CloseDataSource =EndSession =PJL_ENDJOB
  467. }
  468.  
  469. *%%% ======================
  470. *%%% PAGE_SETUP
  471. *%%% ======================
  472.  
  473. *%%% ======================
  474. *%%% PAGE_SETUP.1
  475. *%%% BeginPage(0x43)
  476. *%%%     Orientation(40), MediaSize(37), MediaSource(38)
  477. *%%%     ubyte            ubyte          ubyte
  478.  
  479. *BlockMacro: PaperConstraints
  480. {
  481.     *Constraints: LIST(InputBin.Option2, InputBin.Option3, InputBin.Option4, InputBin.Option5)
  482. }
  483.  
  484. *Feature: PaperSize
  485. {
  486.     *rcNameID: =PAPER_SIZE_DISPLAY
  487.     *DefaultOption: LETTER
  488.     *Option: A5
  489.     {
  490.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  491.         *PageProtectMem: 2125
  492.         *switch: Orientation
  493.         {
  494.             *case: PORTRAIT
  495.             {
  496.                 *PrintableArea: PAIR(6424, 9520)
  497.                 *PrintableOrigin: PAIR(284, 200)
  498.                 *CursorOrigin: PAIR(300, 152)
  499.                 *Command: CmdSelect
  500.                 {
  501.                     *Order: PAGE_SETUP.1
  502.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  503. +                         =ubyte =eA5Paper =attr_ubyte =MediaSize
  504.                 }
  505.  
  506.             }
  507.             *case: LANDSCAPE_CC90
  508.             {
  509.                 *PrintableArea: PAIR(6592, 9448)
  510.                 *PrintableOrigin: PAIR(200, 237)
  511.                 *CursorOrigin: PAIR(200, 9624)
  512.                 *Command: CmdSelect
  513.                 {
  514.                     *Order: PAGE_SETUP.1
  515.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  516. +                         =ubyte =eA5Paper =attr_ubyte =MediaSize
  517.                 }
  518.             }
  519.         }
  520.     }
  521.     *Option: LETTER
  522.     {
  523.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *% rcid 1000
  524.         *PageProtectMem: 4109
  525.         *switch: Orientation
  526.         {
  527.             *case: PORTRAIT
  528.             {
  529.                 *PrintableArea: PAIR(9600, 12796)
  530.                 *PrintableOrigin: PAIR(300, 200)
  531.                 *CursorOrigin: PAIR(300, 160)
  532.                 *Command: CmdSelect
  533.                 {
  534.                     *Order: PAGE_SETUP.1
  535.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  536. +                         =ubyte =eLetterPaper =attr_ubyte =MediaSize
  537.                 }
  538.             }
  539.             *case: LANDSCAPE_CC90
  540.             {
  541.                 *PrintableArea: PAIR(9800, 12720)
  542.                 *PrintableOrigin: PAIR(200, 240)
  543.                 *CursorOrigin: PAIR(200, 12900)
  544.                 *Command: CmdSelect
  545.                 {
  546.                     *Order: PAGE_SETUP.1
  547.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  548. +                         =ubyte =eLetterPaper =attr_ubyte =MediaSize
  549.                 }
  550.             }
  551.         }
  552.     }
  553.     *Option: LEGAL
  554.     {
  555.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  556.         *PageProtectMem: 5230
  557.         *switch: Orientation
  558.         {
  559.             *case: PORTRAIT
  560.             {
  561.                 *PrintableArea: PAIR(9600, 16400)
  562.                 *PrintableOrigin: PAIR(300, 200)
  563.                 *CursorOrigin: PAIR(300, 160)
  564.                 *Command: CmdSelect
  565.                 {
  566.                     *Order: PAGE_SETUP.1
  567.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  568. +                         =ubyte =eLegalPaper =attr_ubyte =MediaSize
  569.                 }
  570.             }
  571.             *case: LANDSCAPE_CC90
  572.             {
  573.                 *PrintableArea: PAIR(9800, 16320)
  574.                 *PrintableOrigin: PAIR(200, 240)
  575.                 *CursorOrigin: PAIR(200, 16500)
  576.                 *Command: CmdSelect
  577.                 {
  578.                     *Order: PAGE_SETUP.1
  579.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  580. +                         =ubyte =eLegalPaper =attr_ubyte =MediaSize
  581.                 }
  582.             }
  583.         }
  584.     }
  585.     *Option: EXECUTIVE
  586.     {
  587.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  588.         *PageProtectMem: 4109
  589.         *switch: Orientation
  590.         {
  591.             *case: PORTRAIT
  592.             {
  593.                 *PrintableArea: PAIR(8100, 12200)
  594.                 *PrintableOrigin: PAIR(300, 200)
  595.                 *CursorOrigin: PAIR(300, 160)
  596.                 *Command: CmdSelect
  597.                 {
  598.                     *Order: PAGE_SETUP.1
  599.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  600. +                         =ubyte =eExecPaper =attr_ubyte =MediaSize
  601.                 }
  602.             }
  603.             *case: LANDSCAPE_CC90
  604.             {
  605.                 *PrintableArea: PAIR(8300, 12120)
  606.                 *PrintableOrigin: PAIR(200, 240)
  607.                 *CursorOrigin: PAIR(200, 12300)
  608.                 *Command: CmdSelect
  609.                 {
  610.                     *Order: PAGE_SETUP.1
  611.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  612. +                         =ubyte =eExecPaper =attr_ubyte =MediaSize
  613.                 }
  614.             }
  615.         }
  616.     }
  617.     *Option: A3
  618.     {
  619.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  620.         *PageProtectMem: 9667
  621.         *switch: Orientation
  622.         {
  623.             *case: PORTRAIT
  624.             {
  625.                 *PrintableArea: PAIR(13460, 19440)
  626.                 *PrintableOrigin: PAIR(284, 200)
  627.                 *CursorOrigin: PAIR(300, 180)
  628.                 *Command: CmdSelect
  629.                 {
  630.                     *Order: PAGE_SETUP.1
  631.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  632. +                         =ubyte =eA3Paper =attr_ubyte =MediaSize
  633.                 }
  634.             }
  635.             *case: LANDSCAPE_CC90
  636.             {
  637.                 *PrintableArea: PAIR(13628, 19368)
  638.                 *PrintableOrigin: PAIR(200, 238)
  639.                 *CursorOrigin: PAIR(200, 19608)
  640.                 *Command: CmdSelect
  641.                 {
  642.                     *Order: PAGE_SETUP.1
  643.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  644. +                         =ubyte =eA3Paper =attr_ubyte =MediaSize
  645.                 }
  646.             }
  647.         }
  648.     }
  649.     *Option: A4
  650.     {
  651.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1008
  652.         *PageProtectMem: 4249
  653.         *switch: Orientation
  654.         {
  655.             *case: PORTRAIT
  656.             {
  657.                 *PrintableArea: PAIR(9352, 13628)
  658.                 *PrintableOrigin: PAIR(284, 200)
  659.                 *CursorOrigin: PAIR(260, 160)
  660.                 *Command: CmdSelect
  661.                 {
  662.                     *Order: PAGE_SETUP.1
  663.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  664. +                         =ubyte =eA4Paper =attr_ubyte =MediaSize
  665.                 }
  666.             }
  667.             *case: LANDSCAPE_CC90
  668.             {
  669.                 *PrintableArea: PAIR(9520, 13556)
  670.                 *PrintableOrigin: PAIR(200, 239)
  671.                 *CursorOrigin: PAIR(200, 13705)
  672.                 *Command: CmdSelect
  673.                 {
  674.                     *Order: PAGE_SETUP.1
  675.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  676. +                         =ubyte =eA4Paper =attr_ubyte =MediaSize
  677.                 }
  678.             }
  679.         }
  680.     }
  681.     *Option: B4
  682.     {
  683.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  684.         *PageProtectMem: 6391
  685.         *switch: Orientation
  686.         {
  687.             *case: PORTRAIT
  688.             {
  689.                 *PrintableArea: PAIR(11572, 16796)
  690.                 *PrintableOrigin: PAIR(284, 200)
  691.                 *CursorOrigin: PAIR(300, 180)
  692.                 *Command: CmdSelect
  693.                 {
  694.                     *Order: PAGE_SETUP.1
  695.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  696. +                         =ubyte =eJB4Paper =attr_ubyte =MediaSize
  697.                 }
  698.             }
  699.             *case: LANDSCAPE_CC90
  700.             {
  701.                 *PrintableArea: PAIR(11736, 16724)
  702.                 *PrintableOrigin: PAIR(200, 236)
  703.                 *CursorOrigin: PAIR(200, 16956)
  704.                 *Command: CmdSelect
  705.                 {
  706.                     *Order: PAGE_SETUP.1
  707.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  708. +                         =ubyte =eJB4Paper =attr_ubyte =MediaSize
  709.                 }
  710.             }
  711.         }
  712.     }
  713.     *Option: B5
  714.     {
  715.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  716.         *PageProtectMem: 3198
  717.         *switch: Orientation
  718.         {
  719.             *case: PORTRAIT
  720.             {
  721.                 *PrintableArea: PAIR(8028, 11740)
  722.                 *PrintableOrigin: PAIR(284, 200)
  723.                 *CursorOrigin: PAIR(200, 152)
  724.                 *Command: CmdSelect
  725.                 {
  726.                     *Order: PAGE_SETUP.1
  727.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  728. +                         =ubyte =eJB5Paper =attr_ubyte =MediaSize
  729.                 }
  730.             }
  731.             *case: LANDSCAPE_CC90
  732.             {
  733.                 *PrintableArea: PAIR(8196, 11668)
  734.                 *PrintableOrigin: PAIR(200, 237)
  735.                 *CursorOrigin: PAIR(200, 11904)
  736.                 *Command: CmdSelect
  737.                 {
  738.                     *Order: PAGE_SETUP.1
  739.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  740. +                         =ubyte =eJB5Paper =attr_ubyte =MediaSize
  741.                 }
  742.             }
  743.         }
  744.     }
  745.     *Option: ENV_10
  746.     {
  747.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1019
  748.         *InsertBlock: =PaperConstraints
  749.         *Constraints: Duplex.VERTICAL
  750.         *Constraints: Duplex.HORIZONTAL
  751.         *PageProtectMem: 4109
  752.         *switch: Orientation
  753.         {
  754.             *case: PORTRAIT
  755.             {
  756.                 *PrintableArea: PAIR(4348, 11000)
  757.                 *PrintableOrigin: PAIR(300, 200)
  758.                 *CursorOrigin: PAIR(300, 180)
  759.                 *Command: CmdSelect
  760.                 {
  761.                     *Order: PAGE_SETUP.1
  762.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  763. +                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize
  764.                 }
  765.             }
  766.             *case: LANDSCAPE_CC90
  767.             {
  768.                 *PrintableArea: PAIR(4548, 10920)
  769.                 *PrintableOrigin: PAIR(200, 240)
  770.                 *CursorOrigin: PAIR(200, 11100)
  771.                 *Command: CmdSelect
  772.                 {
  773.                     *Order: PAGE_SETUP.1
  774.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  775. +                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize
  776.                 }
  777.             }
  778.         }
  779.     }
  780.     *Option: ENV_DL
  781.     {
  782.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1026
  783.         *InsertBlock: =PaperConstraints
  784.         *Constraints: Duplex.VERTICAL
  785.         *Constraints: Duplex.HORIZONTAL
  786.         *PageProtectMem: 4109
  787.         *switch: Orientation
  788.         {
  789.             *case: PORTRAIT
  790.             {
  791.                 *PrintableArea: PAIR(4628, 9992)
  792.                 *PrintableOrigin: PAIR(284, 200)
  793.                 *CursorOrigin: PAIR(300, 180)
  794.                 *Command: CmdSelect
  795.                 {
  796.                     *Order: PAGE_SETUP.1
  797.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  798. +                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize
  799.                 }
  800.             }
  801.             *case: LANDSCAPE_CC90
  802.             {
  803.                 *PrintableArea: PAIR(4796, 9920)
  804.                 *PrintableOrigin: PAIR(200, 237)
  805.                 *CursorOrigin: PAIR(200, 10092)
  806.                 *Command: CmdSelect
  807.                 {
  808.                     *Order: PAGE_SETUP.1
  809.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  810. +                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize
  811.                 }
  812.             }
  813.         }
  814.     }
  815.     *Option: ENV_C5
  816.     {
  817.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1027
  818.         *InsertBlock: =PaperConstraints
  819.         *Constraints: Duplex.VERTICAL
  820.         *Constraints: Duplex.HORIZONTAL
  821.         *PageProtectMem: 4109
  822.         *switch: Orientation
  823.         {
  824.             *case: PORTRAIT
  825.             {
  826.                 *PrintableArea: PAIR(7084, 10416)
  827.                 *PrintableOrigin: PAIR(284, 200)
  828.                 *CursorOrigin: PAIR(300, 180)
  829.                 *Command: CmdSelect
  830.                 {
  831.                     *Order: PAGE_SETUP.1
  832.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  833. +                         =ubyte =eC5Envelope =attr_ubyte =MediaSize
  834.                 }
  835.             }
  836.             *case: LANDSCAPE_CC90
  837.             {
  838.                 *PrintableArea: PAIR(7252, 10344)
  839.                 *PrintableOrigin: PAIR(200, 238)
  840.                 *CursorOrigin: PAIR(200, 10524)
  841.                 *Command: CmdSelect
  842.                 {
  843.                     *Order: PAGE_SETUP.1
  844.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  845. +                         =ubyte =eC5Envelope =attr_ubyte =MediaSize
  846.                 }
  847.             }
  848.         }
  849.     }
  850.     *Option: ENV_MONARCH
  851.     {
  852.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1036
  853.         *InsertBlock: =PaperConstraints
  854.         *Constraints: Duplex.VERTICAL
  855.         *Constraints: Duplex.HORIZONTAL
  856.         *PageProtectMem: 4109
  857.         *switch: Orientation
  858.         {
  859.             *case: PORTRAIT
  860.             {
  861.                 *PrintableArea: PAIR(4048, 8600)
  862.                 *PrintableOrigin: PAIR(300, 200)
  863.                 *CursorOrigin: PAIR(300, 180)
  864.                 *Command: CmdSelect
  865.                 {
  866.                     *Order: PAGE_SETUP.1
  867.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  868. +                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize
  869.                 }
  870.             }
  871.             *case: LANDSCAPE_CC90
  872.             {
  873.                 *PrintableArea: PAIR(4248, 8520)
  874.                 *PrintableOrigin: PAIR(200, 240)
  875.                 *CursorOrigin: PAIR(200, 8700)
  876.                 *Command: CmdSelect
  877.                 {
  878.                     *Order: PAGE_SETUP.1
  879.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  880. +                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize
  881.                 }
  882.             }
  883.         }
  884.     }
  885.     *Option: ENV_B5
  886.     {
  887.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  888.         *PageProtectMem: 4109
  889.         *InsertBlock: =PaperConstraints
  890.         *Constraints: Duplex.VERTICAL
  891.         *Constraints: Duplex.HORIZONTAL
  892.         *switch: Orientation
  893.         {
  894.             *case: PORTRAIT
  895.             {
  896.                 *PrintableArea: PAIR(7744, 11408)
  897.                 *PrintableOrigin: PAIR(284, 200)
  898.                 *CursorOrigin: PAIR(300, 140)
  899.                 *Command: CmdSelect
  900.                 {
  901.                     *Order: PAGE_SETUP.1
  902.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  903. +                         =ubyte =eB5Envelope =attr_ubyte =MediaSize
  904.                 }
  905.             }
  906.             *case: LANDSCAPE_CC90
  907.             {
  908.                 *PrintableArea: PAIR(7912, 11336)
  909.                 *PrintableOrigin: PAIR(200, 239)
  910.                 *CursorOrigin: PAIR(200, 11508)
  911.                 *Command: CmdSelect
  912.                 {
  913.                     *Order: PAGE_SETUP.1
  914.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  915. +                         =ubyte =eB5Envelope =attr_ubyte =MediaSize
  916.                 }
  917.             }
  918.         }
  919.     }
  920.     *Option: 11X17
  921.     {
  922.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  923.         *PageProtectMem: 9350
  924.         *switch: Orientation
  925.         {
  926.             *case: PORTRAIT
  927.             {
  928.                 *PrintableArea: PAIR(12600, 20000)
  929.                 *PrintableOrigin: PAIR(300, 200)
  930.                 *CursorOrigin: PAIR(300, 180)
  931.                 *Command: CmdSelect
  932.                 {
  933.                     *Order: PAGE_SETUP.1
  934.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  935. +                         =uint16_xy "<0B11>" =attr_ubyte =CustomMediaSize
  936. +                          =ubyte =eInch =attr_ubyte =CustomMediaSizeUnits
  937.                 }
  938.             }
  939.             *case: LANDSCAPE_CC90
  940.             {
  941.                 *PrintableArea: PAIR(12800, 19920)
  942.                 *PrintableOrigin: PAIR(200, 240)
  943.                 *CursorOrigin: PAIR(200, 20160)
  944.                 *Command: CmdSelect
  945.                 {
  946.                     *Order: PAGE_SETUP.1
  947.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  948. +                         =uint16_xy "<0B11>" =attr_ubyte =CustomMediaSize
  949. +                          =ubyte =eInch =attr_ubyte =CustomMediaSizeUnits
  950.                 }
  951.             }
  952.         }
  953.     }
  954.     *Option: CUSTOMSIZE
  955.     {
  956.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1255
  957.         *MinSize: PAIR(3600, 6000)
  958.         *MaxSize: PAIR(10200, 32767)
  959.         *MaxPrintableWidth: 10200
  960.         *MinLeftMargin: 100
  961.         *CenterPrintable?: FALSE
  962.         *PageProtectMem: 1692
  963.         *switch: Orientation
  964.         {
  965.             *case: PORTRAIT
  966.             {
  967.                 *CustCursorOriginX:  %d{((PhysPaperWidth - 10200) / 2) + 300 }
  968.                 *CustCursorOriginY:   %d{140 }
  969.                 *CustPrintableOriginX:  %d{300 }
  970.                 *CustPrintableOriginY:  %d{300}
  971.                 *CustPrintableSizeX:   %d{ PhysPaperWidth - 600 }
  972.                 *CustPrintableSizeY:  %d{ PhysPaperLength - 600 }
  973.                 *Command: CmdSelect
  974.                 {
  975.                     *Order: PAGE_SETUP.1
  976.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  977. +                         =uint16_xy %l{(PhysPaperWidth / 1200)}%l{(PhysPaperLength / 1200)} =attr_ubyte =CustomMediaSize
  978. +                         =ubyte =eInch =attr_ubyte =CustomMediaSizeUnits
  979.                 }
  980.             }
  981.             *case: LANDSCAPE_CC90
  982.             {
  983.                 *CustCursorOriginX:  %d{((PhysPaperWidth - 10200) / 2) + 200 }
  984.                 *CustCursorOriginY:   %d{16560 }
  985.                 *CustPrintableOriginX:  %d{200 }
  986.                 *CustPrintableOriginY:  %d{240}
  987.                 *CustPrintableSizeX:   %d{ PhysPaperWidth - 400 }
  988.                 *CustPrintableSizeY:  %d{ PhysPaperLength - 480 }
  989.                 *Command: CmdSelect
  990.                 {
  991.                     *Order: PAGE_SETUP.1
  992.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  993. +                         =uint16_xy %l{(PhysPaperWidth / 1200)}%l{(PhysPaperLength / 1200)} =attr_ubyte =CustomMediaSize
  994. +                         =ubyte =eInch =attr_ubyte =CustomMediaSizeUnits
  995.                 }
  996.             }
  997.         }
  998.     }
  999. }
  1000.  
  1001. *%%% ======================
  1002. *%%% PAGE_SETUP.2
  1003. *%%% BeginPage(0x43)
  1004. *%%%     Orientation(0x40), MediaSize(0x37), MediaSource(0x38)
  1005. *%%%     ubyte               ubyte             ubyte
  1006. *%%%     MediaSource
  1007. *Feature: InputBin
  1008. {
  1009.     *rcNameID: =PAPER_SOURCE_DISPLAY
  1010.     *DefaultOption: Option1
  1011.     *Option: Option1
  1012.     {
  1013.         *rcNameID: =AUTO_DISPLAY
  1014.         *Command: CmdSelect
  1015.         {
  1016.             *Order: PAGE_SETUP.2
  1017.             *Cmd: =ubyte =eAutoSelect =attr_ubyte =MediaSource
  1018.         }
  1019.     }
  1020.     *Option: Option2
  1021.     {
  1022.         *rcNameID: =TRAY1_DISPLAY
  1023.         *Command: CmdSelect
  1024.         {
  1025.             *Order: PAGE_SETUP.2
  1026.             *Cmd: =ubyte =eUpperCassette =attr_ubyte =MediaSource
  1027.         }
  1028.     }
  1029.     *Option: Option3
  1030.     {
  1031.         *rcNameID: =TRAY2_DISPLAY
  1032.         *Command: CmdSelect
  1033.         {
  1034.             *Order: PAGE_SETUP.2
  1035.             *Cmd: =ubyte =eLowerCassette =attr_ubyte =MediaSource
  1036.         }
  1037.     }
  1038.     *Option: Option4
  1039.     {
  1040.         *rcNameID: =TRAY3_DISPLAY
  1041.         *Command: CmdSelect
  1042.         {
  1043.             *Order: PAGE_SETUP.2
  1044.             *Cmd: =ubyte =eThirdCassette =attr_ubyte =MediaSource
  1045.         }
  1046.     }
  1047.     *Option: Option5
  1048.     {
  1049.         *rcNameID: =TRAY4_DISPLAY
  1050.         *Command: CmdSelect
  1051.         {
  1052.             *Order: PAGE_SETUP.2
  1053.             *Cmd: =ubyte "<08>" =attr_ubyte =MediaSource
  1054.         }
  1055.     }
  1056.     *Option: Option6
  1057.     {
  1058.         *rcNameID: =MULTI_FEEDER_DISPLAY
  1059.         *Command: CmdSelect
  1060.         {
  1061.             *Order: PAGE_SETUP.2
  1062.             *Cmd: =ubyte =eEnvelopeTray =attr_ubyte =MediaSource
  1063.         }
  1064.     }
  1065.     *Option: Option7
  1066.     {
  1067.         *rcNameID: =MANUAL_FEED_DISPLAY
  1068.         *Command: CmdSelect
  1069.         {
  1070.             *Order: PAGE_SETUP.2
  1071.             *Cmd: =ubyte =eManualFeed =attr_ubyte =MediaSource
  1072.         }
  1073.     }
  1074. }
  1075.  
  1076. *%%% ======================
  1077. *%%% PAGE_SETUP.3
  1078. *%%% DuplexPageMode(53(0x35))
  1079. *Feature: Duplex
  1080. {
  1081.     *rcNameID: =TWO_SIDED_PRINTING_DISPLAY
  1082.     *DefaultOption: NONE
  1083.     *Option: NONE
  1084.     {
  1085.         *rcNameID: =NONE_DISPLAY
  1086.         *Command: CmdSelect
  1087.         {
  1088.             *Order: PAGE_SETUP.3
  1089.             *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  1090.         }
  1091.     }
  1092.     *Option: VERTICAL
  1093.     {
  1094.         *rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
  1095.         *Command: CmdSelect
  1096.         {
  1097.             *Order: PAGE_SETUP.3
  1098.             *Cmd: =ubyte =eDuplexVerticalBinding =attr_ubyte =DuplexPageMode =BeginPage
  1099.         }
  1100.     }
  1101.     *Option: HORIZONTAL
  1102.     {
  1103.         *rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
  1104.         *Command: CmdSelect
  1105.         {
  1106.             *Order: PAGE_SETUP.3
  1107.             *Cmd: =ubyte =eDuplexHorizontalBinding =attr_ubyte =DuplexPageMode =BeginPage
  1108.         }
  1109.     }
  1110. }
  1111.  
  1112. *%%% ======================
  1113. *%%% PAGE_SETUP.4
  1114. *%%% SetPageOrigin
  1115. *%%%     PageOrigin
  1116. *%%% SetPageScale
  1117. *switch: Resolution
  1118. {
  1119.         *case: Option2  
  1120.         {
  1121.             *switch: Orientation
  1122.             {
  1123.                 *case: PORTRAIT
  1124.                 {
  1125.                         *Command: CmdStartPage
  1126.                         {
  1127.                                 *Order: PAGE_SETUP.4
  1128.                                 *Cmd: =sint16_xy "<8E00><6400>" =attr_ubyte =PageOrigin =SetPageOrigin
  1129. +                                         =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1130. +                                         =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  1131.                         }
  1132.                 }
  1133.                 *case: LANDSCAPE_CC90
  1134.                 {
  1135.                         *Command: CmdStartPage
  1136.                         {
  1137.                                 *Order: PAGE_SETUP.4
  1138.                                 *Cmd: =sint16_xy "<7600><6400>" =attr_ubyte =PageOrigin =SetPageOrigin
  1139. +                                         =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1140. +                                         =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  1141.                         }
  1142.                 }
  1143.             }
  1144.         }
  1145.  
  1146.         *case: Option3
  1147.         {
  1148.             *switch: Orientation
  1149.             {
  1150.                 *case: PORTRAIT
  1151.                 {
  1152.                         *Command: CmdStartPage
  1153.                         {
  1154.                                 *Order: PAGE_SETUP.4
  1155.                                 *Cmd: =sint16_xy "<4700><3200>" =attr_ubyte =PageOrigin =SetPageOrigin
  1156. +                                         =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1157. +                                         =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  1158.                         }
  1159.                 }
  1160.                 *case: LANDSCAPE_CC90
  1161.                 {
  1162.                         *Command: CmdStartPage
  1163.                         {
  1164.                                 *Order: PAGE_SETUP.4
  1165.                                 *Cmd: =sint16_xy "<3b00><3200>" =attr_ubyte =PageOrigin =SetPageOrigin
  1166. +                                         =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1167. +                                         =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  1168.                         }
  1169.                 }
  1170.             }
  1171.         }
  1172.  
  1173.         *default  
  1174.         {
  1175.             *switch: Orientation
  1176.             {
  1177.                 *case: PORTRAIT
  1178.                 {
  1179.                         *Command: CmdStartPage
  1180.                         {
  1181.                                 *Order: PAGE_SETUP.4
  1182.                                 *Cmd: =sint16_xy "<1C01><C800>" =attr_ubyte =PageOrigin =SetPageOrigin
  1183. +                                         =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1184. +                                         =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  1185.                         }
  1186.                 }
  1187.                 *case: LANDSCAPE_CC90
  1188.                 {
  1189.                         *Command: CmdStartPage
  1190.                         {
  1191.                                 *Order: PAGE_SETUP.4
  1192.                                 *Cmd: =sint16_xy "<EC00><CA00>" =attr_ubyte =PageOrigin =SetPageOrigin
  1193. +                                         =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1194. +                                         =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  1195.                         }
  1196.                 }
  1197.             }
  1198.         }
  1199.  
  1200. }
  1201.  
  1202.  
  1203. *%%% ======================
  1204. *%%% Feature
  1205. *%%% Memory
  1206. *Feature: Memory
  1207. {
  1208.     *rcNameID: =PRINTER_MEMORY_DISPLAY
  1209.     *HelpIndex: 12003
  1210.     *DefaultOption: 8MB
  1211.         *MemConfigMB: PAIR(8, 7)
  1212.         *MemConfigMB: PAIR(12, 10)
  1213.         *MemConfigMB: PAIR(16, 13)
  1214.         *MemConfigMB: PAIR(20, 17)
  1215.         *MemConfigMB: PAIR(24, 21)
  1216.         *MemConfigMB: PAIR(28, 24)
  1217.         *MemConfigMB: PAIR(32, 28)
  1218.         *MemConfigMB: PAIR(40, 35)
  1219.         *MemConfigMB: PAIR(44, 39)
  1220.         *MemConfigMB: PAIR(48, 42)
  1221.         *MemConfigMB: PAIR(56, 49)
  1222.         *MemConfigMB: PAIR(72, 64)
  1223. }
  1224.  
  1225. *%%% ======================
  1226. *%%% Device fonts
  1227. *%%% ======================
  1228.  
  1229. *DefaultFont: =RC_FONT_COURIERR
  1230. *DefaultCTT: 0
  1231.  
  1232. *DeviceFonts: LIST(
  1233. +    =RC_FONT_ALBERTX,
  1234. +    =RC_FONT_AOLIVEB,
  1235. +    =RC_FONT_AOLIVER,
  1236. +    =RC_FONT_ARIALB,
  1237. +    =RC_FONT_ARIALI,
  1238. +    =RC_FONT_ARIALJ,
  1239. +    =RC_FONT_ARIALR,
  1240. +    =RC_FONT_COURIERB,
  1241. +    =RC_FONT_COURIERI,
  1242. +    =RC_FONT_COURIERJ,
  1243. +    =RC_FONT_COURIERR,
  1244. +    =RC_FONT_LETGOTHB,
  1245. +    =RC_FONT_LETGOTHI,
  1246. +    =RC_FONT_LETGOTHR,
  1247. +    =RC_FONT_MARGOLDR,
  1248. +    =RC_FONT_TIMESNRB,
  1249. +    =RC_FONT_TIMESNRI,
  1250. +    =RC_FONT_TIMESNRJ,
  1251. +    =RC_FONT_TIMESNRR,
  1252. +    =RC_FONT_WINGDINGS,
  1253. +    =RC_FONT_SYMBOL)
  1254.  
  1255. *TTFS: AlbertusX
  1256. {
  1257.   *TTFontName: "Albertus Extra Bold"
  1258.   *DevFontName: "Albertus Extra Bold"
  1259. }
  1260. *TTFS: AntiqueOlive
  1261. {
  1262.   *TTFontName: "Antique Olive"
  1263.   *DevFontName: "Antique Olive"
  1264. }
  1265. *TTFS: LetterGothic
  1266. {
  1267.   *TTFontName: "Letter Gothic"
  1268.   *DevFontName: "Letter Gothic"
  1269. }
  1270. *TTFS: Marigold
  1271. {
  1272.   *TTFontName: "Marigold"
  1273.   *DevFontName: "Marigold"
  1274. }
  1275.  
  1276. *%% =======================
  1277. *%% Optional Input Trays
  1278. *%% =======================
  1279. *Feature: TRAY2
  1280. {
  1281.     *rcNameID: =TRAY2_DISPLAY
  1282.     *HelpIndex: 12005
  1283.     *FeatureType: PRINTER_PROPERTY
  1284.     *DefaultOption: FALSE
  1285.     *Option: FALSE
  1286.     {
  1287.         *rcNameID: =NOT_INSTALLED_DISPLAY
  1288.     }
  1289.     *Option: TRUE
  1290.     {
  1291.         *rcNameID: =INSTALLED_DISPLAY
  1292.     }
  1293. }
  1294. *InvalidCombination: LIST(TRAY2.FALSE,InputBin.Option3)
  1295.  
  1296. *Feature: TRAY3
  1297. {
  1298.     *rcNameID: =TRAY3_DISPLAY
  1299.     *HelpIndex: 12005
  1300.     *FeatureType: PRINTER_PROPERTY
  1301.     *DefaultOption: FALSE
  1302.     *Option: FALSE
  1303.     {
  1304.         *rcNameID: =NOT_INSTALLED_DISPLAY
  1305.     }
  1306.     *Option: TRUE
  1307.     {
  1308.         *rcNameID: =INSTALLED_DISPLAY
  1309.     }
  1310. }
  1311. *InvalidCombination: LIST(TRAY3.FALSE,InputBin.Option4)
  1312. *InvalidCombination: LIST(TRAY3.TRUE,TRAY2.FALSE)
  1313.  
  1314. *Feature: TRAY4
  1315. {
  1316.     *rcNameID: =TRAY4_DISPLAY
  1317.     *HelpIndex: 12005
  1318.     *FeatureType: PRINTER_PROPERTY
  1319.     *DefaultOption: FALSE
  1320.     *Option: FALSE
  1321.     {
  1322.         *rcNameID: =NOT_INSTALLED_DISPLAY
  1323.     }
  1324.     *Option: TRUE
  1325.     {
  1326.         *rcNameID: =INSTALLED_DISPLAY
  1327.     }
  1328. }
  1329. *InvalidCombination: LIST(TRAY4.FALSE,InputBin.Option5)
  1330. *InvalidCombination: LIST(TRAY4.TRUE,TRAY3.FALSE)
  1331.  
  1332.  
  1333.  
  1334. *%% =======================
  1335. *%% Optional Duplex Unit
  1336. *%% =======================
  1337. *Feature: DuplexUnit
  1338. {
  1339.     *FeatureType: PRINTER_PROPERTY
  1340.     *rcNameID: =DUPLEX_UNIT_DISPLAY
  1341.     *HelpIndex: 12004
  1342.     *DefaultOption: NotInstalled
  1343.     *Option: NotInstalled
  1344.     {
  1345.         *rcNameID: =NOT_INSTALLED_DISPLAY
  1346.         *DisabledFeatures: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1347.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1348.     }
  1349.  
  1350.     *Option: Installed
  1351.     {
  1352.         *rcNameID: =INSTALLED_DISPLAY
  1353.     }
  1354. }
  1355.  
  1356. *%%% ======================
  1357. *%%% PCL XL GPD file main
  1358. *%%% ======================
  1359.  
  1360. *%%% ======================
  1361. *%%% Global Entries
  1362. *%%% Attributes
  1363. *%%% ======================
  1364. *MasterUnits: PAIR(1200, 1200)
  1365. *CodePage: 1252
  1366. *ResourceDLL: "pclxl.dll"
  1367. *PrinterType: PAGE
  1368. *Personality: =PERSONALITY_PCLXL
  1369. *rcPersonalityID: =PERSONALITY_PCLXL_DISPLAY
  1370. *%%% *rcPrinterIconID:
  1371. *%%% *HelpFile:
  1372.  
  1373. *%%% ======================
  1374. *%%% Printing attributes
  1375. *%%% ======================
  1376. *RotateCoordinate?: TRUE
  1377. *RotateRaster?: TRUE
  1378. *RotateFont?: TRUE
  1379. *EjectPageWithFF?: FALSE
  1380.  
  1381. *TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
  1382. *MemoryUsage: LIST(FONT)
  1383. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  1384. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  1385. *CursorYAfterSendBlockData: AUTO_INCREMENT
  1386. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  1387. *XMoveThreshold: 0
  1388. *YMoveThreshold: 0
  1389. *XMoveUnit: 1200
  1390. *YMoveUnit: 1200
  1391.  
  1392. *%%% *MinGrayFill: 1
  1393. *%%% *MaxGrayFill: 100
  1394.  
  1395. *%%% *OutputDataFormat: H_BYTE
  1396. *%%% *OptimizeLeftBound?: TRUE
  1397.  
  1398. *%%% ======================
  1399. *%%% Color
  1400. *%%% ======================
  1401. *Feature: ColorMode
  1402. {
  1403.     *ConcealFromUI?: TRUE
  1404.     *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  1405.     *DefaultOption: Mono
  1406.     *Option: Mono
  1407.     {
  1408.         *rcNameID: =COLOR_DISPLAY
  1409.         *Color?: FALSE
  1410.         *DevNumOfPlanes: 1
  1411.         *DevBPP: 24
  1412.         *DrvBPP: 24
  1413.         *PaletteSize: 256
  1414.         *PaletteProgrammable?: FALSE
  1415.     }
  1416. }
  1417.  
  1418. *%%% ======================
  1419. *%%% TrueType fonts
  1420. *%%% ======================
  1421.  
  1422. *CharPosition: BASELINE
  1423. *TTFSEnabled?: TRUE
  1424. *FontFormat: OEM_CALLBACK
  1425. *MinFontID: 1
  1426. *MaxFontID: 65535
  1427. *MinGlyphID: 1
  1428. *MaxGlyphID: 1000
  1429.  
  1430. *%%% ======================
  1431. *%%% Cursor commands
  1432. *%%% ======================
  1433.  
  1434. *Command: CmdCR { *Cmd: =CR}
  1435. *Command: CmdLF { *Cmd: =LF}
  1436. *Command: CmdFF { *Cmd: =FF}
  1437.  
  1438. *%%% SetCursor(0x6b)
  1439. *%%%     Point(76(0x40c)) uint_16
  1440. *%%% SetCursorRel(0x6c)
  1441. *%%%     Point(76(0x40c)) uint_16
  1442. *Command: CmdXMoveAbsolute
  1443. {
  1444.     *Cmd: ""
  1445. }
  1446. *Command: CmdXMoveRelRight
  1447. {
  1448.     *Cmd: ""
  1449.     *Params: LIST(DestXRel, TextXRes)
  1450. }
  1451. *Command: CmdXMoveRelLeft
  1452. {
  1453.     *Cmd: ""
  1454.     *Params: LIST(DestXRel, TextXRes)
  1455. }
  1456. *Command: CmdYMoveAbsolute
  1457. {
  1458.     *Cmd: ""
  1459.     *Params: LIST(DestY, TextYRes)
  1460. }
  1461. *Command: CmdYMoveRelDown
  1462. {
  1463.     *Cmd: ""
  1464.     *Params: LIST(DestYRel, TextYRes)
  1465. }
  1466. *Command: CmdYMoveRelUp
  1467. {
  1468.     *Cmd: ""
  1469.     *Params: LIST(DestYRel, TextYRes)
  1470. }
  1471. *%%% *Command: CmdPushCursor
  1472. *%%% *Command: CmdPopCursor
  1473.  
  1474. *%%% =======================
  1475. *%%% Font commands
  1476. *%%% =======================
  1477.  
  1478. *Command: CmdSetFontID { *Cmd : "" }
  1479. *Command: CmdSelectFontID
  1480. {
  1481.     *Cmd: ""
  1482.     *Params: LIST(FontHeight, CurrentFontID, TextYRes)
  1483. }
  1484.  
  1485. *Command: CmdSetCharCode
  1486. {
  1487.     *Cmd : ""
  1488. }
  1489.  
  1490. *Command: CmdBoldOn
  1491. {
  1492.     *Cmd : ""
  1493. }
  1494. *Command: CmdBoldOff
  1495. {
  1496.     *Cmd : ""
  1497. }
  1498. *%%% *Command: CmdItalicOn: "=real32_xy "<3ea1e4f700000000>" =attr_ubyte =eCharShear =SetCharShear"
  1499. *%%% *Command: CmdItalicOff: "=real32_xy "<0000000000000000>" =attr_ubyte =eCharShear =SetCharShear"
  1500. *%%% *Command: CmdWhiteTextOn:
  1501. *%%% *Command: CmdWhiteTextOff:
  1502. *%%% *Command: CmdSelectSingleByteMode:
  1503. *%%% *Command: CmdSelectDoubleByteMode:
  1504. *Command: CmdSetAnyRotation
  1505. {
  1506.     *Cmd: ""
  1507.     *Params: LIST(PrintDirInCCDegrees)
  1508. }
  1509. *Command: CmdSetSimpleRotation
  1510. {
  1511.     *Cmd: ""
  1512.     *Params: LIST(PrintDirInCCDegrees)
  1513. }
  1514.