*%
*% T90.GPD
*%
*%
*%
*% Copyright (C) 2009
*%


*GPDFileName: "T90.GPD"
*GPDFileVersion: "1.0"
*GPDSpecVersion: "1.0"
*Include: "stdnames.gpd"
*ModelName: "T90"
*MasterUnits: PAIR(180,180)
*ResourceDLL: "T90RES.DLL"
*PrinterType: SERIAL
*CodePage: 936
*%*PrintRate: 120
*%*PrintRateUnit: LPM

*%
*% Orientation
*%
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT

    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}

*%
*% Input bin
*%
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: MANUAL

    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_DISPLAY
    }
}

*%
*% Resolution
*%
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: HIGH

    *Option: HIGH
    {
        *Name: "180 x 180" =DOTS_PER_INCH
        *DPI: PAIR(180, 180)
        *TextDPI: PAIR(180,180)
        *SpotDiameter: 100
        *Command: CmdSendBlockData { *Cmd: "" }
   }
}

*%
*% Paper size
*%
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: PAPER80
*IgnoreBlock
{
    *Option: A4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(1313, 925)
        *PrintableOrigin: PAIR(5, 0)
        *CenterPrintable?: TRUE
    }

}
     *Option: PAPER80
    {
        *rcNameID: 800

        *PageDimensions: PAIR(563,2105)
        *PrintableArea: PAIR(540,2095)
        *PrintableOrigin: PAIR(21, 10)
        *CenterPrintable?: TRUE


        *%PageDimensions: PAIR(567,2105)
        *%PrintableArea: PAIR(544,2105)
        *%PrintableOrigin: PAIR(23, 0)
        *%CursorOrigin: PAIR(23,0)
        *%CenterPrintable?: TRUE
	*%MinLeftMargin: 0
        *%CenterPrintable?: FALSE
	*%RotateSize?: TRUE
	*%CustPrintableOriginX: 200
	*%CustPrintableOriginY: 100
    }

   *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(128, 128)
        *MaxSize: PAIR(567, 2105)
        *MaxPrintableWidth: 567
        *MinLeftMargin: 0
        *TopMargin: 0
        *CenterPrintable?: FALSE
	*switch:Orientation
	{
		*Case:PORTRAIT
		{
			*CustCursorOriginX: %d{((PhysPaperWidth-PhysPaperWidth)/2)}
			*CustCursorOriginY: %d{0}
			*CustPrintableOriginX: %d{0}
			*CustPrintableOriginY: %d{10}
			*CustPrintableSizeX: %d{PhysPaperWidth-0}
			*CustPrintableSizeY: %d{PhysPaperLength-20}
			*Command: CmdSelect
			{
				*Order: DOC_SETUP.13
			}
		}
		*Case:LANDSCAPE_CC270
		{
			*CustCursorOriginX:%d{((PhysPaperWidth-PhysPaperWidth)/2)}
			*CustCursorOriginY:%d{0}
			*CustPrintableOriginX:%d{20}
			*CustPrintableOriginY:%d{0}
			*CustPrintableSizeX:%d{PhysPaperLength-20}
			*CustPrintableSizeY:%d{PhysPaperWidth-0}
			*Command:CmdSelect
			{
				*Order:DOC_SETUP.13
			}
		}*% case LANDSCAPE_CC270
	}*%switch Orientation
     }
}

*%
*% Color mode
*%
*Feature: ColorMode
{
    *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
    *DefaultOption: MONO

    *Option: MONO
    {
        *rcNameID: =MONO_DISPLAY
        *DrvBPP: 1
        *DevNumOfPlanes: 0
        *DevBPP: 0
        *IPCallbackID: 1
        *Color?: FALSE
    }
}

*%
*% Halftone
*%
*Feature: Halftone
{
    *rcNameID: =HALFTONING_DISPLAY
    *DefaultOption: HT_PATSIZE_AUTO

    *Option: HT_PATSIZE_AUTO
    {
        *rcNameID: =HT_AUTO_SELECT_DISPLAY
    }
    *Option: HT_PATSIZE_16x16_M
    {
        *Name: "16x16"
    }
    *Option: HT_PATSIZE_14x14_M
    {
        *Name: "14x14"
    }
    *Option: HT_PATSIZE_12x12_M
    {
        *Name: "12x12"
    }
    *Option: HT_PATSIZE_10x10_M
    {
        *Name: "10x10"
    }
    *Option: HT_PATSIZE_8x8_M
    {
        *Name: "8x8"
    }
    *Option: HT_PATSIZE_6x6_M
    {
        *Name: "6x6"
    }
    *Option: HT_PATSIZE_4x4_M
    {
        *Name: "4x4"
    }
}


*Feature: ITEM17
{
    *rcNameID: 716
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: ITEM19

    *Option: ITEM18
    {
        *rcNameID: 717
	*Command:CmdSelect
        {
            *CallbackID: 21
	    *Order: DOC_SETUP.6
        }
    }
    *Option: ITEM19
    {
        *rcNameID: 718
	*Command:CmdSelect
        {
            *CallbackID: 22
	    *Order: DOC_SETUP.6
        }
    }
}

*Feature: ITEM1
{
    *rcNameID: 700
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: ITEM2

    *Option: ITEM2
    {
        *rcNameID: 701
	*Command:CmdSelect
        {
            *CallbackID: 10
	    *Order: DOC_SETUP.1
        }
    }
    *Option: ITEM3
    {
        *rcNameID: 702
	*Command:CmdSelect
        {
            *CallbackID: 11
	    *Order: DOC_SETUP.1
        }
    }
}

*Feature: ITEM7
{
    *rcNameID: 706
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: ITEM8

    *Option: ITEM8
    {
        *rcNameID: 707
	*Command:CmdSelect
        {
            *CallbackID: 14
	    *Order: DOC_SETUP.3
        }
    }
    *Option: ITEM9
    {
        *rcNameID: 708
	*Command:CmdSelect
        {
            *CallbackID: 15
	    *Order: DOC_SETUP.3
        }
    }
}

*Feature: ITEM4
{
    *rcNameID: 703
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: ITEM6

    *Option: ITEM5
    {
        *rcNameID: 704
	*Command:CmdSelect
        {
            *CallbackID: 12
	    *Order: DOC_SETUP.2
        }
    }
    *Option: ITEM6
    {
        *rcNameID: 705
	*Command:CmdSelect
        {
            *CallbackID: 13
	    *Order: DOC_SETUP.2
        }
    }
}



*Feature: ITEM14
{
    *rcNameID: 713
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: ITEM16

    *Option: ITEM16
    {
        *rcNameID: 715
	*Command:CmdSelect
        {
            *CallbackID: 20
	    *Order: DOC_SETUP.5
        }
    }
    *Option: ITEM15
    {
        *rcNameID: 714
	*Command:CmdSelect
        {
            *CallbackID: 19
	    *Order: DOC_SETUP.5
        }
    }
}


*Feature: ITEM10
{
    *rcNameID: 709
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: ITEM13

    *Option: ITEM11
    {
        *rcNameID: 710
	*Command:CmdSelect
        {
            *CallbackID: 16
	    *Order: DOC_SETUP.4
        }
    }
    *Option: ITEM12
    {
        *rcNameID: 711
	*Command:CmdSelect
        {
            *CallbackID: 17
	    *Order: DOC_SETUP.4
        }
    }

    *Option: ITEM13
    {
        *rcNameID: 712
	*Command:CmdSelect
        {
            *CallbackID: 18
	    *Order: DOC_SETUP.4
        }
    }
}

*Feature: ITEM20
{
    *rcNameID: 801
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: ITEM21

    *Option: ITEM21
    {
        *rcNameID: 719
	*Command:CmdSelect
        {
            *CallbackID: 30
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM22
    {
        *rcNameID: 720
	*Command:CmdSelect
        {
            *CallbackID: 31
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM23
    {
        *rcNameID: 721
	*Command:CmdSelect
        {
            *CallbackID: 32
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM23
    {
        *rcNameID: 722
	*Command:CmdSelect
        {
            *CallbackID: 33
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM24
    {
        *rcNameID: 723
	*Command:CmdSelect
        {
            *CallbackID: 34
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM25
    {
        *rcNameID: 724
	*Command:CmdSelect
        {
            *CallbackID: 35
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM26
    {
        *rcNameID: 725
	*Command:CmdSelect
        {
            *CallbackID: 36
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM27
    {
        *rcNameID: 726
	*Command:CmdSelect
        {
            *CallbackID: 37
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM28
    {
        *rcNameID: 727
	*Command:CmdSelect
        {
            *CallbackID: 38
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM29
    {
        *rcNameID: 728
	*Command:CmdSelect
        {
            *CallbackID: 39
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM30
    {
        *rcNameID: 729
	*Command:CmdSelect
        {
            *CallbackID: 40
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM31
    {
        *rcNameID: 730
	*Command:CmdSelect
        {
            *CallbackID: 41
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM32
    {
        *rcNameID: 731
	*Command:CmdSelect
        {
            *CallbackID: 42
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM33
    {
        *rcNameID: 732
	*Command:CmdSelect
        {
            *CallbackID: 43
	    *Order: DOC_SETUP.7
        }
    }
    *Option: ITEM34
    {
        *rcNameID: 733
	*Command:CmdSelect
        {
            *CallbackID: 44
	    *Order: DOC_SETUP.7
        }
    }
}

*Command: CmdCR: ""
*Command: CmdLF: ""
*Command: CmdFF: ""
*%OptimizeLeftBound?: FALSE
