diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java index bd3f76f6d..8da984c93 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java @@ -27,6 +27,7 @@ import org.apache.poi.ss.usermodel.Comment; import org.apache.poi.ss.usermodel.Hyperlink; import org.apache.poi.ss.usermodel.RichTextString; import org.apache.poi.ss.usermodel.SharedStringSource; +import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.StylesSource; import org.apache.poi.util.POILogFactory; import org.apache.poi.util.POILogger; @@ -75,6 +76,10 @@ public final class XSSFCell implements Cell { return this.stylesSource; } + public Sheet getSheet() { + return this.row.getSheet(); + } + public boolean getBooleanCellValue() { if (STCellType.B != cell.getT()) { throw new NumberFormatException("You cannot get a boolean value from a non-boolean cell");