]> source.dussan.org Git - poi.git/commitdiff
Added method createEvaluationWorkbook() to CreationHelper, see Bugzilla 47848
authorYegor Kozlov <yegor@apache.org>
Wed, 16 Sep 2009 19:29:42 +0000 (19:29 +0000)
committerYegor Kozlov <yegor@apache.org>
Wed, 16 Sep 2009 19:29:42 +0000 (19:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@815935 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/status.xml
src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java
src/java/org/apache/poi/ss/usermodel/CreationHelper.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java

index c4c928855069ad176045c45f4ce6c3fd7e464b1f..2e39f07ee3d50c41c0c6b08e4a5a057261c1534a 100644 (file)
@@ -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>
index faee42b83f57b0c01bf2dcde3ccfb81a458c5123..597af02c22eed9e3a6f8d15f39ab3b6653d5c936 100644 (file)
@@ -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.
         *
index 758990daf1fd3e6f71b97d0ac914392f3fe42c60..b45477105ad9e628ed50949f881ee131bf868756 100644 (file)
@@ -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 {
     /**
@@ -45,6 +50,13 @@ public interface CreationHelper {
      */
     Hyperlink createHyperlink(int type);
 
+    /**
+     * Creates EvaluationWorkbook.
+     *
+     * @return a EvaluationWorkbook instance
+     */
+    EvaluationWorkbook createEvaluationWorkbook();
+
     /**
      * Creates FormulaEvaluator - an object that evaluates formula cells.
      *
index 177cad89a93fa560a045b2b83df09b8c5e0b093a..6f4dc955d5f437d319f6526b0ecd0d34bd24be90 100644 (file)
@@ -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.
         *