headerHeight = new DimensionType( 1.0f, EngineIRConstants.UNITS_IN ); footerHeight = new DimensionType( 1.0f, EngineIRConstants.UNITS_IN );
if(page instanceof SimpleMasterPageDesign) { headerHeight = ((SimpleMasterPageDesign)page).getHeaderHeight(); footerHeight = ((SimpleMasterPageDesign)page).getFooterHeight(); } if(headerHeight==null) { headerHeight = new DimensionType( 0.25f, EngineIRConstants.UNITS_IN ); } if(footerHeight==null) { footerHeight = new DimensionType( 0.25f, EngineIRConstants.UNITS_IN ); }
	public void setGenerateBy( Object design )	{		super.setGenerateBy( design );		if ( design instanceof MasterPageDesign )		{			MasterPageDesign page = (MasterPageDesign) design;			orientation = page.getOrientation( );			pageType = page.getPageType( );			pageHeight = page.getPageHeight( );			pageWidth = page.getPageWidth( );			marginTop = page.getTopMargin( );			marginLeft = page.getLeftMargin( );			marginRight = page.getRightMargin( );			marginBottom = page.getBottomMargin( );			headerHeight = new DimensionType( 1.0f, EngineIRConstants.UNITS_IN );			footerHeight = new DimensionType( 1.0f, EngineIRConstants.UNITS_IN );		}	}