aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* #61162 - En-/decryption support for HWPFAndreas Beeker2017-06-1415-541/+738
| | | | | | | | - encryption support for HWPF - refactor/unify EncryptionInfo handling in H**F classes - remove Iterable interface from WorkbookRecordList - use getRecords() instead, to prevent modifications over the Iterator git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798722 13f79535-47bb-0310-9956-ffa450edef68
* Standardize some more common chart axis properties.Greg Woolsey2017-06-128-18/+257
| | | | | | Implement the ChartAxis ss interface for date axes, which are pretty much a category axis with one extra property, a date granularity (not currently passed through, get it still from the CT* class). Created the class and test from the category axis versions. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798414 13f79535-47bb-0310-9956-ffa450edef68
* Don't report data table master cells as formula cells, since POI doesn't ↵Greg Woolsey2017-06-101-2/+17
| | | | | | evaluate data table formulas. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798289 13f79535-47bb-0310-9956-ffa450edef68
* Move one testcase with incorrect source locationDominik Stadler2017-06-098-180/+155
| | | | | | | | remove some junit dependencies in example-code build: do not pass junit-jar to normal compile targets to avoid introducing it as dependency again Reformat code, fix warnings, ... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798202 13f79535-47bb-0310-9956-ffa450edef68
* Bug 60374: Add test for ArrayIndexOutOfBounds on old Word Documents due to ↵Dominik Stadler2017-06-092-4/+21
| | | | | | Non-Unicode git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798200 13f79535-47bb-0310-9956-ffa450edef68
* Update the CreateTable example to reduce the use of the raw CT classesNick Burch2017-06-074-29/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797923 13f79535-47bb-0310-9956-ffa450edef68
* Permit table style modifications, needed for CreateTableNick Burch2017-06-071-7/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797922 13f79535-47bb-0310-9956-ffa450edef68
* Make it possible to create simple XSSF sheet tables without needing CT ↵Nick Burch2017-06-072-28/+80
| | | | | | classes directly git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797919 13f79535-47bb-0310-9956-ffa450edef68
* XSSFTable should format numeric/date cells when used as Column Header names ↵Nick Burch2017-06-072-2/+100
| | | | | | as Excel does, see https://stackoverflow.com/questions/44407111/apache-poi-cant-format-filled-cells-as-numeric git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797914 13f79535-47bb-0310-9956-ffa450edef68
* Ignore JCE restriction errorsAndreas Beeker2017-06-072-5/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797856 13f79535-47bb-0310-9956-ffa450edef68
* Handle encrypted files with known password in integration testsAndreas Beeker2017-06-067-37/+140
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797839 13f79535-47bb-0310-9956-ffa450edef68
* Replace HWPFOutputStream with ByteArrayOutputStream - it doesn't add any new ↵Andreas Beeker2017-06-0627-225/+156
| | | | | | features git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797838 13f79535-47bb-0310-9956-ffa450edef68
* #61162 - En-/decryption support for HWPFAndreas Beeker2017-06-067-221/+399
| | | | | | Decryption for Binary RC4 and CryptoAPI (... XOR is missing) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797837 13f79535-47bb-0310-9956-ffa450edef68
* bug 58325: enable TestXSSFShape unit tests. Thanks to Dominik Stadler for ↵Javen O'Neal2017-06-042-38/+69
| | | | | | the initial unit test. Thanks to PJ Fanning for discovering that the bug was fixed at some point in the past and enabling the unit tests. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797600 13f79535-47bb-0310-9956-ffa450edef68
* fix eclipse resource leak warningsAndreas Beeker2017-05-3128-557/+614
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797043 13f79535-47bb-0310-9956-ffa450edef68
* javadocsJaven O'Neal2017-05-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796966 13f79535-47bb-0310-9956-ffa450edef68
* SonarQube fixes - close resourcesAndreas Beeker2017-05-3121-662/+689
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796962 13f79535-47bb-0310-9956-ffa450edef68
* #61085 support table stylesGreg Woolsey2017-05-313-45/+288
| | | | | | Needed a bit more, to support table/range only border properties for "internal" vertical and horizontal borders. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796961 13f79535-47bb-0310-9956-ffa450edef68
* Bug 61119 - Fix preset shape rendering and shadingAndreas Beeker2017-05-3043-21355/+20476
| | | | | | | | | - Fixed conversion of ooxml to awt angle - replace subclasses and reflection calls with enums - implemented tinting/shading of preset shapes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796823 13f79535-47bb-0310-9956-ffa450edef68
* bug 61059: fix NamePtg to read unsigned shorts instead of signed shorts, ↵Javen O'Neal2017-05-281-1/+1
| | | | | | avoiding a AIOOBE when a workbook contains more than 32k Names. Thanks to Travis Burtrum for the patch. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796466 13f79535-47bb-0310-9956-ffa450edef68
* Bug 60898 - XSSFColor's getARGB() method returns a wrong color value when a ↵Greg Woolsey2017-05-261-1/+1
| | | | | | | | | | workbook has a custom indexed color Missed this test. As part of the work I noticed the Enum was missing some values defined in the OOXML spec, so I added them. I've updated the test to reflect that those values are no longer invalid. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796360 13f79535-47bb-0310-9956-ffa450edef68
* Bug 60898 - XSSFColor's getARGB() method returns a wrong color value when a ↵Greg Woolsey2017-05-2628-130/+426
| | | | | | | | | | | | | | workbook has a custom indexed color teach XSSFColor and most things that create instances about indexed colors. Null is a valid value for IndexedColorMap instances - the existing built-in default colors are used. Whenever a workbook style is accessible in the call hierarchy its color mappings are passed down now. Thanks for the unit test in the issue, it now passes. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796359 13f79535-47bb-0310-9956-ffa450edef68
* Bug 61063: Add a RefListEval to handle UnionPtg and implement it for Rank(), ↵Dominik Stadler2017-05-237-88/+140
| | | | | | may be missing for other functions where ArrayEval is currently handled git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795963 13f79535-47bb-0310-9956-ffa450edef68
* Reformat code somewhatDominik Stadler2017-05-231-223/+217
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795962 13f79535-47bb-0310-9956-ffa450edef68
* github-55: document that CellReference#isRowWithinRange(String rowNum, ↵Javen O'Neal2017-05-202-1/+36
| | | | | | SpreadsheetVersion ss) expects rowNum to be parseable as an integer git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795681 13f79535-47bb-0310-9956-ffa450edef68
* bug 61110: remove deprecated, misspelled CellReference#isRowWithnRange and ↵Javen O'Neal2017-05-201-16/+0
| | | | | | #isColumnWithnRange methods git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795680 13f79535-47bb-0310-9956-ffa450edef68
* #61085 support table stylesGreg Woolsey2017-05-2012-36/+541
| | | | | | | | Added more features - this allows a client app to fully display table styling without resorting to CT* classes, and has some helper logic for the additional processing needed for things like regional/area borders. As far as I can tell I only added stuff, didn't change any existing behavior. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795648 13f79535-47bb-0310-9956-ffa450edef68
* github-55: NumberFormatException if XSSFName.setNameName is set with a long ↵Javen O'Neal2017-05-192-6/+37
| | | | | | | | | name that looks similar to a cell address. Thanks to Thomas S @Millie4Ever This closes #55 on github. https://github.com/apache/poi/pull/55 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795595 13f79535-47bb-0310-9956-ffa450edef68
* replace "String.indexOf(String) >= 1" with "String.contains(String)"Javen O'Neal2017-05-1614-59/+53
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795296 13f79535-47bb-0310-9956-ffa450edef68
* github-25: add enable locking and tab color in SXSSFSheet. Thanks to Danilo ↵Javen O'Neal2017-05-161-0/+181
| | | | | | | | Rangel. This closes #25. https://github.com/apache/poi/pull/25 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795277 13f79535-47bb-0310-9956-ffa450edef68
* github-32: speed up Irr() Excel formula computation by replacing Math.pow() ↵Javen O'Neal2017-05-161-9/+10
| | | | | | | | with multiplication. Thanks to Daniel Kuan! This closes #32. https://github.com/apache/poi/pull/32 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795266 13f79535-47bb-0310-9956-ffa450edef68
* github-43: add disabled unit test showing a problem with ROUNDUP(3987*0.2, ↵Javen O'Neal2017-05-162-20/+67
| | | | | | | | 2). Thanks to @FishMeat. https://github.com/apache/poi/pull/43 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795265 13f79535-47bb-0310-9956-ffa450edef68
* Javadoc fixesNick Burch2017-05-162-6/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795261 13f79535-47bb-0310-9956-ffa450edef68
* github-52: add ExcelToHtmlConverter method that works on InputStreams. ↵Javen O'Neal2017-05-161-2/+39
| | | | | | | | Thanks to Tony Zeng! This closes #52. https://github.com/apache/poi/pull/52 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795256 13f79535-47bb-0310-9956-ffa450edef68
* github-53: fix NPE when iterating over paragraphs in certain *.docx files. ↵Javen O'Neal2017-05-161-7/+23
| | | | | | | | Thanks to Praful Kumar Vaishnav! This closes #53. https://github.com/apache/poi/pull/53 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795254 13f79535-47bb-0310-9956-ffa450edef68
* github-54: when adding a picture to an XSSFWorkbook, reduce memory ↵Javen O'Neal2017-05-158-108/+248
| | | | | | | | consumption by 100x and increase speed by 10x based on OpenJDK JMH benchmarking. Thanks to Tim Helmstedt! This closes #54. https://github.com/apache/poi/pull/54 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795252 13f79535-47bb-0310-9956-ffa450edef68
* Add ASL header and exclude table preset from rat-checkAndreas Beeker2017-05-159-0/+153
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795137 13f79535-47bb-0310-9956-ffa450edef68
* #52117 - Invalid "last printed" summary field value - added helper method to ↵Andreas Beeker2017-05-1417-622/+485
| | | | | | | | | | identify undefined dates HPSF: fixed uid listing in Section.toString() HPSF: moved timestamp based "utility" methods to Filetime class HPSF: preserve original datastream for unchanged property sets git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795123 13f79535-47bb-0310-9956-ffa450edef68
* tweak to use platform line separator so tests can pass on Windows as well as ↵Greg Woolsey2017-05-121-1/+3
| | | | | | Linux. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795026 13f79535-47bb-0310-9956-ffa450edef68
* git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795002 ↵Greg Woolsey2017-05-1214-4/+18913
| | | | 13f79535-47bb-0310-9956-ffa450edef68
* Simplify the ValueEval.toString() implementations and include more ↵Dominik Stadler2017-05-127-41/+28
| | | | | | information on unexpected types of ValueEval git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1794956 13f79535-47bb-0310-9956-ffa450edef68
* Bug 60352: Text extraction: Don't include the text "null" for empty cellsDominik Stadler2017-05-072-14/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1794260 13f79535-47bb-0310-9956-ffa450edef68
* 60184 - invalid OOXML produced when XSSFFont.getFamily() called with no ↵Greg Woolsey2017-05-051-1/+1
| | | | | | | | | | families defined Fix to stop creating an empty family when none exist, just use the existing logic to return NOT_APPLICABLE. Creating the empty element produces XML that doesn't comply with the XSD. Alternative would have been to set the family int value for the new family, but this way checking the value doesn't change the output, which is my preferred behavior. No quantum effects! git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1794111 13f79535-47bb-0310-9956-ffa450edef68
* forgot license (as always)Greg Woolsey2017-05-051-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1794093 13f79535-47bb-0310-9956-ffa450edef68
* 61060 - teach DataFormatter about conditional formatting rules with number ↵Greg Woolsey2017-05-058-20/+280
| | | | | | | | formats Currently only implemented for XSSF, as there is no API available for HSSF conditional formatting rule number formats (if it is even in the files). git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1794084 13f79535-47bb-0310-9956-ffa450edef68
* test integration fixAndreas Beeker2017-05-041-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793733 13f79535-47bb-0310-9956-ffa450edef68
* SonarQube fixesAndreas Beeker2017-05-036-26/+38
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793727 13f79535-47bb-0310-9956-ffa450edef68
* HPSF: Change CustomProperties to delegateAndreas Beeker2017-05-033-125/+155
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793699 13f79535-47bb-0310-9956-ffa450edef68
* Remove Unicode chars in commentsAndreas Beeker2017-05-032-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793647 13f79535-47bb-0310-9956-ffa450edef68
* fix javadocsAndreas Beeker2017-05-031-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793604 13f79535-47bb-0310-9956-ffa450edef68