summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* rollback invalid commit - r1799740Andreas Beeker2017-06-247-250/+284
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799742 13f79535-47bb-0310-9956-ffa450edef68
* release prepare for 3.17-beta1 - pin documentationAndreas Beeker2017-06-247-284/+250
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799740 13f79535-47bb-0310-9956-ffa450edef68
* Add StaxHelper to ensure that StAX parsers have sensible defaults, including ↵PJ Fanning2017-06-244-4/+60
| | | | | | settings to avoid XML Entity Expansion issues git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799734 13f79535-47bb-0310-9956-ffa450edef68
* Add file that failed regression tests as a unit test.Greg Woolsey2017-06-243-7/+49
| | | | | | | Adjust table style processing to allow for AlternateContent wrappers for table element style definitions. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799733 13f79535-47bb-0310-9956-ffa450edef68
* [Bug 60422] Fix forbidden-api build issuePJ Fanning2017-06-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799723 13f79535-47bb-0310-9956-ffa450edef68
* [Bug 60422] Tidy up test casePJ Fanning2017-06-241-4/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799722 13f79535-47bb-0310-9956-ffa450edef68
* Bug 60422 add testtestcase with current LocaleUtil workaroundPJ Fanning2017-06-231-0/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799721 13f79535-47bb-0310-9956-ffa450edef68
* Move my new unit conversions to the Units class, move and deprecate ↵Greg Woolsey2017-06-237-86/+87
| | | | | | duplicate and scattered unit constants, update constant references to standardize on the ones in the Units class. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799683 13f79535-47bb-0310-9956-ffa450edef68
* Bug 61203 Greg Woolsey2017-06-231-0/+16
| | | | | | one of these days I'll add the copyright to my project templates. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799645 13f79535-47bb-0310-9956-ffa450edef68
* Bug 61203 - XSSFDrawing.getAnchorFromParent handles CTOneCellAnchor ↵Greg Woolsey2017-06-235-53/+327
| | | | | | | | | | | | | | | | | | | | | | | | | incorrectly, ignores CTAbsoluteAnchor This is likely incomplete, but closer to where things should be. It is backward compatible with previous uses of XSSFClientAnchor. This fixes a bug in XSSFGraphicFrame that was hiding the parent class anchor property (which is a protected field set directly from XSSFDrawing). This is a peril of using direct property access - the hiding wasn't obvious because there was no setter being overridden. XSSFGraphicFrame now notices when it relates to a chart, and setts the frame property of the XSSFChart. That was not being set on parse previously, only when creating charts from scratch. That didn't seem right. XSSFClientAnchor now calculates size and position correctly based on initial inputs from the different types of anchors. It DOES NOT update those initial inputs, however. It does properly adjust if the size or initial position are absolute and the corresponding row/column values are requested. Added new class EMUUtils to centralize the measurement constants and conversions since there are so many units in play in the OOXML spec and POI APIs: * EMUs (English Metric Units) * Inches * Centimeters * Points * Pixels * Twips (1/20th of a point) I'm sure there are more conversions that could be done there, I just started with what I needed. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799643 13f79535-47bb-0310-9956-ffa450edef68
* bug 61045 -- allow for (and log!) extra bytes in FormatRecord.Tim Allison2017-06-203-4/+80
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799360 13f79535-47bb-0310-9956-ffa450edef68
* bug 61053 -- not a fix, but this aligns XSSFBSheetHandler's behavior with ↵Tim Allison2017-06-201-0/+9
| | | | | | streaming and non-streaming extractors for xlsx git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799345 13f79535-47bb-0310-9956-ffa450edef68
* javadocJaven O'Neal2017-06-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799332 13f79535-47bb-0310-9956-ffa450edef68
* @Ignore("requires an internet connection to a 3rd party site"Javen O'Neal2017-06-201-1/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799326 13f79535-47bb-0310-9956-ffa450edef68
* unit test that is not written yet should failJaven O'Neal2017-06-201-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799324 13f79535-47bb-0310-9956-ffa450edef68
* simplify unit test code with IOUtils.write to a NullOutputStreamJaven O'Neal2017-06-201-7/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799323 13f79535-47bb-0310-9956-ffa450edef68
* Javadoc fixNick Burch2017-06-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799320 13f79535-47bb-0310-9956-ffa450edef68
* bug 57919: close opened resourcesJaven O'Neal2017-06-202-8/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799316 13f79535-47bb-0310-9956-ffa450edef68
* bug 57919: add functions to write and close a POIDocument, guaranteeing ↵Javen O'Neal2017-06-201-0/+78
| | | | | | closure of the output stream and document. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799308 13f79535-47bb-0310-9956-ffa450edef68
* rename createXls and createXlsx helper functions: these are specifically for ↵Javen O'Neal2017-06-201-32/+18
| | | | | | | | testing text rotation. Made the file creation compatible on Windows and Mac/Linux using POI TempFile instead of a hard-coded filename. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799307 13f79535-47bb-0310-9956-ffa450edef68
* bug 58113: this passes with SXSSF nowJaven O'Neal2017-06-201-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799306 13f79535-47bb-0310-9956-ffa450edef68
* bug 56557: open test-data/spreadsheet/56557.xlsx such that the unit test ↵Javen O'Neal2017-06-201-8/+2
| | | | | | | | | | | | test56557() does not leave a modified file on disk after running. I verified that > Workbook wb = XSSFTestDataSamples.openSampleWorkbook("56557.xlsx") and > Workbook wb = WorkbookFactory.create(XSSFTestDataSamples.getSampleFile("56557.xlsx"), password=null, readOnly=false); both fail when the fix from r1798913 for SXSSFWorkbook is not applied and both pass when the fix is applied. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799304 13f79535-47bb-0310-9956-ffa450edef68
* whitespaceJaven O'Neal2017-06-202-72/+72
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799303 13f79535-47bb-0310-9956-ffa450edef68
* bug 52063: support 2-argument LOOKUP(lookup_value, array) function in ExcelJaven O'Neal2017-06-202-5/+91
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799302 13f79535-47bb-0310-9956-ffa450edef68
* Improve error message if we encounter invalid/unexpected files in ↵Dominik Stadler2017-06-193-14/+21
| | | | | | | | integration tests Adjust some tests slightly git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799178 13f79535-47bb-0310-9956-ffa450edef68
* Need to do the casting differently to make the code compile with Java 6Dominik Stadler2017-06-181-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799038 13f79535-47bb-0310-9956-ffa450edef68
* Don't try to clone a chart, this makes integration-tests work for a few more ↵Dominik Stadler2017-06-183-8/+9
| | | | | | documents, also the one added via bug 56557 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799037 13f79535-47bb-0310-9956-ffa450edef68
* Fix some IntelliJ warningsDominik Stadler2017-06-185-10/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799035 13f79535-47bb-0310-9956-ffa450edef68
* #61169 - Text with Japanese characters overflows textbox Andreas Beeker2017-06-175-38/+101
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798986 13f79535-47bb-0310-9956-ffa450edef68
* Bug 56557: Fix handling chart sheets,Dominik Stadler2017-06-162-1/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798913 13f79535-47bb-0310-9956-ffa450edef68
* bug 61170: add comment why we should catch exceptions in SAXHelperJaven O'Neal2017-06-151-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798793 13f79535-47bb-0310-9956-ffa450edef68
* bug 61170: add extra logging to SaxHelper.Javen O'Neal2017-06-151-3/+14
| | | | | | | Thanks to PJ Fanning for the patch! This closes #58 on github. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798792 13f79535-47bb-0310-9956-ffa450edef68
* #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