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/HTMLTableLM.java
public int getType( )
	{
		return LAYOUT_MANAGER_TABLE;
	}
	boolean isFirstLayout = true;
	public void initialize( HTMLAbstractLM parent, IContent content,
			IReportItemExecutor executor, IContentEmitter emitter )
	{
		tableEmitter = new HTMLTableLayoutNoNestEmitter( emitter, context );
		super.initialize( parent, content, executor, tableEmitter );
		isFirstLayout = true;
	}
	
	protected void repeatHeader( )
	{
		if ( !isFirstLayout )
		{
			ITableContent table = (ITableContent) content;
			if ( table.isHeaderRepeat( ) )
			{
				IBandContent header = table.getHeader( );
				if ( header != null )
				{
					boolean pageBreak = context.allowPageBreak( );
					
					boolean isEmpty = context.isPageEmpty( );
					context.setPageEmpty( true );
					context.setAllowPageBreak( false );
					
					engine.layout(this, header, emitter );