Commit Graph

40 Commits

Author SHA1 Message Date
Yegor Kozlov 28b6f4e2a3 merged with trunk r653489
git-svn-id: https://svn.apache.org/repos/asf/poi/tags/REL_3_1_BETA2@653490 13f79535-47bb-0310-9956-ffa450edef68
2008-05-05 14:20:39 +00:00
Nick Burch a51afa06f4 Nice and small change here... Update the formula parser code to use usermodel.HSSFWorkbook instead of model.Workbook. This should keep things a bit cleaner, and make it much easier for the formula code to work with XSSF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@648303 13f79535-47bb-0310-9956-ffa450edef68
2008-04-15 16:00:50 +00:00
Josh Micich 5b0efa8e57 changes/status for #44675, #44695, #44691
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@642904 13f79535-47bb-0310-9956-ffa450edef68
2008-03-31 06:55:04 +00:00
Josh Micich c6d7eb5387 patch 44675 - made POI capable of recognising var-args functions. Some related fixes.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@641185 13f79535-47bb-0310-9956-ffa450edef68
2008-03-26 07:32:28 +00:00
Nick Burch bc88b7b1f4 Patch from Josh from bug #44609 - Handle leading spaces in formulas, such as '= 4'
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@637601 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 15:48:02 +00:00
Nick Burch e685873465 Big patch from Josh from bug #44504 - lots of formula parser improvements
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@633547 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 16:53:32 +00:00
Nick Burch 0102c66498 Patch from Josh from bug #44495 - Handle named cell ranges in formulas that have lower case parts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@633126 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 15:26:38 +00:00
Nick Burch 4a7276e4ee Big formula update from Josh from bug #44364 - support for Match, NA and SumProduct functions, and initial error support in functions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@627788 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 16:01:10 +00:00
Nick Burch b67b9cb0ce Fix from bug #43510 - support named ranges in formulas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610016 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 15:08:51 +00:00
Nick Burch e145f417b7 In FormulaParser, add in non-static methods too for toFormulaString, which use the existing Workbook. Also tweak licence notice for hdgf
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@584788 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 13:48:51 +00:00
Nick Burch c7476faf25 Allow users to get a FormulaParser armed only with a HSSFWorkbook, through a convenience method on HSSFFormulaEvaluator
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@584721 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 10:34:40 +00:00
Nick Burch 031873f7e6 Improved Formula Parser support for ranges and exponents, from Pavel Krupets (Bug #43410)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@576855 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 11:53:28 +00:00
Nick Burch aaf2c3119e Some more fixes for javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@551908 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 14:18:11 +00:00
Henri Yandell fca4623791 Applying the copy2license.pl script (with tiny modification to allow for more whitespace than it expects in the POI header) to all files. ant jar succeeds, and the svn diff has been verified by eye. Still more files to do, this is the first pass.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@489730 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:18:16 +00:00
Jason Height 2bbff11ea5 bug 31044: Corrected parsing of references which contain double sheet names ie 'Sheet 1'!F1:'Sheet 1'!F10.
Although i have hacked it a bit such that it gets translated to 'Sheet 1'!F1:F10

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437684 13f79535-47bb-0310-9956-ffa450edef68
2006-08-28 12:18:10 +00:00
Amol S. Deshmukh c371aa983d 1. when formula parse fails, reported error now includes the "pointer"
2. added the case of interpreting a missing argument as MissingArgPtg

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@434426 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 16:42:52 +00:00
Amol S. Deshmukh c17abf116c bugfix 38396: Exponential numbers are now handled by the formula parser
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@430132 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 20:03:36 +00:00
Jason Height b55089d607 Added patch (along with fixes to it so that the unit tests work) for bug 37637
Bug 37622 and 30319 should be fixed. Tested that Euro DataFormat now works.

Ill provide a euro symbol/unicode unit test shortly.

Numerous minor changes so eclipse doesnt give so many warnings (incomplete)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@365561 13f79535-47bb-0310-9956-ffa450edef68
2006-01-03 07:24:01 +00:00
Avik Sengupta 3a1dcb4a85 trivial edit
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353742 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 15:19:53 +00:00
Avik Sengupta 26c9e21e3b bug 35084, reported by Stefano Rocca. fixed in Sheet.java
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353705 13f79535-47bb-0310-9956-ffa450edef68
2005-05-31 19:10:47 +00:00
Avik Sengupta 4290d1b472 unary plus: patch by Amol Deshmukh, test added
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353685 13f79535-47bb-0310-9956-ffa450edef68
2005-05-18 18:58:57 +00:00
Avik Sengupta 04696951f1 remove gratuitous output
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353643 13f79535-47bb-0310-9956-ffa450edef68
2005-04-21 13:43:51 +00:00
Avik Sengupta f931d7cf7e bug 33160, original patch and testcase supplied by Amol Deshmukh.. thanks. This version slightly more generic
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353641 13f79535-47bb-0310-9956-ffa450edef68
2005-04-21 13:01:29 +00:00
Glen Stampoultzis 1235801aba Bugfix: http://issues.apache.org/bugzilla/show_bug.cgi?id=24925
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353553 13f79535-47bb-0310-9956-ffa450edef68
2004-04-29 07:16:36 +00:00
Glen Stampoultzis a4047ad573 New licence changes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353545 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 13:05:39 +00:00
Avik Sengupta 4e4596d7e6 bug 25457, formula parser fixes by Peter M Murray
sync to head


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353475 13f79535-47bb-0310-9956-ffa450edef68
2004-01-01 07:51:34 +00:00
Avik Sengupta e785cbdd46 Syncing to REL_2_BR: Macro functions and related fixes, by Paul Krause bug id:21444
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353326 13f79535-47bb-0310-9956-ffa450edef68
2003-08-31 06:16:57 +00:00
Danny Muid b693562626 FormulaParser patch to address:
1) embedded ifs
2) GreaterEqual, LessEqual, NotEqual
3) Refactored stringliteral detection
BR: 19079
Submitted By: fred at stsci dot edu


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353089 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 03:40:52 +00:00
Avik Sengupta a1d25d01ea PR 13292, size of FuncPtg
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353087 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 15:30:52 +00:00
Avik Sengupta b59b8abe8e Addition of GreaterThan and LessThan in formulas (IF Functions)
Originally submitted by Cameron Riley (PR 16392). Thanks.
Added simple tests at high and low level, more complicated cases to be tested
<= and >= probably still wont work!
Had to apply diff by hand, one horrible line at a time (yikes!!)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353081 13f79535-47bb-0310-9956-ffa450edef68
2003-05-04 18:22:09 +00:00
Glen Stampoultzis 64967ec532 Changed copyright from 2002 to 2003
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353070 13f79535-47bb-0310-9956-ffa450edef68
2003-04-30 04:39:21 +00:00
Danny Muid 83b4c947da Support for the SUMIF formula and non-alpha string literals
PR:
 Also fixes Bug #17582
Obtained from:
Submitted by:
 Test case for non-alpha string literals provided by ext-jens.riis@nokia.com (Jens Riis)
Reviewed by:
 Thanks Avik for your FormulaParser help


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353028 13f79535-47bb-0310-9956-ffa450edef68
2003-03-17 04:47:58 +00:00
Danny Muid 9dfd573ce7 FormulaParser changes to support IF function(s)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353027 13f79535-47bb-0310-9956-ffa450edef68
2003-03-15 01:57:41 +00:00
Glen Stampoultzis a46e6bdc12 Some changes to record generation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352885 13f79535-47bb-0310-9956-ffa450edef68
2002-10-09 00:05:55 +00:00
Andrew C. Oliver 7ee81420f4 Bool formulas http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13078
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352865 13f79535-47bb-0310-9956-ffa450edef68
2002-10-01 17:37:47 +00:00
Andrew C. Oliver 32543e4e8c *read only* support for optimized ifs. meaning "if(A1=A3,A1,A2)" and stuff.
This optimized if has the conceptual clarity of a featherweight elephant
carrier used as a pizza topping.  This concludes my therapy session.  I love
this project :-).  Next week I'll try and get write support underway unless
someone beats me to it.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352839 13f79535-47bb-0310-9956-ffa450edef68
2002-09-06 03:56:47 +00:00
Andrew C. Oliver a00135ad17 preliminary support for "if" formulas. Doesn't work yet because of this
strange "aggregate this stuff" function
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352834 13f79535-47bb-0310-9956-ffa450edef68
2002-09-02 21:16:29 +00:00
Avik Sengupta 3b6f854e14 writing string formulas now work
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352822 13f79535-47bb-0310-9956-ffa450edef68
2002-08-03 18:16:54 +00:00
Andrew C. Oliver 7aad8fe0e2 patch from Eric Ladner to correct an out of bounds on the formula string
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10735

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352772 13f79535-47bb-0310-9956-ffa450edef68
2002-07-15 02:06:22 +00:00
Andrew C. Oliver c83b61e246 moved from o.a.p.h.record.formula package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352768 13f79535-47bb-0310-9956-ffa450edef68
2002-07-15 00:18:48 +00:00