*%%% ==================================================================
*%%% Value macros for custom feature names and option names
*%%% used in Sindoh Co.,Ltd drivers
*%%%
*%%% Portions Copyright (c) 2015 Sindoh Co.,Ltd.
*%%% All Rights Reserved.
*%%% ==================================================================


*CodePage: 1252     *% Windows 3.1 US (ANSI) code page

*%%*Feature: RESDLL
*%%{
*%%    *Name: "resource dll files"
*%%    *Option: resDLL
*%%    {
*%%        *Name: "xxxxx.dll"
*%%    }
*%%}
*Macros: SAttributeEnum
{
    eJIS16KPaper:                           "<14>"
   	ePortraitOrientation:					"<00>"
}

*Macros: SDHOrientation
{
	SDHPortrait: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
	SDHLandscape: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
	SDHReversePortrait: =ubyte =eReversePortrait =attr_ubyte =Orientation
	SDHReverseLandscape: =ubyte =eReverseLandscape =attr_ubyte =Orientation
}

*Macros: SDHDuplex
{
	SDHNone: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode
	SDHShortEdge: =ubyte =eDuplexHorizontalBinding =attr_ubyte =DuplexPageMode
	SDHLongEdge: =ubyte =eDuplexVerticalBinding =attr_ubyte =DuplexPageMode
}

*Macros: SPJLCommand
{
    *%% =====Duplex=====
    SPJL_DUPLEX_OFF:                        "@PJL SET BINDING=LONGEDGE<0A>@PJL SET DUPLEX=OFF<0A>"
    SPJL_DUPLEX_LONGEDGE:                   "@PJL SET BINDING=LONGEDGE<0A>@PJL SET DUPLEX=ON<0A>"
    SPJL_DUPLEX_SHORTEDGE:                  "@PJL SET BINDING=SHORTEDGE<0A>@PJL SET DUPLEX=ON<0A>"
}

*Macros: SDHPaperSize
{
	SDHLetter_Port: =ubyte =eLetterPaper =attr_ubyte =MediaSize =BeginPage

	SDHLetter_Land: =ubyte =eLetterPaper =attr_ubyte =MediaSize =BeginPage

	SDHA3_Port: =ubyte =eA3Paper =attr_ubyte =MediaSize =BeginPage

	SDHA3_Land: =ubyte =eA3Paper =attr_ubyte =MediaSize =BeginPage

	SDHB4_Port: =ubyte =eJB4Paper =attr_ubyte =MediaSize =BeginPage

	SDHB4_Land: =ubyte =eJB4Paper =attr_ubyte =MediaSize =BeginPage

	SDHA4_Port: =ubyte =eA4Paper =attr_ubyte =MediaSize =BeginPage

	SDHA4_Land: =ubyte =eA4Paper =attr_ubyte =MediaSize =BeginPage

	SDHB5_Port: =ubyte =eJB5Paper =attr_ubyte =MediaSize =BeginPage

	SDHB5_Land: =ubyte =eJB5Paper =attr_ubyte =MediaSize =BeginPage

	SDHA5_Port: =ubyte =eA5Paper =attr_ubyte =MediaSize =BeginPage

	SDHA5_Land: =ubyte =eA5Paper =attr_ubyte =MediaSize =BeginPage

	SDHJISB6_Port: =ubyte =eJB6Paper =attr_ubyte =MediaSize =BeginPage

	SDHJISB6_Land: =ubyte =eJB6Paper =attr_ubyte =MediaSize =BeginPage

	SDHA6_Port: =ubyte =eA6Paper =attr_ubyte =MediaSize =BeginPage

	SDHA6_Land: =ubyte =eA6Paper =attr_ubyte =MediaSize =BeginPage

	SDH11X17_Port: =ubyte =eLedgerPaper =attr_ubyte =MediaSize =BeginPage

	SDH11X17_Land: =ubyte =eLedgerPaper =attr_ubyte =MediaSize =BeginPage

	SDHLegal_Port: =ubyte =eLegalPaper =attr_ubyte =MediaSize =BeginPage

	SDHLegal_Land: =ubyte =eLegalPaper =attr_ubyte =MediaSize =BeginPage

	SDHStatement_Port: =ubyte "<1E>" =attr_ubyte =MediaSize =BeginPage

	SDHStatement_Land: =ubyte "<1E>" =attr_ubyte =MediaSize =BeginPage

	SDHExecutive_Port: =ubyte =eExecPaper =attr_ubyte =MediaSize =BeginPage

	SDHExecutive_Land: =ubyte =eExecPaper =attr_ubyte =MediaSize =BeginPage

	SDH8X13_Port: =ubyte "<1F>" =attr_ubyte =MediaSize =BeginPage

	SDH8X13_Land: =ubyte "<1F>" =attr_ubyte =MediaSize =BeginPage

	SDHFolio_Port: =ubyte "<20>" =attr_ubyte =MediaSize =BeginPage

	SDHFolio_Land: =ubyte "<20>" =attr_ubyte =MediaSize =BeginPage

	SDH8_25X13_Port: =ubyte "<21>" =attr_ubyte =MediaSize =BeginPage

	SDH8_25X13_Land: =ubyte "<21>" =attr_ubyte =MediaSize =BeginPage

	SDH8_5X13_Port: =ubyte "<20>" =attr_ubyte =MediaSize =BeginPage

	SDH8_5X13_Land: =ubyte "<20>" =attr_ubyte =MediaSize =BeginPage

	SDH8_5X13_5_Port: =ubyte "<33>" =attr_ubyte =MediaSize =BeginPage

	SDH8_5X13_5_Land: =ubyte "<33>" =attr_ubyte =MediaSize =BeginPage

	SDH8_65X13_Port: =ubyte "<34>" =attr_ubyte =MediaSize =BeginPage

	SDH8_65X13_Land: =ubyte "<34>" =attr_ubyte =MediaSize =BeginPage

	SDH8_125X13_25_Port: =ubyte "<35>" =attr_ubyte =MediaSize =BeginPage

	SDH8_125X13_5_Land: =ubyte "<35>" =attr_ubyte =MediaSize =BeginPage

	SDHGOV_LEGAL_Port: =ubyte "<22>" =attr_ubyte =MediaSize =BeginPage

	SDHGOV_LEGAL_Land: =ubyte "<22>" =attr_ubyte =MediaSize =BeginPage

	SDH_8K_Port: =ubyte "<13>" =attr_ubyte =MediaSize =BeginPage

	SDH_8K_Land: =ubyte "<13>" =attr_ubyte =MediaSize =BeginPage

	SDH_16K_Port: =ubyte =eJIS16KPaper =attr_ubyte =MediaSize =BeginPage

	SDH_16K_Land: =ubyte =eJIS16KPaper =attr_ubyte =MediaSize =BeginPage

	SDHENV_10_Port: =ubyte =eCOM10Envelope =attr_ubyte =MediaSize =BeginPage

	SDHENV_10_Land: =ubyte =eCOM10Envelope =attr_ubyte =MediaSize =BeginPage

	SDHENV_MONARCH_Port: =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize =BeginPage

	SDHENV_MONARCH_Land: =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize =BeginPage

	SDHENV_C4_Port: =ubyte "<3E>" =attr_ubyte =MediaSize =BeginPage

	SDHENV_C4_Land: =ubyte "<3E>" =attr_ubyte =MediaSize =BeginPage

	SDHENV_C5_Port: =ubyte =eC5Envelope =attr_ubyte =MediaSize =BeginPage

	SDHENV_C5_Land: =ubyte =eC5Envelope =attr_ubyte =MediaSize =BeginPage

	SDHENV_C6_Port: =ubyte "<23>" =attr_ubyte =MediaSize =BeginPage

	SDHENV_C6_Land: =ubyte "<23>" =attr_ubyte =MediaSize =BeginPage

	SDHENV_DL_Port: =ubyte =eDLEnvelope =attr_ubyte =MediaSize =BeginPage

	SDHENV_DL_Land: =ubyte =eDLEnvelope =attr_ubyte =MediaSize =BeginPage

	SDH_4X6_Port: =ubyte "<3D>" =attr_ubyte =MediaSize =BeginPage

	SDH_4X6_Land: =ubyte "<3D>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_Y3_Port: =ubyte "<3F>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_Y3_Land: =ubyte "<3F>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_Y4_Port: =ubyte "<40>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_Y4_Land: =ubyte "<40>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_L3_Port: =ubyte "<41>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_L3_Land: =ubyte "<41>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_L4_Port: =ubyte "<42>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_L4_Land: =ubyte "<42>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_K1_Port: =ubyte "<43>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_K1_Land: =ubyte "<43>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_K2_Port: =ubyte "<44>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_K2_Land: =ubyte "<44>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_K3_Port: =ubyte "<45>" =attr_ubyte =MediaSize =BeginPage

	SDH_ENV_K3_Land: =ubyte "<45>" =attr_ubyte =MediaSize =BeginPage

	SDHCUS_PORT: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =uint16_xy %l{((PhysPaperWidth + 1) * 254 / 1200)}%l{((PhysPaperLength + 1) * 254 / 1200)} =attr_ubyte =CustomMediaSize
+                         =ubyte =eTenthsOfAMillimeter =attr_ubyte =CustomMediaSizeUnits =BeginPage

	SDHCUS_LAND: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =uint16_xy %l{((PhysPaperWidth + 1) * 254 / 1200)}%l{((PhysPaperLength + 1) * 254 / 1200)} =attr_ubyte =CustomMediaSize
+                         =ubyte =eTenthsOfAMillimeter =attr_ubyte =CustomMediaSizeUnits =BeginPage
	
}