]> source.dussan.org Git - poi.git/commitdiff
Regression analysis: Cloning sheets failed on ctrlProps, i.e. checkboxes
authorDominik Stadler <centic@apache.org>
Sat, 13 Feb 2016 21:30:10 +0000 (21:30 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 13 Feb 2016 21:30:10 +0000 (21:30 +0000)
and other GUI elements, add minimal support for these to allow clone to
succeed.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1730275 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRelation.java
test-data/spreadsheet/mv-calculator-final-2-20-2013.xlsm [new file with mode: 0644]

index 5a5a0a1bd94787d6a952e8dddcab6c204339b370..e3650921ab6d95b155f97a8a6699190fa8f200e2 100644 (file)
@@ -344,6 +344,12 @@ public final class XSSFRelation extends POIXMLRelation {
             XSSFPivotCacheRecords.class
     );
 
+    public static final XSSFRelation CTRL_PROP_RECORDS = new XSSFRelation(
+            null,
+            "http://schemas.openxmlformats.org/officeDocument/2006/relationships/ctrlProp",
+            "/xl/ctrlProps/ctrlProp#.xml",
+            null
+    );
 
     private XSSFRelation(String type, String rel, String defaultName, Class<? extends POIXMLDocumentPart> cls) {
         super(type, rel, defaultName, cls);
diff --git a/test-data/spreadsheet/mv-calculator-final-2-20-2013.xlsm b/test-data/spreadsheet/mv-calculator-final-2-20-2013.xlsm
new file mode 100644 (file)
index 0000000..76a953c
Binary files /dev/null and b/test-data/spreadsheet/mv-calculator-final-2-20-2013.xlsm differ