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
* @param context
	 *            the executor context
	 * @param emitter
	 *            the report emitter
	 * 
	 */
	public ReportExecutor( ExecutionContext context )
	{
		this.context = context;
		this.report = context.getReport( );
		this.manager = new ExecutorManager( this );
		this.uniqueId = 0;
	}
	public IReportContent execute( )
	{
		reportContent = new ReportContent( report );
		context.setReportContent( reportContent );
		TOCTree tocTree = new TOCTree( );
		reportContent.setTOCTree( tocTree );
		TOCBuilder tocBuilder = new TOCBuilder( tocTree );
		context.setTOCBuilder( tocBuilder );
		
		Map appContext = context.getAppContext( );
		context.getDataEngine( ).prepare( report, appContext );
		
		
		
		context.optimizeExecution( );
		
		currentItem = 0;