]> source.dussan.org Git - poi.git/commitdiff
More XSLFRelation entries for common .pptx file parts
authorNick Burch <nick@apache.org>
Mon, 13 Sep 2010 11:45:34 +0000 (11:45 +0000)
committerNick Burch <nick@apache.org>
Mon, 13 Sep 2010 11:45:34 +0000 (11:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@996506 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/status.xml
src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFRelation.java

index 4dad7708df3f2eeeae0e5c155087340dd8c4c57a..b230d40b1ea2ecae755317f32e91415a11afe634 100644 (file)
@@ -34,6 +34,7 @@
 
     <changes>
         <release version="3.7-beta3" date="2010-??-??">
+           <action dev="poi-developers" type="add">More XSLFRelation entries for common .pptx file parts</action>
            <action dev="poi-developers" type="fix">49872 - avoid exception in XSSFFormulaEvaluator.evaluateInCell when evaluating shared formulas</action>
            <action dev="poi-developers" type="fix">49895 - avoid corruption of XSSFWorkbook after removing all merged cells from sheet</action>
            <action dev="poi-developers" type="fix">49907 - fixed inconsistent behaviour between HSSF and XSSF when creating consecutive names</action>
index b3be77f54b1d674ec1eaf79a9f11e80641f532dd..29cf65809e6593d3d25fe747d83c241c3ebb41e6 100644 (file)
@@ -76,13 +76,16 @@ public class XSLFRelation extends POIXMLRelation {
    
    public static final XSLFRelation SLIDE = new XSLFRelation(
            "application/vnd.openxmlformats-officedocument.presentationml.slide+xml",
-           null, null, null
+           "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide", 
+           "/ppt/slides/slide#.xml", 
+           null
    );
    
    public static final XSLFRelation SLIDE_LAYOUT = new XSLFRelation(
          "application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",
          "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout",
-         null, null
+         "/ppt/slideLayouts/slideLayout#.xml", 
+         null
    );
    
    public static final XSLFRelation COMMENTS = new XSLFRelation(
@@ -91,6 +94,20 @@ public class XSLFRelation extends POIXMLRelation {
          null, null
    );
    
+   public static final XSLFRelation THEME = new XSLFRelation(
+         "application/vnd.openxmlformats-officedocument.theme+xml",
+         "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",
+         "/ppt/theme/theme#.xml", 
+         null
+   );
+   
+   public static final XSLFRelation VML_DRAWING = new XSLFRelation(
+         "application/vnd.openxmlformats-officedocument.vmlDrawing",
+         "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",
+         "/ppt/drawings/vmlDrawing#.vml", 
+         null
+   );
+   
 
    private XSLFRelation(String type, String rel, String defaultName, Class<? extends POIXMLDocumentPart> cls) {
       super(type, rel, defaultName, cls);