Commit Graph

245 Commits

Author SHA1 Message Date
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
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 beed69a11e Improve how POIFS works with directory entries, and update HWPFDocument to support reading an embeded word document
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@646870 13f79535-47bb-0310-9956-ffa450edef68
2008-04-10 16:59:10 +00:00
Nick Burch f8c6a52a2c Initial support for getting and changing chart titles and series titles
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@646854 13f79535-47bb-0310-9956-ffa450edef68
2008-04-10 15:54:02 +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 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 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 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
Josh Micich 3ecb3c4c95 more javadoc + clean-up from Dmitriy (bug 30311 att 21711)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@641157 13f79535-47bb-0310-9956-ffa450edef68
2008-03-26 05:29:08 +00:00
Josh Micich 82f40767dc Added class javadoc. Patch 30311 from Dmtriy.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@640711 13f79535-47bb-0310-9956-ffa450edef68
2008-03-25 06:18:33 +00:00
Josh Micich ba76fcf314 sort to int conversion sign extension fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@639918 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 23:47:51 +00:00
Nick Burch ce8c6149ff Tweak how you get dataformat strings out of cell styles, to be more logical, and in keeping with how we'll want to do things for xssf too
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@639836 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 21:04:47 +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
Yegor Kozlov f9d8f43779 support align=distributed in HSSFTextbox
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@637870 13f79535-47bb-0310-9956-ffa450edef68
2008-03-17 13:02:46 +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
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 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 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 c5e82b7bae Patch from Josh from bug #44508 - Fix formula evaluation with evaluateInCell on boolean formulas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@633169 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 16:55:00 +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 0677bb2cff Patch from Paolo from bug #44481 - getVerticallyCenter shouldn't take a parameter, but leave the old version in as deprecated for now
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@633114 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 15:01:18 +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 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 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 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
Nick Burch 7377714861 Add java.lang.Iterable style methods for iterating over rows and cells, but don't actually implement that, as it wasn't in jdk 1.3 or jdk 1.4, with is rather tedious
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@618680 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 15:51:29 +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 46d6231413 Tweak the javadoc so it's clearer on the overview what the getFormat method does
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@617483 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 12:13:08 +00:00
Nick Burch dee42e72c1 Add another formula evaluation method, evaluateFormulaCell(cell), which will re-calculate the value for a formula, without affecting the formula itself. Add tests too, and update the documentation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@614878 13f79535-47bb-0310-9956-ffa450edef68
2008-01-24 14:13:05 +00:00
Yegor Kozlov f6cd038ce3 add a check to prevent NPE in HSSFSheet.autoSizeColumn(). See Bug 44246
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@613396 13f79535-47bb-0310-9956-ffa450edef68
2008-01-19 14:28:10 +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 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
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 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 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 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 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 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 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
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 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 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