From 41f2a19e563a2f66ae8ca02f0d26b5e0f9d98c0a Mon Sep 17 00:00:00 2001
From: Nick Burch
Date: Sat, 12 Jul 2008 18:28:59 +0000
Subject: [PATCH] Fix up a few cases where we were using ss.Region but should
be using hssf.Region for backwards compatibility
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@676211 13f79535-47bb-0310-9956-ffa450edef68
---
.../content/xdocs/spreadsheet/converting.xml | 8 ++++++++
src/java/org/apache/poi/hssf/record/CFHeaderRecord.java | 2 +-
src/java/org/apache/poi/hssf/record/cf/CellRange.java | 2 +-
.../poi/hssf/usermodel/HSSFConditionalFormatting.java | 2 +-
src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java | 2 +-
5 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/documentation/content/xdocs/spreadsheet/converting.xml b/src/documentation/content/xdocs/spreadsheet/converting.xml
index b543561934..2cb8d001e3 100644
--- a/src/documentation/content/xdocs/spreadsheet/converting.xml
+++ b/src/documentation/content/xdocs/spreadsheet/converting.xml
@@ -40,6 +40,14 @@
org.apache.poi.ss.usermodel.FormulaEvaluator.CellValue
+ org.apache.poi.hssf.usermodel.HSSFRow.MissingCellPolicy
+ Annoyingly, java will not let you access a static inner class via
+ a child of the parent one. So, all references to
+ org.apache.poi.hssf.usermodel.HSSFRow.MissingCellPolicy
+ will need to be changed to
+ org.apache.poi.ss.usermodel.Row.MissingCellPolicy
+
+
Converting existing HSSF Usermodel code to SS Usermodel (for XSSF and HSSF)
diff --git a/src/java/org/apache/poi/hssf/record/CFHeaderRecord.java b/src/java/org/apache/poi/hssf/record/CFHeaderRecord.java
index 224f5e5c19..d74d54ab17 100644
--- a/src/java/org/apache/poi/hssf/record/CFHeaderRecord.java
+++ b/src/java/org/apache/poi/hssf/record/CFHeaderRecord.java
@@ -18,7 +18,7 @@
package org.apache.poi.hssf.record;
import org.apache.poi.hssf.record.cf.CellRange;
-import org.apache.poi.ss.util.Region;
+import org.apache.poi.hssf.util.Region;
import org.apache.poi.util.LittleEndian;
/**
diff --git a/src/java/org/apache/poi/hssf/record/cf/CellRange.java b/src/java/org/apache/poi/hssf/record/cf/CellRange.java
index 41cb4a2a29..f45b79b003 100644
--- a/src/java/org/apache/poi/hssf/record/cf/CellRange.java
+++ b/src/java/org/apache/poi/hssf/record/cf/CellRange.java
@@ -21,7 +21,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import org.apache.poi.ss.util.Region;
+import org.apache.poi.hssf.util.Region;
/**
*
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFConditionalFormatting.java b/src/java/org/apache/poi/hssf/usermodel/HSSFConditionalFormatting.java
index 53706b58a6..6c798abcf4 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFConditionalFormatting.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFConditionalFormatting.java
@@ -20,7 +20,7 @@ import org.apache.poi.hssf.record.CFHeaderRecord;
import org.apache.poi.hssf.record.CFRuleRecord;
import org.apache.poi.hssf.record.aggregates.CFRecordsAggregate;
import org.apache.poi.hssf.record.cf.CellRange;
-import org.apache.poi.ss.util.Region;
+import org.apache.poi.hssf.util.Region;
/**
* HSSFConditionalFormatting class encapsulates all settings of Conditional Formatting.
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
index 2e93d46129..79cbea52c7 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
@@ -56,7 +56,7 @@ import org.apache.poi.hssf.util.HSSFDataValidation;
import org.apache.poi.hssf.util.PaneInformation;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Row;
-import org.apache.poi.ss.util.Region;
+import org.apache.poi.hssf.util.Region;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;