bug 61296: deduplicate ooxml schema constants

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1801904 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-07-14 03:47:38 +00:00
parent 8d912c745c
commit c4ccb85caf
1 changed files with 5 additions and 4 deletions

View File

@ -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 POIXMLRelation {
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
);