Bug 209599 Enable getSize() in IReportItemPresentation and IReportItemGeneration
Currently, engines IReportItemPresentation and IReportItemGeneration.getSize() are not invoked by any classes. However, in some cases, such as cross tab integration, chart should set the dimension to output an image with specified size. The rule is, if ExtendedItems dimension property is undefined, engine will use getSize() to get the dimension of ExtendedItem. If user sets ExtendedItems dimension property, engine will get the dimension. Additionally, when chart is dropped into cross tab, the dimension property should be unset, so chart dimension can be resized correctly by internal computation.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedContentVisitor.java
public LocalizedContentVisitor( ExecutionContext context )
	{
		this.context = context;
		this.locale = context.getLocale( );
		this.outputFormat = context.getOutputFormat( );
		this.onRenderVisitor = new OnRenderScriptVisitor( context );
	}
	
	IReportContent getReportContent( )
	{
		return context.getReportContent( );
	}
	ReportDesignHandle getReportDesign( )
	{
		return context.getDesign( );
	}
	
	/**
	 * Checks the background image property. If it is given as a relative path,
	 * gets its absolute path and sets it back to the style.
	 * 
	 * @param style
	 *            the style that defines background image related properties
	 */
	protected void processBackgroundImage( IStyle style )
	{
		if ( style == null )
			return;
		String image = style.getBackgroundImage( );