mirror of https://github.com/apache/poi.git
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:
parent
8d912c745c
commit
c4ccb85caf
|
@ -22,6 +22,7 @@ import java.util.Map;
|
||||||
|
|
||||||
import org.apache.poi.POIXMLDocumentPart;
|
import org.apache.poi.POIXMLDocumentPart;
|
||||||
import org.apache.poi.POIXMLRelation;
|
import org.apache.poi.POIXMLRelation;
|
||||||
|
import org.apache.poi.openxml4j.opc.PackageRelationshipTypes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Yegor Kozlov
|
* @author Yegor Kozlov
|
||||||
|
@ -35,25 +36,25 @@ public final class XWPFRelation extends POIXMLRelation {
|
||||||
|
|
||||||
public static final XWPFRelation DOCUMENT = new XWPFRelation(
|
public static final XWPFRelation DOCUMENT = new XWPFRelation(
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml",
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml",
|
||||||
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
|
PackageRelationshipTypes.CORE_DOCUMENT,
|
||||||
"/word/document.xml",
|
"/word/document.xml",
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
public static final XWPFRelation TEMPLATE = new XWPFRelation(
|
public static final XWPFRelation TEMPLATE = new XWPFRelation(
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml",
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml",
|
||||||
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
|
PackageRelationshipTypes.CORE_DOCUMENT,
|
||||||
"/word/document.xml",
|
"/word/document.xml",
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
public static final XWPFRelation MACRO_DOCUMENT = new XWPFRelation(
|
public static final XWPFRelation MACRO_DOCUMENT = new XWPFRelation(
|
||||||
"application/vnd.ms-word.document.macroEnabled.main+xml",
|
"application/vnd.ms-word.document.macroEnabled.main+xml",
|
||||||
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
|
PackageRelationshipTypes.CORE_DOCUMENT,
|
||||||
"/word/document.xml",
|
"/word/document.xml",
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
public static final XWPFRelation MACRO_TEMPLATE_DOCUMENT = new XWPFRelation(
|
public static final XWPFRelation MACRO_TEMPLATE_DOCUMENT = new XWPFRelation(
|
||||||
"application/vnd.ms-word.template.macroEnabledTemplate.main+xml",
|
"application/vnd.ms-word.template.macroEnabledTemplate.main+xml",
|
||||||
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
|
PackageRelationshipTypes.CORE_DOCUMENT,
|
||||||
"/word/document.xml",
|
"/word/document.xml",
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue