StringBuffer sb = new StringBuffer();
Sheet sheet = getSelectedSheet();
MergeMatrixHelper matrix = getMergeMatrixHelper(sheet);
HeaderPositionHelper rowHelper = Spreadsheet.this.getRowPositionHelper(sheet);
HeaderPositionHelper colHelper = Spreadsheet.this.getColumnPositionHelper(sheet);
Cell cell = sheet.getCell(row,col);
//class="zscell zscw${cstatus.index} zsrhi${rstatus.index} ${s:getCellSClass(self,rstatus.index,cstatus.index)}"
sb.append("class=\"zscell");
int zsh = -1;
int zsw = -1;
int[] meta = colHelper.getMeta(col);
if(meta!=null){
zsw = meta[2];
sb.append(" zsw").append(zsw);
}
meta = rowHelper.getMeta(row);
if(meta!=null){
zsh = meta[2];
sb.append(" zshi").append(zsh);
}
appendMergeSClass(sb,row,col);
sb.append("\" ");
CellFormatHelper cfh = new CellFormatHelper(sheet,row,col,getMergeMatrixHelper(sheet));
HTMLs.appendAttribute(sb, "style", cfh.getHtmlStyle());
HTMLs.appendAttribute(sb, "z.r",row);
HTMLs.appendAttribute(sb, "z.c", col);
if(zsw>=0){
HTMLs.appendAttribute(sb, "z.zsw",zsw);
}
if(zsh>=0){
HTMLs.appendAttribute(sb, "z.zsh",zsh);
}
if(cell!=null){
Format format = cell.getFormat();
if(format != null && format.isTextWrap()){
HTMLs.appendAttribute(sb, "z.wrap", "t");
}
TextHAlign textHAlign = cell.getTextHAlign();
if (textHAlign != null) {
if (textHAlign.equals(TextHAlign.RIGHT)) {
HTMLs.appendAttribute(sb, "z.hal", "r");
} else if (textHAlign.equals(TextHAlign.CENTER)) {
HTMLs.appendAttribute(sb, "z.hal", "c");