<changes>
<release version="3.7-beta2" date="2010-??-??">
+ <action dev="POI-DEVELOPERS" type="fix">49649 - Added clone support for UserSView* and Feat* families of records</action>
<action dev="POI-DEVELOPERS" type="fix">49653 - Support for escaped unicode characters in Shared String Table</action>
<action dev="POI-DEVELOPERS" type="fix">49579 - prevent ArrayIndexOutOfBoundException in UnknowEscherRecord</action>
<action dev="POI-DEVELOPERS" type="fix">49593 - preserve leading and trailing white spaces in XWPFRun</action>
protected int getDataSize() {
return 12 + 2+1+4+rgbHdrData.length;
}
+
+ //HACK: do a "cheat" clone, see Record.java for more information
+ public Object clone() {
+ return cloneViaReserialise();
+ }
+
+
}
cbFeatData = 0;
}
}
+
+
+ //HACK: do a "cheat" clone, see Record.java for more information
+ public Object clone() {
+ return cloneViaReserialise();
+ }
+
+
}
sb.append("[/").append("HEADERFOOTER").append("]\n");
return sb.toString();
}
+
+ //HACK: do a "cheat" clone, see Record.java for more information
+ public Object clone() {
+ return cloneViaReserialise();
+ }
+
}
\ No newline at end of file
sb.append("[/").append("USERSVIEWBEGIN").append("]\n");
return sb.toString();
}
-
+
+ //HACK: do a "cheat" clone, see Record.java for more information
+ public Object clone() {
+ return cloneViaReserialise();
+ }
+
}
\ No newline at end of file
return sb.toString();
}
+ //HACK: do a "cheat" clone, see Record.java for more information
+ public Object clone() {
+ return cloneViaReserialise();
+ }
+
+
}
\ No newline at end of file
assertFalse(fferr2.getCheckUnprotectedFormulas());
assertFalse(fferr2.getPerformDataValidation());
}
+
+ /**
+ * cloning sheets with feat records
+ */
+ public void testCloneSheetWithFeatRecord() throws Exception {
+ HSSFWorkbook wb =
+ HSSFTestDataSamples.openSampleWorkbook("46136-WithWarnings.xls");
+ wb.cloneSheet(0);
+ }
}