*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "3.10"
*GPDFileName: "BTPBPLZ300.GPD"
*ModelName: "BTPBPLZ300"
*MasterUnits: PAIR(305, 305)
*ResourceDLL: "BTPBPLZ300.Dll"
*PrinterType: SERIAL
*MaxCopies: 32767

*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: UPPER
    *Option: UPPER
    {
        *rcNameID: =UPPER_TRAY_DISPLAY
    }
}

*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "305 x 305" =DOTS_PER_INCH
        *DPI: PAIR(305, 305)
        *TextDPI: PAIR(305, 305)

        *Command: CmdSendBlockData { *Cmd : "" }
        *switch: SpotOption
        {
 	*case: Option1
	{
		*SpotDiameter: 50
	}
	*case: Option2
	{
		*SpotDiameter: 70
	}
	*case: Option3
	{
		*SpotDiameter: 75
	}
	*case: Option4
	{
		*SpotDiameter: 80
	}
	*case: Option5
	{
		*SpotDiameter: 85
	}
	*case: Option6
	{
		*SpotDiameter: 90
	}
	*case: Option7
	{
		*SpotDiameter: 95
	}
	*case: Option8
	{
		*SpotDiameter: 100
	}
	*case: Option9
	{
		*SpotDiameter: 105	}
	*case: Option10
	{
		*SpotDiameter: 150
	}
       }
    }
}

*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: CUSTOMSIZE
	*Option: Option1
    {
         *Name: "104mm x 110mm"
        *rcNameID: 258
        *OptionID: 258
        *PageDimensions: PAIR(1248, 1320)
        *PrintableArea: PAIR(1248, 1320)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: CUSTOMSIZE
    {
        *Name: "User defined"
        *rcNameID:256 *% =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(12, 12)
        *MaxSize: PAIR(1272, 13200)
        *MaxPrintableWidth: 1272
        *MinLeftMargin: 0
        *CenterPrintable?: TRUE
        *CursorOrigin: PAIR(0,0)
    }
}

*Feature: SpotOption
{
    *Name: "SpotOption"
    *DefaultOption: Option4
    *Option: Option1
    {
        *Name: "50"
    }
    *Option: Option2
    {
        *Name: "70"
    }
    *Option: Option3
    {
        *Name: "75"
    }
    *Option: Option4
    {
        *Name: "80"
    }
    *Option: Option5
    {
        *Name: "85"
    }
    *Option: Option6
    {
        *Name: "90"
    }
    *Option: Option7
    {
        *Name: "95"
    }
    *Option: Option8
    {
        *Name: "100"
    }
    *Option: Option9
    {
        *Name: "105"
    }
    *Option: Option10
    {
        *Name: "150"
    }
}

*Feature: ColorMode
{
    *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID:259
        *DrvBPP: 1
        *DevNumOfPlanes: 1
        *DevBPP: 1
        *IPCallbackID: 1
        *Color?: FALSE
    }
    *Option: Option2
    {
        *rcNameID:260
        *DevNumOfPlanes: 1
        *DevBPP: 1
        *DrvBPP: 8
        *Color? : FALSE
       *IPCallbackID: 2
     }
}

*Feature: Halftone
{
    *Name: "Halftone"
    *DefaultOption: HT_PATSIZE_SUPERCELL_M
    *Option: HT_PATSIZE_AUTO
    {
        *rcNameID: =HT_AUTO_SELECT_DISPLAY
    }
    *Option: HT_PATSIZE_SUPERCELL_M
    {
        *rcNameID: =HT_SUPERCELL_DISPLAY
    }
    *Option: HT_PATSIZE_6x6_M
    {
        *rcNameID: =HT_DITHER6X6_DISPLAY
    }
    *Option: HT_PATSIZE_8x8_M
    {
        *rcNameID: =HT_DITHER8X8_DISPLAY
    }
}

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

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

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

*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_OP_CHARACTER,TC_RA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST(TC_UA_ABLE,TC_RA_ABLE)
    }
}

*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*YMoveThreshold: *
*YMoveUnit: 305
*Command: CmdYMoveRelDown { *Cmd : "<>"  }

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

*EjectPageWithFF?: FALSE
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*DefaultFont: 1
*DefaultCTT: 1
*switch: Orientation
{
    *case: PORTRAIT
    {
        *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,
+20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,
+43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,
+66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,
+89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,
+109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124)
    }
    *case: LANDSCAPE_CC270
    {
        *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,
+20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,
+43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,
+66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,
+89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,
+109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124)
    }
}
