Bug 189586 [smoke]Fail to preview template item in xls format..[1203]
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelEmitter.java
import org.eclipse.birt.report.engine.content.ITableGroupContent;
import org.eclipse.birt.report.engine.content.ITextContent;
import org.eclipse.birt.report.engine.emitter.IContentEmitter;
import org.eclipse.birt.report.engine.emitter.IEmitterServices;
import org.eclipse.birt.report.engine.emitter.excel.chart.ChartConverter;
import org.eclipse.birt.report.engine.ir.CellDesign;
import org.eclipse.birt.report.engine.ir.DataItemDesign;
import org.eclipse.birt.report.engine.ir.DynamicTextItemDesign;
import org.eclipse.birt.report.engine.ir.ExtendedItemDesign;
import org.eclipse.birt.report.engine.ir.Report;
import org.eclipse.birt.report.engine.ir.TableGroupDesign;
import org.eclipse.birt.report.engine.layout.pdf.util.HTML2Content;
import org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor;
import org.eclipse.birt.report.model.api.ExtendedItemHandle;
public class ExcelEmitter implements IContentEmitter
{
	public final static int MAXROW = 65025;
	public final static String OUTPUT_FORMAT = "xls";
	protected static Logger logger = Logger.getLogger( ExcelEmitter.class
			.getName( ) );
	private IEmitterServices eservice = null;
	private int[] width;
	private Map design2ExcelSpan = null;
	private Map table2TableBinding = null;
	private Map formulaDatas = new HashMap( );
	private final String EMPTY = " ";
	private final int INVALID = -1;
	private Stack groupInfos = new Stack( );
	private Stack tableBindings = new Stack( );
	private int lines = 0, flushLength = 1000;