Bug 131622 UI - Autotext enhancments - Support Total Page count
Engine will support total page count. We need to make the UI changes to support the total page count.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/internal/document/v2/ReportContentLoaderV2.java
}
		public void visitRow( IRowContent row, Object value )
		{
			IContentEmitter emitter = (IContentEmitter) value;
			emitter.startRow( row );
		}
		public void visitCell( ICellContent cell, Object value )
		{
			IContentEmitter emitter = (IContentEmitter) value;
			emitter.startCell( cell );
		}
		public void visitText( ITextContent text, Object value )
		{
			IContentEmitter emitter = (IContentEmitter) value;
			emitter.startText( text );
		}
		public void visitLabel( ILabelContent label, Object value )
		{
			IContentEmitter emitter = (IContentEmitter) value;
			emitter.startLabel( label );
		}
		
		public void visitAutoText( IAutoTextContent autoText, Object value )
		{
			IContentEmitter emitter = (IContentEmitter) value;
			if ( autoText.getType() == IAutoTextContent.TOTAL_PAGE )
			{
				autoText.setText(String.valueOf(reportDoc.getPageCount()));	
			}
			emitter.startAutoText( autoText );