Commit Graph

1832 Commits

Author SHA1 Message Date
Nick Burch
7ef203f71c Fix for NPE in bug #40036. The TextBox will still be fairly useless though
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@450097 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 15:53:21 +00:00
Nick Burch
a2d54c0fe2 FOP fix from bug #39086
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@450068 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 14:54:45 +00:00
Nick Burch
0989d2323a From bug #38616 - support for extracting images from word files, plus tests for this
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@450066 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 14:46:39 +00:00
Nick Burch
338801b916 Don't just assume we'll only have container records for the shape's escher records
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@450057 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 14:14:59 +00:00
Nick Burch
c41a5148eb Handle the case where a StyleTextPropAtom has a mask that codes for more properties than we have data for (+tests for this)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@449983 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 11:19:30 +00:00
Nick Burch
63a3fd96fb Support alignment and indent levels for HSLF - patch from Yegor in bug #40324
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@448004 13f79535-47bb-0310-9956-ffa450edef68
2006-09-19 22:47:44 +00:00
Nick Burch
7c1efd4b1a Improved picture support for HSLF, from Yegor in bug 40388
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@448001 13f79535-47bb-0310-9956-ffa450edef68
2006-09-19 22:37:38 +00:00
Nick Burch
c2f4b9617b Update a cvs link to an svn one
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@446566 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 10:22:19 +00:00
Jason Height
06564af902 Bug 30635: getLastCellNum return last cell num + 1. Made this clear in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@442183 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 11:34:49 +00:00
Jason Height
233ebaf41c BUG 27496: get/setPageBreak and get/getColumnBreak now work correctly if a template excel file is loaded which does not contain PaneRecords is loaded.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@441652 13f79535-47bb-0310-9956-ffa450edef68
2006-09-08 21:09:48 +00:00
Amol S. Deshmukh
a3b31fe54f replaced use of String.contains(..) with String.indexOf(..) >= 0 to make it JDK1.4 compatible
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@438085 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 14:50:39 +00:00
Jason Height
0ab20fa068 Just removed a bunch of unused imports etc. Reduces eclipse warnings
Jason

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437998 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 07:47:00 +00:00
Jason Height
fdf1a81658 bug 23631: support for getting the current pane information in excel
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437930 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 03:27:11 +00:00
Jason Height
4859068eb4 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
Jason Height
a2d9acef56 Bug 33736: Applied patch for Column Hiding. Thanks
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437526 13f79535-47bb-0310-9956-ffa450edef68
2006-08-28 04:44:32 +00:00
Jason Height
d4b421b471 Bug28755: CellReference will throws IllegalArgumentException when an illegal cell reference is provided.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437522 13f79535-47bb-0310-9956-ffa450edef68
2006-08-28 03:54:04 +00:00
Jason Height
4db9e61904 Bug36646: Ret3dPtg to include quotes when sheetname contains a space.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437519 13f79535-47bb-0310-9956-ffa450edef68
2006-08-28 03:39:13 +00:00
Jason Height
f62e014f5d Hopefully fixed scratchpad test org.apache.poi.hssf/record/formula/functions/TestEverything.java from running out of memory and killing gump
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437486 13f79535-47bb-0310-9956-ffa450edef68
2006-08-28 00:31:36 +00:00
Jason Height
ba5d5a7de6 Removed EXPERIMENTAL indication on the formula support.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437371 13f79535-47bb-0310-9956-ffa450edef68
2006-08-27 12:03:14 +00:00
Jason Height
e2ecefa533 Added explicit RecordFormatException when a FilePass record (indicating that the workbook is encrypted) is encountered. (due to bug 27548)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437370 13f79535-47bb-0310-9956-ffa450edef68
2006-08-27 12:00:36 +00:00
Jason Height
f68160a399 Bug 38796: Check for null in PageBreakRecord
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437368 13f79535-47bb-0310-9956-ffa450edef68
2006-08-27 11:17:22 +00:00
Jason Height
feb1b82ec3 Throw exception rather than returning NO IDEA SHARED FORMULA
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437265 13f79535-47bb-0310-9956-ffa450edef68
2006-08-27 01:04:53 +00:00
Jason Height
f63fda8c81 Forgot to reset shared formula option during conversion
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437128 13f79535-47bb-0310-9956-ffa450edef68
2006-08-26 08:52:24 +00:00
Jason Height
8fbb3d73a9 Found a case where the shared formula does not resolve. This was in the test case for the org.apache.poi.hssf.record.formula.eval.TextEverything
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437126 13f79535-47bb-0310-9956-ffa450edef68
2006-08-26 08:23:22 +00:00
Jason Height
8a10aa6fd8 bug 40285: Corrected index of CellIterator. In addition made CelIterator obey the Iterator contract wrt exceptions.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@436986 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 22:24:47 +00:00
Amol S. Deshmukh
5d6ef0daa1 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
3b4e272ac2 test case that checks to see if a case of MissingArgsPtg in the formula string is handled correctly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@434425 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 16:41:12 +00:00
Jason Height
1610481f71 Bug: 40267 squashed.
Thanks Richard, good catch. Keep it up!

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@432511 13f79535-47bb-0310-9956-ffa450edef68
2006-08-18 07:44:57 +00:00
Nick Burch
6d2bc8aea9 Access to Saved By Information - patch from Trejkaz in bug #38647
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@431320 13f79535-47bb-0310-9956-ffa450edef68
2006-08-14 10:29:49 +00:00
Sean Sullivan
99100df679 git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@430976 13f79535-47bb-0310-9956-ffa450edef68 2006-08-12 05:28:45 +00:00
Nick Burch
f3a4d0c4df Throw a more useful exception in the case of word95 documents
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@430365 13f79535-47bb-0310-9956-ffa450edef68
2006-08-10 12:20:24 +00:00
Nick Burch
036a97a268 If we're created with an InputStream, check to see if it's really RTF before proceeding
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@430363 13f79535-47bb-0310-9956-ffa450edef68
2006-08-10 12:12:27 +00:00
Amol S. Deshmukh
89b2d938da In setCellFormula(String) the Ptg stack in FormulaRecord is cleared before filling it with new values. Prior to this fix, repeated calls to setCellFormula would keep accumulating Ptgs in the stack although only the topmost "size" number of Ptgs would ever be used.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@430137 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 20:26:40 +00:00
Amol S. Deshmukh
0be9c45f8f 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
Nick Burch
cf07eb769a Tweak comments about needing to use svn version, and add pointer to unit tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@429316 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 12:28:15 +00:00
Jason Height
2ece1574eb Made a bit of a meal out of the Shared formula patch, some of our test cases failed. Guess that is a good thing. Now working.
Committed patch provided in Bug 40024. Avik, sorry bet you to it.

Committed a patch to Bug 13249. HSSF will now raise an exception if a name is provided that is case-insensitive match to an existing name. In addition the getNameIndex now performs a case-insensitive search. This now matches excel behaviour.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@426082 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 14:15:11 +00:00
Jason Height
8cc9ba242f SHARED FORMULA SUPPORT:
Implemented my long standing (but incomplete) patch attached to Bug 26502.

Now shared formula conversion is working. Tested against file attached to Bug 26502 and Bug 18311.

TestValueRecordAggregate fails with the patch at the moment, too tired to look at. Will do tomorrow.

Jason

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@425402 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 14:30:34 +00:00
Jason Height
53b06e968b Bug 17890: Corrected exception text for zero byte file.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@425384 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 12:19:31 +00:00
Jason Height
3499a86c40 Clean up of HSSFDataFormat. Whilst Bug 22456 was probably not an issue with the previous code, these changes are even better ;-) Squashing Bug 22456 now.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@425376 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 11:50:55 +00:00
Jason Height
0d2f7ed7bd Exception Chaining: Added support for java 1.4 style exception chaining. Believe that POI is targeted at 1.4 nowdays so this should not cause an issue.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@425026 13f79535-47bb-0310-9956-ffa450edef68
2006-07-24 12:40:25 +00:00
Jason Height
b00b858ade Bug 38486: Added handling of special 0x40 (64 dec) color.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@425023 13f79535-47bb-0310-9956-ffa450edef68
2006-07-24 12:18:48 +00:00
Jason Height
b7d6bfa980 Bug 26916: Corrected javadoc to indicate ArrayIndexOutOfBounds may be thrown.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@424685 13f79535-47bb-0310-9956-ffa450edef68
2006-07-23 06:46:06 +00:00
Nick Burch
ff95bf10a4 Yegor's TxMasterStyleAtom code from Bug #40057
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@423129 13f79535-47bb-0310-9956-ffa450edef68
2006-07-18 16:44:57 +00:00
Nick Burch
ec7513f700 Add lookups for the common text alignments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@423127 13f79535-47bb-0310-9956-ffa450edef68
2006-07-18 16:25:20 +00:00
Nick Burch
4e0a09ce38 Yegor's update from bug #39991 - better identification of what underlying picture data a picture object relates to
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@421843 13f79535-47bb-0310-9956-ffa450edef68
2006-07-14 09:18:44 +00:00
Nick Burch
cc3a899a3e Expose the underlying TextRun
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@421555 13f79535-47bb-0310-9956-ffa450edef68
2006-07-13 09:24:39 +00:00
Nick Burch
f26c5c8468 Add in a main() method, so people can stop moaning
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@421238 13f79535-47bb-0310-9956-ffa450edef68
2006-07-12 11:22:50 +00:00
Nick Burch
4d21c8dfa0 Add ant task for building the maven/ibiblio friendly binary and source jar files, and creating a .pom for them
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@419060 13f79535-47bb-0310-9956-ffa450edef68
2006-07-04 18:17:24 +00:00
Nick Burch
ade3266fdb Remove a bit of debug code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@418856 13f79535-47bb-0310-9956-ffa450edef68
2006-07-03 21:27:09 +00:00
Nick Burch
81ce641db6 Get to a consistent indent
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@418849 13f79535-47bb-0310-9956-ffa450edef68
2006-07-03 20:59:09 +00:00