View | Details | Raw Unified | Return to bug 47517
Collapse All | Expand All

(-)a/src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java (+6 lines)
Lines 105-110 public class ExtractorFactory { Link Here
105
                if(corePart.getContentType().equals(XSSFRelation.MACRO_WORKBOOK.getContentType())) {
105
                if(corePart.getContentType().equals(XSSFRelation.MACRO_WORKBOOK.getContentType())) {
106
                        return new XSSFExcelExtractor(pkg);
106
                        return new XSSFExcelExtractor(pkg);
107
                }
107
                }
108
                if(corePart.getContentType().equals(XSSFRelation.MACRO_ADDIN_WORKBOOK.getContentType())) {
109
                        return new XSSFExcelExtractor(pkg);
110
                }
111
                if(corePart.getContentType().equals(XSSFRelation.MACRO_TEMPLATE_WORKBOOK.getContentType())) {
112
                        return new XSSFExcelExtractor(pkg);
113
                }
108
		if(corePart.getContentType().equals(XWPFRelation.DOCUMENT.getContentType())) {
114
		if(corePart.getContentType().equals(XWPFRelation.DOCUMENT.getContentType())) {
109
			return new XWPFWordExtractor(pkg);
115
			return new XWPFWordExtractor(pkg);
110
		}
116
		}
(-)a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRelation.java (+12 lines)
Lines 72-83 public final class XSSFRelation extends POIXMLRelation { Link Here
72
                  "/xl/workbook.xml",
72
                  "/xl/workbook.xml",
73
                  null
73
                  null
74
        );
74
        );
75
        public static final XSSFRelation MACRO_TEMPLATE_WORKBOOK = new XSSFRelation(
76
                  "application/vnd.ms-excel.template.macroEnabled.main+xml",
77
                  "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
78
                  "/xl/workbook.xml",
79
                  null
80
        );
75
        public static final XSSFRelation MACRO_WORKBOOK = new XSSFRelation(
81
        public static final XSSFRelation MACRO_WORKBOOK = new XSSFRelation(
76
                  "application/vnd.ms-excel.sheet.macroEnabled.main+xml",
82
                  "application/vnd.ms-excel.sheet.macroEnabled.main+xml",
77
                  "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
83
                  "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
78
                  "/xl/workbook.xml",
84
                  "/xl/workbook.xml",
79
                  null
85
                  null
80
        );
86
        );
87
        public static final XSSFRelation MACRO_ADDIN_WORKBOOK = new XSSFRelation(
88
                  "application/vnd.ms-excel.addin.macroEnabled.main+xml",
89
                  "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
90
                  "/xl/workbook.xml",
91
                  null
92
        );
81
	public static final XSSFRelation WORKSHEET = new XSSFRelation(
93
	public static final XSSFRelation WORKSHEET = new XSSFRelation(
82
			"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",
94
			"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",
83
			"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",
95
			"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",

Return to bug 47517