diff options
author | Yegor Kozlov <yegor@apache.org> | 2008-11-11 11:43:20 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2008-11-11 11:43:20 +0000 |
commit | 6f713d4aac4dd89a56916f165f83116b45065b68 (patch) | |
tree | 6066c898e98fbdf9573e81535460591d11b8920c /src/ooxml/java/org | |
parent | c5b948d9aa74f9ea912436faf31261d4da69053b (diff) | |
download | poi-6f713d4aac4dd89a56916f165f83116b45065b68.tar.gz poi-6f713d4aac4dd89a56916f165f83116b45065b68.zip |
bug# 45973: added factory method for FormulaEvaluator, also fixed unpaired tags in javadocs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@713021 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java | 12 |
1 files changed, 11 insertions, 1 deletions
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 4c698cc010..fa39817bd4 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java @@ -31,7 +31,7 @@ public class XSSFCreationHelper implements CreationHelper { * Creates a new XSSFRichTextString for you. */ public XSSFRichTextString createRichTextString(String text) { - XSSFRichTextString rt =new XSSFRichTextString(text); + XSSFRichTextString rt = new XSSFRichTextString(text); rt.setStylesTableReference(workbook.getStylesSource()); return rt; } @@ -43,4 +43,14 @@ public class XSSFCreationHelper implements CreationHelper { public XSSFHyperlink createHyperlink(int type) { return new XSSFHyperlink(type); } + + /** + * Creates a XSSFFormulaEvaluator, the object that evaluates formula cells. + * + * @return a XSSFFormulaEvaluator instance + */ + public XSSFFormulaEvaluator createFormulaEvaluator(){ + return new XSSFFormulaEvaluator(workbook); + } + } |