*%
*% Purpose:	Configure for MP POS58 printers
*% Date:	2021-04-03
*%
*GPDSpecVersion: "1.0.1"
*GPDFileName: "DLPOS_GE5801P.GPD"
*GPDFileVersion: "1.0.1"
*Include: "StdNames.gpd"
*ModelName: "Deli-GE5801P"
*MasterUnits: PAIR(203, 203)
*CodePage: 936
*PrinterType: SERIAL
*ResourceDLL: "DeliPosUI.dll"

*% -----------------------------------------------
*% Standard Feature
*%
*% -----------------------------------------------

*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: MANUAL
    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_DISPLAY
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "203 x 203 " =DOTS_PER_INCH
        *DPI: PAIR(203, 203)
        *TextDPI: PAIR(203, 203)
        *SpotDiameter: 170
        *Command: CmdSendBlockData { *Cmd : "" }
    }
}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option2

    
    *Option: Option1
    {
        *Name: "DELI-58(48)x210 mm"
        *PageDimensions: PAIR(384, 1678)
        *PrintableArea: PAIR(384, 1678)
        *PrintableOrigin: PAIR(0, 0)
          

       
    }
    *Option: Option2
    {
        *Name: "DELI-58(48)x297 mm"
        *PageDimensions: PAIR(384, 2374)
        *PrintableArea: PAIR(384, 2374)
        *PrintableOrigin: PAIR(0, 0)
      
    }
 
 

     *Option: CUSTOMSIZE
    {
	    *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(80, 80)
        *MaxSize: PAIR(384, 32767)
        *MaxPrintableWidth: 384
        *MinLeftMargin: 0
        *CenterPrintable?: TRUE
    }
}

*Feature: ColorMode
{
	*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
	*DefaultOption: Mono
	*Option: Mono
	{
		*rcNameID: =MONO_DISPLAY
		*DevNumOfPlanes: 0
		*DevBPP: 0
		*IPCallbackID: 1
		*Color?: FALSE
	}
}

*Feature: Halftone
{
    *rcNameID: =HALFTONING_DISPLAY
    *DefaultOption: HT_PATSIZE_AUTO
    *Option: HT_PATSIZE_AUTO
    {
        *rcNameID: =HT_AUTO_SELECT_DISPLAY
    }
*Ifdef: WINNT_50
    *Option: HT_PATSIZE_SUPERCELL_M
    {
        *rcNameID: =HT_SUPERCELL_DISPLAY
    }
*Endif:
    *Option: HT_PATSIZE_6x6_M
    {
        *rcNameID: =HT_DITHER6X6_DISPLAY
    }
    *Option: HT_PATSIZE_8x8_M
    {
        *rcNameID: =HT_DITHER8X8_DISPLAY
    }
}

*% -----------------------------------------------
*% Custom Feature
*%
*% -----------------------------------------------


*% -----------------------------------------------
*% Install Options
*%
*% -----------------------------------------------

*%%%%%
*Feature: BeforeVoice
{
    *rcNameID: 500
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Mode3

    *Option: Mode1
    {
        *rcNameID: 501
        *Command:CmdSelect
        {
            *CallbackID: 501
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode2
    {
        *rcNameID: 502
        *Command:CmdSelect
        {
            *CallbackID: 502
            *Order: DOC_SETUP.12
        }
    }
     *Option: Mode3
    {
        *rcNameID: 503
        *Command:CmdSelect
        {
            *CallbackID: 503
            *Order: DOC_SETUP.12
        }
    }
}
*%%%%%
*Feature: AfterVoice
{
    *rcNameID: 600
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Mode3

    *Option: Mode1
    {
        *rcNameID: 601
        *Command:CmdSelect
        {
            *CallbackID: 601
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode2
    {
        *rcNameID: 602
        *Command:CmdSelect
        {
            *CallbackID: 602
            *Order: DOC_SETUP.12
        }
    }
     *Option: Mode3
    {
        *rcNameID: 603
        *Command:CmdSelect
        {
            *CallbackID: 603
            *Order: DOC_SETUP.12
        }
    }
}
*%%%%%
*Feature: CashBox
{
    *rcNameID: 700
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Mode1

    *Option: Mode1
    {
        *rcNameID: 701
        *Command:CmdSelect
        {
            *CallbackID: 701
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode2
    {
        *rcNameID: 702
        *Command:CmdSelect
        {
            *CallbackID: 702
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode3
    {
        *rcNameID: 703
        *Command:CmdSelect
        {
            *CallbackID: 703
            *Order: DOC_SETUP.12
        }
    }
    
}
*%%%%%logo
*Feature: DocBeforePrintLogo
{
    *rcNameID: 800
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Mode1

    *Option: Mode1
    {
        *rcNameID: 801
        *Command:CmdSelect
        {
            *CallbackID: 801
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode2
    {
        *rcNameID: 802
        *Command:CmdSelect
        {
            *CallbackID: 802
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode3
    {
        *rcNameID: 803
        *Command:CmdSelect
        {
            *CallbackID: 803
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode4
    {
        *rcNameID: 804
        *Command:CmdSelect
        {
            *CallbackID: 804
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode5
    {
        *rcNameID: 805
        *Command:CmdSelect
        {
            *CallbackID: 805
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode6
    {
        *rcNameID: 806
        *Command:CmdSelect
        {
            *CallbackID: 806
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode7
    {
        *rcNameID: 807
        *Command:CmdSelect
        {
            *CallbackID: 807
            *Order: DOC_SETUP.12
        }
    }

       *Option: Mode8
    {
        *rcNameID: 808
        *Command:CmdSelect
        {
            *CallbackID: 808
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode9
    {
        *rcNameID: 809
        *Command:CmdSelect
        {
            *CallbackID: 809
            *Order: DOC_SETUP.12
        }
    }

       *Option: Mode10
    {
        *rcNameID: 810
        *Command:CmdSelect
        {
            *CallbackID: 810
            *Order: DOC_SETUP.12
        }
    }
}

*Feature: DocAfterPrintLogo
{
    *rcNameID: 850
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Mode1

    *Option: Mode1
    {
        *rcNameID: 851
        *Command:CmdSelect
        {
            *CallbackID: 851
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode2
    {
        *rcNameID: 852
        *Command:CmdSelect
        {
            *CallbackID: 852
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode3
    {
        *rcNameID: 853
        *Command:CmdSelect
        {
            *CallbackID: 853
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode4
    {
        *rcNameID: 854
        *Command:CmdSelect
        {
            *CallbackID: 854
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode5
    {
        *rcNameID: 855
        *Command:CmdSelect
        {
            *CallbackID: 855
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode6
    {
        *rcNameID: 856
        *Command:CmdSelect
        {
            *CallbackID: 856
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode7
    {
        *rcNameID: 857
        *Command:CmdSelect
        {
            *CallbackID: 857
            *Order: DOC_SETUP.12
        }
    }

       *Option: Mode8
    {
        *rcNameID: 858
        *Command:CmdSelect
        {
            *CallbackID: 858
            *Order: DOC_SETUP.12
        }
    }
       *Option: Mode9
    {
        *rcNameID: 859
        *Command:CmdSelect
        {
            *CallbackID: 859
            *Order: DOC_SETUP.12
        }
    }

       *Option: Mode10
    {
        *rcNameID: 860
        *Command:CmdSelect
        {
            *CallbackID: 860
            *Order: DOC_SETUP.12
        }
    }
}

*%%%%%
*Feature: PageStartBlank
{
    *rcNameID: 900
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Mode1

    *Option: Mode1
    {
        *rcNameID: 901
        *Command:CmdSelect
        {
            *CallbackID: 901
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode2
    {
        *rcNameID: 902
        *Command:CmdSelect
        {
            *CallbackID: 902
            *Order: DOC_SETUP.12
        }
    }

    
}
*%%%%%
*Feature: PageEndBlank
{
    *rcNameID: 910
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Mode2

    *Option: Mode1
    {
        *rcNameID: 911
        *Command:CmdSelect
        {
            *CallbackID: 911
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode2
    {
        *rcNameID: 912
        *Command:CmdSelect
        {
            *CallbackID: 912
            *Order: DOC_SETUP.12
        }
    }

    
}
*%%%%%
*Feature: FeedPaper
{
    *rcNameID: 1000
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Mode5
*Option: Mode0
    {
        *Name: "0 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1001
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode1
    {
        *Name: "3 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1002
            *Order: DOC_SETUP.12
        }
    }
   *Option: Mode2
    {
        *Name: "6 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1003
            *Order: DOC_SETUP.12
        }
    }
*Option: Mode3
    {
        *Name: "9 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1004
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode4
    {
        *Name: "12 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1005
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode5
    {
        *Name: "15 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1006
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode6
    {
        *Name: "18 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1007
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode7
    {
        *Name: "21 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1008
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode8
    {
        *Name: "24 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1009
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode9
    {
        *Name: "27 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1010
            *Order: DOC_SETUP.12
        }
    }
    *Option: Mode10
    {
        *Name: "30 mm"
        *Command:CmdSelect
        {
            *CallbackID: 1011
            *Order: DOC_SETUP.12
        }
    }
}

*% -----------------------------------------------
*% Command
*%
*% -----------------------------------------------

*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd:"<1B40>"
    *%%Cmd:""
}

*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: ""
	*%%Cmd:""
}

*Command: CmdEndPage
{
    *Order: PAGE_FINISH.1
    *Cmd: ""
    *%%Cmd: ""
}

*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
   *Cmd:"<1B40>"
    *%%Cmd:""
}

*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE

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

