Bug 191629 Use different master page in Web Viewer and PDF [04]
Description: Use different master page in Web Viewer and PDF Build number: 2.2.0.v20070607-1421 Steps to reproduce: 1. Preview the attached design file in PDF and Web Viewer. Expected result: The first page use the same master page. Actual result: See the screenshot. Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/html/HTMLLayoutContext.java
protected HTMLReportLayoutEngine engine;
	
	protected HashMap layoutHint = new HashMap();
	
	/**
	 * whether emitter need to output the display:none or process it in layout
	 * engine.
	 * true: output display:none in emitter and do not process it in layout engine. 
	 * false: process it in layout engine, not output it in emitter.
	 */
	protected boolean outputDisplayNone = false;
	
	public void reset()
	{
		pageEmpty = true;
		layoutHint = new HashMap();
		finished = false;
		allowPageBreak = true;
		masterPage = null;
	}
	
	public void addLayoutHint(IContent content, boolean finished)
	{
		layoutHint.put( content, new Boolean(finished) );
	}
	
	public boolean getLayoutHint(IContent content)
	{
		Object finished = layoutHint.get( content );
		if(finished!=null && finished instanceof Boolean)