Bug 153244 Master Page content is lost when set pagination for RenderTask
Description: Master Page content is lost when set pagination to false in HTMLRenderOption for RenderTask. Steps to reproduce: 1. Render a report with master page. Codes: IRenderOption options = new HTMLRenderOption( ); options.setOutputFileName( outputFile ); options.setOutputFormat( format ); ( (HTMLRenderOption) options ).setHtmlPagination( false ); HashMap appContext = new HashMap( ); task.setRenderOption( options ); task.render( ); task.close( ); Expected result: In output html, master page content is displayed. Actual result: Master page content is lost in output html file.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLRenderOption.java
public void setMasterPageContent( boolean show )
	{
		options.put( MASTER_PAGE_CONTENT, Boolean.valueOf( show ) );
	}
	public boolean getMasterPageContent( )
	{
		Boolean value = (Boolean) options.get( MASTER_PAGE_CONTENT );
		if ( value != null )
		{
			return value.booleanValue( );
		}
		return true;
	}
	public void setHtmlPagination( boolean paginate )
	{
		options.put( HTML_PAGINATION, Boolean.valueOf( paginate ) );
	}
	public boolean getHtmlPagination( )
	{
		Boolean value = (Boolean) options.get( HTML_PAGINATION );
		if ( value != null )
		{
			return value.booleanValue( );
		}
		return false;
	}
	public void setActionHandle( IHTMLActionHandler handler )
	{
		options.put( ACTION_HANDLER, handler );
	}