aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java')
-rw-r--r--src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java b/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java
index 222e362c3c..b34b2ed8e3 100644
--- a/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java
+++ b/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java
@@ -296,14 +296,14 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter
String value;
switch ( cell.getCellType() )
{
- case HSSFCell.CELL_TYPE_STRING:
+ case STRING:
// XXX: enrich
value = cell.getRichStringCellValue().getString();
break;
- case HSSFCell.CELL_TYPE_FORMULA:
+ case FORMULA:
switch ( cell.getCachedFormulaResultType() )
{
- case HSSFCell.CELL_TYPE_STRING:
+ case STRING:
HSSFRichTextString str = cell.getRichStringCellValue();
if ( str != null && str.length() > 0 )
{
@@ -314,16 +314,16 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter
value = ExcelToHtmlUtils.EMPTY;
}
break;
- case HSSFCell.CELL_TYPE_NUMERIC:
+ case NUMERIC:
double nValue = cell.getNumericCellValue();
short df = cellStyle.getDataFormat();
String dfs = cellStyle.getDataFormatString();
value = _formatter.formatRawCellContents(nValue, df, dfs);
break;
- case HSSFCell.CELL_TYPE_BOOLEAN:
+ case BOOLEAN:
value = String.valueOf( cell.getBooleanCellValue() );
break;
- case HSSFCell.CELL_TYPE_ERROR:
+ case ERROR:
value = ErrorEval.getText( cell.getErrorCellValue() );
break;
default:
@@ -335,16 +335,16 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter
break;
}
break;
- case HSSFCell.CELL_TYPE_BLANK:
+ case BLANK:
value = ExcelToHtmlUtils.EMPTY;
break;
- case HSSFCell.CELL_TYPE_NUMERIC:
+ case NUMERIC:
value = _formatter.formatCellValue( cell );
break;
- case HSSFCell.CELL_TYPE_BOOLEAN:
+ case BOOLEAN:
value = String.valueOf( cell.getBooleanCellValue() );
break;
- case HSSFCell.CELL_TYPE_ERROR:
+ case ERROR:
value = ErrorEval.getText( cell.getErrorCellValue() );
break;
default: