<changes>
<release version="3.7-SNAPSHOT" date="2010-??-??">
+ <action dev="POI-DEVELOPERS" type="fix">49096 - add clone support to Chart begin and end records, to allow cloning of more Chart containing sheets</action>
<action dev="POI-DEVELOPERS" type="add">List attachment names in the output of OutlookTextExtractor (to get attachment contents, use ExtractorFactory as normal)</action>
<action dev="POI-DEVELOPERS" type="fix">48872 - allow DateFormatter.formatRawCellContents to handle 1904 as well as 1900 dates</action>
<action dev="POI-DEVELOPERS" type="fix">48872 - handle MMMMM and elapsed time formatting rules in DataFormatter</action>
{
return sid;
}
+
+ public Object clone() {
+ BeginRecord br = new BeginRecord();
+ // No data so nothing to copy
+ return br;
+ }
}
{
return sid;
}
+
+ public Object clone() {
+ EndRecord er = new EndRecord();
+ // No data so nothing to copy
+ return er;
+ }
}
assertEquals("RT", withoutExt.getString());
assertTrue((withoutExt.getOptionFlags() & 0x0004) == 0x0000);
}
+
+ /**
+ * Problem with cloning a sheet with a chart
+ * contained in it.
+ */
+ public void test49096() throws Exception {
+ HSSFWorkbook wb = openSample("49096.xls");
+ assertEquals(1, wb.getNumberOfSheets());
+
+ assertNotNull(wb.getSheetAt(0));
+ wb.cloneSheet(0);
+ assertEquals(2, wb.getNumberOfSheets());
+
+ wb = writeOutAndReadBack(wb);
+ assertEquals(2, wb.getNumberOfSheets());
+ }
}