home *** CD-ROM | disk | FTP | other *** search
/ Chip 2009 November / Chip_2009.11_CD.iso / I386 / DRIVER.CAB / hplj4050.gpd < prev    next >
Encoding:
Text File  |  2001-07-22  |  42.1 KB  |  1,555 lines

  1. *GPDSpecVersion: "1.0"
  2. *GPDFileVersion: "1.112"
  3. *GPDFileName: "hplj4050.gpd"
  4. *Include: "StdNames.gpd"
  5. *Include: "ttfsub.gpd"
  6. *ModelName: "HP LaserJet 4050 Series PCL"
  7. *MasterUnits: PAIR(1200, 1200)
  8. *ResourceDLL: "pcl5eres.dll"
  9. *HelpFile: "hpcljx.hlp"
  10.  
  11. *Feature: RESDLL
  12. {
  13.     *Option: StrResSec
  14.     {
  15.         *Name: "hpcstr.dll"
  16.     }
  17.  
  18.     *Option: FontRes
  19.     {
  20.         *Name: "hpcfont.dll"
  21.     }
  22. }
  23.  
  24. *PrinterType: PAGE
  25. *MaxCopies: 999
  26. *FontCartSlots: 3
  27. *PrintRate: 17
  28. *PrintRatePPM: 17
  29. *PrintRateUnit: PPM
  30.  
  31. *%**************************************************************
  32. *%    Custom Feature - Installable Option - Hard Disk
  33. *%**************************************************************
  34. *Feature: PrinterHardDisk
  35. {
  36.     *rcNameID: RESDLL.StrResSec.181
  37.     *HelpIndex: 12002
  38.     *FeatureType: PRINTER_PROPERTY
  39.     *DefaultOption: FALSE
  40.     *Option: FALSE
  41.     {
  42.         *rcNameID: 444
  43.         
  44.         *switch:  Memory  
  45.         {
  46.         *case: 4MB
  47.              {
  48.                  *DisabledFeatures: LIST(Collate)
  49.              }
  50.         *case: 8MB
  51.              {
  52.                  *DisabledFeatures: LIST(Collate)
  53.              }
  54.         *case: 12MB
  55.              {
  56.                  *DisabledFeatures: LIST(Collate)
  57.              }
  58.         }
  59.     }
  60.     *Option: TRUE
  61.     {
  62.         *rcNameID: 443
  63.     }
  64. }
  65.  
  66. *%***********************************
  67. *%    Custom Feature - Job Retention
  68. *%***********************************
  69. *Feature: JobRetention
  70. {
  71.     *rcNameID: RESDLL.StrResSec.187
  72.     *HelpIndex: 12013
  73.     *FeatureType: PRINTER_PROPERTY
  74.     *DefaultOption: FALSE
  75.     *Option: FALSE
  76.     {
  77.         *rcNameID: RESDLL.StrResSec.191
  78.     }
  79.     *Option: TRUE
  80.     {
  81.         *rcNameID: RESDLL.StrResSec.189
  82.     }
  83. }
  84.  
  85. *InvalidCombination: LIST(JobRetention.TRUE, PrinterHardDisk.FALSE)
  86.  
  87. *%*****************************************************************************
  88. *% JRConstraints will have an option value for full, none or partial
  89. *% (1) JRCHDFull - the printer requires a Hard Disk for ALL JR options
  90. *% (2) JRCHDPartial - the printer requires a HardDisk only for SOME JR options
  91. *%                    These options will be specified in another custom feature
  92. *% (3) JRCHDNone - the printer does NOT require a HardDisk for ANY JR options
  93. *%*****************************************************************************
  94.  
  95. *%*************************************************************
  96. *%    Printer Specific Feature Data - Job Retention Constraints
  97. *%*************************************************************
  98. *Feature: JRConstraints
  99. {
  100.     *Name: "JRConstraints"
  101.     *FeatureType: DOC_PROPERTY
  102.     *DefaultOption: JRCHDFull
  103.     *Option: JRCHDFull
  104.     {
  105.         *Name: "JRCHDFull"
  106.     }
  107.     *Option: JRCJobRet
  108.     {
  109.         *Name: "JRCJobRet" 
  110.     }
  111.     *Option: 0
  112.     {
  113.         *Name: "0"
  114.     }
  115. }
  116.  
  117. *%*************************************************************
  118. *%    Printer Specific Command Callback Data
  119. *%*************************************************************
  120. *Feature: JRCmdCallback
  121. {
  122.     *Name: "JRCmdCallback"
  123.     *ConcealFromUI?: TRUE
  124.     *FeatureType: DOC_PROPERTY
  125.     *DefaultOption: JR
  126.     *Option: JR
  127.     {
  128.         *Name: "JR"
  129.         *Command: CmdSelect
  130.         {
  131.             *Order: JOB_SETUP.2
  132.             *CallbackID:1 
  133.         }
  134.     }
  135. }
  136.  
  137. *%*************************************************************
  138. *%    Printer Specific Feature Data - Model Name
  139. *%*************************************************************
  140. *Feature: HPPrinterModelName
  141. {
  142.     *Name: "HPPrinterModelName"
  143.     *ConcealFromUI?:TRUE
  144.     *FeatureType: DOC_PROPERTY
  145.     *DefaultOption: HP_LaserJet_4050_Series_PCL
  146.     *Option: HP_LaserJet_4050_Series_PCL
  147.     {
  148.         *Name: "HP LaserJet 4050 Series PCL"
  149.     }
  150. }
  151.  
  152. *Feature: Orientation
  153. {
  154.     *rcNameID: =ORIENTATION_DISPLAY
  155.     *DefaultOption: PORTRAIT
  156.     *Option: PORTRAIT
  157.     {
  158.         *rcNameID: =PORTRAIT_DISPLAY
  159.         *Command: CmdSelect
  160.         {
  161.             *Order: DOC_SETUP.2
  162.             *NoPageEject?: TRUE
  163.             *Cmd: "<1B>&l0o1E"
  164.         }
  165.     }
  166.     *Option: LANDSCAPE_CC90
  167.     {
  168.         *rcNameID: =LANDSCAPE_DISPLAY
  169.         *Command: CmdSelect
  170.         {
  171.             *Order: DOC_SETUP.2
  172.             *NoPageEject?: TRUE
  173.             *Cmd: "<1B>&l1o1E"
  174.         }
  175.     }
  176. }
  177.  
  178. *Feature: InputBin{ *Option: Option1{} *Option: Option2{} *Option: Option3{} *Option: Option4{} *Option: Option6{} *Option: Option7{} *Option: ENVFEED{} }
  179.  
  180. *Feature: InputBin
  181. {
  182.     *rcNameID: =PAPER_SOURCE_DISPLAY
  183.     *DefaultOption: Option1
  184.     *Option: Option1
  185.     {
  186.         *rcNameID: 271
  187.         *Command: CmdSelect
  188.         {
  189.             *Order: DOC_SETUP.5
  190.             *Cmd: "<1B>&l7H"
  191.         }
  192.     }
  193.     *Option: Option2
  194.     {
  195.         *rcNameID: 276
  196.         *Command: CmdSelect
  197.         {
  198.             *Order: DOC_SETUP.5
  199.             *Cmd: "<1B>&l4H"
  200.         }
  201.     }
  202.     *Option: Option3
  203.     {
  204.         *rcNameID: 277
  205.         *Command: CmdSelect
  206.         {
  207.             *Order: DOC_SETUP.5
  208.             *Cmd: "<1B>&l1H"
  209.         }
  210.     }
  211.     *Option: Option4
  212.     {
  213.         *rcNameID: 410
  214.         *Command: CmdSelect
  215.         {
  216.             *Order: DOC_SETUP.5
  217.             *Cmd: "<1B>&l5H"
  218.         }
  219.     }
  220.     *Option: ENVFEED
  221.     {
  222.         *rcNameID: =ENV_FEED_DISPLAY
  223.         *Command: CmdSelect
  224.         {
  225.             *Order: DOC_SETUP.5
  226.             *Cmd: "<1B>&l6H"
  227.         }
  228.     }
  229.     *Option: Option6
  230.     {
  231.         *rcNameID: 428
  232.         *Command: CmdSelect
  233.         {
  234.             *Order: DOC_SETUP.5
  235.             *Cmd: "<1B>&l8H"
  236.         }
  237.     }
  238.     *Option: Option7
  239.     {
  240.         *rcNameID: 494
  241.         *Command: CmdSelect
  242.         {
  243.             *Order: DOC_SETUP.5
  244.             *Cmd: "<1B>&l2H"
  245.         }
  246.     }
  247. }
  248.  
  249. *Feature: TRAY3
  250. {
  251.     *rcNameID: 410
  252.     *HelpIndex: 12005
  253.     *FeatureType: PRINTER_PROPERTY
  254.     *DefaultOption: FALSE
  255.     *Option: FALSE
  256.     {
  257.         *rcNameID: 444
  258.     }
  259.     *Option: TRUE
  260.     {
  261.         *rcNameID: 443
  262.     }
  263. }
  264. *InvalidCombination: LIST(TRAY3.FALSE,InputBin.Option4)
  265.  
  266. *Feature: TRAY4
  267. {
  268.     *rcNameID: 428
  269.     *HelpIndex: 12005
  270.     *FeatureType: PRINTER_PROPERTY
  271.     *DefaultOption: FALSE
  272.     *Option: FALSE
  273.     {
  274.         *rcNameID: 444
  275.     }
  276.     *Option: TRUE
  277.     {
  278.         *rcNameID: 443
  279.     }
  280. }
  281. *InvalidCombination: LIST(TRAY4.FALSE,InputBin.Option6)
  282.  
  283. *Feature: EnvFeeder
  284. {
  285.     *rcNameID: =ENV_FEED_DISPLAY
  286.     *HelpIndex: 12000
  287.     *FeatureType: PRINTER_PROPERTY
  288.     *DefaultOption: FALSE
  289.     *Option: FALSE
  290.     {
  291.         *rcNameID: 444
  292.     }
  293.     *Option: TRUE
  294.     {
  295.         *rcNameID: 443
  296.     }
  297. }
  298. *InvalidCombination: LIST(EnvFeeder.FALSE,InputBin.ENVFEED)
  299.  
  300. *Feature: DuplexUnit
  301. {
  302.     *FeatureType: PRINTER_PROPERTY
  303.     *rcNameID: 429
  304.     *HelpIndex: 12004
  305.     *DefaultOption: Installed
  306.     *Option: NotInstalled
  307.     {
  308.         *rcNameID: 444
  309.         *DisabledFeatures: LIST(Duplex)
  310.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  311.     }
  312.     *Option: Installed
  313.     {
  314.         *rcNameID: 443
  315.     }
  316. }
  317.  
  318. *% The invalid combination constraints do not produce the desired result in this cases,
  319. *% Collation is turned off even though the user has it checked in the print dialog.
  320. *%InvalidCombination: LIST(Collate.ON, PrinterHardDisk.FALSE, Memory.4MB)
  321. *%InvalidCombination: LIST(Collate.ON, PrinterHardDisk.FALSE, Memory.8MB)
  322. *%InvalidCombination: LIST(Collate.ON, PrinterHardDisk.FALSE, Memory.12MB)
  323.  
  324. *Feature: Collate
  325. {
  326.     *rcNameID: 392
  327.     *DefaultOption: OFF
  328.     *Option: ON
  329.     {
  330.         *rcNameID: =ON_DISPLAY
  331.         *switch: PrinterHardDisk
  332.         {
  333.             *case: FALSE
  334.             {
  335.                 *switch:  Memory  
  336.                 {
  337.                     *case: 4MB
  338.                     {
  339.                         *Command: CmdSelect
  340.                         {
  341.                             *Order: JOB_SETUP.5
  342.                             *Cmd: ""
  343.                         }
  344.                     }
  345.                     *case: 8MB
  346.                     {
  347.                         *Command: CmdSelect
  348.                         {
  349.                             *Order: JOB_SETUP.5
  350.                             *Cmd: ""
  351.                         }
  352.                     }
  353.                     *case: 12MB
  354.                     {
  355.                         *Command: CmdSelect
  356.                         {
  357.                               *Order: JOB_SETUP.5
  358.                               *Cmd: ""
  359.                         }
  360.                     }
  361.                     *default
  362.                     {
  363.                         *Command: CmdSelect
  364.                         {
  365.                               *Order: JOB_SETUP.5
  366.                               *Cmd: "@PJL SET QTY=" %d{NumOfCopies}"<0A>"
  367.                         }
  368.                     }
  369.                 }
  370.             }
  371.             *case: TRUE
  372.             {
  373.                 *Command: CmdSelect
  374.                 {
  375.                     *Order: JOB_SETUP.5
  376.                     *Cmd: "@PJL SET QTY=" %d{NumOfCopies}"<0A>"
  377.                 }
  378.             }
  379.         }
  380.     }
  381.  
  382.     *Option: OFF
  383.     {
  384.         *rcNameID: =OFF_DISPLAY
  385.         *Command: CmdSelect
  386.         {
  387.             *Order: JOB_SETUP.5
  388.             *Cmd: ""
  389.         }
  390.     }
  391. }
  392.  
  393. *Feature: Resolution
  394. {
  395.     *rcNameID: =RESOLUTION_DISPLAY
  396.     *DefaultOption: Option1
  397.     *Option: Option1
  398.     {
  399.         *Name: "600 x 600 " =DOTS_PER_INCH
  400.         *DPI: PAIR(600, 600)
  401.         *TextDPI: PAIR(600, 600)
  402.         *MinStripBlankPixels: 32
  403.         EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  404.         *SpotDiameter: 100
  405.         *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  406.         *Command: CmdEndRaster { *Cmd : "<1B>*rB" }
  407.         *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
  408.         *Command: CmdSelect
  409.         {
  410.             *Order: JOB_SETUP.6
  411.             *Cmd: "@PJL SET RESOLUTION=600<0A>@PJL ENTER LANGUAGE=PCL<0A0D1B>E<1B>*t600R"
  412.         }
  413.     }
  414.     *Option: Option2
  415.     {
  416.         *Name: "300 x 300 " =DOTS_PER_INCH
  417.         *DPI: PAIR(300, 300)
  418.         *TextDPI: PAIR(300, 300)
  419.         *MinStripBlankPixels: 32
  420.         EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  421.         *SpotDiameter: 100
  422.         *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  423.         *Command: CmdEndRaster { *Cmd : "<1B>*rB" }
  424.         *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
  425.         *Command: CmdSelect
  426.         {
  427.             *Order: JOB_SETUP.6
  428.             *Cmd: "@PJL SET RESOLUTION=300<0A>@PJL ENTER LANGUAGE=PCL<0A0D1B>E<1B>*t300R"
  429.         }
  430.     }
  431. }
  432.  
  433. *BlockMacro: PaperConstraints
  434. {
  435.     *Constraints: LIST(InputBin.Option3,InputBin.Option4,InputBin.Option6)
  436. }
  437.  
  438. *Feature: PaperSize
  439. {
  440.     *rcNameID: =PAPER_SIZE_DISPLAY
  441.     *DefaultOption: LETTER
  442.     *Option: LETTER
  443.     {
  444.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  445.         *PageProtectMem: 4109
  446.         *Constraints: InputBin.ENVFEED
  447.         *switch: Orientation
  448.         {
  449.             *case: PORTRAIT
  450.             {
  451.                 *PrintableArea: PAIR(9600, 12800)
  452.                 *PrintableOrigin: PAIR(300, 200)
  453.                 *CursorOrigin: PAIR(300, 200)
  454.                 *Command: CmdSelect
  455.                 {
  456.                     *Order: DOC_SETUP.7
  457.                     *Cmd: "<1B>&l2a8c1E<1B>*p0x0Y<1B>*c0t5760x7680Y"
  458.                 }
  459.             }
  460.             *case: LANDSCAPE_CC90
  461.             {
  462.                 *PrintableArea: PAIR(9800, 12720)
  463.                 *PrintableOrigin: PAIR(200, 240)
  464.                 *CursorOrigin: PAIR(200, 12960)
  465.                 *Command: CmdSelect
  466.                 {
  467.                     *Order: DOC_SETUP.7
  468.                     *Cmd: "<1B>&l2a8c1E<1B>*p0x0Y<1B>*c0t7632x5880Y"
  469.                 }
  470.             }
  471.         }
  472.     }
  473.     *Option: LEGAL
  474.     {
  475.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  476.         *PageProtectMem: 5230
  477.         *Constraints: InputBin.ENVFEED
  478.         *switch: Orientation
  479.         {
  480.             *case: PORTRAIT
  481.             {
  482.                 *PrintableArea: PAIR(9600, 16400)
  483.                 *PrintableOrigin: PAIR(300, 200)
  484.                 *CursorOrigin: PAIR(300, 200)
  485.                 *Command: CmdSelect
  486.                 {
  487.                     *Order: DOC_SETUP.7
  488.                     *Cmd: "<1B>&l3a8c1E<1B>*p0x0Y<1B>*c0t5760x9840Y"
  489.                 }
  490.             }
  491.             *case: LANDSCAPE_CC90
  492.             {
  493.                 *PrintableArea: PAIR(9800, 16320)
  494.                 *PrintableOrigin: PAIR(200, 240)
  495.                 *CursorOrigin: PAIR(200, 16560)
  496.                 *Command: CmdSelect
  497.                 {
  498.                     *Order: DOC_SETUP.7
  499.                     *Cmd: "<1B>&l3a8c1E<1B>*p0x0Y<1B>*c0t9792x5880Y"
  500.                 }
  501.             }
  502.         }
  503.     }
  504.     *Option: EXECUTIVE
  505.     {
  506.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  507.         *Constraints: InputBin.ENVFEED
  508.         *PageProtectMem: 4109
  509.         *switch: Orientation
  510.         {
  511.             *case: PORTRAIT
  512.             {
  513.                 *PrintableArea: PAIR(8100, 12200)
  514.                 *PrintableOrigin: PAIR(300, 200)
  515.                 *CursorOrigin: PAIR(300, 200)
  516.                 *Command: CmdSelect
  517.                 {
  518.                     *Order: DOC_SETUP.7
  519.                     *Cmd: "<1B>&l1a8c1E<1B>*p0x0Y<1B>*c0t4860x7320Y"
  520.                 }
  521.             }
  522.             *case: LANDSCAPE_CC90
  523.             {
  524.                 *PrintableArea: PAIR(8300, 12120)
  525.                 *PrintableOrigin: PAIR(200, 240)
  526.                 *CursorOrigin: PAIR(200, 12360)
  527.                 *Command: CmdSelect
  528.                 {
  529.                     *Order: DOC_SETUP.7
  530.                     *Cmd: "<1B>&l1a8c1E<1B>*p0x0Y<1B>*c0t7272x4980Y"
  531.                 }
  532.             }
  533.         }
  534.     }
  535.     *Option: A4
  536.     {
  537.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  538.         *PageProtectMem: 4249
  539.         *Constraints: InputBin.ENVFEED
  540.         *switch: Orientation
  541.         {
  542.             *case: PORTRAIT
  543.             {
  544.                 *PrintableArea: PAIR(9352, 13630)
  545.                 *PrintableOrigin: PAIR(284, 200)
  546.                 *CursorOrigin: PAIR(284, 200)
  547.                 *Command: CmdSelect
  548.                 {
  549.                     *Order: DOC_SETUP.7
  550.                     *Cmd: "<1B>&l26a8c1E<1B>*p0x0Y<1B>*c0t5611x8178Y"
  551.                 }
  552.             }
  553.             *case: LANDSCAPE_CC90
  554.             {
  555.                 *PrintableArea: PAIR(9520, 13558)
  556.                 *PrintableOrigin: PAIR(200, 236)
  557.                 *CursorOrigin: PAIR(200, 13794)
  558.                 *Command: CmdSelect
  559.                 {
  560.                     *Order: DOC_SETUP.7
  561.                     *Cmd: "<1B>&l26a8c1E<1B>*p0x0Y<1B>*c0t8135x5712Y"
  562.                 }
  563.             }
  564.         }
  565.     }
  566.     *Option: A5
  567.     {
  568.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  569.         *Constraints: InputBin.ENVFEED
  570.         *PageProtectMem: 2125
  571.         *switch: Orientation
  572.         {
  573.             *case: PORTRAIT
  574.             {
  575.                 *PrintableArea: PAIR(6424, 9520)
  576.                 *PrintableOrigin: PAIR(284, 200)
  577.                 *CursorOrigin: PAIR(284, 200)
  578.                 *Command: CmdSelect
  579.                 {
  580.                     *Order: DOC_SETUP.7
  581.                     *Cmd: "<1B>&l25a8c1E<1B>*p0x0Y<1B>*c0t3854x5712Y"
  582.                 }
  583.             }
  584.             *case: LANDSCAPE_CC90
  585.             {
  586.                 *PrintableArea: PAIR(6592, 9448)
  587.                 *PrintableOrigin: PAIR(200, 236)
  588.                 *CursorOrigin: PAIR(200, 9684)
  589.                 *Command: CmdSelect
  590.                 {
  591.                     *Order: DOC_SETUP.7
  592.                     *Cmd: "<1B>&l25a8c1E<1B>*p0x0Y<1B>*c0t5669x3955Y"
  593.                 }
  594.             }
  595.         }
  596.     }
  597.     *Option: B5
  598.     {
  599.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  600.         *PageProtectMem: 3198
  601.         *Constraints: InputBin.ENVFEED
  602.         *switch: Orientation
  603.         {
  604.             *case: PORTRAIT
  605.             {
  606.                 *PrintableArea: PAIR(8030, 11740)
  607.                 *PrintableOrigin: PAIR(284, 200)
  608.                 *CursorOrigin: PAIR(284, 200)
  609.                 *Command: CmdSelect
  610.                 {
  611.                     *Order: DOC_SETUP.7
  612.                     *Cmd: "<1B>&l45a8c1E<1B>*p0x0Y<1B>*c0t4818x7044Y"
  613.                 }
  614.             }
  615.             *case: LANDSCAPE_CC90
  616.             {
  617.                 *PrintableArea: PAIR(8198, 11668)
  618.                 *PrintableOrigin: PAIR(200, 236)
  619.                 *CursorOrigin: PAIR(200, 11904)
  620.                 *Command: CmdSelect
  621.                 {
  622.                     *Order: DOC_SETUP.7
  623.                     *Cmd: "<1B>&l45a8c1E<1B>*p0x0Y<1B>*c0t7001x4919Y"
  624.                 }
  625.             }
  626.         }
  627.     }
  628.     *Option: ENV_10
  629.     {
  630.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  631.         *InsertBlock: =PaperConstraints
  632.         *PageProtectMem: 4109
  633.         *Constraints: Duplex.VERTICAL
  634.         *Constraints: Duplex.HORIZONTAL
  635.         *switch: Orientation
  636.         {
  637.             *case: PORTRAIT
  638.             {
  639.                 *PrintableArea: PAIR(4348, 11000)
  640.                 *PrintableOrigin: PAIR(300, 200)
  641.                 *CursorOrigin: PAIR(300, 200)
  642.                 *Command: CmdSelect
  643.                 {
  644.                     *Order: DOC_SETUP.7
  645.                     *Cmd: "<1B>&l81a8c1E<1B>*p0x0Y<1B>*c0t2609x6600Y"
  646.                 }
  647.             }
  648.             *case: LANDSCAPE_CC90
  649.             {
  650.                 *PrintableArea: PAIR(4548, 10920)
  651.                 *PrintableOrigin: PAIR(200, 240)
  652.                 *CursorOrigin: PAIR(200, 11160)
  653.                 *Command: CmdSelect
  654.                 {
  655.                     *Order: DOC_SETUP.7
  656.                     *Cmd: "<1B>&l81a8c1E<1B>*p0x0Y<1B>*c0t6552x2729Y"
  657.                 }
  658.             }
  659.         }
  660.     }
  661.     *Option: ENV_DL
  662.     {
  663.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  664.         *PageProtectMem: 4109
  665.         *InsertBlock: =PaperConstraints
  666.         *Constraints: Duplex.VERTICAL
  667.         *Constraints: Duplex.HORIZONTAL
  668.         *switch: Orientation
  669.         {
  670.             *case: PORTRAIT
  671.             {
  672.                 *PrintableArea: PAIR(4628, 9992)
  673.                 *PrintableOrigin: PAIR(284, 200)
  674.                 *CursorOrigin: PAIR(284, 200)
  675.                 *Command: CmdSelect
  676.                 {
  677.                     *Order: DOC_SETUP.7
  678.                     *Cmd: "<1B>&l90a8c1E<1B>*p0x0Y<1B>*c0t2777x5995Y"
  679.                 }
  680.             }
  681.             *case: LANDSCAPE_CC90
  682.             {
  683.                 *PrintableArea: PAIR(4796, 9920)
  684.                 *PrintableOrigin: PAIR(200, 236)
  685.                 *CursorOrigin: PAIR(200, 10156)
  686.                 *Command: CmdSelect
  687.                 {
  688.                     *Order: DOC_SETUP.7
  689.                     *Cmd: "<1B>&l90a8c1E<1B>*p0x0Y<1B>*c0t5952x2878Y"
  690.                 }
  691.             }
  692.         }
  693.     }
  694.     *Option: ENV_C5
  695.     {
  696.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  697.         *PageProtectMem: 4109
  698.         *InsertBlock: =PaperConstraints
  699.         *Constraints: Duplex.VERTICAL
  700.         *Constraints: Duplex.HORIZONTAL
  701.         *switch: Orientation
  702.         {
  703.             *case: PORTRAIT
  704.             {
  705.                 *PrintableArea: PAIR(7084, 10418)
  706.                 *PrintableOrigin: PAIR(284, 200)
  707.                 *CursorOrigin: PAIR(284, 200)
  708.                 *Command: CmdSelect
  709.                 {
  710.                     *Order: DOC_SETUP.7
  711.                     *Cmd: "<1B>&l91a8c1E<1B>*p0x0Y<1B>*c0t4250x6251Y"
  712.                 }
  713.             }
  714.             *case: LANDSCAPE_CC90
  715.             {
  716.                 *PrintableArea: PAIR(7252, 10346)
  717.                 *PrintableOrigin: PAIR(200, 236)
  718.                 *CursorOrigin: PAIR(200, 10582)
  719.                 *Command: CmdSelect
  720.                 {
  721.                     *Order: DOC_SETUP.7
  722.                     *Cmd: "<1B>&l91a8c1E<1B>*p0x0Y<1B>*c0t6208x4351Y"
  723.                 }
  724.             }
  725.         }
  726.     }
  727.     *Option: ENV_MONARCH
  728.     {
  729.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  730.         *PageProtectMem: 4109
  731.         *InsertBlock: =PaperConstraints
  732.         *Constraints: Duplex.VERTICAL
  733.         *Constraints: Duplex.HORIZONTAL
  734.         *switch: Orientation
  735.         {
  736.             *case: PORTRAIT
  737.             {
  738.                 *PrintableArea: PAIR(4048, 8600)
  739.                 *PrintableOrigin: PAIR(300, 200)
  740.                 *CursorOrigin: PAIR(300, 200)
  741.                 *Command: CmdSelect
  742.                 {
  743.                     *Order: DOC_SETUP.7
  744.                     *Cmd: "<1B>&l80a8c1E<1B>*p0x0Y<1B>*c0t2429x5160Y"
  745.                 }
  746.             }
  747.             *case: LANDSCAPE_CC90
  748.             {
  749.                 *PrintableArea: PAIR(4248, 8520)
  750.                 *PrintableOrigin: PAIR(200, 240)
  751.                 *CursorOrigin: PAIR(200, 8760)
  752.                 *Command: CmdSelect
  753.                 {
  754.                     *Order: DOC_SETUP.7
  755.                     *Cmd: "<1B>&l80a8c1E<1B>*p0x0Y<1B>*c0t5112x2549Y"
  756.                 }
  757.             }
  758.         }
  759.     }
  760.     *Option: ENV_B5
  761.     {
  762.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  763.         *PageProtectMem: 4109
  764.         *InsertBlock: =PaperConstraints
  765.         *Constraints: Duplex.VERTICAL
  766.         *Constraints: Duplex.HORIZONTAL
  767.         *switch: Orientation
  768.         {
  769.             *case: PORTRAIT
  770.             {
  771.                 *PrintableArea: PAIR(7746, 11410)
  772.                 *PrintableOrigin: PAIR(284, 200)
  773.                 *CursorOrigin: PAIR(284, 200)
  774.                 *Command: CmdSelect
  775.                 {
  776.                     *Order: DOC_SETUP.7
  777.                     *Cmd: "<1B>&l100a8c1E<1B>*p0x0Y<1B>*c0t4648x6846Y"
  778.                 }
  779.             }
  780.             *case: LANDSCAPE_CC90
  781.             {
  782.                 *PrintableArea: PAIR(7914, 11338)
  783.                 *PrintableOrigin: PAIR(200, 236)
  784.                 *CursorOrigin: PAIR(200, 11574)
  785.                 *Command: CmdSelect
  786.                 {
  787.                     *Order: DOC_SETUP.7
  788.                     *Cmd: "<1B>&l100a8c1E<1B>*p0x0Y<1B>*c0t6803x4748Y"
  789.                 }
  790.             }
  791.         }
  792.     }
  793.     *Option:16K
  794.     {
  795.         *rcNameID: 670  
  796.         *PageDimensions: PAIR(9300, 12900)
  797.         *PageProtectMem: 4109
  798.         *Constraints: InputBin.ENVFEED
  799.         *switch: Orientation
  800.         {
  801.             *case: PORTRAIT
  802.             {
  803.                 *PrintableArea: PAIR(8700, 12500)
  804.                 *PrintableOrigin: PAIR(300, 200)
  805.                 *CursorOrigin: PAIR(300, 200)
  806.                 *Command: CmdSelect
  807.                 {
  808.                     *Order: DOC_SETUP.7
  809.                     *Cmd: "<1B>&l17a8c1E<1B>*p0x0Y<1B>*c0t5220x7500Y"
  810.                 }
  811.             }
  812.             *case: LANDSCAPE_CC90
  813.             {
  814.                 *PrintableArea: PAIR(8900, 12420)
  815.                 *PrintableOrigin: PAIR(200, 240)
  816.                 *CursorOrigin: PAIR(200, 12660)
  817.                 *Command: CmdSelect
  818.                 {
  819.                     *Order: DOC_SETUP.7
  820.                     *Cmd: "<1B>&l17a8c1E<1B>*p0x0Y<1B>*c0t7452x5340Y"
  821.                 }
  822.             }
  823.         }
  824.     }
  825.     *Option:EXECUTIVE_JIS
  826.     {
  827.         *rcNameID: 671  
  828.         *PageDimensions: PAIR(10204, 15590)
  829.         *PageProtectMem: 4109
  830.         *Constraints: InputBin.ENVFEED
  831.         *switch: Orientation
  832.         {
  833.             *case: PORTRAIT
  834.             {
  835.                 *PrintableArea: PAIR(9602, 15190)
  836.                 *PrintableOrigin: PAIR(300, 200)
  837.                 *CursorOrigin: PAIR(300, 200)
  838.                 *Command: CmdSelect
  839.                 {
  840.                     *Order: DOC_SETUP.7
  841.                     *Cmd: "<1B>&l18a8c1E<1B>*p0x0Y<1B>*c0t5761x9114Y"
  842.                 }
  843.             }
  844.             *case: LANDSCAPE_CC90
  845.             {
  846.                 *PrintableArea: PAIR(9802, 15110)
  847.                 *PrintableOrigin: PAIR(200, 240)
  848.                 *CursorOrigin: PAIR(200, 15350)
  849.                 *Command: CmdSelect
  850.                 {
  851.                     *Order: DOC_SETUP.7
  852.                     *Cmd: "<1B>&l18a8c1E<1B>*p0x0Y<1B>*c0t9066x5881Y"
  853.                 }
  854.             }
  855.         }
  856.     }
  857.     *Option: CUSTOMSIZE
  858.     {
  859.         *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  860.         *MinSize: PAIR(3600, 6000)
  861.         *MaxSize: PAIR(10200, 16800)
  862.         *MaxPrintableWidth: 10200
  863.         *MinLeftMargin: 100
  864.         *CenterPrintable?: FALSE
  865.         *PageProtectMem: 1692
  866.         *InsertBlock: =PaperConstraints
  867.         *Constraints: InputBin.ENVFEED
  868.         *switch: Orientation
  869.         {
  870.             *case: PORTRAIT
  871.             {
  872.                 *CustCursorOriginX:  %d{((PhysPaperWidth - 10200) / 2) + 300 }
  873.                 *CustCursorOriginY:   %d{200 }
  874.                 *CustPrintableOriginX:  %d{200 }
  875.                 *CustPrintableOriginY:  %d{200 }
  876.                 *CustPrintableSizeX:   %d{ PhysPaperWidth - 400 }
  877.                 *CustPrintableSizeY:  %d{ PhysPaperLength - 400 }
  878.                 *Command: CmdSelect
  879.                 {
  880.                     *Order: DOC_SETUP.7
  881.                     *Cmd: "<1B>&l101a8c1E<1B>*p0x0Y<1B>*c0t5880x9840Y"
  882.                 }
  883.             }
  884.             *case: LANDSCAPE_CC90
  885.             {
  886.                 *CustCursorOriginX:  %d{((PhysPaperWidth - 10200) / 2) + 200 }
  887.                 *CustCursorOriginY:   %d{16560 }
  888.                 *CustPrintableOriginX:  %d{200 }
  889.                 *CustPrintableOriginY:  %d{240 }
  890.                 *CustPrintableSizeX:   %d{ PhysPaperWidth - 400 }
  891.                 *CustPrintableSizeY:  %d{ PhysPaperLength - 480 }
  892.                 *Command: CmdSelect
  893.                 {
  894.                     *Order: DOC_SETUP.7
  895.                     *Cmd: "<1B>&l101a8c1E<1B>*p0x0Y<1B>*c0t9792x5880Y"
  896.                 }
  897.             }
  898.         }
  899.     }
  900. }
  901.  
  902. *Feature: MediaType
  903. {
  904.     *rcNameID: =MEDIA_TYPE_DISPLAY
  905.     *DefaultOption: AutoSelect
  906.     *Option: AutoSelect
  907.     {
  908.         *rcNameID: 271
  909.         *Command: CmdSelect
  910.         {
  911.             *Order: DOC_SETUP.6
  912.             *Cmd: ""
  913.         }
  914.     }
  915.     *Option: Plain
  916.     {
  917.         *rcNameID: 435
  918.         *Command: CmdSelect
  919.         {
  920.             *Order: DOC_SETUP.6
  921.             *Cmd: "<1B>&n6WdPlain"
  922.         }
  923.     }
  924.     *Option: Preprinted
  925.     {
  926.         *rcNameID: 436
  927.         *Command: CmdSelect
  928.         {
  929.             *Order: DOC_SETUP.6
  930.             *Cmd: "<1B>&n11WdPreprinted"
  931.         }
  932.     }
  933.     *Option: Letterhead
  934.     {
  935.         *rcNameID: 437
  936.         *Command: CmdSelect
  937.         {
  938.             *Order: DOC_SETUP.6
  939.             *Cmd: "<1B>&n11WdLetterhead"
  940.         }
  941.     }
  942.     *Option: Transparency
  943.     {
  944.         *rcNameID: =TRANSPARENCY_DISPLAY
  945.         *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL)
  946.         *Command: CmdSelect
  947.         {
  948.             *Order: DOC_SETUP.6
  949.             *Cmd: "<1B>&n13WdTransparency"
  950.         }
  951.     }
  952.     *Option: Prepunched
  953.     {
  954.         *rcNameID: 438
  955.         *Command: CmdSelect
  956.         {
  957.             *Order: DOC_SETUP.6
  958.             *Cmd: "<1B>&n11WdPrepunched"
  959.         }
  960.     }
  961.     *Option: Labels
  962.     {
  963.         *rcNameID: 439
  964.         *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL)
  965.         *Command: CmdSelect
  966.         {
  967.             *Order: DOC_SETUP.6
  968.             *Cmd: "<1B>&n7WdLabels"
  969.         }
  970.     }
  971.     *Option: Bond
  972.     {
  973.         *rcNameID: 269
  974.         *Command: CmdSelect
  975.         {
  976.             *Order: DOC_SETUP.6
  977.             *Cmd: "<1B>&n5WdBond"
  978.         }
  979.     }
  980.     *Option: Recycled
  981.     {
  982.         *rcNameID: 440
  983.         *Command: CmdSelect
  984.         {
  985.             *Order: DOC_SETUP.6
  986.             *Cmd: "<1B>&n9WdRecycled"
  987.         }
  988.     }
  989.     *Option: Color
  990.     {
  991.         *rcNameID: 441
  992.         *Command: CmdSelect
  993.         {
  994.             *Order: DOC_SETUP.6
  995.             *Cmd: "<1B>&n6WdColor"
  996.         }
  997.     }
  998.     *Option: CardStock
  999.     {
  1000.         *rcNameID: 442
  1001.         *Command: CmdSelect
  1002.         {
  1003.             *Order: DOC_SETUP.6
  1004.             *Cmd: "<1B>&n11WdCard Stock"
  1005.         }
  1006.     }
  1007.     *Option: Rough
  1008.     {
  1009.         *rcNameID: 495
  1010.         *Command: CmdSelect
  1011.         {
  1012.             *Order: DOC_SETUP.6
  1013.             *Cmd: "<1B>&n6WdRough"
  1014.         }
  1015.     }
  1016. }
  1017.  
  1018. *Feature: Economode
  1019. {
  1020.     *rcNameID: 377
  1021.     *HelpIndex: 12009
  1022.     *DefaultOption: Option1
  1023.     *Option: Option1
  1024.     {
  1025.         *rcNameID: 266
  1026.         *Command: CmdSelect
  1027.         {
  1028.             *Order: JOB_SETUP.3
  1029.             *Cmd: "@PJL SET ECONOMODE=OFF<0A>"
  1030.         }
  1031.     }
  1032.     *Option: Option2
  1033.     {
  1034.         *rcNameID: 267
  1035.         *Command: CmdSelect
  1036.         {
  1037.             *Order: JOB_SETUP.3
  1038.             *Cmd: "@PJL SET ECONOMODE=ON<0A>"
  1039.         }
  1040.     }
  1041. }
  1042.  
  1043. *Feature: RET
  1044. {
  1045.     *rcNameID: 378
  1046.     *HelpIndex: 12010
  1047.     *DefaultOption: Option1
  1048.     *Option: Option1
  1049.     {
  1050.         *rcNameID: 296
  1051.         *Command: CmdSelect
  1052.         {
  1053.             *Order: JOB_SETUP.4
  1054.             *Cmd: "@PJL SET RET=ON<0A>"
  1055.         }
  1056.     }
  1057.     *Option: Option2 
  1058.     {
  1059.         *rcNameID: 300
  1060.         *Command: CmdSelect
  1061.         {
  1062.             *Order: JOB_SETUP.4
  1063.             *Cmd: "@PJL SET RET=OFF<0A>"
  1064.         }
  1065.     }
  1066. }
  1067.  
  1068. *Feature: Halftone
  1069. {
  1070.     *rcNameID: =HALFTONING_DISPLAY
  1071.     *DefaultOption: HT_PATSIZE_AUTO
  1072.     *Option: HT_PATSIZE_AUTO
  1073.     {
  1074.         *rcNameID: =HT_AUTO_SELECT_DISPLAY
  1075.     }
  1076.     *Option: HT_PATSIZE_6x6_M
  1077.     {
  1078.         *rcNameID: =HT_DITHER6X6_DISPLAY
  1079.     }
  1080.     *Option: HT_PATSIZE_8x8_M
  1081.     {
  1082.         *rcNameID: =HT_DITHER8X8_DISPLAY
  1083.     }
  1084. }
  1085.  
  1086. *Feature: Memory
  1087. {
  1088.     *rcNameID: =PRINTER_MEMORY_DISPLAY
  1089.     *HelpIndex: 12003
  1090.     *DefaultOption: 4MB
  1091.     *MemConfigMB: PAIR(4, 3)
  1092.     *MemConfigMB: PAIR(8, 7)
  1093.     *MemConfigMB: PAIR(12, 10)
  1094.     *MemConfigMB: PAIR(16, 13)
  1095.     *MemConfigMB: PAIR(20, 17)
  1096.     *MemConfigMB: PAIR(24, 21)
  1097.     *MemConfigMB: PAIR(28, 24)
  1098.     *MemConfigMB: PAIR(32, 28)
  1099.     *MemConfigMB: PAIR(36, 31)
  1100.     *MemConfigMB: PAIR(40, 35)
  1101.     *MemConfigMB: PAIR(44, 39)
  1102.     *MemConfigMB: PAIR(48, 42)
  1103.     *MemConfigMB: PAIR(52, 46)
  1104.     *MemConfigMB: PAIR(56, 49)
  1105.     *MemConfigMB: PAIR(60, 52)
  1106.     *MemConfigMB: PAIR(68, 59)
  1107.     *MemConfigMB: PAIR(72, 64)
  1108.     *MemConfigMB: PAIR(76, 67)
  1109.     *MemConfigMB: PAIR(84, 75)
  1110.     *MemConfigMB: PAIR(100, 89)
  1111. }
  1112.  
  1113. *Feature: Duplex
  1114. {
  1115.     *rcNameID: =TWO_SIDED_PRINTING_DISPLAY
  1116.     *DefaultOption: NONE
  1117.     *Option: NONE
  1118.     {
  1119.         *rcNameID: =NONE_DISPLAY
  1120.         *Command: CmdSelect
  1121.         {
  1122.             *Order: DOC_SETUP.3
  1123.             *Cmd: "<1B>&l0S"
  1124.         }
  1125.     }
  1126.     *Option: VERTICAL
  1127.     {
  1128.         *rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
  1129.         *Command: CmdSelect
  1130.         {
  1131.             *Order: DOC_SETUP.4
  1132.             *Cmd: "<1B>&l1S"
  1133.         }
  1134.     }
  1135.     *Option: HORIZONTAL
  1136.     {
  1137.         *rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
  1138.         *Command: CmdSelect
  1139.         {
  1140.             *Order: DOC_SETUP.4
  1141.             *Cmd: "<1B>&l2S"
  1142.         }
  1143.     }
  1144. }
  1145.  
  1146. *Feature: PageProtect
  1147. {
  1148.     *rcNameID: =PAGE_PROTECTION_DISPLAY
  1149.     *DefaultOption: OFF
  1150.     *Option: ON
  1151.     {
  1152.         *rcNameID: =ON_DISPLAY
  1153.         *Command: CmdSelect
  1154.         {
  1155.             *Order: JOB_SETUP.2
  1156.             *Cmd: "@PJL SET PAGEPROTECT=A4<0A>"
  1157.         }
  1158.     }
  1159.     *Option: OFF
  1160.     {
  1161.         *rcNameID: =OFF_DISPLAY
  1162.         *Command: CmdSelect
  1163.         {
  1164.             *Order: JOB_SETUP.2
  1165.             *Cmd: "@PJL SET PAGEPROTECT=OFF<0A>"
  1166.         }
  1167.     }
  1168. }
  1169.  
  1170. *%-------------------------------------------------------------------------
  1171. *% Job setup commands
  1172. *%-------------------------------------------------------------------------
  1173. *Command: CmdStartJob
  1174. {
  1175.     *Order: JOB_SETUP.1
  1176.     *Cmd: "<1B>%%-12345X@PJL COMMENT HP LaserJet 4050 Series PCL<0A>"
  1177. }
  1178. *Command: CmdStartDoc
  1179. {
  1180.     *Order: DOC_SETUP.1
  1181.     *Cmd: "<1B>&u600D<1B>*r0F"
  1182. }
  1183. *Command: CmdStartPage
  1184. {
  1185.     *Order: PAGE_SETUP.1
  1186.     *Cmd: "<1B>*b0M<0D>"
  1187. }
  1188. *Command: CmdEndJob
  1189. {
  1190.     *Order: JOB_FINISH.1
  1191.     *Cmd: "<1B>E<1B>%%-12345X"
  1192. }
  1193.  
  1194. *switch: Collate
  1195. {
  1196.     *case: OFF
  1197.     {
  1198.         *Command: CmdCopies
  1199.         {
  1200.             *Order: DOC_SETUP.8
  1201.             *Cmd: "<1B>&l" %d[1,999]{NumOfCopies}"X"
  1202.         }
  1203.     }
  1204.     *case: ON
  1205.     {
  1206.         *switch: PrinterHardDisk
  1207.         {
  1208.             *case: FALSE
  1209.             {
  1210.                 *switch:  Memory  
  1211.                 {
  1212.                     *case: 4MB
  1213.                     {
  1214.                         *Command: CmdCopies
  1215.                         {
  1216.                             *Order: DOC_SETUP.8
  1217.                             *Cmd: "<1B>&l" %d[1,999]{NumOfCopies}"X"
  1218.                         }
  1219.                     }
  1220.                     *case: 8MB
  1221.                     {
  1222.                         *Command: CmdCopies
  1223.                         {
  1224.                             *Order: DOC_SETUP.8
  1225.                             *Cmd: "<1B>&l" %d[1,999]{NumOfCopies}"X"
  1226.                         }
  1227.                     }
  1228.                     *case: 12MB
  1229.                     {
  1230.                         *Command: CmdCopies
  1231.                         {
  1232.                               *Order: DOC_SETUP.8
  1233.                               *Cmd: "<1B>&l" %d[1,999]{NumOfCopies}"X"
  1234.                         }
  1235.                     }
  1236.                     *default
  1237.                     {
  1238.                         *Command: CmdCopies
  1239.                         {
  1240.                               *Order: DOC_SETUP.8
  1241.                               *Cmd: "<1B>&l1X"
  1242.                         }
  1243.                     }
  1244.                 }
  1245.             }
  1246.             *case: TRUE
  1247.             {
  1248.                 *Command: CmdCopies
  1249.                 {
  1250.                     *Order: DOC_SETUP.8
  1251.                     *Cmd: "<1B>&l1X"
  1252.                 }
  1253.             }
  1254.         }
  1255.     }
  1256. }
  1257.  
  1258. *RotateCoordinate?: TRUE
  1259. *RotateRaster?: TRUE
  1260. *RotateFont?: TRUE
  1261. *TextCaps: LIST(TC_CR_90,TC_UA_ABLE)
  1262. *MemoryUsage: LIST(FONT)
  1263. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  1264. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  1265. *XMoveThreshold: 0
  1266. *YMoveThreshold: 0
  1267. *XMoveUnit: 600
  1268. *YMoveUnit: 600
  1269. *Command: CmdXMoveAbsolute { *Cmd : "<1B>*p" %d{(DestX / 2) }"X" }
  1270. *Command: CmdXMoveRelRight { *Cmd : "<1B>*p+" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" }
  1271. *Command: CmdXMoveRelLeft { *Cmd : "<1B>*p-" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" }
  1272. *Command: CmdYMoveAbsolute { *Cmd : "<1B>*p" %d{(DestY / 2) }"Y" }
  1273. *Command: CmdYMoveRelDown { *Cmd : "<1B>*p+" %d{(DestYRel / 2) }"Y" }
  1274. *Command: CmdYMoveRelUp { *Cmd : "<1B>*p-" %d{(DestYRel / 2) }"Y" }
  1275. *Command: CmdCR { *Cmd : "<0D>" }
  1276. *Command: CmdLF { *Cmd : "<0A>" }
  1277. *Command: CmdFF { *Cmd : "<0C>" }
  1278. *Command: CmdBackSpace { *Cmd : "<08>" }
  1279. *Command: CmdUniDirectionOn { *Cmd : "<00>" }
  1280. *Command: CmdUniDirectionOff { *Cmd : "<00>" }
  1281. *Command: CmdPushCursor { *Cmd : "<1B>&f0S" }
  1282. *Command: CmdPopCursor { *Cmd : "<1B>&f1S" }
  1283. *Command: CmdSetSimpleRotation { *Cmd : "<1B>&a" %d{PrintDirInCCDegrees}"P" }
  1284. *EjectPageWithFF?: TRUE
  1285. *Command: CmdEnableTIFF4 { *Cmd : "<1B>*b2M" }
  1286. *Command: CmdDisableCompression { *Cmd : "<1B>*b0M" }
  1287. *Command: CmdEnableDRC { *Cmd : "<1B>*b3M" }
  1288. *OutputDataFormat: H_BYTE
  1289. *OptimizeLeftBound?: TRUE
  1290. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  1291. *CursorYAfterSendBlockData: AUTO_INCREMENT
  1292. *DefaultFont: RESDLL.FontRes.16
  1293. *DefaultCTT: 0
  1294. *CharPosition: BASELINE
  1295. *TTFSEnabled?: TRUE
  1296.  
  1297. *% TT metrics
  1298. *%   Removed all 4 symbol fonts because they weren't printing correctly.  They will be downloaded if client has
  1299. *%   the TT font installed.
  1300. *DeviceFonts: LIST(RESDLL.FontRes.1,RESDLL.FontRes.2,RESDLL.FontRes.3,RESDLL.FontRes.4,RESDLL.FontRes.5,
  1301. +           RESDLL.FontRes.6,RESDLL.FontRes.7,RESDLL.FontRes.8,RESDLL.FontRes.9,RESDLL.FontRes.10,
  1302. +           RESDLL.FontRes.11,RESDLL.FontRes.12,RESDLL.FontRes.13,RESDLL.FontRes.14,RESDLL.FontRes.15,
  1303. +           RESDLL.FontRes.16,RESDLL.FontRes.17,RESDLL.FontRes.18,RESDLL.FontRes.19,RESDLL.FontRes.20,
  1304. +           RESDLL.FontRes.21,RESDLL.FontRes.22,RESDLL.FontRes.23,RESDLL.FontRes.24,RESDLL.FontRes.25,
  1305. +           RESDLL.FontRes.26,RESDLL.FontRes.27,RESDLL.FontRes.28,RESDLL.FontRes.29,RESDLL.FontRes.30,
  1306. +           RESDLL.FontRes.31,RESDLL.FontRes.32,RESDLL.FontRes.33,RESDLL.FontRes.34,RESDLL.FontRes.35,
  1307. +           RESDLL.FontRes.36,RESDLL.FontRes.37,RESDLL.FontRes.38,RESDLL.FontRes.39,RESDLL.FontRes.40,
  1308. +           RESDLL.FontRes.41,RESDLL.FontRes.42,RESDLL.FontRes.43,RESDLL.FontRes.44,RESDLL.FontRes.45,
  1309. +           RESDLL.FontRes.46,RESDLL.FontRes.47,RESDLL.FontRes.49,RESDLL.FontRes.50,
  1310. +           RESDLL.FontRes.51,RESDLL.FontRes.52,RESDLL.FontRes.53,RESDLL.FontRes.54,RESDLL.FontRes.55,
  1311. +           RESDLL.FontRes.56,RESDLL.FontRes.57,RESDLL.FontRes.59,RESDLL.FontRes.60,
  1312. +           RESDLL.FontRes.61,RESDLL.FontRes.62,RESDLL.FontRes.63,RESDLL.FontRes.64,RESDLL.FontRes.65,
  1313. +           RESDLL.FontRes.66,RESDLL.FontRes.67,RESDLL.FontRes.68,RESDLL.FontRes.69,RESDLL.FontRes.70,
  1314. +           RESDLL.FontRes.71,RESDLL.FontRes.72,RESDLL.FontRes.73,RESDLL.FontRes.74,
  1315. +           RESDLL.FontRes.76,RESDLL.FontRes.77,RESDLL.FontRes.78,RESDLL.FontRes.79)
  1316.  
  1317.  
  1318. *% TT font Substituition table for our device fonts
  1319. *% Arial and TNR are substituted in ttfsub.gpd
  1320. *TTFS: AlbertusM
  1321. {
  1322.   *TTFontName: "Albertus Medium"
  1323.   *DevFontName: "Albertus Medium"
  1324. }
  1325. *TTFS: AlbertusX
  1326. {
  1327.   *TTFontName: "Albertus Extra Bold"
  1328.   *DevFontName: "Albertus Extra Bold"
  1329. }
  1330. *TTFS: AntiqueOlive
  1331. {
  1332.   *TTFontName: "Antique Olive"
  1333.   *DevFontName: "Antique Olive"
  1334. }
  1335. *TTFS: CGOmega
  1336. {
  1337.   *TTFontName: "CG Omega"
  1338.   *DevFontName: "CG Omega"
  1339. }
  1340. *TTFS: CGTimes
  1341. {
  1342.   *TTFontName: "CG Times"
  1343.   *DevFontName: "CG Times"
  1344. }
  1345. *TTFS: NewCenturySB
  1346. {
  1347.   *TTFontName: "New Century Schoolbook Roman"
  1348.   *DevFontName: "New Century Schoolbook"
  1349. }
  1350. *TTFS: ClarendonCD
  1351. {
  1352.   *TTFontName: "Clarendon Condensed Bold"
  1353.   *DevFontName: "Clarendon Condensed"
  1354. }
  1355. *TTFS: Coronet
  1356. {
  1357.   *TTFontName: "Coronet"
  1358.   *DevFontName: "Coronet"
  1359. }
  1360. *TTFS: CourierPS
  1361. {
  1362.   *TTFontName: "CourierPS"
  1363.   *DevFontName: "CourierPS"
  1364. }
  1365. *TTFS: Helvetica
  1366. {
  1367.   *TTFontName: "Helvetica"
  1368.   *DevFontName: "Helvetica"
  1369. }
  1370. *TTFS: HelveticaN
  1371. {
  1372.   *TTFontName: "Helvetica Narrow"
  1373.   *DevFontName: "Helvetica Narrow"
  1374. }
  1375. *TTFS: ITCAvantGardeGothicB
  1376. {
  1377.   *TTFontName: "ITC Avant Garde Gothic Book Oblique"
  1378.   *DevFontName: "ITC Avant Garde Gothic"
  1379. }
  1380. *TTFS: ITCAvantGardeGothicD
  1381. {
  1382.   *TTFontName: "ITC Avant Garde Gothic Demi"
  1383.   *DevFontName: "ITC Avant Garde Gothic Demi"
  1384. }
  1385. *TTFS: ITCBookmanDemi
  1386. {
  1387.   *TTFontName: "ITC Bookman Demi"
  1388.   *DevFontName: "ITC Bookman Demi"
  1389. }
  1390. *TTFS: ITCBookmanLight
  1391. {
  1392.   *TTFontName: "ITC Bookman Light"
  1393.   *DevFontName: "ITC Bookman Light"
  1394. }
  1395. *TTFS: ITCZapfChancery
  1396. {
  1397.   *TTFontName: "ITC Zapf Chancery Medium Italic"
  1398.   *DevFontName: "ITC Zapf Chancery"
  1399. }
  1400. *TTFS: LetterGothic
  1401. {
  1402.   *TTFontName: "Letter Gothic"
  1403.   *DevFontName: "Letter Gothic"
  1404. }
  1405. *TTFS: Marigold
  1406. {
  1407.   *TTFontName: "Marigold"
  1408.   *DevFontName: "Marigold"
  1409. }
  1410. *TTFS: Palatino
  1411. {
  1412.   *TTFontName: "Palatino Roman"
  1413.   *DevFontName: "Palatino"
  1414. }
  1415. *TTFS: Times
  1416. {
  1417.   *TTFontName: "Times Roman"
  1418.   *DevFontName: "Times"
  1419. }
  1420. *TTFS: Univers
  1421. {
  1422.   *TTFontName: "Univers Medium"
  1423.   *DevFontName: "Univers"
  1424. }
  1425. *TTFS: UniversCD
  1426. {
  1427.   *TTFontName: "Univers Condensed Medium"
  1428.   *DevFontName: "Univers Condensed"
  1429. }
  1430. *TTFS: CourierNew
  1431. {
  1432.   *TTFontName: "Courier New"
  1433.   *DevFontName: "Courier New"
  1434. }
  1435.  
  1436. *% These 4 fonts need to be substituted to match the name that applications use to select the font.  For
  1437. *% some reason the names are different.
  1438. *TTFS: ClarendonCD1
  1439. {
  1440.   *TTFontName: "Clarendon Condensed"
  1441.   *DevFontName: "Clarendon Condensed"
  1442. }
  1443. *TTFS: Times1
  1444. {
  1445.   *TTFontName: "Times"
  1446.   *DevFontName: "Times"
  1447. }
  1448. *TTFS: Univers1
  1449. {
  1450.   *TTFontName: "Univers"
  1451.   *DevFontName: "Univers"
  1452. }
  1453. *TTFS: UniversCD1
  1454. {
  1455.   *TTFontName: "Univers Condensed"
  1456.   *DevFontName: "Univers Condensed"
  1457. }
  1458. *FontCartridge: FC1
  1459. {
  1460.     *rcCartridgeNameID: 322
  1461.     *Fonts: LIST(117,118,119,120,121,122,123,124,126,127,128,129,130,131,132,133,125)
  1462. }
  1463. *FontCartridge: FC2
  1464. {
  1465.     *rcCartridgeNameID: 323
  1466.     *Fonts: LIST(1,2,3,4,27,28,29,30,44,45,69,70,71,72,73,74,
  1467. +                   75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,
  1468. +                   91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107)
  1469. }
  1470. *FontCartridge: FC3
  1471. {
  1472.     *rcCartridgeNameID: 324
  1473.     *Fonts: LIST(31,32,33,34,35,36)
  1474. }
  1475. *FontCartridge: FC4
  1476. {
  1477.     *rcCartridgeNameID: 325
  1478.     *Fonts: LIST(37,38,39,40,41,42,43)
  1479. }
  1480. *FontCartridge: FC5
  1481. {
  1482.     *rcCartridgeNameID: 326
  1483.     *Fonts: LIST(16,17,18,46,47,48,49,108,109,110,111,112,113,114,115,116)
  1484. }
  1485. *FontCartridge: FC6
  1486. {
  1487.     *rcCartridgeNameID: 327
  1488.     *Fonts: LIST(40,41,42,43,59,60,65,66,67,68,69,70,71,72,142,143,
  1489. +                   144,145)
  1490. }
  1491. *FontCartridge: FC7
  1492. {
  1493.     *rcCartridgeNameID: 328
  1494.     *Fonts: LIST(10,50,51,52,53,54,55,56,57,58,59,60,62,63,64)
  1495. }
  1496. *FontCartridge: FC8
  1497. {
  1498.     *rcCartridgeNameID: 329
  1499.     *Fonts: LIST(14,19,20,21,22,23,24,25,26)
  1500. }
  1501. *FontCartridge: FC9
  1502. {
  1503.     *rcCartridgeNameID: 330
  1504.     *Fonts: LIST(5,6,7,8,9,11,12,13,14,15,141)
  1505. }
  1506. *FontCartridge: FC10
  1507. {
  1508.     *rcCartridgeNameID: 331
  1509.     *Fonts: LIST(231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,
  1510. +                   247,248)
  1511. }
  1512. *FontCartridge: FC11
  1513. {
  1514.     *rcCartridgeNameID: 332
  1515.     *Fonts: LIST(154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,
  1516. +                   170,171,172,173,174,175,176,177,178,179,180,181,182)
  1517. }
  1518. *FontCartridge: FC12
  1519. {
  1520.     *rcCartridgeNameID: 333
  1521.     *Fonts: LIST(183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,
  1522. +                   199,200,201,202,203,204,205,206,207,208)
  1523. }
  1524. *MinFontID: 16534
  1525. *MaxFontID: 32768
  1526.  
  1527. *switch: Resolution
  1528. {
  1529.     *case: Option1
  1530.     {
  1531.         *FontFormat: HPPCL_OUTLINE
  1532.     }
  1533.     *case: Option2
  1534.     {
  1535.         *FontFormat: HPPCL_RES
  1536.     }
  1537. }
  1538.  
  1539. *Command: CmdSetFontID { *Cmd : "<1B>*c" %d{NextFontID}"D" }
  1540. *Command: CmdSelectFontID { *Cmd : "<1B>(" %d{CurrentFontID}"X" }
  1541. *Command: CmdSetCharCode { *Cmd : "<1B>*c" %d{NextGlyph}"E" }
  1542. *Command: CmdUnderlineOn { *Cmd : "<1B>&dD" }
  1543. *Command: CmdUnderlineOff { *Cmd : "<1B>&d@" }
  1544. *Command: CmdSelectWhiteBrush { *Cmd : "<1B>*v1o1T" }
  1545. *Command: CmdSelectBlackBrush { *Cmd : "<1B>*v0o0T" }
  1546. *MinGrayFill: 1
  1547. *MaxGrayFill: 100
  1548. *Command: CmdSetRectWidth { *Cmd : "<1B>*c" %d{(RectXSize / 2) }"A" }
  1549. *Command: CmdSetRectHeight { *Cmd : "<1B>*c" %d{(RectYSize / 2) }"B" }
  1550. *Command: CmdRectGrayFill { *Cmd : "<1B>*c" %d{GrayPercentage }"g2P" }
  1551. *Command: CmdRectWhiteFill { *Cmd : "<1B>*c1P" }
  1552. *Command: CmdRectBlackFill { *Cmd : "<1B>*c0P" }
  1553. *Command: CmdDownloadPattern {*Cmd: "<1B>*c" %d{PatternBrushID}"G" "<1B>*c" %d{PatternBrushSize}"W" }
  1554. *Command: CmdSelectPattern {*Cmd: "<1B>*c" %d{PatternBrushID}"G" "<1B>*v" %d{PatternBrushType}"T" }
  1555.