aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xslf/extractor
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2010-07-29 11:57:08 +0000
committerNick Burch <nick@apache.org>2010-07-29 11:57:08 +0000
commitfbff3e557bbee0882a9b6492cad0e87ace030477 (patch)
treed5ecdd6439226fed1c404fc167d92a8dddfebb78 /src/ooxml/java/org/apache/poi/xslf/extractor
parentf575bfa0139c11d95e250e8ae2327e858d79f16b (diff)
downloadpoi-fbff3e557bbee0882a9b6492cad0e87ace030477.tar.gz
poi-fbff3e557bbee0882a9b6492cad0e87ace030477.zip
Refactor to make it easier to tell which content types each POIXMLTextExtractor handles
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@980414 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xslf/extractor')
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/extractor/XSLFPowerPointExtractor.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/extractor/XSLFPowerPointExtractor.java b/src/ooxml/java/org/apache/poi/xslf/extractor/XSLFPowerPointExtractor.java
index fa4c77f8c0..d20a357964 100644
--- a/src/ooxml/java/org/apache/poi/xslf/extractor/XSLFPowerPointExtractor.java
+++ b/src/ooxml/java/org/apache/poi/xslf/extractor/XSLFPowerPointExtractor.java
@@ -23,6 +23,7 @@ import org.apache.poi.xslf.XSLFSlideShow;
import org.apache.poi.xslf.usermodel.DrawingParagraph;
import org.apache.poi.xslf.usermodel.XMLSlideShow;
import org.apache.poi.xslf.usermodel.XSLFCommonSlideData;
+import org.apache.poi.xslf.usermodel.XSLFRelation;
import org.apache.poi.xslf.usermodel.XSLFSlide;
import org.apache.xmlbeans.XmlException;
import org.openxmlformats.schemas.presentationml.x2006.main.*;
@@ -30,6 +31,12 @@ import org.openxmlformats.schemas.presentationml.x2006.main.*;
import java.io.IOException;
public class XSLFPowerPointExtractor extends POIXMLTextExtractor {
+ public static final XSLFRelation[] SUPPORTED_TYPES = new XSLFRelation[] {
+ XSLFRelation.MAIN, XSLFRelation.MACRO, XSLFRelation.MACRO_TEMPLATE,
+ XSLFRelation.PRESENTATIONML, XSLFRelation.PRESENTATIONML_TEMPLATE,
+ XSLFRelation.PRESENTATION_MACRO
+ };
+
private XMLSlideShow slideshow;
private boolean slidesByDefault = true;
private boolean notesByDefault = false;