From: Dominik Stadler Date: Sat, 13 Feb 2016 21:30:10 +0000 (+0000) Subject: Regression analysis: Cloning sheets failed on ctrlProps, i.e. checkboxes X-Git-Tag: REL_3_14_FINAL~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=50aa8f07c84aba9b40d60d2bb35482ac57d48a2f;p=poi.git Regression analysis: Cloning sheets failed on ctrlProps, i.e. checkboxes 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 --- diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRelation.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRelation.java index 5a5a0a1bd9..e3650921ab 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRelation.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRelation.java @@ -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 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 index 0000000000..76a953ceb6 Binary files /dev/null and b/test-data/spreadsheet/mv-calculator-final-2-20-2013.xlsm differ