*%
*%  Core GPD file for Ricoh PCL5c/6c printer
*%    FileName: RIAAPP1.GPD
*%    Created:  2006/07/24
*%    Modified: 2006/12/21
*%
*%    Copyright (c) 2006-2007 Ricoh Co., Ltd.
*%    All rights reserved.
*%
*GPDFileVersion: "1.10.00"
*Ifdef: RI_PCLXL
*Include: "PCLXL.GPD"
*Include: "P6FONT.GPD"
*Personality: =PERSONALITY_PCLXL
*ResourceDLL: "PCLXL.DLL"
*Else:  *%%% !RI_PCLXL
*ResourceDLL: "RIARES7.DLL"
*Endif: *%%% !RI_PCLXL

*Include: "TTFSUB.GPD"
*Include: "RIACMAC7.GPD"
*MasterUnits: PAIR(1200, 1200)
*% *HelpFile: "RIAFUI.HLP"
*PrinterType: PAGE
*MaxCopies: 999
*rcInstalledOptionNameID: =RC_STR_INSTALLED
*rcNotInstalledOptionNameID: =RC_STR_NOTINSTALLED

*% #####################################################################
*%
*%  This section is for SUPPORTED FUNCTION (depend on machine) FLAG.
*%  Plugin-DLLs watch the below features
*%  , and know whether have to realize the function or not.
*%
*%======== SupportDocUiReplace (CONCEALED) ========
*Feature: SupportDocUiReplace
{
    *Name: "SupportDocUiReplace"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== AutoConfig (CONCEALED) ========
*Feature: AutoConfig
{
    *Name: "AutoConfig"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== SupportSamplePrint (CONCEALED) ========
*Feature: SupportSamplePrint
{
    *Name: "SupportSamplePrint"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== SupportSecurePrint (CONCEALED) ========
*Feature: SupportSecurePrint
{
    *Name: "SupportSecurePrint"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== SupportHoldPrint (CONCEALED) ========
*Feature: SupportHoldPrint
{
    *Name: "SupportHoldPrint"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== SupportStoredPrint (CONCEALED) ========
*Feature: SupportStoredPrint
{
    *Name: "SupportStoredPrint"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== SupportStoreandPrint (CONCEALED) ========
*Feature: SupportStoreandPrint
{
    *Name: "SupportStoreandPrint"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== SupportDocumentBox (CONCEALED) ========
*% *Feature: SupportDocumentBox
*% {
*%     *Name: "SupportDocumentBox"
*%     *ConcealFromUI?: TRUE
*%     *DefaultOption: ON
*%     *Option: ON
*%     {
*%        *Name: "ON"
*%     }
*% }

*%======== Support8CharPassword (CONCEALED) ========
*Feature: Support8CharPassword
{
    *Name: "Support8CharPassword"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== SupportSupplyView (CONCEALED) ========
*Feature: SupportSupplyView
{
    *Name: "SupportSupplyView"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== SupportAccessRole (CONCEALED) ========
*Feature: SupportAccessRole
{
    *Name: "SupportAccessRole"
    *ConcealFromUI?: TRUE
    *DefaultOption: ON
    *Option: ON
    {
        *Name: "ON"
    }
}

*%======== Hard Disk (CONCEALED) ========
*Feature: HardDisk
{
    *Name: "HardDisk"
    *ConcealFromUI?: TRUE
    *DefaultOption: Installed
    *Option: Installed
    {
        *Name: "Installed"
    }
}

*%======== Memory (CONCEALED) ========
*Feature: Memory
{
    *rcNameID: =PRINTER_MEMORY_DISPLAY
    *ConcealFromUI?: TRUE
    *DefaultOption: 65536KB
    *Option: 65536KB
    {
        *Name: "64MB"
        *MemoryConfigKB: PAIR(65536, 56700)
    }
}


*% #####################################################################
*% **[InputDevice]**
*Feature: InputTray3 { }
*Feature: InputTray4 { }
*Feature: LargeCapacityTray { }

*% **[OutputDevice]**
*Feature: Finisher { }
*Feature: PunchUnit { }

*% **[OtherDevice]**
*% **[PaperAttribute]**
*Feature: PaperSize { }
*Feature: MediaType { }

*% **[DocFunction]**
*Feature: InputBin { }
*Feature: SlipSheet { }
*Feature: SlipSheetInputBin { }
*Feature: OutputBin { }
*Feature: Stapling { }
*Feature: Punching { }
*Feature: Orientation { }
*Feature: Duplex { }
*Feature: Resolution { }
*Ifdef: RI_PCLXL
*Feature: TrueTypeFormat { }
*Feature: Dither { }
*Else:  *%%% !RI_PCLXL
*Ifdef: WINNT_51
*Feature: GraphicsMode { }
*Endif: *% WINNT_51
*Feature: Gradation { }
*Feature: Halftone {}
*Endif: *%%% !RI_PCLXL
*Feature: ColorMode { }
*Ifdef: RI_PCLXL
*Else:  *%%% !RI_PCLXL
*Feature: ColorMap {}
*Endif: *%%% !RI_PCLXL
*% #####################################################################


*%======== Input Tray3 (installable option) ========
*Feature: InputTray3
{
    *rcNameID: =RC_STR_TRAY3
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: NotInstalled
    *Option: NotInstalled
    {
        *rcNameID: =RC_STR_NOTINSTALLED
        *Constraints: InputBin.Tray3
        *Constraints: SlipSheetInputBin.Tray3
    }
    *Option: Installed
    {
        *rcNameID: =RC_STR_INSTALLED
    }
}

*%======== Input Tray4 (installable option) ========
*Feature: InputTray4
{
    *rcNameID: =RC_STR_TRAY4
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: NotInstalled
    *Option: NotInstalled
    {
        *rcNameID: =RC_STR_NOTINSTALLED
        *Constraints: InputBin.Tray4
        *Constraints: SlipSheetInputBin.Tray4
    }
    *Option: Installed
    {
        *rcNameID: =RC_STR_INSTALLED
*Ifdef: RICOH_AUTOCONFIG
*Else:  *%%% !RICOH_AUTOCONFIG
        *Constraints: InputTray3.NotInstalled
*Endif: *%%% !RICOH_AUTOCONFIG
    }
}

*%======== LargeCapacityTray (installable option) ========
*Feature: LargeCapacityTray
{
    *rcNameID: =RC_STR_LARGE_CAPACITY_TRAY
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: NotInstalled
    *Option: NotInstalled
    {
        *rcNameID: =RC_STR_NOTINSTALLED
        *Constraints: InputBin.LARGECAPACITY
        *Constraints: SlipSheetInputBin.LARGECAPACITY
    }
    *Option: Installed
    {
        *rcNameID: =RC_STR_INSTALLED
    }
}

*%======== Finisher (installable option) ========
*Feature: Finisher
{
    *rcNameID: =RC_STR_FINISHER
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: NotInstalled
    *Option: NotInstalled
    {
        *rcNameID: =RC_STR_NOTINSTALLED
        *Constraints: OutputBin.FinisherUpperTray
        *Constraints: OutputBin.FinisherShiftTray
        *Constraints: OutputBin.FinisherBookletTray
        *Constraints: Stapling.TopLeft
        *Constraints: Stapling.TopLeftSlant
        *Constraints: Stapling.TopRight
        *Constraints: Stapling.TopRightSlant
        *Constraints: Stapling.Top2
        *Constraints: Stapling.Left2
        *Constraints: Stapling.Right2
        *Constraints: Stapling.Booklet
        *Constraints: Punching.Left2
        *Constraints: Punching.Top2
        *Constraints: Punching.Right2
        *Constraints: Punching.Left3
        *Constraints: Punching.Top3
        *Constraints: Punching.Right3
        *Constraints: Punching.Left4
        *Constraints: Punching.Top4
        *Constraints: Punching.Right4
*Ifdef: RICOH_AUTOCONFIG
*Else:  *%%% !RICOH_AUTOCONFIG
        *Constraints: PunchUnit.2and3holes
*Endif: *%%% !RICOH_AUTOCONFIG
*Ifdef: RICOH_AUTOCONFIG
*Else:  *%%% !RICOH_AUTOCONFIG
        *Constraints: PunchUnit.2and4holes
*Endif: *%%% !RICOH_AUTOCONFIG
*Ifdef: RICOH_AUTOCONFIG
*Else:  *%%% !RICOH_AUTOCONFIG
        *Constraints: PunchUnit.4holesNE
*Endif: *%%% !RICOH_AUTOCONFIG
        *DisabledFeatures: LIST(Stapling)
        *DisabledFeatures: LIST(Punching)
    }
    *Option: FinisherSR3000
    {
        *rcNameID: =RC_STR_FINISHER_SR3000
    }
    *Option: FinisherSR3030
    {
        *rcNameID: =RC_STR_FINISHER_SR3030
        *Constraints: OutputBin.FinisherBookletTray
    }
}

*%======== Punch Unit (installable option) ========
*Feature: PunchUnit
{
    *rcNameID: =RC_STR_PUNCH_UNIT
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: NotInstalled
    *Option: NotInstalled
    {
        *rcNameID: =RC_STR_NOTINSTALLED
        *Constraints: Punching.Left2
        *Constraints: Punching.Top2
        *Constraints: Punching.Right2
        *Constraints: Punching.Left3
        *Constraints: Punching.Top3
        *Constraints: Punching.Right3
        *Constraints: Punching.Left4
        *Constraints: Punching.Top4
        *Constraints: Punching.Right4
    }
    *Option: 2and3holes
    {
        *rcNameID: =RC_STR_PUNCH_UNIT_2_AND_3
        *Constraints: Punching.Left4
        *Constraints: Punching.Top4
        *Constraints: Punching.Right4
    }
    *Option: 2and4holes
    {
        *rcNameID: =RC_STR_PUNCH_UNIT_2_AND_4
        *Constraints: Punching.Left3
        *Constraints: Punching.Top3
        *Constraints: Punching.Right3
    }
    *Option: 4holesNE
    {
        *rcNameID: =RC_STR_PUNCH_UNIT_4_NE
        *Constraints: Punching.Left2
        *Constraints: Punching.Top2
        *Constraints: Punching.Right2
        *Constraints: Punching.Left3
        *Constraints: Punching.Top3
        *Constraints: Punching.Right3
    }
}

*%======== OutputBin ========
*Feature: OutputBin
{
    *rcNameID: =OUTPUTBIN_DISPLAY
    *% *HelpIndex: =HLP_OUTPUTBIN
    *DefaultOption: PrinterDefault
    *Option: PrinterDefault
    {
        *rcNameID: =RC_STR_PRINTER_DEFAULT
    }
    *Option: StandardTray
    {
        *rcNameID: =RC_STR_STANDARD_TRAY
        *Command: CmdSelect
        {
            *Order: =PJL_SETUP_40
            *Cmd: "@PJL SET OUTBIN=UPPER<0A>"
        }
    }
    *Option: FinisherUpperTray
    {
        *rcNameID: =RC_STR_FINISHER_UPPER_TRAY
        *Command: CmdSelect
        {
            *Order: =PJL_SETUP_40
            *Cmd: "@PJL SET OUTBIN=FINISHERPROOF<0A>"
        }
    }
    *Option: FinisherShiftTray
    {
        *rcNameID: =RC_STR_FINISHER_SHIFT_TRAY
        *Command: CmdSelect
        {
            *Order: =PJL_SETUP_40
            *Cmd: "@PJL SET OUTBIN=FINISHERSHIFT<0A>"
        }
    }
    *Option: FinisherBookletTray
    {
        *rcNameID: =RC_STR_FINISHER_BOOKLET_TRAY
        *Command: CmdSelect
        {
            *Order: =PJL_SETUP_40
	        *Cmd: "@PJL SET OUTBIN=FINISHERBOOKLET<0A>"
        }
    }
}

*%======== Stapling ========
*Macros: CmdStrings_Stapling
{
    PRECMD_STAPLE: "@PJL SET QTY=" %d{NumOfCopies}"<0A>@PJL SET OUTBIN=FINISHERSHIFT<0A>@PJL SET JOBOFFSET=OFF<0A>"
    PRECMD_STAPLE_BOOKLET_TRAY: "@PJL SET QTY=" %d{NumOfCopies}"<0A>@PJL SET OUTBIN=FINISHERBOOKLET<0A>@PJL SET JOBOFFSET=OFF<0A>"
}
*Feature: Stapling
{
    *rcNameID: =RC_STR_STAPLE
    *% *HelpIndex: =HLP_STAPLE
    *DefaultOption: OFF
    *Option: OFF
    {
        *rcNameID: =OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: =PJL_SETUP_60
            *Cmd: "@PJL SET STAPLE=OFF<0A>"
        }
    }
    *Option: TopLeft
    {
        *rcNameID: =RC_STR_TOP_LEFT
        *Command: CmdSelect
        {
            *Order: =PJL_SETUP_60
            *Cmd: =PRECMD_STAPLE "@PJL SET STAPLE=LEFTTOP<0A>"
        }
    }
    *Option: TopLeftSlant
    {
        *rcNameID: =RC_STR_TOP_LEFT_SLANT
        *Command: CmdSelect
        {
            *Order: =PJL_SETUP_60
            *Cmd: =PRECMD_STAPLE "@PJL SET STAPLE=LEFTTOPSLANTPORT<0A>"
        }
    }
    *Option: TopRight
    {
        *rcNameID: =RC_STR_TOP_RIGHT
        *Command: CmdSelect
        {
            *Order: =PJL_SETUP_60
            *Cmd: =PRECMD_STAPLE "@PJL SET STAPLE=RIGHTTOP<0A>"
        }
    }
    *Option: TopRightSlant
    {
        *rcNameID: =RC_STR_TOP_RIGHT_SLANT
        *Command: CmdSelect
        {
            *Order: =PJL_SETUP_60
            *Cmd: =PRECMD_STAPLE "@PJL SET STAPLE=RIGHTTOPSLANTPORT<0A>"
        }
    }
    *O