if (cell != null) {
Format format = cell.getFormat();
boolean wrap = false;
CellFormatHelper cfh = new CellFormatHelper(sheet,row,col,_mergeMatrix);
String st = cfh.getHtmlStyle();
String ist = cfh.getInnerHtmlStyle();
if (st != null && !"".equals(st)){
jcell.setData("st", st);// style of text cell.
}
if (ist != null && !"".equals(ist)){
jcell.setData("ist", ist);// inner style of text cell
}
if (format!=null && format.isTextWrap()){
wrap = format.isTextWrap();
jcell.setData("wrap", true);//warp
}
if (cfh.hasRightBorder()){
jcell.setData("rbo",true);//right border, when processing text overflow, must take care this.
}
String txt = null;
if (cell != null) {
txt = cell.getText();
}
jcell.setData("txt", txt==null?"":Utils.escapeCellText(txt,wrap,wrap));
TextHAlign textHAlign = cell.getTextHAlign();
if (textHAlign != null) {
if (textHAlign.equals(TextHAlign.RIGHT)) {
jcell.setData("hal","r");
} else if (textHAlign.equals(TextHAlign.CENTER)) {
jcell.setData("hal","c");
}
}
}else{
jcell.setData("txt", "");
CellFormatHelper cfh = new CellFormatHelper(sheet,row,col,_ctrl.getMergeMatrixHelper(sheet));
String st = cfh.getHtmlStyle();
String ist = cfh.getInnerHtmlStyle();
if (st != null && !"".equals(st)){
jcell.setData("st", st);// style of text cell.
}
if (ist != null && !"".equals(ist)){
jcell.setData("ist", ist);// inner style of text cell
}
if (cfh.hasRightBorder()){
jcell.setData("rbo",true);//format
}
}
MergedRect rect = _mergeMatrix.getMergeRange(row, col);