diff options
author | Nick Burch <nick@apache.org> | 2010-11-22 15:16:45 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2010-11-22 15:16:45 +0000 |
commit | 550faf04678a9f3cf6ffabc5019d2c2e591af5d7 (patch) | |
tree | 89154f5ef77776d7e38fa6d3dd69cb0d3f2e013f /src/ooxml/java/org/apache/poi/POIXMLTextExtractor.java | |
parent | 28e0a3f566a25b2cab47a477c1bd01d0578d2277 (diff) | |
download | poi-550faf04678a9f3cf6ffabc5019d2c2e591af5d7.tar.gz poi-550faf04678a9f3cf6ffabc5019d2c2e591af5d7.zip |
Allow access from XSSFReader to sheet comments and headers/footers (related to bug #50076)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1037753 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/POIXMLTextExtractor.java')
-rw-r--r-- | src/ooxml/java/org/apache/poi/POIXMLTextExtractor.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/POIXMLTextExtractor.java b/src/ooxml/java/org/apache/poi/POIXMLTextExtractor.java index b3c4182d59..eee1d25abd 100644 --- a/src/ooxml/java/org/apache/poi/POIXMLTextExtractor.java +++ b/src/ooxml/java/org/apache/poi/POIXMLTextExtractor.java @@ -20,6 +20,7 @@ package org.apache.poi; import org.apache.poi.POIXMLProperties.CoreProperties; import org.apache.poi.POIXMLProperties.CustomProperties; import org.apache.poi.POIXMLProperties.ExtendedProperties; +import org.apache.poi.openxml4j.opc.OPCPackage; public abstract class POIXMLTextExtractor extends POITextExtractor { /** The POIXMLDocument that's open */ @@ -56,10 +57,16 @@ public abstract class POIXMLTextExtractor extends POITextExtractor { /** * Returns opened document */ - public final POIXMLDocument getDocument(){ + public final POIXMLDocument getDocument() { return _document; } + /** + * Returns the opened OPCPackage that contains the document + */ + public OPCPackage getPackage() { + return _document.getPackage(); + } /** * Returns an OOXML properties text extractor for the |