Commit Graph

1088 Commits

Author SHA1 Message Date
Dominik Stadler 17e8880dcd Bug 54524: Fix border case in FormulaShifter
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1517676 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 20:09:19 +00:00
Nick Burch 673864cdc5 More unit tests for column conversion, and avoid the use of Math.pow based on the suggestion from github-6
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516983 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 19:00:01 +00:00
Dominik Stadler 13e08c3e92 Add testcase which tries to reproduce Bug 48495, but seems to be fixed
now.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516981 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 18:56:11 +00:00
Nick Burch 689aa10390 Add some explicit tests for column letter to/from number conversion
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516978 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 18:52:18 +00:00
Nick Burch 8b0334c701 Remove some @author tags, as per http://poi.apache.org/guidelines.html#CodeStyle
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516975 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 18:42:57 +00:00
Dominik Stadler bff0813e48 fix some Eclipse warnings, adjust some unit tests slightly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516818 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 10:44:39 +00:00
Dominik Stadler 37b7f408a3 Fix unit test for Bug 50298 some more
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516320 13f79535-47bb-0310-9956-ffa450edef68
2013-08-21 22:57:26 +00:00
Dominik Stadler f0a8bc9281 Adjust test for Bug 50298 to not leave a temporary file behind and
enhance the test with some more cases of moving/changing/removing sheet
order/names

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516314 13f79535-47bb-0310-9956-ffa450edef68
2013-08-21 22:19:58 +00:00
Dominik Stadler 1249614bc8 Bug 50298: Fix corruption of Workbook when setting sheet order. The
boundssheets themselves were adjusted, but not the corresponding
records.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516313 13f79535-47bb-0310-9956-ffa450edef68
2013-08-21 22:08:20 +00:00
Cédric Walter 72d3a7d2a3 Bug 55043: patch for missing function QUOTIENT
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1514847 13f79535-47bb-0310-9956-ffa450edef68
2013-08-16 18:54:35 +00:00
Cédric Walter 67f198e752 Bug 55082: patch for missing function ROMAN
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1514834 13f79535-47bb-0310-9956-ffa450edef68
2013-08-16 18:28:18 +00:00
Cédric Walter 7962fc2a9e Bug 55080: patch for missing function IMREAL
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1514830 13f79535-47bb-0310-9956-ffa450edef68
2013-08-16 18:13:40 +00:00
Cédric Walter aba46897dc Bug 55079: patch for missing function IMAGINARY
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1514824 13f79535-47bb-0310-9956-ffa450edef68
2013-08-16 17:59:01 +00:00
Cédric Walter a727830c61 Bug 54720: Support for Row/Col Area Range like 8:8 or H:H
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1514812 13f79535-47bb-0310-9956-ffa450edef68
2013-08-16 17:35:16 +00:00
Cédric Walter baee918c5a Bug 54723: Support for percentage in VALUE() function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1514799 13f79535-47bb-0310-9956-ffa450edef68
2013-08-16 17:15:47 +00:00
Dominik Stadler ed2e2a28bc Bug 54786: Fix missing quoting in date formatting, add a number of unit
tests which verify the new formatting options.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1514632 13f79535-47bb-0310-9956-ffa450edef68
2013-08-16 09:38:47 +00:00
Tim Allison a62fcb2fbf 55419 and refactor SimpleFraction
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1514123 13f79535-47bb-0310-9956-ffa450edef68
2013-08-15 01:46:25 +00:00
Dominik Stadler 5ce961a826 Bug 55195: use interface instead of implementation for
NumericValueEval and others.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1513247 13f79535-47bb-0310-9956-ffa450edef68
2013-08-12 20:27:08 +00:00
Dominik Stadler 4a3138f575 Bug 55380: Fix endless loop in CellRangeUtil.mergeCellRanges() by not trying to merge overlapping regions any more, the implementation is buggy and even tagged TODO - unit test missing. The code is hard to understand and bug-free-ness is better than catching all possible merges imho.
Also add many cases to the unit tests and reformat code slightly as well
as fixing some Generics-Warnings.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1513225 13f79535-47bb-0310-9956-ffa450edef68
2013-08-12 19:13:10 +00:00
Dominik Stadler d5528af80c Add more unit tests to cover more of HSSFWorkbook and HSSFSheet, check one more case of IndexOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1502661 13f79535-47bb-0310-9956-ffa450edef68
2013-07-12 19:21:12 +00:00
Dominik Stadler 5a0887c9e4 Fix build broken by previous checkin by creating a TestUnfixedBugs for ooxml as well and excluding the new test-class in test-ooxml similar to the main tests.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1498280 13f79535-47bb-0310-9956-ffa450edef68
2013-07-01 08:03:40 +00:00
Dominik Stadler 067c62168e Bug 54084: Add testcase which reproduces the bug, no fix available yet
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1498190 13f79535-47bb-0310-9956-ffa450edef68
2013-06-30 22:47:26 +00:00
Nick Burch 3046f139c7 Add a test to show that bug #53150 has been fixed by the recent fraction work
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1497084 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 20:40:26 +00:00
Nick Burch 8aca6fde15 Deprecate the old HPSF codepage Constants list, and change the code to use the new CodePageUtil class instead for their codepage work
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1497035 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 18:20:37 +00:00
Nick Burch fd9a30a8cc New parent test class, which includes the common assertContains pattern
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496695 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 00:44:35 +00:00
Nick Burch 82df889469 Add a write method to HPSFPropertiesOnlyDocument, and use this to finish the unit tests for bug #54233
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496683 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 00:18:41 +00:00
Nick Burch 40d49a54d2 Fix bug #54233 - Some HPSF documents require UnicodeStrings to be 4-byte aligned, spot these from the otherwise invalid length
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496675 13f79535-47bb-0310-9956-ffa450edef68
2013-06-25 23:49:24 +00:00
Nick Burch f7a7eeec22 Add missing license headers, and a few javadoc tweaks while working on those files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496652 13f79535-47bb-0310-9956-ffa450edef68
2013-06-25 22:04:49 +00:00
Nick Burch a7bfec9271 Fix from Florian Hopf from bug #54564 - Fix error message text
for a workbook with no sheets when a sheet operation is performed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496516 13f79535-47bb-0310-9956-ffa450edef68
2013-06-25 15:19:56 +00:00
Nick Burch dbd1a59416 Patch from Andrew Novikov from bug #53972 - Presence of PLV record shouldn't affect HSSF Data Validation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496499 13f79535-47bb-0310-9956-ffa450edef68
2013-06-25 14:48:16 +00:00
Nick Burch cb4dfced34 Patch and unit test from Tim Allen from bug #54686 - Improve how DataFormatter handles fractions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1494986 13f79535-47bb-0310-9956-ffa450edef68
2013-06-20 13:37:26 +00:00
Dominik Stadler eee1b1af23 Bug 54982: Add a close() interface to POITextExtractor which can be used to free resources later.
Implement close() where necessary so resources are closed. Add close()
to tests and run existing unit tests also against the Extractor that is
built via the Factory. Also add a small test-suite to quickly execute
all extractor-related tests.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1493669 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 07:53:59 +00:00
Nick Burch bd1214db1e Patch from Trejkaz from GitHub Pull 2 - HSSFWorkbook.getAllEmbeddedObjects() needs to recurse into container Shapes (with new unit test)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1493001 13f79535-47bb-0310-9956-ffa450edef68
2013-06-14 08:53:29 +00:00
Yegor Kozlov 2135b0741c Bug 55047: REPT formula support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1488811 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 23:39:41 +00:00
Yegor Kozlov abd5fcd939 missing tests for Bug 55041 - CODE formula support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1488810 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 23:32:24 +00:00
Yegor Kozlov 75e80b999e added missing tests for Bug 55042: patch for missing function COMPLEX
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1488809 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 23:25:33 +00:00
Yegor Kozlov 4d81d34d5d Bugzilla 55043 and 55042: initial support for Complex and Quotient functions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1488734 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 16:08:17 +00:00
Yegor Kozlov 0dfb528355 Bugzilla 55041: CODE function support, also removed @Override from interfaces to stay compatible with JDK 1.5
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1488733 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 15:58:41 +00:00
Yegor Kozlov c119f35388 Bugzilla 55037: DELTA function support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1488730 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 15:30:58 +00:00
Yegor Kozlov e5cfade841 Bugzilla 55036 - Dec2HEx formula support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1488729 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 15:13:47 +00:00
Yegor Kozlov 76fac97865 Bug 54673 - [PATCH] Simple wildcard support in HLOOKUP, VOOLKUP, MATCH, COUNTIF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1457243 13f79535-47bb-0310-9956-ffa450edef68
2013-03-16 12:33:08 +00:00
Yegor Kozlov decfde00ff Bugzilla 54469 - Support for financial functions IPMT and PPMT
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1451886 13f79535-47bb-0310-9956-ffa450edef68
2013-03-02 13:17:53 +00:00
Nick Burch 522168dda4 Fix bug #54579 - Handle milliseconds in date formats eg ss.000
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1447798 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 16:28:40 +00:00
Nick Burch 9f23a59eaa Fix bug #54557 - Don't mis-detect format patterns like .000 as dates
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1445725 13f79535-47bb-0310-9956-ffa450edef68
2013-02-13 16:45:03 +00:00
Nick Burch 8d7d3f54c0 Fix bug #54506 - Add "BOOK" to the list of unusual-but-largely-ok Workbook directory entry names list, alongside WORKBOOK, plus tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1443745 13f79535-47bb-0310-9956-ffa450edef68
2013-02-07 21:53:07 +00:00
Nick Burch 37c76d9b28 EDate function implementation from Detlef Brendle from bug #54508
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1442392 13f79535-47bb-0310-9956-ffa450edef68
2013-02-04 22:01:55 +00:00
Yegor Kozlov 3680179e47 Bugzilla 54356 - Support of statistical function SLOPE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1435633 13f79535-47bb-0310-9956-ffa450edef68
2013-01-19 18:33:34 +00:00
Nick Burch b7c061f07a Patch from Johan from bug #54402 - fix IfError with indirect references
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1431403 13f79535-47bb-0310-9956-ffa450edef68
2013-01-10 15:08:22 +00:00
Yegor Kozlov 0023138765 Bugzilla 54356: Support of statistical function INTERCEPT
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1426485 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 12:50:15 +00:00
Nick Burch 876fea8596 Patch from Johan Karlsteen for bug #53966 - Implement IfError AP function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1426382 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 03:34:18 +00:00