*GPDFileName: "DELIINKPRNDRV.gpd"
*GPDFileVersion: "1.2"
*GPDSpecVersion: "1.2"
*Include: "StdNames.gpd"
*ModelName: "Deli Inkjet Series"
*MasterUnits: PAIR(600, 600)
*PrinterType: PAGE
*MaxCopies: 1


*%******************************************************************************************
*%                                      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: "DELIINKPRNRS_zh-CN.dll"
    }
    *case: Chinese_Singapore
    {
        *ResourceDLL: "DELIINKPRNRS_zh-CN.dll"
    }
    *default:
    {
        *ResourceDLL: "DELIINKPRNRS_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_MEDIA_ENV:        			2014
	IDS_OEM_MEDIA_OTHER:        		2015
	IDS_OEM_MEDIA_MATTE:        		2016
    IDS_OEM_PAPER_16K_195_270:  		2052
    IDS_OEM_PAPER_32K:          		2054
    IDS_OEM_PAPER_TAX:          		2055
    IDS_OEM_PAPER_4R:           		2056
	IDS_OEM_PAPER_Deli_7_5R:            2060
	IDS_OEM_PAPER_Deli_6_4R:            2061
	IDS_OEM_PAPER_Deli_A4_PHO:          2062
	IDS_OEM_PAPER_Deli_A4_INK:          2063
	IDS_OEM_PAPER_Deli_5_3R_L:          2064
	IDS_OEM_PAPER_Deli_CUSTOM_MIN:      2066
	IDS_OEM_PAPER_Deli_CUSTOM_MAX:      2067
	IDS_OEM_PAPER_Deli_A5:              2068
	IDS_OEM_PAPER_Deli_3R_B:            2070
	IDS_OEM_PAPER_Deli_4R_B:            2071
	IDS_OEM_PAPER_Deli_5R_B:            2072
	IDS_OEM_PAPER_Deli_A4_B:            2073
}

*%******************************************************************************************
*%                                      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: CASSETTE
    {
        *rcNameID: =CASSETTE_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.11
            *Cmd: ""
        }
    }
   
}

*%******************************************************************************************
*%                                      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: B5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4112, 5880)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4112, 5880)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 5976)
            }
        }   
    }
    *Option: A5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(3312, 4768)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(3312, 4768)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 4864)
            }
        }
    }
    *Option: LETTER
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4896, 6408)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4896, 6408)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 6504)
            }
        }
    }
    *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)
    }
    *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)
    }
    *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(4416, 6184)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4416, 6184)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 6280)
            }
        }
    }
    *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)
    }
	
	
	*Option: A4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PageDimensions:  PAIR(4960, 7015)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *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: Deli_7_5R
    {
        *rcNameID: =IDS_OEM_PAPER_Deli_7_5R
        *PageDimensions:  PAIR(3000, 4204)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2816, 4008)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2816, 4008)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 4104)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
    }
	*Option: Deli_A4_B
    {
        *rcNameID: =IDS_OEM_PAPER_Deli_A4_B
        *PageDimensions:  PAIR(4960, 7015)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4960, 7015)
                *PrintableOrigin: PAIR(0, 0)
                *CursorOrigin: PAIR(0, 0)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4960, 7015)
                *PrintableOrigin: PAIR(0, 0)
                *CursorOrigin: PAIR(0, 7015)
            }
        }
    }
	
	*Option: Deli_5R_B
    {
        *rcNameID: =IDS_OEM_PAPER_Deli_5R_B
        *PageDimensions:  PAIR(3000, 4204)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2992, 4204)
                *PrintableOrigin: PAIR(0,0)
                *CursorOrigin: PAIR(0,0)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2992, 4204)
                *PrintableOrigin: PAIR(0,0)
                *CursorOrigin: PAIR(0,4204)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
    }
	
	*Option: Deli_6_4R
    {
        *rcNameID: =IDS_OEM_PAPER_Deli_6_4R
        *PageDimensions:  PAIR(2416, 3590)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2208, 3392)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2208, 3392)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 3488)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
    }
	*Option: Deli_4R_B
    {
        *rcNameID: =IDS_OEM_PAPER_Deli_4R_B
        *PageDimensions:  PAIR(2416, 3590)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2416, 3590)
                *PrintableOrigin: PAIR(0,0)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2416, 3590)
                *PrintableOrigin: PAIR(0,0)
                *CursorOrigin: PAIR(0,3590)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
    }
	*Option: Deli_5_3R_L
    {
        *rcNameID: =IDS_OEM_PAPER_Deli_5_3R_L
        *PageDimensions:  PAIR(2102, 3000)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(1904, 2808)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 96)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(1904, 2808)
                *PrintableOrigin: PAIR(96, 96)
                *CursorOrigin: PAIR(96, 2904)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
    }
	*Option: Deli_3R_B
    {
        *rcNameID: =IDS_OEM_PAPER_Deli_3R_B
        *PageDimensions:  PAIR(2102, 3000)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.20
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2096, 3000)
                *PrintableOrigin: PAIR(0,0)
                *CursorOrigin: PAIR(0,0)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2096, 3000)
                *PrintableOrigin: PAIR(0,0)
                *CursorOrigin: PAIR(0,3000)
            }
        }
        *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
    }
	*Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
      
        *MinSize: PAIR(60, 60)
        *MaxSize: PAIR(5104, 7016)
        *MaxPrintableWidth: 99999
        *MinLeftMargin: 96
        *CenterPrintable?: FALSE
        *CustPrintableOriginX:  %d{96}
        *CustPrintableOriginY:  %d{96}
        *CustPrintableSizeX:  %d{PhysPaperWidth }
        *CustPrintableSizeY:  %d{PhysPaperLength }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.120
            *Cmd: ""
        }
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *CustCursorOriginX:  %d{96}
                *CustCursorOriginY:  %d{96}
				*CustPrintableSizeX:  %d{(((PhysPaperWidth  - 192)+1)/16)*16}
				*CustPrintableSizeY:  %d{(((PhysPaperLength  - 192)+1)/16)*16}
				*CustPrintableOriginX:  %d{96}
				*CustPrintableOriginY:  %d{96}
            }
            *case: LANDSCAPE_CC90
            {
				*CustPrintableOriginX:  %d{96}
				*CustPrintableOriginY:  %d{96}
				*CustPrintableSizeX:  %d{(((PhysPaperWidth  - 192)+1)/16)*16}
				*CustPrintableSizeY:  %d{(((PhysPaperLength  - 192)+1)/16)*16}
                *CustCursorOriginX:  %d{96}
                *CustCursorOriginY:  %d{(((PhysPaperLength  - 192)+1)/16)*16-96}
            }
        }
        *Constraints: LIST( InputBin.UPPER)
    }

}

*%******************************************************************************************
*%                                      Media Type
*%******************************************************************************************
*Feature: MediaType
{
    *rcNameID: =MEDIA_TYPE_DISPLAY
    *DefaultOption: OEM_LIGHT
    *Option: OEM_MATTE
    {
        *rcNameID: =IDS_OEM_MEDIA_MATTE
        *OptionID:260
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.15
            *Cmd: ""
        }
		*Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL)
    }   
    *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: ""
        }
		*Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL)
    }
	
	*Option: OEM_ENV
    {
        *rcNameID: =IDS_OEM_MEDIA_ENV
        *OptionID:257
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.15
            *Cmd: ""
        }
		*Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL)
    }
	
}

*%******************************************************************************************
*%                                      Color Mode
*%******************************************************************************************
*ChangeColorModeOnDoc?: FALSE
*Feature: ColorMode
{
    *Name: "base color mode"
    *DefaultOption: 24bpp
    *Option: 24bpp
    {
        *Name: "Color Scale (24bpp)"
		*DevNumOfPlanes: 0
        *DevBPP: 1
        *DrvBPP: 24
        *PaletteSize: 256
        *PaletteProgrammable? : FALSE
		*ColorPlaneOrder: LIST(RED, GREEN, BLUE)
		*IPCallbackID: 1 
    }
	
	*Option: 8bpp
    {
        *Name: "Gray Scale (8bpp)"
        *DevNumOfPlanes: 0
        *DevBPP: 0
        *DrvBPP: 8
        *IPCallbackID: 3
        *Color?: FALSE
        *PaletteProgrammable?: FALSE
    }
}

*%******************************************************************************************
*%                                      Print Order 
*%******************************************************************************************
*OutputOrderReversed?: TRUE

*%******************************************************************************************
*%                                      Duplex Type
*%******************************************************************************************
*Feature: Duplex
{
    *rcNameID: =TWO_SIDED_PRINTING_DISPLAY
    *DefaultOption: NONE
    *ConflictPriority: 3
    *Option: NONE
    {
        *rcNameID: =NONE_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.9
            *Cmd: ""
        }
    }
    *Option: VERTICAL
    {
        *rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.9
            *Cmd: ""
        }
		*Constraints: LIST(MediaType.OEM_OTHER, MediaType.OEM_ENV, MediaType.OEM_MATTE, MediaType.OEM_HEAVY)
    }
    *Option: HORIZONTAL
    {
        *rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.9
            *Cmd: ""
        }
		*Constraints: LIST(MediaType.OEM_OTHER, MediaType.OEM_ENV, MediaType.OEM_MATTE, MediaType.OEM_HEAVY)
    }
}


*%******************************************************************************************
*%                                      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 : "" }
