poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1801904 - /poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java
Date Fri, 14 Jul 2017 03:47:38 GMT
Author: onealj
Date: Fri Jul 14 03:47:38 2017
New Revision: 1801904

URL: http://svn.apache.org/viewvc?rev=1801904&view=rev
Log:
bug 61296: deduplicate ooxml schema constants

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java?rev=1801904&r1=1801903&r2=1801904&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java Fri Jul 14 03:47:38
2017
@@ -22,6 +22,7 @@ import java.util.Map;
 
 import org.apache.poi.POIXMLDocumentPart;
 import org.apache.poi.POIXMLRelation;
+import org.apache.poi.openxml4j.opc.PackageRelationshipTypes;
 
 /**
  * @author Yegor Kozlov
@@ -35,25 +36,25 @@ public final class XWPFRelation extends
 
     public static final XWPFRelation DOCUMENT = new XWPFRelation(
             "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml",
-            "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
+            PackageRelationshipTypes.CORE_DOCUMENT,
             "/word/document.xml",
             null
     );
     public static final XWPFRelation TEMPLATE = new XWPFRelation(
             "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml",
-            "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
+            PackageRelationshipTypes.CORE_DOCUMENT,
             "/word/document.xml",
             null
     );
     public static final XWPFRelation MACRO_DOCUMENT = new XWPFRelation(
             "application/vnd.ms-word.document.macroEnabled.main+xml",
-            "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
+            PackageRelationshipTypes.CORE_DOCUMENT,
             "/word/document.xml",
             null
     );
     public static final XWPFRelation MACRO_TEMPLATE_DOCUMENT = new XWPFRelation(
             "application/vnd.ms-word.template.macroEnabledTemplate.main+xml",
-            "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
+            PackageRelationshipTypes.CORE_DOCUMENT,
             "/word/document.xml",
             null
     );



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message