mirror of https://github.com/apache/poi.git
Patch from bug #51785 - Allow XSSF setForceFormulaRecalculation to work with the minimal ooxml-schemas jar
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1167241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f3b802513
commit
5ea324076a
|
@ -34,6 +34,7 @@
|
||||||
|
|
||||||
<changes>
|
<changes>
|
||||||
<release version="3.8-beta5" date="2011-??-??">
|
<release version="3.8-beta5" date="2011-??-??">
|
||||||
|
<action dev="poi-developers" type="fix">51785 - Allow XSSF setForceFormulaRecalculation to work with the minimal ooxml-schemas jar</action>
|
||||||
<action dev="poi-developers" type="fix">51772 - IllegalArgumentException Parsing MS Word 97 - 2003</action>
|
<action dev="poi-developers" type="fix">51772 - IllegalArgumentException Parsing MS Word 97 - 2003</action>
|
||||||
<action dev="poi-developers" type="add">XSLFPowerPointExtractor support for including comment authors with comment text</action>
|
<action dev="poi-developers" type="add">XSLFPowerPointExtractor support for including comment authors with comment text</action>
|
||||||
<action dev="poi-developers" type="fix">Converted XSLFPowerPointExtractor to use UserModel for all text extraction</action>
|
<action dev="poi-developers" type="fix">Converted XSLFPowerPointExtractor to use UserModel for all text extraction</action>
|
||||||
|
|
|
@ -1063,4 +1063,25 @@ public final class TestXSSFSheet extends BaseTestSheet {
|
||||||
XSSFSheet s3 = wb.getSheetAt(2);
|
XSSFSheet s3 = wb.getSheetAt(2);
|
||||||
assertEquals(0, s3.getTables().size());
|
assertEquals(0, s3.getTables().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test to trigger OOXML-LITE generating to include org.openxmlformats.schemas.spreadsheetml.x2006.main.CTSheetCalcPr
|
||||||
|
*/
|
||||||
|
public void testSetForceFormulaRecalculation() {
|
||||||
|
XSSFWorkbook workbook = new XSSFWorkbook();
|
||||||
|
XSSFSheet sheet = workbook.createSheet("Sheet 1");
|
||||||
|
|
||||||
|
// Set
|
||||||
|
sheet.setForceFormulaRecalculation(true);
|
||||||
|
assertEquals(true, sheet.getForceFormulaRecalculation());
|
||||||
|
|
||||||
|
// Check
|
||||||
|
sheet.setForceFormulaRecalculation(false);
|
||||||
|
assertEquals(false, sheet.getForceFormulaRecalculation());
|
||||||
|
|
||||||
|
// Save, re-load, and re-check
|
||||||
|
workbook = XSSFTestDataSamples.writeOutAndReadBack(workbook);
|
||||||
|
sheet = workbook.getSheet("Sheet 1");
|
||||||
|
assertEquals(false, sheet.getForceFormulaRecalculation());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue