Bug 213957 [Automation][Acceptance]Pagenumber in masterpage does not work in PDF
Description: All the page numbers are "2" when add a page n of m autotext in masterpage. Test Date: 20071228 Test Build: BIRT2.3.0 Daily Build: v20071228-1005 Step to reproduce: 1. Use the report attached 2. Preview report in PDF
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportExecutor.java
{
		return this.manager;
	}
	long generateUniqueID( )
	{
		return uniqueId++;
	}
	public IReportItemExecutor createPageExecutor( long pageNumber,
			MasterPageDesign pageDesign )
	{
		
		IPageContent pageContent = (IPageContent)pages.get( pageDesign );
		if(pageContent == null )
		{
			
			IReportItemExecutor pageExecutor = new MasterPageExecutor( manager, pageNumber, pageDesign );
			pageContent = (IPageContent) pageExecutor.execute( );
			IContentEmitter domEmitter = new DOMBuilderEmitter( pageContent );
			ReportExecutorUtil.executeAll( pageExecutor, domEmitter );
			pageExecutor.close( );
			pages.put( pageDesign, pageContent );
		}
		else
		{
			pageContent.setPageNumber( pageNumber );
		}
		return new DOMReportItemExecutor( pageContent, true );
	}
}