diff options
4 files changed, 21 insertions, 0 deletions
diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index c4c9288550..2e39f07ee3 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -33,6 +33,7 @@ <changes> <release version="3.5-beta7" date="2009-??-??"> + <action dev="POI-DEVELOPERS" type="add">47848 - Added method createEvaluationWorkbook() to CreationHelper</action> <action dev="POI-DEVELOPERS" type="add">47809 - Improved work with user-defined functions</action> <action dev="POI-DEVELOPERS" type="fix">47581 - fixed XSSFSheet.setColumnWidth to produce XML compatible with Mac Excel 2008</action> <action dev="POI-DEVELOPERS" type="fix">47734 - removed unnecessary svn:executable flag from files in SVN trunk</action> diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java index faee42b83f..597af02c22 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java @@ -42,6 +42,10 @@ public class HSSFCreationHelper implements CreationHelper { return new HSSFHyperlink(type); } + public HSSFEvaluationWorkbook createEvaluationWorkbook() { + return HSSFEvaluationWorkbook.create(workbook); + } + /** * Creates a HSSFFormulaEvaluator, the object that evaluates formula cells. * diff --git a/src/java/org/apache/poi/ss/usermodel/CreationHelper.java b/src/java/org/apache/poi/ss/usermodel/CreationHelper.java index 758990daf1..b45477105a 100644 --- a/src/java/org/apache/poi/ss/usermodel/CreationHelper.java +++ b/src/java/org/apache/poi/ss/usermodel/CreationHelper.java @@ -16,6 +16,8 @@ ==================================================================== */ package org.apache.poi.ss.usermodel; +import org.apache.poi.ss.formula.EvaluationWorkbook; + /** * An object that handles instantiating concrete * classes of the various instances one needs for @@ -27,6 +29,9 @@ package org.apache.poi.ss.usermodel; * a given interface, without you having to worry * about if you're dealing with HSSF or XSSF, despite * Java being quite rubbish. + * + * Modified 09/07/09 by Petr Udalau - added method createEvaluationWorkbook(). + * */ public interface CreationHelper { /** @@ -46,6 +51,13 @@ public interface CreationHelper { Hyperlink createHyperlink(int type); /** + * Creates EvaluationWorkbook. + * + * @return a EvaluationWorkbook instance + */ + EvaluationWorkbook createEvaluationWorkbook(); + + /** * Creates FormulaEvaluator - an object that evaluates formula cells. * * @return a FormulaEvaluator instance diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java index 177cad89a9..6f4dc955d5 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java @@ -42,6 +42,10 @@ public class XSSFCreationHelper implements CreationHelper { return new XSSFHyperlink(type); } + public XSSFEvaluationWorkbook createEvaluationWorkbook() { + return XSSFEvaluationWorkbook.create(workbook); + } + /** * Creates a XSSFFormulaEvaluator, the object that evaluates formula cells. * |