Commit Graph

862 Commits

Author SHA1 Message Date
Josh Micich 473ac7ad05 added extra RVA test case (for bug 45206)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@668014 13f79535-47bb-0310-9956-ffa450edef68
2008-06-15 22:26:06 +00:00
Yegor Kozlov e1de21bc09 bug#44692 - Fixed HSSFPicture.resize() to properly resize pictures if the underlying columns/rows have modified size
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@664515 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 15:31:05 +00:00
Yegor Kozlov a0e68a7530 Correctly increment the reference count of a blip when a picture is inserted
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@664490 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 12:30:25 +00:00
Josh Micich 8eaa48315f Fix for bug 45091 - serialization of RefN~ tokens. Simplified Ptg class hierarchy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@664220 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 00:53:01 +00:00
Josh Micich bade69a176 Fix for 45133 - OBJ Record (5Dh) needs to pad the sub-record data to a 4-byte boundary
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@663855 13f79535-47bb-0310-9956-ffa450edef68
2008-06-06 08:32:54 +00:00
Josh Micich f35ba1b1cd Fix for bug 45145 - made sure RowRecordsAggregate comes before ValueRecordsAggregate. Also fixed BiffViewer to show correct record offsets
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@663765 13f79535-47bb-0310-9956-ffa450edef68
2008-06-05 22:24:05 +00:00
Josh Micich c79342aeac Fix for bug 45123 - SharedFormulaRecord.convertSharedFormulas was ignoring token operand classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@663436 13f79535-47bb-0310-9956-ffa450edef68
2008-06-05 03:12:35 +00:00
Nick Burch 50d81039da Fix bug #45087 - Correctly detect date formats like [Black]YYYY as being date based
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@660889 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 10:03:00 +00:00
Josh Micich a811443b4b Fix for 45060 (and 45041) - Improved token class transformation during formula parsing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@660828 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 06:19:31 +00:00
Josh Micich 4f1853e01c Changed class hierarchy of Ptg to improve 'operand class' transformation.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@660344 13f79535-47bb-0310-9956-ffa450edef68
2008-05-27 00:57:23 +00:00
Josh Micich 5ffa668496 Small fix for FormulaParser. Need case-insentive match for IF function name
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@660263 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 18:25:02 +00:00
Josh Micich 94c7876f74 Follow-on fix for bug 42564 (r653668). Array elements are stored internally column by column.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@660256 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 18:02:23 +00:00
Nick Burch bdf210f9ee Help for bug #44840 - Improved handling of HSSFObjectData, especially for entries with data held not in POIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@659575 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 15:55:08 +00:00
Nick Burch f601b0899a Patch from Yury, plus tests, from bug #45043 - Support for getting excel cell comments when extracting text
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@659572 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 15:22:18 +00:00
Nick Burch 8ef6b8561d Extend the support for specifying a policy to HSSF on missing / blank cells when fetching, to be able to specify the policy at the HSSFWorkbook level
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@659525 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 12:58:56 +00:00
Josh Micich 9b8395dd61 Fix for bug 35925 - Missing HSSFColor.TAN from HashTables returned by getIndexHash() and getTripletHash()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@659478 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 08:55:48 +00:00
Josh Micich a4aab681a7 Bug 45025 - improved FormulaParser parse error messages (r659452 had wrong bug number)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@659455 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 06:54:46 +00:00
Josh Micich dc3f6b36b8 Bug 45041 - improved FormulaParser parse error messages
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@659452 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 06:43:51 +00:00
Josh Micich 143128be30 Fix for bug 45046 - allowed DEFINEDNAME records without EXTERNALBOOK records
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@659429 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 05:28:54 +00:00
Josh Micich 4273046fca Fix for 45066 - sheet encoding size mismatch problems
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@659403 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 03:56:31 +00:00
Josh Micich b1ad25f7e3 improved toString and refactored toFormulaString on Area(3D)Ptg
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658833 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 19:57:40 +00:00
Nick Burch e09c35f448 Put abstract write(OutputStream) method on POIDocument
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658350 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 17:12:08 +00:00
Nick Burch 748647c9c0 Fix bug #44977 - Support for AM/PM in excel date formats
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658322 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 16:37:15 +00:00
Nick Burch e548591e87 Support for specifying a policy to HSSF on missing / blank cells when fetching
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658308 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 16:30:19 +00:00
Nick Burch 2e633955d9 Patch from bug #44937 from Squeeself- Partial support for extracting Escher images from HWPF files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658302 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 16:01:53 +00:00
Nick Burch 74f90acf81 Fix bug 44898 - Correctly handle short last blocks in POIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658285 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 15:42:16 +00:00
Josh Micich d6d5b97ad2 Minor patch to improve FormulaParser error messages like those from bug 45041
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658033 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 23:07:27 +00:00
Josh Micich 047ca7a1f2 Bug 44306 - fixed reading/writing of AttrPtg and rendering of CHOOSE formulas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@657702 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 01:06:54 +00:00
Yegor Kozlov ce8e1c9f62 added HSSFName.isDeleted() to check if the name points to cell that no longer exists
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@657355 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 14:00:30 +00:00
Josh Micich 3ee85ee6a9 Fix for bug 40414 - update selected/active sheet after removing sheet from workbook
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@657167 13f79535-47bb-0310-9956-ffa450edef68
2008-05-16 18:55:02 +00:00
Josh Micich e5828d77dc Simplification of BiffViewer. Made easier to send results to file.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@657166 13f79535-47bb-0310-9956-ffa450edef68
2008-05-16 18:46:04 +00:00
Josh Micich 3524eaad44 44523 - fixed workbook sheet selection and focus
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@656893 13f79535-47bb-0310-9956-ffa450edef68
2008-05-15 23:30:08 +00:00
Yegor Kozlov 85feeabf9d Added boolean flag to turn on use of merged columns in autosize
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@655282 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 09:03:24 +00:00
Josh Micich c1a11a8b7c 41187 - fixed HSSFSheet to properly read xls files without ROW records
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@655278 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 08:15:39 +00:00
Josh Micich 0277016ab5 bug 23630 - fixed spelling mistake in constant name
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@655216 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 01:30:56 +00:00
Josh Micich 9f125abf7d removed unused constructor and old comment after r654649
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@654650 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 23:06:30 +00:00
Josh Micich 2def1a9532 fixed mistake in FuncPtg.clone(), added test case, cleaned up outdated (since bug 13292) test method.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@654649 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 23:02:43 +00:00
Josh Micich 86746dde00 44950 - fixed HSSFFormulaEvaluator.evaluateInCell() and Area3DEval.getValue() also added validation for number of elements in AreaEvals
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@654356 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 00:52:05 +00:00
Nick Burch 6e46f03020 Add disabled test for bug #44898, and slightly improve a few poifs related error messages
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653945 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 22:51:28 +00:00
Josh Micich 609058dea5 Another attempt to fix unicode problems in functionMetadata.txt. Made that file pure ascii.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653892 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 19:48:55 +00:00
Nick Burch 3475425c5f Fix up the functionMetadata.txt stuff to be end-to-end UTF8. Was assuming it before, but breaking on some systems, while now it ought to work fine everywhere
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653831 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 16:38:34 +00:00
Nick Burch 54200838bf Improve JavaDocs about iterators and gaps
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653815 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 15:37:45 +00:00
Josh Micich 6fc050034d 42570 - fixed LabelRecord to use empty string instead of null when the length is zero.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653675 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 03:57:15 +00:00
Josh Micich 8264540df1 42564 - fixed ArrayPtg to use ConstantValueParser. Fixed a few other ArrayPtg encoding issues.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653668 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 02:02:41 +00:00
Josh Micich 31ccbe6fc9 Follow-on from 28754 - StringPtg.toFormulaString() should escape double quotes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653608 13f79535-47bb-0310-9956-ffa450edef68
2008-05-05 21:38:07 +00:00
Yegor Kozlov 9e39df0103 restored mistakenly commented line
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653521 13f79535-47bb-0310-9956-ffa450edef68
2008-05-05 16:13:24 +00:00
Yegor Kozlov 72aceaf4dc take into account indentation in HSSFSheet.autosizeColumn
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653484 13f79535-47bb-0310-9956-ffa450edef68
2008-05-05 13:59:11 +00:00
Josh Micich 3774c3228f Swapped ArrayIndexOutOfBoundsException for plain array length check in AbstractFunctionPtg.getParameterClass(). (To help debugging when trying to find a real AIOOB)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653125 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 20:13:56 +00:00
Josh Micich bbe3ee9b4d 44929 - Improved error handling in HSSFWorkbook when attempting to read a BIFF5 file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653117 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 19:53:38 +00:00
Josh Micich 8fb40de628 Fixed 44675 - Parameter operand classes (function metadata) required to encode SUM() etc properly. Added parse validation for number of parameters
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@652994 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 03:59:32 +00:00