diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-02-21 10:56:03 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-02-21 10:56:03 +0000 |
commit | cb09b997c45c042d742971e357ed06166639834a (patch) | |
tree | bb3af7eba812f864e0f5dca3ee4eb95e28c9d72a /src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java | |
parent | 17fa00b29ee2e91e6048b43a175276942ada8729 (diff) | |
download | poi-cb09b997c45c042d742971e357ed06166639834a.tar.gz poi-cb09b997c45c042d742971e357ed06166639834a.zip |
initial commit - still lots of errors, but I need to switch to a clean trunk for releasing and testing
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1661322 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java index b1c6be4573..1c5f855db3 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java @@ -20,7 +20,11 @@ import java.awt.Dimension; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import java.util.*; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; import java.util.regex.Pattern; import org.apache.poi.POIXMLDocument; @@ -32,6 +36,9 @@ import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.openxml4j.opc.PackagePart; import org.apache.poi.openxml4j.opc.PackagePartName; import org.apache.poi.openxml4j.opc.TargetMode; +import org.apache.poi.sl.usermodel.MasterSheet; +import org.apache.poi.sl.usermodel.Resources; +import org.apache.poi.sl.usermodel.SlideShow; import org.apache.poi.util.Beta; import org.apache.poi.util.IOUtils; import org.apache.poi.util.Internal; @@ -53,6 +60,10 @@ import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideIdListEntry; import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideSize; import org.openxmlformats.schemas.presentationml.x2006.main.PresentationDocument; +import sun.reflect.generics.reflectiveObjects.NotImplementedException; + +import com.sun.org.apache.xml.internal.utils.UnImplNode; + /** * High level representation of a ooxml slideshow. * This is the first object most users will construct whether @@ -60,7 +71,7 @@ import org.openxmlformats.schemas.presentationml.x2006.main.PresentationDocument * top level object for creating new slides/etc. */ @Beta -public class XMLSlideShow extends POIXMLDocument { +public class XMLSlideShow extends POIXMLDocument implements SlideShow { private static POILogger _logger = POILogFactory.getLogger(XMLSlideShow.class); private CTPresentation _presentation; @@ -437,7 +448,7 @@ public class XMLSlideShow extends POIXMLDocument { */ public int addPicture(byte[] pictureData, int format) { XSLFPictureData img = findPictureData(pictureData); - POIXMLRelation relDesc = XSLFPictureData.RELATIONS[format]; + // POIXMLRelation relDesc = XSLFPictureData.RELATIONS[format]; if(img == null) { int imageNumber = _pictures.size(); @@ -485,4 +496,17 @@ public class XMLSlideShow extends POIXMLDocument { return null; } + public MasterSheet<XSLFShape>[] getMasterSheet() { + return getSlideMasters(); + } + + public MasterSheet<XSLFShape> createMasterSheet() throws IOException { + // TODO: implement! + throw new UnsupportedOperationException(); + } + + public Resources getResources() { + // TODO: implement! + throw new UnsupportedOperationException(); + } } |