Commit Graph

669 Commits

Author SHA1 Message Date
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 30faafa87e Follow on from bug 44675 - regenerated functionMetadata.txt from new ooo excelfileformat.odt
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658986 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 03:26:25 +00:00
Nick Burch a4f9eb9543 Test which seems to show that bug #44996 is invalid, but not completely sure
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658336 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 16:51:49 +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 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 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 e01964e6e7 misc bug fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@657358 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 14:03:27 +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 681f04c05e fixed bug number in junit msg - from r656893 bug 44523
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@657180 13f79535-47bb-0310-9956-ffa450edef68
2008-05-16 19:24:47 +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 9c65dbae4a Should have been submitted with r656893 (for bug 44523)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@657136 13f79535-47bb-0310-9956-ffa450edef68
2008-05-16 17:14:02 +00:00
Josh Micich 802a3df0b5 added test case for reported bug 44987
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@655912 13f79535-47bb-0310-9956-ffa450edef68
2008-05-13 15:25:51 +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 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 791f1cb208 tiny clean-up after r654356 (bug 44950)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@654366 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 01:06:56 +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 33a18267e1 Update a test to match the new warning on short files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@654056 13f79535-47bb-0310-9956-ffa450edef68
2008-05-07 09:41:03 +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
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
Josh Micich 573429d804 Added test case method javadoc for old bug 44675
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653551 13f79535-47bb-0310-9956-ffa450edef68
2008-05-05 18:30:49 +00:00
Yegor Kozlov 5ec046cd73 bug #44235 is not reproducible in 3.1-beta1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@653520 13f79535-47bb-0310-9956-ffa450edef68
2008-05-05 16:12:21 +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
Josh Micich 9e6f2816c3 44921 - allow Ptg.writeBytes() to be called on relative ref Ptgs (RefN* and AreaN*)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@652934 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 22:36:49 +00:00
Josh Micich 45095a5d06 added disabled junit for bug 44916
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@652561 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 15:46:21 +00:00
Josh Micich 993bf57633 fixed bug 44892 - made HSSFWorkbook.getSheet(String) case insensitive
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@652426 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 03:25:37 +00:00
Nick Burch d0ca2bfeb7 Tests to show that bugs 44891 and 44861 were both already fixed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@652329 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 11:10:49 +00:00
Yegor Kozlov c5ce487ede correctly process PICT blips (see bug #44886)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@652288 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 06:19:38 +00:00
Nick Burch 64775cfe62 Fix from Trejkaz from bug #44857 - Avoid OOM on unknown escher records when EscherMetafileBlip is incorrect
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@651992 13f79535-47bb-0310-9956-ffa450edef68
2008-04-27 18:02:13 +00:00
Yegor Kozlov 577b3e084f added a unit test and closed bug #28774
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@649142 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 15:06:01 +00:00
Yegor Kozlov c52a8b10af Rich text in HSSFTextbox must have at least one format run. Make sure it is so and apply th default fopnt if no formats were applied.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@648623 13f79535-47bb-0310-9956-ffa450edef68
2008-04-16 08:43:08 +00:00
Josh Micich 35d89933c9 Conditional Formatting (30311) - API improvements, added HSSFSheetConditionalFormatting
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@648334 13f79535-47bb-0310-9956-ffa450edef68
2008-04-15 17:07:06 +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
Yegor Kozlov 82bb0bc7ef make sure all hslf classes use POI loggers
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@647824 13f79535-47bb-0310-9956-ffa450edef68
2008-04-14 14:58:18 +00:00
Nick Burch 5a36ce6ec3 Finish off eventusermodel based Excel Extractor, and update the xls to csv converter (moved to correct place) based on discoveries for the text extractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@647576 13f79535-47bb-0310-9956-ffa450edef68
2008-04-13 15:09:42 +00:00
Nick Burch 497c9eb3c6 Start on a eventusermodel based excel text extractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@647574 13f79535-47bb-0310-9956-ffa450edef68
2008-04-13 14:58:27 +00:00
Nick Burch 3e3895049c Update HSLFSlideShow and HSSFWorkbook to take advantage of POIFS updates, and allow reading embeded documents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@647186 13f79535-47bb-0310-9956-ffa450edef68
2008-04-11 14:43:05 +00:00
Nick Burch 425305fd67 Update the sample embeded documents to be from know sources, so we can test better
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@647152 13f79535-47bb-0310-9956-ffa450edef68
2008-04-11 13:04:11 +00:00
Josh Micich 7024f8896e bugzilla 44792 - fixed encode/decode problems in ExternalNameRecord and CRNRecord.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@646666 13f79535-47bb-0310-9956-ffa450edef68
2008-04-10 07:06:55 +00:00
Nick Burch 63409a6647 Implement a proxy HSSFListener which tracks the format records, and lets you lookup the format string for a given cell. Convert the xls to csv example to use it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@646405 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 15:36:39 +00:00
Josh Micich 08802e667e some more tweaks for bug 30311. Set some (unused) bits in FontFormatting to match Excel.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@646194 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 05:56:50 +00:00
Josh Micich 05eb15b87e 30311 - More work on Conditional Formatting - patch from Dmitriy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@645352 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 03:23:04 +00:00
Josh Micich 27761348b9 refactored all hssf junits to get test sample data in the in one place
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@645348 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 03:02:03 +00:00
Josh Micich 1051e2853c Follow up fix after r644473 (bug 44739) TestHSSFConditionalFormatting had a bug and wasn't yet included in the test suite hierarchy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@644509 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 21:17:26 +00:00
Josh Micich dff9b26565 Fix for bug 44739 - Conditional formatting (regions with max row/col index)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@644473 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 20:25:53 +00:00
Nick Burch 78c69f1230 Make a bit of a start on being able to edit chart titles, based on the email to user@poi from Russ on the 2nd of April. Not quite there though
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@644343 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 15:04:52 +00:00
Yegor Kozlov a4cb19f0e8 Fixed inconsistency between HSSFSHeet.getColumnWidth and HSSFSheet.getDefaultColumnWidth: getColumnWidth should always return width measured in 1/256th units.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@643834 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 10:25:18 +00:00
Rainer Klute 5c7ca6b786 44694 - HPSF: Support for property sets without sections
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@643670 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 00:50:45 +00:00
Josh Micich e6fb5e7d7b Bug #44733 - DPRODUCT function should be index 189, not 191
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@643625 13f79535-47bb-0310-9956-ffa450edef68
2008-04-01 22:18:25 +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 ede1814a1d silenced noisy tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@642891 13f79535-47bb-0310-9956-ffa450edef68
2008-03-31 05:56:11 +00:00
Josh Micich 9f66b9c5f4 removed incorrect test case methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@642880 13f79535-47bb-0310-9956-ffa450edef68
2008-03-31 05:19:00 +00:00
Josh Micich 05fb78c5d4 More work on Conditional Formatting (bug 30311) junit and fixes from Dmitriy. Some other clean-up.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@642878 13f79535-47bb-0310-9956-ffa450edef68
2008-03-31 05:10:35 +00:00
Nick Burch 37e1487670 Update Formula test spreadsheet for count, and also do a copy as an ooxml .xlsx file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@642738 13f79535-47bb-0310-9956-ffa450edef68
2008-03-30 13:40:34 +00:00
Nick Burch ef5d5cb3d4 Move the FormulaEvaluator code out of scratchpad
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@642574 13f79535-47bb-0310-9956-ffa450edef68
2008-03-29 18:23:33 +00:00
Nick Burch 0fce9fd02e Move the missing record aware eventusermodel code out of scratchpad
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@642566 13f79535-47bb-0310-9956-ffa450edef68
2008-03-29 17:45:28 +00:00
Nick Burch 7061aef6f1 Add test to show that bug #44693 is incorrect
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@642231 13f79535-47bb-0310-9956-ffa450edef68
2008-03-28 13:35:37 +00:00
Josh Micich 0d7c6a7b78 annotated previous changelist(641964) with wrong buzilla number. Previous changes were for bug #44695.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@641967 13f79535-47bb-0310-9956-ffa450edef68
2008-03-27 20:15:13 +00:00
Josh Micich 60c8dc5688 fixes for ExternalNameRecord serialisation bug #44691
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@641964 13f79535-47bb-0310-9956-ffa450edef68
2008-03-27 20:03:29 +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 f5b67d0e52 Fix for readCompressedUnicode not moaning about length=0, from bug #44643
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@639242 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 11:02:39 +00:00
Nick Burch fce60a6630 Test relating to bug #44636
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@639231 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 10:06:59 +00:00
Nick Burch f9c0c82b09 Fix bug #44627 - improve the thread safety of POILogFactory
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@638815 13f79535-47bb-0310-9956-ffa450edef68
2008-03-19 12:49:35 +00:00
Nick Burch f7e7b20f2e Patch from Dmitriy from bug #30311 - Support for conditional formatting records
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@638812 13f79535-47bb-0310-9956-ffa450edef68
2008-03-19 12:28:56 +00:00
Nick Burch 870c5e1889 Add test to show that bug #43251 is already fixed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@638804 13f79535-47bb-0310-9956-ffa450edef68
2008-03-19 12:01:32 +00:00
Nick Burch a0d0fd14ef Added test to show that bug #41546 is already fixed. Also rename a test file to be more consistent
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@638803 13f79535-47bb-0310-9956-ffa450edef68
2008-03-19 11:57:38 +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 97265001e9 Patch from Josh from bug #44608 - Support for PercentPtg in the formula evaluator
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@637598 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 15:38:09 +00:00
Nick Burch 8ca38c3e23 Patch from Josh from bug #44606 - Support calculated string values for evaluated formulas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@637595 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 15:29:34 +00:00
Nick Burch f3193f779e Patch from Josh, which shows that various bugs are now fixed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@637593 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 15:20:47 +00:00
Yegor Kozlov 863b004ced Add accessors to horizontal and vertical alignment in HSSFTextbox
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@637189 13f79535-47bb-0310-9956-ffa450edef68
2008-03-14 18:05:55 +00:00
Nick Burch 20b3d0be05 Add test to show that bug #28031 is really closed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@636790 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 15:58:34 +00:00
Nick Burch 86565db81c Make a start on handling different big block sizes in POIFS, but work isn't complete. See bug #35928 for part of what we're after
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@636786 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 15:38:28 +00:00
Nick Burch 709c487a42 Fix bug #44593 - improved handling of short DVRecords
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@636756 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 13:20:09 +00:00
Nick Burch ff78b7ac71 Patch largely from Josh from bug #44539 - Support for area references in formulas of rows >= 32768
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@634630 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 12:06:18 +00:00
Nick Burch 96198ae3d1 Improved support for read-only recommended workbooks, fixing bug #44536
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@634619 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 11:36:14 +00:00
Nick Burch e2dd40f66c Patch from Josh from bug #43901 - Correctly update the internal last cell number when adding and removing cells (previously sometimes off-by-one)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@634617 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 11:18:02 +00:00
Nick Burch ba4e8c0a9f Add broken test for bug #43901
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@634372 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 18:13:47 +00:00
Nick Burch f8915deeb5 Embeded files from bug #44524
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@634371 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 18:06:48 +00:00
Nick Burch 924975f0e9 Change the behaviour on short last blocks to be a warning not an exception, as some people seem to have "real" valid files that trigger this. Fixed bug #28231
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@634318 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 15:54:06 +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 a16fa738f0 Patch from Josh from bug #44510 - Fix how DVALRecord works with dropdowns
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@633151 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 16:09:02 +00:00
Nick Burch 0ecbec584e Fix from Yegor from bug #44491 - don't have the new style handy POIDocument property stuff break old style hpsf+hssf use
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@633118 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 15:10:46 +00:00
Nick Burch d601a0b4b7 Bug #44471 - Crystal Reports generates files with short StyleRecords, which isn't allowed in the spec. Work around this
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@630164 13f79535-47bb-0310-9956-ffa450edef68
2008-02-22 11:40:00 +00:00
Nick Burch 7cdfaaa61d Patch from Josh from bug #44450 - VLookup and HLookup support, and improvements to Lookup and Offset
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@630160 13f79535-47bb-0310-9956-ffa450edef68
2008-02-22 11:23:50 +00:00
Nick Burch e0b06b3510 Add a disabled test for a file with whacky StyleRecords that trigger an AIOOB
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@629849 13f79535-47bb-0310-9956-ffa450edef68
2008-02-21 16:22:18 +00:00
Nick Burch 1a6fcd5024 Patch from Josh from bug #44449 - Handle SharedFormulas better, for where there are formulas for the same area on two sheets, and when the shared formula flag is set incorrectly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@629837 13f79535-47bb-0310-9956-ffa450edef68
2008-02-21 15:48:52 +00:00
Nick Burch 598e5e1ba8 Patch from Josh from bug #44437 - improved unit test for poifs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@629832 13f79535-47bb-0310-9956-ffa450edef68
2008-02-21 15:42:06 +00:00
Nick Burch 1030ecb726 Patch from Josh from bug #44437 - improved unit test for poifs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@629831 13f79535-47bb-0310-9956-ffa450edef68
2008-02-21 15:40:34 +00:00
Nick Burch 38421b7650 Patch from Josh from bug #44366 - InputStreams passed to POIFSFileSystem are now automatically closed. A warning is generated for people who might've relied on them not being closed before, and a wrapper to restore the old behaviour is supplied
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@629829 13f79535-47bb-0310-9956-ffa450edef68
2008-02-21 15:35:59 +00:00
Nick Burch acd787dcb8 Fix bug 38921, where HSSFPalette.findSimilar() wasn't working properly, and add tests for it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@629755 13f79535-47bb-0310-9956-ffa450edef68
2008-02-21 11:34:25 +00:00
Nick Burch 818880bf7f Further support for whole-column references, including formula strings and the evaluator. Also has some new tests for it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@628065 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 13:50:38 +00:00
Nick Burch 720b6bdf3d Partial fix for bug #44410 - support whole column ranges such as C:C in the formula evaluator (so SUM(D:D) will now work). However, the formula string will still be displayed wrong
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@628044 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 12:59:40 +00:00
Nick Burch e113d12d34 Fix from Josh from bug #44417 - Improved handling of references for the need to quote the sheet name for some formulas, but not when fetching a sheet by name
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@628033 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 12:04:42 +00:00
Nick Burch 7992e8e0f0 Fix for bug #44403 - Have mid use the third argument properly, and test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@628027 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 11:45:13 +00:00
Nick Burch 28b1858b3e To avoid confusion and repeated changes in svn, update the TestDataValidation test to output its file (that needs opening in excel to check to output) into the system tmp directory
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@627999 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 10:30:10 +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 3acc95e057 In the interests of sanity, stop having hssf test data files in scratchpad and main, go to just having them in main
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@627779 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 15:32:49 +00:00
Nick Burch 600dd45507 Another test relating to bug #42564 - this one is still failing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@620557 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 17:55:09 +00:00
Nick Burch 45473533cf Test for bug #42564 - appears to already be fixed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@620341 13f79535-47bb-0310-9956-ffa450edef68
2008-02-10 21:54:13 +00:00
Rainer Klute c3340f823b - Fixed bug 44375 - HPSF now copes with a broken dictionary in Document Summary Information stream. RuntimeExceptions that occured when trying to read bogus data are now caught. Dictionary entries up to but not including the bogus one are preserved, the rest is ignored.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@619848 13f79535-47bb-0310-9956-ffa450edef68
2008-02-08 11:55:43 +00:00
Nick Burch 9e43771b7e Add (disabled) failing testcase for bug #44375
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@619509 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 17:12:09 +00:00
Nick Burch 57d32bcc7e Handle timezones better with cell.setCellValue(Calendar), so now 20:00-03:00, 20:00+00:00 and 20:00+03:00 will all be recorded as 20:00, and not 17:00 / 20:00 / 23:00 (pass a Date not a Calendar for old behaviour) - patch from bug #38641
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@619502 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 16:53:23 +00:00
Nick Burch 1777e68b03 Patch from bug #44373 - Have HSSFDateUtil.isADateFormat support more date formats
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@619382 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 12:39:12 +00:00
Yegor Kozlov ab1c14b324 support for excel hypelrinks
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@619310 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 08:56:59 +00:00
Nick Burch 142936990c Implement hashCode and equals for HSSFFont and HSSFCellStyle
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@619001 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 14:35:05 +00:00
Ugo Cei 62f71f4958 Make TestHSSFSheet#testAutoSizeColumn not fail on a Mac just because of font size differences.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@618328 13f79535-47bb-0310-9956-ffa450edef68
2008-02-04 17:05:13 +00:00
Nick Burch ca81e5ff80 Test file with hyperlinks on many sheets, of different types
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@618235 13f79535-47bb-0310-9956-ffa450edef68
2008-02-04 11:14:49 +00:00
Yegor Kozlov 1b9d7218c5 usermodel support for excel hyperlinks
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@617834 13f79535-47bb-0310-9956-ffa450edef68
2008-02-02 17:06:14 +00:00
Nick Burch b3af87e4a6 More Hyperlink support. Doesn't end up in HSSFCell just yet, as the records are in the wrong bit of the file, so don't get associated with the sheet. All tests still passing though
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@617555 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 16:52:58 +00:00
Nick Burch 93ccde2d0e Get the Hyperlink record code so that it doesn't break any existing tests, and add in (no usermodel support yet though)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@617523 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 15:41:32 +00:00
Nick Burch dc92ea3725 Make a start on the hyperlink record support - not finished yet though, so not enabled
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@617516 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 15:20:55 +00:00
Nick Burch 219b26ac3e Patch from bug #44336 - correctly escape sheet names in formula references, including tests for this, and fixes to old tests that were expecting the un-escaped sheet names
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@617491 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 13:02:06 +00:00
Nick Burch 21b5c6d8cd Convert HSSFEventFactory to using the new HSSFRecordStream, which returns fully-formed HSSFRecords. HSSFRecordStream allows for pull-style eventusermodel processing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@617167 13f79535-47bb-0310-9956-ffa450edef68
2008-01-31 17:30:16 +00:00
Nick Burch bfd5ebe008 Mostly fix bug 42618 (really this time...) - can now open the file properly, but getCellFormula() is still playing up (bug #44306 opened for this)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@615859 13f79535-47bb-0310-9956-ffa450edef68
2008-01-28 12:18:12 +00:00
Yegor Kozlov bcfa5a7efc fix bug #44297: IntPtg must operate with unsigned short. Reading signed short results in incorrect formula calculation.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@615610 13f79535-47bb-0310-9956-ffa450edef68
2008-01-27 14:55:32 +00:00
Yegor Kozlov 6ae2ba2e85 commented failing test42618()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@615310 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 19:27:56 +00:00
Nick Burch fdcd7c3fb8 Add a test to show the bug #42618 appears to be incorrect
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@615259 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 16:33:59 +00:00
Nick Burch f57fda3af5 Don't swap AreaPtg references from relative to absolute, by correctly processing the fields. Patch from bug #44293
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@615255 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 16:15:49 +00:00
Nick Burch 022aa1ad69 Fix from bug #41726 - support signed offsets from relative areas and references
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@614211 13f79535-47bb-0310-9956-ffa450edef68
2008-01-22 14:48:51 +00:00
Yegor Kozlov 2d0c2e049d added a unit test for fixed bug 41139: Constructing HSSFWorkbook is failed,threw threw ArrayIndexOutOfBoundsException for creating UnknownRecord
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@613401 13f79535-47bb-0310-9956-ffa450edef68
2008-01-19 14:54:06 +00:00
Yegor Kozlov 2c46d2a3f7 added unit tests for closed Bug 37684: Unhandled Continue Record Error
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@613400 13f79535-47bb-0310-9956-ffa450edef68
2008-01-19 14:44:07 +00:00
Nick Burch 33602b0c80 Patch to support UncalcedRecord and usermodel code for it, to indicate formulas on a sheet need recalculating (from bug #44233)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@612445 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 13:14:31 +00:00
Nick Burch 18a4647b24 Add methods to check to see if a given InputStream has a OOXML file header, or a OLE2 file header, so that a future factory method could figure out which class to instantiate for a given InputStraeam
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@612438 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 12:46:43 +00:00
Nick Burch 32a7c6ac86 Fix bug #44201 - support cloning of DVRecord, so validation enabled sheets can be cloned
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@612152 13f79535-47bb-0310-9956-ffa450edef68
2008-01-15 16:42:44 +00:00
Nick Burch d29590b7ab Some more updates to the records->usermodel support for hssf shapes. Still not enough there to be useful to pretty much anyone, but at least there's now a framework in place that people can use if they want to support more, and some tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@612148 13f79535-47bb-0310-9956-ffa450edef68
2008-01-15 16:31:29 +00:00
Yegor Kozlov ffe9ba52c1 fixed bug 44200: Sheet not cloneable when Note added to excel cell
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610855 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 18:04:38 +00:00
Nick Burch ae4a40d8ba Make a start on processing shapes on a sheet out of a record. For now, doesn't actually manage to do this, but has much of the infrastructure that'll be needed. Includes ability to get an existing HSSFPatriarch for a sheet, if there are the required records, and for the HSSFPatriarch to be in a position to be given the shapes that make it up (but this isn't done yet)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610608 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 23:21:35 +00:00
Nick Burch cacf0c4fc3 Add several more test files, charting related
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610606 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 23:14:32 +00:00
Nick Burch e9107b8aca Further font size tweaks for autosizing test (macs are even odder...)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610496 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 18:38:44 +00:00
Nick Burch a4caea39b5 Font sizes can vary slightly between machines, so use small ranges not absolute numbers when testing column autosizing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610481 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 17:47:00 +00:00
Nick Burch 400bfacc62 Tweak comments, layout and exceptions in IOUtils and RawDataBlock. It should now be clearer exactly what they do, and when they become unhappy. Also include a test that ensures that when reading from a slow inputstream (as per bug #42834), we really are ok with the data dribbling in, and do not require it to all come in in blocksize chunks at one
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610439 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 16:31:25 +00:00
Nick Burch 1f691642c3 Fix bug #43008, by deprecating setCellNum() on HSSFCell, and adding moveCell() to HSSFRow, which correctly updates all the references
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610392 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 14:27:51 +00:00
Nick Burch 0f4d8d90ed Fix for bug #43058 - handle setting row grouping for sheets that lacked gutsrecords at that point
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610384 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 13:37:06 +00:00
Nick Burch 9726aea084 Add a xlsx sample file with boolean formulas and values in it, as none of the official samples include any booleans!
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610376 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 13:04:18 +00:00
Nick Burch dc0a0b867a Add a further test to TestHSSFRow which verifies that bug #43901 is invalid
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610340 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 11:12:16 +00:00
Nick Burch f9e5145d9c Add clone methods to DrawingRecord and AbstractEscherHolderRecord, which allows cloning of some sheets with drawing objects on them. Fixes bug #31795
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610336 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 10:59:04 +00:00
Nick Burch 9c2787efb4 Have autoSizeColumn skip over merged regions - bug #43902. Patch from Paolo
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610328 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 09:55:20 +00:00
Nick Burch c0bab46840 Shuffle some bits of TestFormulaParser into scratchpad, so it can find HSSFFormulaEvaluator
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610313 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 09:22:20 +00:00
Nick Burch 1a6f87e035 Finally fix bug #42464 - Expected ExpPtg to be converted from Shared to Non-Shared Formula - tracked down to a signed vs unsigned byte issue!
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610216 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 23:01:12 +00:00
Nick Burch 26f6e5a716 Add un-fixable testcase for bug 43493
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610097 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 19:11:22 +00:00
Nick Burch 852964d9d3 Support for unicode named named ranges (patch and test from bug #42033)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610082 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 17:49:08 +00:00
Nick Burch d6a4075aa7 Fix bug #34023 - when shifting rows, update the any formula references to those rows to point to their new location
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610072 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 17:18:38 +00:00
Nick Burch 7cd8941f43 Add a new method onto AreaReference to get all the cells referenced, not just the corners. Includes tests for this
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610048 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 16:20:48 +00:00
Nick Burch 808d3ad9eb Extend named range support in formulas to include non-contiguous named ranges
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610026 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 15:47:00 +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 a4ae0c47c7 New tests for setLandscape, which seems to indicate that the problem reported in bug #43693 is incorrect
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@609968 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 13:28:19 +00:00
Nick Burch 32e42753ab Patch from Ugo to get and set the sheet hidden flag (bug #43937)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@609942 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 11:59:26 +00:00
Nick Burch eae7142499 Fix for bug #44167 - patch from Paolo Mottadelli
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@609924 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 10:36:36 +00:00
Nick Burch 9966418b86 Fix bug #44070 - patch from Gian Carlo Pace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@609620 13f79535-47bb-0310-9956-ffa450edef68
2008-01-07 14:51:37 +00:00
Nick Burch f3177bf387 Some matching sets of sample ooxml and ole2 files, along with a plain text description
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@608826 13f79535-47bb-0310-9956-ffa450edef68
2008-01-04 13:09:57 +00:00
Nick Burch ebc731a087 Improve the javadocs for font and fill related colourings, and add another tests to check it all works as expected
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@608132 13f79535-47bb-0310-9956-ffa450edef68
2008-01-02 15:48:11 +00:00
Nick Burch 26b6528d9e Add some more sample ooxml documents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@607022 13f79535-47bb-0310-9956-ffa450edef68
2007-12-27 09:01:03 +00:00
Nick Burch 12cd0bffa1 Update the sample ooxml files to the latest versions from http://openxmldeveloper.org/articles/SampleDocsAugust2007.aspx (previous samples were from a beta)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@606920 13f79535-47bb-0310-9956-ffa450edef68
2007-12-26 16:44:14 +00:00
Yegor Kozlov d151b35bc8 fix reopen of bug 42999: incorrect AnchorHeight calculations in HSSFClientAnchor.getAnchorHeightInPoints
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@606684 13f79535-47bb-0310-9956-ffa450edef68
2007-12-24 09:48:11 +00:00
Nick Burch b1b95ddf08 Stub out sheet hiding tests, so we have a framework for when sheet hiding is supported (bug #43937)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@601288 13f79535-47bb-0310-9956-ffa450edef68
2007-12-05 10:51:20 +00:00
Nick Burch a14b55b6a8 Support 1904 date windowing, in addition to 1900 date windowing (patch from bug #43551)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@601004 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 17:06:57 +00:00
Nick Burch 9c421d2930 Updated date windowing test fixes from bug #43551
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@600999 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 17:01:08 +00:00
Nick Burch 941bba0e15 String Continue records support (with test), from bug #41064
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@600995 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 16:55:56 +00:00
Nick Burch 5163b687a4 SBAT fix from bug #11744
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@600916 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 12:55:26 +00:00
Nick Burch 40b8f50a73 Usermodel support for the datavalidation code, and tests for it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@600544 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 14:14:02 +00:00
Nick Burch b97e94bf5c More code from bug #27511, now ported to the new style record code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@600519 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 13:17:41 +00:00
Yegor Kozlov 7fec860cd8 fixed bugs 43877 and 39512: Fix for handling mixed OBJ and CONTINUE records
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@597654 13f79535-47bb-0310-9956-ffa450edef68
2007-11-23 12:52:51 +00:00
Yegor Kozlov 9c7f6307c4 Preserve unread bytes when serializing the record
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@597653 13f79535-47bb-0310-9956-ffa450edef68
2007-11-23 12:51:44 +00:00
Nick Burch eb65900774 Throw an IllegalArgumentException if asked to addMergeRegion with invalid data, rather than writing out a corrupt file (bug #43807)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@594320 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 22:24:15 +00:00
Nick Burch c1a4f1c8e8 Patch for unicode NameRecords (bug #43837)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@594316 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 22:12:03 +00:00
Nick Burch 2038b4ba5b Add support for Chart Title Format records (bug #43721)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@594307 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 21:49:37 +00:00
Nick Burch 97b7d9d758 Fix for BOFRecord from files generated by access etc (bug #42794)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@594102 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 13:13:25 +00:00
Yegor Kozlov c93e470560 fixed a silly typo in the method signature. It should be HFFSPicture.getPreferredSize(), not HFFSPicture.getPrefferedSize()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@591667 13f79535-47bb-0310-9956-ffa450edef68
2007-11-03 19:50:40 +00:00
Nick Burch 9d3658e72f Implement an Excel text extractor, and put all the existing text extractors under a common superclass, so they're easier to find and use
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@589224 13f79535-47bb-0310-9956-ffa450edef68
2007-10-27 21:57:10 +00:00
Yegor Kozlov 523c9ecabd HSSFPicture.resize() - a handy method to reset a picture to its original width and height
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@581029 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 18:07:32 +00:00
Yegor Kozlov 0ca5301ede fixed failing test. The patch provided in Bug 43489
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@579730 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 17:43:52 +00:00
Yegor Kozlov 1d53f29662 commented out a failing test until we find the reason.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@579546 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 09:55:31 +00:00
Nick Burch af0eef9988 Fix from Pavel Krupets for Excel Bug Date (1900/2/29)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@579194 13f79535-47bb-0310-9956-ffa450edef68
2007-09-25 10:52:30 +00:00
Nick Burch 4de18a877c Allow HSSFSheet to get at its parent workbook, and add HSSFWorkbook.getSheetIndex(HSSFSheet)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@578795 13f79535-47bb-0310-9956-ffa450edef68
2007-09-24 12:57:38 +00:00
Nick Burch 3365f9798b Finish the POIDocument move, and update HSSFWorkbook to use it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@577314 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 14:34:31 +00:00
Nick Burch b5dcea2afe Move POIDocument out of the scratchpad
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@577259 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 11:56:36 +00:00
Nick Burch 9c57017f5b Fix for cell references on rows > 32768 (bug #43399)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@576939 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 15:01:15 +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
Yegor Kozlov edf5dc307b fixed re-open of bug #42844. HSSFEventFactory silently skips unknown records that happen to be continued.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@575406 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 19:11:10 +00:00
Yegor Kozlov b65d864b2c fix broken compilation. removed a reference to a class from the scratchpad.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@574589 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 13:08:45 +00:00
Yegor Kozlov 177caeec53 Support for getting OLE objects from HSSFWorkbook. See bug 43222 for details.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@573878 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 16:34:10 +00:00
Yegor Kozlov f52957b77d initial support for WMF and EMF pictures in HSSFWorkbook.getAllPictures(). See Bug 43125 for details.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@569827 13f79535-47bb-0310-9956-ffa450edef68
2007-08-26 15:26:29 +00:00
Yegor Kozlov 22350f3b21 fixed: Bug 43088: Excel file can't be loaded if comments exceed a size of 4111 characters
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@569821 13f79535-47bb-0310-9956-ffa450edef68
2007-08-26 15:03:13 +00:00
Nick Burch e518cdfbbc Fix for bug #42844 - Include some of the crazy continue record handling that we have in RecordFactory into HSSFEventFactory, so that we can handle when records aren't immediately followed by their continue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@569101 13f79535-47bb-0310-9956-ffa450edef68
2007-08-23 18:20:39 +00:00
Nick Burch 490bdc3fe6 When writing out a workbook, skip a WORKBOOK stream (if there is one), since we always write out as Workbook + test (bug #43055)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@569082 13f79535-47bb-0310-9956-ffa450edef68
2007-08-23 17:40:24 +00:00
Nick Burch 1998bb30a5 Add in missing copyright headers to a couple of new testcases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@566198 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 14:41:46 +00:00
Nick Burch 3098e0474a Patch from Trejkaz from bug #43116 - Fix for Escher handling of embeded OLE2 documents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@566196 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 14:40:02 +00:00
Nick Burch 09bcbf7f97 Further enhancements to Font Metrics support, wrt fonts with bold/italic varients, such as dialog (plus tests)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@564263 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 16:27:16 +00:00
Nick Burch 03f738225f If the Escher layer is asked to draw text with an invalid font, throw a much more useful error. Plus test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@564219 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 14:27:06 +00:00
Nick Burch d03f88c96b Have HSSFDateUtil.isCellDateFormatted make use of HSSFDateUtils.isADateFormat. A few improvements to isADateFormat, and to HSSFCellStyle to allow calling of it. Plus tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@563129 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 13:38:48 +00:00
Yegor Kozlov 0171d85885 fixed Bug 42999: HSSFPatriarch positioning problem
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@562536 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 18:09:41 +00:00
Yegor Kozlov 9e320e3f37 keep the javadoc compiler quiet
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@552525 13f79535-47bb-0310-9956-ffa450edef68
2007-07-02 16:08:26 +00:00