*GPDFileName: "DELID25PRNDRV.gpd"
*GPDFileVersion: "1.2"
*GPDSpecVersion: "1.2"
*Include: "StdNames.gpd"
*ModelName: "Deli D25 Series"
*MasterUnits: PAIR(600, 600)
*PrinterType: PAGE
*MaxCopies: 999


*%******************************************************************************************
*%                                      Input Locale
*%******************************************************************************************
*Feature: Locale
{
    *Name: "Locale"
    *ConcealFromUI?: TRUE
    *DefaultOption: English_United_States

    *Option: Chinese_PRC
    {
        *Name: "  "
        *OptionID: 0x0804
    }
    *Option: Chinese_Singapore
    {
        *Name: "  "
        *OptionID: 0x1004
    }
}

*%******************************************************************************************
*%                                 resource dll & resource ID
*%******************************************************************************************
*switch: Locale
{
    *case: Chinese_PRC
    {
        *ResourceDLL: "DELIPRNRS_zh-CN.dll"
    }
    *case: Chinese_Singapore
    {
        *ResourceDLL: "DELIPRNRS_zh-CN.dll"
    }
    *default:
    {
        *ResourceDLL: "DELIPRNRS_en-US.dll"
    }
}

*Macros: OEM_DEF_PaperSizeNames
{
    IDS_OEM_PAPER_ISOB5:        2010
    IDS_OEM_PAPER_ISOB6:        2011
    IDS_OEM_MEDIA_HEAVY:        2012
    IDS_OEM_MEDIA_LIGHT:        2013
    IDS_OEM_PAPER_16K_184_260:  2051
    IDS_OEM_PAPER_16K_195_270:  2052
    IDS_OEM_PAPER_16K_197_273:  2053
    IDS_OEM_PAPER_32K:          2054
    IDS_OEM_PAPER_TAX:          2055
}

*%******************************************************************************************
*%                                      Orientation
*%******************************************************************************************
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: ""
        }
    }
    *Option: LANDSCAPE_CC90
    {
        *rcNameID: =LANDSCAPE_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.8
            *Cmd: ""
        }
    }
}

*%******************************************************************************************
*%                                      Input Bin
*%******************************************************************************************
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
*%    *DefaultOption: CASSETTE
    *ConflictPriority: 2
    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.11
            *Cmd: ""
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: CASSETTE
    {
        *rcNameID: =CASSETTE_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.11
            *Cmd: ""
        }
        *Constraints: LIST(PaperSize.ENV_10, PaperSize.A6, PaperSize.ENV_MONARCH, PaperSize.ENV_C5, PaperSize.ENV_C6, PaperSize.ENV_C65, PaperSize.ENV_DL, PaperSize.TAX)
    }
}

*%******************************************************************************************
*%                                      Resolution
*%******************************************************************************************
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "Standard"
        *DPI: PAIR(600, 600)
        *TextDPI: PAIR(600, 600)
        *SpotDiameter: 100
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.7
            *Cmd: ""
        }
    }
}

*%******************************************************************************************
*%                                      Paper Size
*%******************************************************************************************
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *ConflictPriority: 1
    *DefaultOption: A4

    *Option: A4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4768, 6824)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4768, 6824)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 6920)
            }
        }
    }
    *Option: A5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(3304, 4768)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(3304, 4768)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 4864)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: B5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4104, 5880)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4104, 5880)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 5976)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: B6_JIS
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2832, 4104)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2832, 4104)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 4200)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: B5_ISO
    {
        *rcNameID: =IDS_OEM_PAPER_ISOB5
        *PageDimensions:  PAIR(4157, 5905)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(3968, 5712)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(3968, 5712)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 5808)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: B6_ISO
    {
        *rcNameID: =IDS_OEM_PAPER_ISOB6
        *PageDimensions:  PAIR(2952, 4157)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2760, 3968)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2760, 3968)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 4064)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: LETTER
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4904, 6408)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4904, 6408)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 6504)
            }
        }
    }
    *Option: LEGAL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4904, 8208)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4904, 8208)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 8304)
            }
        }
    }
    *Option: EXECUTIVE
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4160, 6104)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4160, 6104)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 6200)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: FOLIO
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4904, 7608)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4904, 7608)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 7704)
            }
        }
    }
    *Option: ENV_10
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2280, 5504)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2280, 5504)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 5600)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL, InputBin.UPPER)
    }
    *Option: A6
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2288, 3304)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2288, 3304)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 3400)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL, InputBin.UPPER)
    }
    *Option: ENV_MONARCH
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2128, 4304)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2128, 4304)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 4400)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL, InputBin.UPPER)
    }
    *Option: ENV_C5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(3632, 5216)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(3632, 5216)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 5312)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL, InputBin.UPPER)
    }
    *Option: ENV_C6
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2496, 3632)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2496, 3632)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 3728)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL, InputBin.UPPER)
    }
    *Option: ENV_C65
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2496, 5216)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2496, 5216)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 5312)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL, InputBin.UPPER)
    }
    *Option: ENV_DL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2400, 5000)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2400, 5000)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 5096)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL, InputBin.UPPER)
    }
    *Option: 16K_184_260
    {
        *rcNameID: =IDS_OEM_PAPER_16K_184_260
        *PageDimensions:  PAIR(4346, 6141)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4152, 5944)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4152, 5944)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 6040)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: 16K_195_270
    {
        *rcNameID: =IDS_OEM_PAPER_16K_195_270
        *PageDimensions:  PAIR(4606, 6377)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4408, 6184)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4408, 6184)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 6280)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: 16K_197_273
    {
        *rcNameID: =IDS_OEM_PAPER_16K_197_273
        *PageDimensions:  PAIR(4653, 6448)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4456, 6256)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4456, 6256)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 6352)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: 32K
    {
        *rcNameID: =IDS_OEM_PAPER_32K
        *PageDimensions:  PAIR(3188, 4606)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2992, 4408)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2992, 4408)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 4504)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL,)
    }
    *Option: TAX
    {
        *rcNameID: =IDS_OEM_PAPER_TAX
        *PageDimensions:  PAIR(3779, 5905)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(3584, 5712)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(3584, 5712)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 5808)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL, InputBin.UPPER)
    }
}

*%******************************************************************************************
*%                                      Media Type
*%******************************************************************************************
*Feature: MediaType
{
    *rcNameID: =MEDIA_TYPE_DISPLAY
    *DefaultOption: STANDARD
    *Option: STANDARD
    {
        *rcNameID: =PLAIN_PAPER_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.15
            *Cmd: ""
        }
    }
    *Option: OEM_LIGHT
    {
        *rcNameID: =IDS_OEM_MEDIA_LIGHT
        *OptionID:259
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.15
            *Cmd: ""
        }
    }
    *Option: OEM_HEAVY
    {
        *rcNameID: =IDS_OEM_MEDIA_HEAVY
        *OptionID:258
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.15
            *Cmd: ""
        }
    }
}

*%******************************************************************************************
*%                                      Color Mode
*%******************************************************************************************
*ChangeColorModeOnDoc?: FALSE
*Feature: ColorMode
{
    *Name: "base color mode"
    *DefaultOption: 8bpp
    *Option: 8bpp
    {
        *Name: "Gray Scale (8bpp)"
        *DevNumOfPlanes: 0
        *DevBPP: 0
        *DrvBPP: 8
        *IPCallbackID: 3
        *Color?: FALSE
        *PaletteProgrammable?: FALSE
    }
}

*%******************************************************************************************
*%                                      Cursor and Page Commands
*%******************************************************************************************
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE

*MemoryUsage: LIST(RASTER)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*XMoveUnit: 300
*YMoveUnit: 300

*OutputDataFormat: H_BYTE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT

*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "" }
*Command: CmdFF { *Cmd : "" }
*Command: CmdSendBlockData { *Cmd : "" }
