Bug 198056 Overline, Underline, line-through does not take effect on master page when preview as DOC, PPT, PDF, POSTSCRIPT, XLS [12]
Description: Overline, Underline, line-through does not take effect on master page when preview as DOC, PPT, PDF, POSTSCRIPT, XLS. Build number: 2.2.1.v20070727-0630 Steps to reproduce: 1. New a report, insert label in master header/footer. 2. Select the masterpage, go to Property Editor->Advanced, set font Overline, Underline and Line-through. 3. Preview as DOC, PPT, PDF, POSTSCRIPT, XLS. Expected result: Overline, Underline, line-through takes effect. Actual result: Overline, Underline, line-through does not take effect. Error log: N/A
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/StyleBuilder.java
overwriteProp( cEntry, entry, StyleConstant.BORDER_RIGHT_WIDTH_PROP );
	}
	public static void applyLeftBorder( StyleEntry cEntry, StyleEntry entry )
	{
		overwriteProp( cEntry, entry, StyleConstant.BORDER_LEFT_COLOR_PROP );
		overwriteProp( cEntry, entry, StyleConstant.BORDER_LEFT_STYLE_PROP );
		overwriteProp( cEntry, entry, StyleConstant.BORDER_LEFT_WIDTH_PROP );
	}
	public static void applyTopBorder( StyleEntry cEntry, StyleEntry entry )
	{
		overwriteProp( cEntry, entry, StyleConstant.BORDER_TOP_COLOR_PROP );
		overwriteProp( cEntry, entry, StyleConstant.BORDER_TOP_STYLE_PROP );
		overwriteProp( cEntry, entry, StyleConstant.BORDER_TOP_WIDTH_PROP );
	}
	public static void applyBottomBorder( StyleEntry cEntry, StyleEntry entry )
	{
		overwriteProp( cEntry, entry, StyleConstant.BORDER_BOTTOM_COLOR_PROP );
		overwriteProp( cEntry, entry, StyleConstant.BORDER_BOTTOM_STYLE_PROP );
		overwriteProp( cEntry, entry, StyleConstant.BORDER_BOTTOM_WIDTH_PROP );
	}
	private static void overwriteProp( StyleEntry cEntry, StyleEntry entry,
			int id )
	{
		if ( !( StyleEntry.isNull( cEntry.getProperty( id ) ) ))
		{
			entry.setProperty( id, cEntry.getProperty( id ) );
		}
	}	
}