Commit Graph

202 Commits

Author SHA1 Message Date
Avik Sengupta
1787340889 Added testcases for the double byte string read error.
We need to careful about regressions, particularly in HEAD


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353415 13f79535-47bb-0310-9956-ffa450edef68
2003-10-27 03:04:11 +00:00
Shawn Laubach
ea54575258 Update to Quick Guide to better represent what the Fit To example is for.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353407 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 17:16:03 +00:00
Jason Height
269a7434d0 Updates to test to reflect change of API
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353397 13f79535-47bb-0310-9956-ffa450edef68
2003-10-14 07:42:38 +00:00
Avik Sengupta
926262df8d Sheet naming checks caused a test failure in cloneSheet.
CloneSheet used an invalid character, which we now dont allow! Corrected.
Good thing we have tests!!


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353393 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 16:45:01 +00:00
Avik Sengupta
db23532059 Someone said Concatenate doesnt work, so here's a testcase to prove that it works
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353392 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 16:42:17 +00:00
Avik Sengupta
fd2cc4b7d1 PR: 13921
Sheet name should not be greater than 31 chars and should not contain \/?*[]


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353385 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 19:21:57 +00:00
Avik Sengupta
153364c993 Testcases for bug 15375
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353383 13f79535-47bb-0310-9956-ffa450edef68
2003-10-08 18:07:32 +00:00
Avik Sengupta
8d5e50f113 testcase for bug 14330
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353380 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 17:40:08 +00:00
Avik Sengupta
f6c184fcff adding file back as binary
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353378 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 17:28:35 +00:00
Avik Sengupta
4093d1a2c3 sorry, will add back with -kb
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353377 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 17:26:52 +00:00
Avik Sengupta
62a5ad3c80 testcase for bug 14460
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353376 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 17:25:31 +00:00
Avik Sengupta
4aee13442d Testcase for bug 15353
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353374 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 10:16:28 +00:00
Avik Sengupta
70a2698295 testcases for bug 23094
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353369 13f79535-47bb-0310-9956-ffa450edef68
2003-09-23 18:42:40 +00:00
Glen Stampoultzis
2b241e6823 Fixed bug relating to rewriting empty workbooks. The aggregates were not being added to the records in this case.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353363 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 09:58:24 +00:00
Danny Muid
e533ca4d75 Changed merged region tracking to use object pointers rather than
index pointers so we don't have to make sure the indices are up to date.
PR: 22922	
Submitted by:	xuemin@appresso.com (Xuemin Guan)
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS:   If this change addresses a PR in the problem report tracking
CVS:   database, then enter the PR number(s) here.
CVS: Obtained from:
CVS:   If this change has been taken from another system, such as NCSA,
CVS:   then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS:   If this code has been contributed to Apache by someone else; i.e.,
CVS:   they sent us a patch or a new module, then include their name/email
CVS:   address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS:   If we are doing pre-commit code reviews and someone else has
CVS:   reviewed your changes, include their name(s) here.
CVS:   If you have not had it reviewed then delete this line.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353343 13f79535-47bb-0310-9956-ffa450edef68
2003-09-06 18:56:29 +00:00
Avik Sengupta
3e26a5403a access the result of string formulas
getStringValue on HSSFCell now returns the formula result if it's a string formula


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353325 13f79535-47bb-0310-9956-ffa450edef68
2003-08-30 13:41:56 +00:00
Avik Sengupta
a1b3efa614 Facility to use Macro functions in formulas.
Major functionality upgrade, thanks to Paul Krause
Some of the Named Range and Area3d functionality can now be enhanced using the features of this patch.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353315 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 19:40:05 +00:00
Avik Sengupta
2ad62ccff7 Macro functions testcase
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353313 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 19:18:19 +00:00
Avik Sengupta
e1c8093b7a Bug id 21722: Protect record to Sheets
Submitted by Rick Berman..Thanks.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353310 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 18:54:28 +00:00
Avik Sengupta
e035d3ecfd Testcase for bug 13769 .. thanks michael tosdevin
the bug has already been fixed in 2.0pre3


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353278 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 19:59:49 +00:00
Avik Sengupta
02eaa94535 Slow input stream patch, bug 13478
Thanks Tony Chao and Chris Nokleberg


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353277 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 19:36:37 +00:00
No Author
250442a0a2 This commit was manufactured by cvs2svn to create branch 'REL_2_BRANCH'.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353276 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 19:35:19 +00:00
Rainer Klute
4d6ffc7b93 Test case fixed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353266 13f79535-47bb-0310-9956-ffa450edef68
2003-07-28 16:45:39 +00:00
Avik Sengupta
4d9102eee3 Made code compilable, on behalf Rainer
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353262 13f79535-47bb-0310-9956-ffa450edef68
2003-07-28 10:18:13 +00:00
Rainer Klute
71060cc5c7 Bug 21775
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353254 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 22:01:37 +00:00
No Author
6e37d3327e This commit was manufactured by cvs2svn to create branch 'REL_2_BRANCH'.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353253 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 22:01:37 +00:00
Avik Sengupta
abe41db286 bug 15228 and related fixes:
1. Correct structure of NamePtg
2. Correct Unicode handling of strings in StyleRecord and StringPtg
3. Workaround for SheetReferences
4. Ensure correct handling in NameRecord if we cant parse PTGs
5. Ensure correct order of String and SharFormula records
6. Testcase!


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353244 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 18:22:20 +00:00
Shawn Laubach
b6967b691a Added features to test and change the display of gridlines, formulas, and row/column headings. This is in reference to bug 21884. Started keeping track of the WindowTwoRecord reference to easy update without a search. Modified other procedures to use the reference where possible.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353243 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 14:28:52 +00:00
Shawn Laubach
466f9aa1d3 Fixed the problem in bug# 16756 by making sure the same HSSFDataFormat object is returned for a given book. Also included the new margin code that Mr. Oliver wanted (just because in was in the particular directory).
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353241 13f79535-47bb-0310-9956-ffa450edef68
2003-07-24 19:22:34 +00:00
Glen Stampoultzis
fd7e42b9d3 Fixed a small problem with hex dump
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353209 13f79535-47bb-0310-9956-ffa450edef68
2003-07-13 13:51:53 +00:00
No Author
4a12af1b72 This commit was manufactured by cvs2svn to create branch 'REL_2_BRANCH'.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353207 13f79535-47bb-0310-9956-ffa450edef68
2003-07-13 13:16:33 +00:00
Danny Muid
c7f251cdca Adding the shift mergedRegion ability to the Release 2 Branch
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353170 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 00:00:56 +00:00
Danny Muid
1b39aeae22 Fixed merged pointer issues and brought over from HEAD
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353168 13f79535-47bb-0310-9956-ffa450edef68
2003-06-27 23:21:17 +00:00
Danny Muid
97cdd24242 Committing RemoveMerged fix to the release branch.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353165 13f79535-47bb-0310-9956-ffa450edef68
2003-06-27 22:05:20 +00:00
Danny Muid
779e381000 Fixed NameRecord deserialization when additional information (description) was specified
PR: 19862
Submitted by:
     lloydj@us.ibm.com


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353105 13f79535-47bb-0310-9956-ffa450edef68
2003-05-17 18:32:42 +00:00
Danny Muid
929dcf3fd5 Fixes AreaReference when a Sheet name is provided
PR: 19888
Submitted by:
     brett.knights@tanner.com
Test Case Provided by:
     Arne.Clauss@gedas.de


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353104 13f79535-47bb-0310-9956-ffa450edef68
2003-05-17 17:53:38 +00:00
Danny Muid
97fcb16032 Made sure all row records for the sheet are aggregated since rows are skipped
if a formula yields a String.
PR: 15062


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353095 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 12:39:08 +00:00
Danny Muid
bc5c1ff0b2 Add the new testcase to the testsuite.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353091 13f79535-47bb-0310-9956-ffa450edef68
2003-05-08 14:28:25 +00:00
Danny Muid
b0d1df10d3 Patch to support reading in Shared Formulas
1) Added new Record: SharedFormulaRecord that is basically a storage area
2) Enabled ExpPtg to store and serialize data for repeating formulas
3) Updated the aggregates to store the SharedFormulaRecord appropriately


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353090 13f79535-47bb-0310-9956-ffa450edef68
2003-05-08 00:02:03 +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
ffe20f3e80 PR 13292, size of FuncPtg
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353088 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 15:37:10 +00:00
Andrew C. Oliver
7374603552 removed non-multiplatform/1.3.x unit test
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353085 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 12:41:37 +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
Andrew C. Oliver
5b16f75117 line feeds are good
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353074 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 13:00:46 +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
Andrew C. Oliver
470fbc4620 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18947
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353065 13f79535-47bb-0310-9956-ffa450edef68
2003-04-22 16:39:01 +00:00
Andrew C. Oliver
07912d07d5 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18090
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353056 13f79535-47bb-0310-9956-ffa450edef68
2003-04-11 02:58:23 +00:00
Danny Muid
81230699e2 FuncPtg stores 2 bytes of data where AbstractFuncPtg says it is 4 bytes long. Store the other 2 bytes when reading an excel file so that the "Warning: Data may have been lost" prompt is avoided after serialization.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353043 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 04:34:42 +00:00
Danny Muid
247157f3d3 FormulaRecord patch (and testcase) to preserve Excel's NaN representation when dealing with NaN formula value. We currently have NaN support in LittleEndian but the constant for NaN seems to change so we need to preserve the original bits on fill fields. Thanks Glen for your input!
PR: 18114, 18155
Submitted by:	Additional bug report submitted by jsun@teloptica.com (Jerry Sun)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353037 13f79535-47bb-0310-9956-ffa450edef68
2003-03-29 19:59:38 +00:00
Avik Sengupta
0fcc9507a7 Add clone() to FormulaRecordAggregate
Original patch supplied by Henning Boeger
Changed to make it deeper clone, added clone to StringRecord in the process
Also added a test.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353033 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 20:01:17 +00:00