return getHSSFPtgs((HSSFCell)cell);
} else if (cell instanceof XSSFCell) {
final String formula = cell.getCellFormula();
final XSSFSheet sheet = (XSSFSheet) cell.getSheet();
final XSSFWorkbook wb = (XSSFWorkbook) sheet.getWorkbook();
final FormulaParsingWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
return FormulaParser.parse(formula, fpb, FormulaType.CELL, wb.getSheetIndex(sheet));
}
throw new UiException("Unknown cell class:"+cell);
}