*% GPD file for Epson Color Inkjet Plug-in
*% Copyright (c) 2004 Seiko Epson Corporation
*Include: "EP0NGX9Z.GPD"

*% Constraints for MediaType option. 
*InvalidCombination: LIST(ColorMode.EPOPT_COLORMODE_MONOCHROME, MediaType.PictureMatePhotoPaper)

*Feature: MediaType
{
	*rcNameID: =MEDIA_TYPE_DISPLAY
	*UpdateQualityMacro?: TRUE
	*DefaultOption: PictureMatePhotoPaper
	*Option: PictureMatePhotoPaper
	{
		*rcNameID: =EPN_RCID_PICTUREMATE_PHOTO_PAPER
		*OptionID: 344
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: FALSE
	}
}

*% Constraints for PaperSize option. 
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.CUSTOMSIZE)

*Feature: PaperSize
{
	*rcNameID: =PAPER_SIZE_DISPLAY
	*DefaultOption: NorthAmerica4x6

	*Option: NorthAmerica4x6
	{
		*rcNameID: =EPN_RCID_4X6FULL
		*PrintSchemaKeywordMap: "NorthAmerica4x6"
		*PageDimensions:  PAIR(288000, 432000)
		*switch: PageBorderless
		{
			*case: ON
			{
				*PrintableArea:   PAIR(288000, 432000)
				*PrintableOrigin: PAIR(0, 0)
			}
			*default:
			{
				*PrintableArea:   PAIR(271200, 415200)
				*PrintableOrigin: PAIR(8400, 8400)
			}
		}
	}

	*Option: ISOA4LogicalSize
	{
		*rcNameID: =EPN_RCID_A4_FITTOPAGE
		*PageDimensions:  PAIR(595200, 841800)
		*PrintableArea:   PAIR(578400, 825000)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: B5
	{	
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(499200, 711800)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: A5
	{	
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(402800, 578400)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: NorthAmericaLetterLogicalSize
	{
		*rcNameID: =EPN_RCID_LETTER_FITTOPAGE
		*PageDimensions:  PAIR(612000, 792000)
		*PrintableArea:   PAIR(595200, 775200)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: LEGAL
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(595200,  991200)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: A6
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(280800, 402800)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: B4
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(711800, 1015000)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: A3
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(825000, 1173800)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: OtherMetricA3Plus
	{
		*rcNameID: =EPN_RCID_A3NOBI
		*PrintSchemaKeywordMap: "OtherMetricA3Plus"
		*PageDimensions:  PAIR(932600, 1369200)
		*PrintableArea:   PAIR(915800, 1352400)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: JISB3
	{
		*rcNameID: =EPN_RCID_B3
		*PrintSchemaKeywordMap: "JISB3"
		*PageDimensions:  PAIR(1031800, 1457000)
		*PrintableArea:   PAIR(1015000, 1440200)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: A2
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(1173800, 1667000)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}

	*Option: CUSTOMSIZE
	{
		*rcNameID: =EPN_RCID_USER_DEFINED
		*MinSize: PAIR(153000, 243700)
		*MaxSize: PAIR(283400, 3168000)
		*MaxPrintableWidth: 266600
		*MinLeftMargin: 8400
		*CenterPrintable?: FALSE
		
		*TopMargin:    8400
		*BottomMargin: 8400

		*switch: Orientation
		{
			*case: PORTRAIT
			{
				*CustCursorOriginY:     %d{8400}
			}
			*case: LANDSCAPE_CC270
			{
				*CustCursorOriginY:     %d{PhysPaperLength - 8400}
			}
		}
		*CustCursorOriginX:     %d{8400}
		*CustPrintableOriginX:  %d{8400}
		*CustPrintableOriginY:  %d{8400}

		*CustPrintableSizeX: %d{ min(266600, PhysPaperWidth - 16800) }
		*CustPrintableSizeY: %d{ PhysPaperLength - 16800 }
	}
}

*% Constraints for PagePhysicalMediaSize option. 
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.CustomMediaSize)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.CustomMediaSize)

*Feature: PagePhysicalMediaSize
{
	*FeatureType: DOC_PROPERTY
	*rcNameID: =EPN_RCID_PHYPAPERSIZE
	*DefaultOption: NorthAmerica4x6

	*Option: NorthAmerica4x6
	{
		*rcNameID: =EPN_RCID_4X6FULL
		*PrintSchemaKeywordMap: "NorthAmerica4x6"
	}
	*Option: CustomMediaSize
	{
		*rcNameID: =EPN_RCID_USER_DEFINED
		*PrintSchemaKeywordMap: "CustomMediaSize"
	}
}
