Commit Graph

392 Commits

Author SHA1 Message Date
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
Shawn Laubach
1214a0004c Applied the pertinent patch for bug #21439 by Paul Pound to get the header/footer from the sheet and not a chart.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353240 13f79535-47bb-0310-9956-ffa450edef68
2003-07-24 18:42:46 +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
Avik Sengupta
181ff7fb54 Bug id 21086
incorrect comparison of RGB values in HSSFPalette
submitted by Tobias Haubner .. thanks!


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353184 13f79535-47bb-0310-9956-ffa450edef68
2003-07-01 15:07:59 +00:00
Avik Sengupta
c472df8fd1 Bug id 20696
Workbook.getSheetIndex() needs to ignore case.
Submitted by Eric Lander .. thanks!


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353183 13f79535-47bb-0310-9956-ffa450edef68
2003-07-01 14:52:15 +00:00
Avik Sengupta
a67d868825 Bug id 21027
Patch to fix misc clone issues, submitted by Nial Pemberton .. thanks!


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353182 13f79535-47bb-0310-9956-ffa450edef68
2003-07-01 14:47:34 +00:00
Glen Stampoultzis
ff5c232ffb Fixed concurrency problem in HexDump
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353180 13f79535-47bb-0310-9956-ffa450edef68
2003-06-30 12:21:50 +00:00
Glen Stampoultzis
230c71eae7 Removed some unused stuff from our good friend the unknown record. Also fixed a little bug that probably wasn't effecting anyone.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353173 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 05:52:14 +00:00
Glen Stampoultzis
9dcb5587ea Fixing the line endings and problem make readData public.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353172 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 05:43:09 +00:00
Danny Muid
a6e14b5490 SharedFormula clone patch that was already applied to HEAD
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353171 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 00:21:47 +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
Andrew C. Oliver
9c9b3a6094 rolled concurrency fix into branch
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353162 13f79535-47bb-0310-9956-ffa450edef68
2003-06-26 22:16:28 +00:00
Glen Stampoultzis
f66a003844 Removed some unused fields. This commit shall be known as the mini-performance-branch-which-is-not-actually-a-branch.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353159 13f79535-47bb-0310-9956-ffa450edef68
2003-06-26 13:00:04 +00:00
Glen Stampoultzis
b0e436a71e A real implementation of the ExtSST record. The old implementation just wrote a fake record
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353158 13f79535-47bb-0310-9956-ffa450edef68
2003-06-26 12:33:35 +00:00
Avik Sengupta
07bc7cde0f Spell Check
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353124 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 19:40:48 +00:00
Avik Sengupta
063c2cc756 for better diffing during debugging, implement a toString method in Ptg
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353123 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 12:30:43 +00:00
Avik Sengupta
17e488c73b cleaning mess of no newlines... AGAIN. dunno how many more to gocvs diff src/java/org/apache/poi/hssf/record/ExternSheetRecord.java
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353119 13f79535-47bb-0310-9956-ffa450edef68
2003-06-04 12:24:13 +00:00
Avik Sengupta
c8b99afcae Removed the mess created by lost line endings. PLEASE take care the next time you commit
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353118 13f79535-47bb-0310-9956-ffa450edef68
2003-06-03 13:14:47 +00:00
Avik Sengupta
b2bd33c3bf Added read support for unary plus and minus. Parser to be updated
for write support.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353117 13f79535-47bb-0310-9956-ffa450edef68
2003-06-03 12:42:09 +00:00
Danny Muid
1439f944e8 Rolled back Record and changed Copyright due to the source being squeezed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353113 13f79535-47bb-0310-9956-ffa450edef68
2003-05-28 00:12:08 +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
Shawn Laubach
7b6ec9633e Added ability to copy row height during shift. Also gave the ability to reset the row height on a shift for the original rows.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353100 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 16:30:46 +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
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
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
e35ddf54f2 Aid debugging unknown ptgs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353086 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 13:08:08 +00:00
Avik Sengupta
3bcff21ed0 recognise new ptg
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353084 13f79535-47bb-0310-9956-ffa450edef68
2003-05-05 15:35:39 +00:00
Avik Sengupta
c730219f01 new ptg, doesnt do much yet
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353083 13f79535-47bb-0310-9956-ffa450edef68
2003-05-05 15:33:14 +00:00
Avik Sengupta
17bb993bcd PR 19634: Compiling error in jdk1.3
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353082 13f79535-47bb-0310-9956-ffa450edef68
2003-05-05 06:20:28 +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
444672612e Font names can sometimes be null.. We now accept this and can move on with
our serialization life.

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353078 13f79535-47bb-0310-9956-ffa450edef68
2003-05-02 14:30:03 +00:00
Andrew C. Oliver
8d9e0a821d fixed. Check for reversions.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353073 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 12:50:06 +00:00
Andrew C. Oliver
09cd3214c7 unf*ck'd it. please stop doing this
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353072 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 12:43:37 +00:00
Andrew C. Oliver
424ff3e132 unf*cking it...whoever is doing this please stop
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353071 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 12:40:37 +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
2dafc6e092 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@353064 13f79535-47bb-0310-9956-ffa450edef68
2003-04-22 16:29:43 +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
Danny Muid
978c2a0491 Fixed spelling of UNKNOWN for unknown record types and fixed accordingly in the chart documentation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353036 13f79535-47bb-0310-9956-ffa450edef68
2003-03-27 22:14:48 +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
Avik Sengupta
cd1a9a6452 Further to bug 17491:set sheet order - now made accessible from usermodel, rudimentary testcase added. Testcase to be enhanced.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353032 13f79535-47bb-0310-9956-ffa450edef68
2003-03-18 19:26:12 +00:00
Avik Sengupta
57eb57fb35 Added license!
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353031 13f79535-47bb-0310-9956-ffa450edef68
2003-03-18 19:10:25 +00:00
Avik Sengupta
3048751bca Added new class per bug 13478, to read data from low performance input streams.
Patch submitted by Jens Gerhard - thanks.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353030 13f79535-47bb-0310-9956-ffa450edef68
2003-03-18 18:58:43 +00:00