]> source.dussan.org Git - poi.git/log
poi.git
7 years agoRemove more deprecated code (especially from Spreadsheet Cell classes)
PJ Fanning [Fri, 30 Jun 2017 11:48:23 +0000 (11:48 +0000)]
Remove more deprecated code (especially from Spreadsheet Cell classes)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800375 13f79535-47bb-0310-9956-ffa450edef68

7 years agoremove incomplete javadocs
Javen O'Neal [Fri, 30 Jun 2017 07:48:40 +0000 (07:48 +0000)]
remove incomplete javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800361 13f79535-47bb-0310-9956-ffa450edef68

7 years agoadd @Internal annotation to methods that return a CT* class
Javen O'Neal [Fri, 30 Jun 2017 07:45:46 +0000 (07:45 +0000)]
add @Internal annotation to methods that return a CT* class
add @Override annotation where missing

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800360 13f79535-47bb-0310-9956-ffa450edef68

7 years agoExpose one more bit of style information generically (for XSSF). If someone needs...
Greg Woolsey [Thu, 29 Jun 2017 23:06:27 +0000 (23:06 +0000)]
Expose one more bit of style information generically (for XSSF).  If someone needs all these properties for HSSF charts as well, we can build a new Interface for the various bits and populate it with things like axis line width and color, etc. but for now I think most users are in the XSSF realm like me.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800341 13f79535-47bb-0310-9956-ffa450edef68

7 years agoDeprecated xssfSheetIterator has been removed, so remove javadoc reference
Nick Burch [Thu, 29 Jun 2017 14:38:41 +0000 (14:38 +0000)]
Deprecated xssfSheetIterator has been removed, so remove javadoc reference

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800288 13f79535-47bb-0310-9956-ffa450edef68

7 years agoremove temporary jenkins debug output
Andreas Beeker [Thu, 29 Jun 2017 10:49:22 +0000 (10:49 +0000)]
remove temporary jenkins debug output

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800263 13f79535-47bb-0310-9956-ffa450edef68

7 years agoremove timezoned call to Date.toString() - SignatureProperties don't necessarily...
Andreas Beeker [Thu, 29 Jun 2017 09:33:33 +0000 (09:33 +0000)]
remove timezoned call to Date.toString() - SignatureProperties don't necessarily need an Id attribute

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800257 13f79535-47bb-0310-9956-ffa450edef68

7 years agoremove deprecated org.apache.poi.hssf.record.RecordFormatException
PJ Fanning [Thu, 29 Jun 2017 09:06:30 +0000 (09:06 +0000)]
remove deprecated org.apache.poi.hssf.record.RecordFormatException

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800256 13f79535-47bb-0310-9956-ffa450edef68

7 years agoremove some unused imports
PJ Fanning [Thu, 29 Jun 2017 08:55:35 +0000 (08:55 +0000)]
remove some unused imports

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800255 13f79535-47bb-0310-9956-ffa450edef68

7 years agoremove deprecated POIXMLDocument.hasOOXMLHeader
PJ Fanning [Thu, 29 Jun 2017 08:45:00 +0000 (08:45 +0000)]
remove deprecated POIXMLDocument.hasOOXMLHeader

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800254 13f79535-47bb-0310-9956-ffa450edef68

7 years agoremove deprecated org.apache.poi.hssf.record.RecordFormatException
PJ Fanning [Thu, 29 Jun 2017 08:37:02 +0000 (08:37 +0000)]
remove deprecated org.apache.poi.hssf.record.RecordFormatException

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800249 13f79535-47bb-0310-9956-ffa450edef68

7 years agoRemove old XSSFWorkbook wb.xssfSheetIterator method
PJ Fanning [Thu, 29 Jun 2017 08:15:50 +0000 (08:15 +0000)]
Remove old XSSFWorkbook wb.xssfSheetIterator method

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800248 13f79535-47bb-0310-9956-ffa450edef68

7 years agoRemove old XSSFPaswordHelper
PJ Fanning [Thu, 29 Jun 2017 08:10:32 +0000 (08:10 +0000)]
Remove old XSSFPaswordHelper

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800247 13f79535-47bb-0310-9956-ffa450edef68

7 years agoFix javadoc warnings
Nick Burch [Wed, 28 Jun 2017 23:30:15 +0000 (23:30 +0000)]
Fix javadoc warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800214 13f79535-47bb-0310-9956-ffa450edef68

7 years agoUsed deprecated external method removed, so remove internal method
Nick Burch [Wed, 28 Jun 2017 23:29:58 +0000 (23:29 +0000)]
Used deprecated external method removed, so remove internal method

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800212 13f79535-47bb-0310-9956-ffa450edef68

7 years agoUsed deprecated external method removed, so remove internal method
Nick Burch [Wed, 28 Jun 2017 23:25:41 +0000 (23:25 +0000)]
Used deprecated external method removed, so remove internal method

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800211 13f79535-47bb-0310-9956-ffa450edef68

7 years agoadd debugging info to find signature differences
Andreas Beeker [Wed, 28 Jun 2017 23:04:25 +0000 (23:04 +0000)]
add debugging info to find signature differences

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800209 13f79535-47bb-0310-9956-ffa450edef68

7 years agoEnsure SpreadsheetVersion is set for AreaReferences
PJ Fanning [Wed, 28 Jun 2017 22:11:26 +0000 (22:11 +0000)]
Ensure SpreadsheetVersion is set for AreaReferences

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800208 13f79535-47bb-0310-9956-ffa450edef68

7 years agoBug 61182 - Invalid signature created for streamed xslx file
Andreas Beeker [Wed, 28 Jun 2017 21:38:23 +0000 (21:38 +0000)]
Bug 61182 - Invalid signature created for streamed xslx file

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800207 13f79535-47bb-0310-9956-ffa450edef68

7 years agoRemove some deprecated *SSF APIs
PJ Fanning [Wed, 28 Jun 2017 10:34:37 +0000 (10:34 +0000)]
Remove some deprecated *SSF APIs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800147 13f79535-47bb-0310-9956-ffa450edef68

7 years agoAdd import for javadocs references
Nick Burch [Sun, 25 Jun 2017 19:16:36 +0000 (19:16 +0000)]
Add import for javadocs references

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799832 13f79535-47bb-0310-9956-ffa450edef68

7 years agoexpand StaxHelper
PJ Fanning [Sat, 24 Jun 2017 13:53:47 +0000 (13:53 +0000)]
expand StaxHelper

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799772 13f79535-47bb-0310-9956-ffa450edef68

7 years agoprepare for 3.17-beta2
Andreas Beeker [Sat, 24 Jun 2017 09:27:28 +0000 (09:27 +0000)]
prepare for 3.17-beta2

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799747 13f79535-47bb-0310-9956-ffa450edef68

7 years agorollback invalid commit - r1799740
Andreas Beeker [Sat, 24 Jun 2017 09:20:02 +0000 (09:20 +0000)]
rollback invalid commit - r1799740

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799742 13f79535-47bb-0310-9956-ffa450edef68

7 years agorelease prepare for 3.17-beta1 - pin documentation
Andreas Beeker [Sat, 24 Jun 2017 09:03:00 +0000 (09:03 +0000)]
release prepare for 3.17-beta1 - pin documentation

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799740 13f79535-47bb-0310-9956-ffa450edef68

7 years agoAdd StaxHelper to ensure that StAX parsers have sensible defaults, including settings...
PJ Fanning [Sat, 24 Jun 2017 07:30:07 +0000 (07:30 +0000)]
Add StaxHelper to ensure that StAX parsers have sensible defaults, including settings to avoid XML Entity Expansion issues

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799734 13f79535-47bb-0310-9956-ffa450edef68

7 years agoAdd file that failed regression tests as a unit test.
Greg Woolsey [Sat, 24 Jun 2017 05:55:45 +0000 (05:55 +0000)]
Add file that failed regression tests as a unit test.

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

7 years ago[Bug 60422] Fix forbidden-api build issue
PJ Fanning [Sat, 24 Jun 2017 00:37:03 +0000 (00:37 +0000)]
[Bug 60422] Fix forbidden-api build issue

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799723 13f79535-47bb-0310-9956-ffa450edef68

7 years ago[Bug 60422] Tidy up test case
PJ Fanning [Sat, 24 Jun 2017 00:15:20 +0000 (00:15 +0000)]
[Bug 60422] Tidy up test case

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799722 13f79535-47bb-0310-9956-ffa450edef68

7 years agoBug 60422 add testtestcase with current LocaleUtil workaround
PJ Fanning [Fri, 23 Jun 2017 23:42:25 +0000 (23:42 +0000)]
Bug 60422 add testtestcase with current LocaleUtil workaround

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799721 13f79535-47bb-0310-9956-ffa450edef68

7 years agoMove my new unit conversions to the Units class, move and deprecate duplicate and...
Greg Woolsey [Fri, 23 Jun 2017 15:43:48 +0000 (15:43 +0000)]
Move my new unit conversions to the Units class, move and deprecate 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

7 years agoBug 61203
Greg Woolsey [Fri, 23 Jun 2017 06:17:09 +0000 (06:17 +0000)]
Bug 61203

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

7 years agoBug 61203 - XSSFDrawing.getAnchorFromParent handles CTOneCellAnchor incorrectly,...
Greg Woolsey [Fri, 23 Jun 2017 05:16:38 +0000 (05:16 +0000)]
Bug 61203 - XSSFDrawing.getAnchorFromParent handles CTOneCellAnchor 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

7 years agobug 61045 -- allow for (and log!) extra bytes in FormatRecord.
Tim Allison [Tue, 20 Jun 2017 18:11:34 +0000 (18:11 +0000)]
bug 61045 -- allow for (and log!) extra bytes in FormatRecord.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799360 13f79535-47bb-0310-9956-ffa450edef68

7 years agobug 61053 -- not a fix, but this aligns XSSFBSheetHandler's behavior with streaming...
Tim Allison [Tue, 20 Jun 2017 12:59:33 +0000 (12:59 +0000)]
bug 61053 -- not a fix, but this aligns XSSFBSheetHandler's behavior with streaming and non-streaming extractors for xlsx

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799345 13f79535-47bb-0310-9956-ffa450edef68

7 years agojavadoc
Javen O'Neal [Tue, 20 Jun 2017 09:52:43 +0000 (09:52 +0000)]
javadoc

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799332 13f79535-47bb-0310-9956-ffa450edef68

7 years ago@Ignore("requires an internet connection to a 3rd party site"
Javen O'Neal [Tue, 20 Jun 2017 09:16:05 +0000 (09:16 +0000)]
@Ignore("requires an internet connection to a 3rd party site"

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799326 13f79535-47bb-0310-9956-ffa450edef68

7 years agounit test that is not written yet should fail
Javen O'Neal [Tue, 20 Jun 2017 09:13:18 +0000 (09:13 +0000)]
unit test that is not written yet should fail

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799324 13f79535-47bb-0310-9956-ffa450edef68

7 years agosimplify unit test code with IOUtils.write to a NullOutputStream
Javen O'Neal [Tue, 20 Jun 2017 09:12:42 +0000 (09:12 +0000)]
simplify unit test code with IOUtils.write to a NullOutputStream

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799323 13f79535-47bb-0310-9956-ffa450edef68

7 years agoJavadoc fix
Nick Burch [Tue, 20 Jun 2017 09:04:02 +0000 (09:04 +0000)]
Javadoc fix

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799320 13f79535-47bb-0310-9956-ffa450edef68

7 years agobug 57919: close opened resources
Javen O'Neal [Tue, 20 Jun 2017 08:13:58 +0000 (08:13 +0000)]
bug 57919: close opened resources

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799316 13f79535-47bb-0310-9956-ffa450edef68

7 years agobug 57919: add functions to write and close a POIDocument, guaranteeing closure of...
Javen O'Neal [Tue, 20 Jun 2017 07:28:14 +0000 (07:28 +0000)]
bug 57919: add functions to write and close a POIDocument, guaranteeing closure of the output stream and document.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799308 13f79535-47bb-0310-9956-ffa450edef68

7 years agorename createXls and createXlsx helper functions: these are specifically for testing...
Javen O'Neal [Tue, 20 Jun 2017 07:05:08 +0000 (07:05 +0000)]
rename createXls and createXlsx helper functions: these are specifically for 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

7 years agobug 58113: this passes with SXSSF now
Javen O'Neal [Tue, 20 Jun 2017 07:03:13 +0000 (07:03 +0000)]
bug 58113: this passes with SXSSF now

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799306 13f79535-47bb-0310-9956-ffa450edef68

7 years agobug 56557: open test-data/spreadsheet/56557.xlsx such that the unit test test56557...
Javen O'Neal [Tue, 20 Jun 2017 06:08:38 +0000 (06:08 +0000)]
bug 56557: open test-data/spreadsheet/56557.xlsx such that the unit test 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

7 years agowhitespace
Javen O'Neal [Tue, 20 Jun 2017 05:51:48 +0000 (05:51 +0000)]
whitespace

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799303 13f79535-47bb-0310-9956-ffa450edef68

7 years agobug 52063: support 2-argument LOOKUP(lookup_value, array) function in Excel
Javen O'Neal [Tue, 20 Jun 2017 05:47:56 +0000 (05:47 +0000)]
bug 52063: support 2-argument LOOKUP(lookup_value, array) function in Excel

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799302 13f79535-47bb-0310-9956-ffa450edef68

7 years agoImprove error message if we encounter invalid/unexpected files in integration tests
Dominik Stadler [Mon, 19 Jun 2017 11:05:20 +0000 (11:05 +0000)]
Improve error message if we encounter invalid/unexpected files in integration tests
Adjust some tests slightly

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799178 13f79535-47bb-0310-9956-ffa450edef68

7 years agoNeed to do the casting differently to make the code compile with Java 6
Dominik Stadler [Sun, 18 Jun 2017 05:59:31 +0000 (05:59 +0000)]
Need to do the casting differently to make the code compile with Java 6

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799038 13f79535-47bb-0310-9956-ffa450edef68

7 years agoDon't try to clone a chart, this makes integration-tests work for a few more document...
Dominik Stadler [Sun, 18 Jun 2017 05:59:25 +0000 (05:59 +0000)]
Don't try to clone a chart, this makes integration-tests work for a few more 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

7 years agoUpdate forbidden-apis to version 2.3
Dominik Stadler [Sun, 18 Jun 2017 05:59:16 +0000 (05:59 +0000)]
Update forbidden-apis to version 2.3

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799036 13f79535-47bb-0310-9956-ffa450edef68

7 years agoFix some IntelliJ warnings
Dominik Stadler [Sun, 18 Jun 2017 05:59:11 +0000 (05:59 +0000)]
Fix some IntelliJ warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799035 13f79535-47bb-0310-9956-ffa450edef68

7 years ago#61169 - Text with Japanese characters overflows textbox
Andreas Beeker [Sat, 17 Jun 2017 00:00:49 +0000 (00:00 +0000)]
#61169 - Text with Japanese characters overflows textbox

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798986 13f79535-47bb-0310-9956-ffa450edef68

7 years agoAdd missing file for test for bug 56557
Dominik Stadler [Fri, 16 Jun 2017 13:26:50 +0000 (13:26 +0000)]
Add missing file for test for bug 56557

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798926 13f79535-47bb-0310-9956-ffa450edef68

7 years agoBug 56557: Fix handling chart sheets,
Dominik Stadler [Fri, 16 Jun 2017 11:35:31 +0000 (11:35 +0000)]
Bug 56557: Fix handling chart sheets,

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798913 13f79535-47bb-0310-9956-ffa450edef68

7 years agobug 61170: add comment why we should catch exceptions in SAXHelper
Javen O'Neal [Thu, 15 Jun 2017 05:08:24 +0000 (05:08 +0000)]
bug 61170: add comment why we should catch exceptions in SAXHelper

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798793 13f79535-47bb-0310-9956-ffa450edef68

7 years agobug 61170: add extra logging to SaxHelper.
Javen O'Neal [Thu, 15 Jun 2017 05:00:25 +0000 (05:00 +0000)]
bug 61170: add extra logging to SaxHelper.
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

7 years ago#61162 - En-/decryption support for HWPF
Andreas Beeker [Wed, 14 Jun 2017 17:21:50 +0000 (17:21 +0000)]
#61162 - En-/decryption support for HWPF
- 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

7 years agoStandardize some more common chart axis properties.
Greg Woolsey [Mon, 12 Jun 2017 05:38:41 +0000 (05:38 +0000)]
Standardize some more common chart axis properties.

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

7 years agoJavadoc has some references to unit test classes, so put the junit jars on the javado...
Nick Burch [Sat, 10 Jun 2017 15:01:14 +0000 (15:01 +0000)]
Javadoc has some references to unit test classes, so put the junit jars on the javadoc classpath

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798324 13f79535-47bb-0310-9956-ffa450edef68

7 years agoDon't report data table master cells as formula cells, since POI doesn't evaluate...
Greg Woolsey [Sat, 10 Jun 2017 01:04:40 +0000 (01:04 +0000)]
Don't report data table master cells as formula cells, since POI doesn't evaluate data table formulas.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798289 13f79535-47bb-0310-9956-ffa450edef68

7 years agoForbidden-APIs needs junit-jars
Dominik Stadler [Fri, 9 Jun 2017 12:49:58 +0000 (12:49 +0000)]
Forbidden-APIs needs junit-jars

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798204 13f79535-47bb-0310-9956-ffa450edef68

7 years agoMove one testcase with incorrect source location
Dominik Stadler [Fri, 9 Jun 2017 12:49:01 +0000 (12:49 +0000)]
Move one testcase with incorrect source location
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

7 years agoBug 60374: Add test for ArrayIndexOutOfBounds on old Word Documents due to Non-Unicode
Dominik Stadler [Fri, 9 Jun 2017 12:47:03 +0000 (12:47 +0000)]
Bug 60374: Add test for ArrayIndexOutOfBounds on old Word Documents due to Non-Unicode

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798200 13f79535-47bb-0310-9956-ffa450edef68

7 years agoUpdate the CreateTable example to reduce the use of the raw CT classes
Nick Burch [Wed, 7 Jun 2017 13:35:20 +0000 (13:35 +0000)]
Update the CreateTable example to reduce the use of the raw CT classes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797923 13f79535-47bb-0310-9956-ffa450edef68

7 years agoPermit table style modifications, needed for CreateTable
Nick Burch [Wed, 7 Jun 2017 13:33:58 +0000 (13:33 +0000)]
Permit table style modifications, needed for CreateTable

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797922 13f79535-47bb-0310-9956-ffa450edef68

7 years agoMake it possible to create simple XSSF sheet tables without needing CT classes directly
Nick Burch [Wed, 7 Jun 2017 13:06:38 +0000 (13:06 +0000)]
Make it possible to create simple XSSF sheet tables without needing CT classes directly

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797919 13f79535-47bb-0310-9956-ffa450edef68

7 years agoXSSFTable should format numeric/date cells when used as Column Header names as Excel...
Nick Burch [Wed, 7 Jun 2017 12:39:41 +0000 (12:39 +0000)]
XSSFTable should format numeric/date cells when used as Column Header names 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

7 years agoIgnore JCE restriction errors
Andreas Beeker [Wed, 7 Jun 2017 06:25:56 +0000 (06:25 +0000)]
Ignore JCE restriction errors

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797856 13f79535-47bb-0310-9956-ffa450edef68

7 years agoHandle encrypted files with known password in integration tests
Andreas Beeker [Tue, 6 Jun 2017 22:21:46 +0000 (22:21 +0000)]
Handle encrypted files with known password in integration tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797839 13f79535-47bb-0310-9956-ffa450edef68

7 years agoReplace HWPFOutputStream with ByteArrayOutputStream - it doesn't add any new features
Andreas Beeker [Tue, 6 Jun 2017 22:21:40 +0000 (22:21 +0000)]
Replace HWPFOutputStream with ByteArrayOutputStream - it doesn't add any new features

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797838 13f79535-47bb-0310-9956-ffa450edef68

7 years ago#61162 - En-/decryption support for HWPF
Andreas Beeker [Tue, 6 Jun 2017 22:21:11 +0000 (22:21 +0000)]
#61162 - En-/decryption support for HWPF
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

7 years agobug 58325, github-57: Set svn props. This closes #57 on github.
Javen O'Neal [Sun, 4 Jun 2017 19:01:51 +0000 (19:01 +0000)]
bug 58325, github-57: Set svn props. This closes #57 on github.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797602 13f79535-47bb-0310-9956-ffa450edef68

7 years agobug 58325: enable TestXSSFShape unit tests. Thanks to Dominik Stadler for the initial...
Javen O'Neal [Sun, 4 Jun 2017 18:59:18 +0000 (18:59 +0000)]
bug 58325: enable TestXSSFShape unit tests. Thanks to Dominik Stadler for 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

7 years agofix eclipse resource leak warnings
Andreas Beeker [Wed, 31 May 2017 14:10:18 +0000 (14:10 +0000)]
fix eclipse resource leak warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797043 13f79535-47bb-0310-9956-ffa450edef68

7 years agojavadocs
Javen O'Neal [Wed, 31 May 2017 02:46:24 +0000 (02:46 +0000)]
javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796966 13f79535-47bb-0310-9956-ffa450edef68

7 years agoSonarQube fixes - close resources
Andreas Beeker [Wed, 31 May 2017 00:31:53 +0000 (00:31 +0000)]
SonarQube fixes - close resources

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796962 13f79535-47bb-0310-9956-ffa450edef68

7 years ago#61085 support table styles
Greg Woolsey [Wed, 31 May 2017 00:22:58 +0000 (00:22 +0000)]
#61085 support table styles

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

7 years agoincrease heap size for ooxml compilation again, because of failing (gradle?) builds
Andreas Beeker [Tue, 30 May 2017 13:57:42 +0000 (13:57 +0000)]
increase heap size for ooxml compilation again, because of failing (gradle?) builds

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796868 13f79535-47bb-0310-9956-ffa450edef68

7 years agoAdd logging for gradle->ant->javac OOM
Andreas Beeker [Tue, 30 May 2017 13:33:07 +0000 (13:33 +0000)]
Add logging for gradle->ant->javac OOM

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796862 13f79535-47bb-0310-9956-ffa450edef68

7 years agoignore <project root>/tmp directory
Andreas Beeker [Tue, 30 May 2017 09:52:10 +0000 (09:52 +0000)]
ignore <project root>/tmp directory

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796825 13f79535-47bb-0310-9956-ffa450edef68

7 years agoBug 61119 - Fix preset shape rendering and shading
Andreas Beeker [Tue, 30 May 2017 09:33:28 +0000 (09:33 +0000)]
Bug 61119 - Fix preset shape rendering and shading

- 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

7 years agobug 61059: fix NamePtg to read unsigned shorts instead of signed shorts, avoiding...
Javen O'Neal [Sun, 28 May 2017 01:17:16 +0000 (01:17 +0000)]
bug 61059: fix NamePtg to read unsigned shorts instead of signed shorts, 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

7 years agoBug 60898 - XSSFColor's getARGB() method returns a wrong color value when a workbook...
Greg Woolsey [Fri, 26 May 2017 23:37:04 +0000 (23:37 +0000)]
Bug 60898 - XSSFColor's getARGB() method returns a wrong color value when a 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

7 years agoBug 60898 - XSSFColor's getARGB() method returns a wrong color value when a workbook...
Greg Woolsey [Fri, 26 May 2017 23:14:48 +0000 (23:14 +0000)]
Bug 60898 - XSSFColor's getARGB() method returns a wrong color value when a 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

7 years agoAdd jmh to Sonar-Maven build as well, add comment why we need to stick to 1.15 for now
Dominik Stadler [Wed, 24 May 2017 10:07:32 +0000 (10:07 +0000)]
Add jmh to Sonar-Maven build as well, add comment why we need to stick to 1.15 for now

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796035 13f79535-47bb-0310-9956-ffa450edef68

7 years agoBug 61063: Add a RefListEval to handle UnionPtg and implement it for Rank(), may...
Dominik Stadler [Tue, 23 May 2017 21:13:02 +0000 (21:13 +0000)]
Bug 61063: Add a RefListEval to handle UnionPtg and implement it for Rank(), 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

7 years agoReformat code somewhat
Dominik Stadler [Tue, 23 May 2017 21:12:50 +0000 (21:12 +0000)]
Reformat code somewhat

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795962 13f79535-47bb-0310-9956-ffa450edef68

7 years agogithub-55: document that CellReference#isRowWithinRange(String rowNum, SpreadsheetVer...
Javen O'Neal [Sat, 20 May 2017 21:04:14 +0000 (21:04 +0000)]
github-55: document that CellReference#isRowWithinRange(String rowNum, 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

7 years agobug 61110: remove deprecated, misspelled CellReference#isRowWithnRange and #isColumnW...
Javen O'Neal [Sat, 20 May 2017 20:22:24 +0000 (20:22 +0000)]
bug 61110: remove deprecated, misspelled CellReference#isRowWithnRange and #isColumnWithnRange methods

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795680 13f79535-47bb-0310-9956-ffa450edef68

7 years agoIncrease memory for xmlbean generation, because of failing gump builds.
Andreas Beeker [Sat, 20 May 2017 15:11:58 +0000 (15:11 +0000)]
Increase memory for xmlbean generation, because of failing gump builds.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795661 13f79535-47bb-0310-9956-ffa450edef68

7 years ago#61085 support table styles
Greg Woolsey [Sat, 20 May 2017 04:05:32 +0000 (04:05 +0000)]
#61085 support table styles

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

7 years agoadd the new test dependency so tests can run from Eclipse (required for running local...
Greg Woolsey [Sat, 20 May 2017 04:01:52 +0000 (04:01 +0000)]
add the new test dependency so tests can run from Eclipse (required for running local builds in Eclipse)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795647 13f79535-47bb-0310-9956-ffa450edef68

7 years agogithub-55: NumberFormatException if XSSFName.setNameName is set with a long name...
Javen O'Neal [Fri, 19 May 2017 08:26:41 +0000 (08:26 +0000)]
github-55: NumberFormatException if XSSFName.setNameName is set with a long 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

7 years agoreplace "String.indexOf(String) >= 1" with "String.contains(String)"
Javen O'Neal [Tue, 16 May 2017 10:53:15 +0000 (10:53 +0000)]
replace "String.indexOf(String) >= 1" with "String.contains(String)"

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795296 13f79535-47bb-0310-9956-ffa450edef68

7 years agogithub-25: add enable locking and tab color in SXSSFSheet. Thanks to Danilo Rangel...
Javen O'Neal [Tue, 16 May 2017 08:38:58 +0000 (08:38 +0000)]
github-25: add enable locking and tab color in SXSSFSheet. Thanks to Danilo 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

7 years agogithub-32: speed up Irr() Excel formula computation by replacing Math.pow() with...
Javen O'Neal [Tue, 16 May 2017 03:18:17 +0000 (03:18 +0000)]
github-32: speed up Irr() Excel formula computation by replacing Math.pow() 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

7 years agogithub-43: add disabled unit test showing a problem with ROUNDUP(3987*0.2, 2). Thanks...
Javen O'Neal [Tue, 16 May 2017 03:04:12 +0000 (03:04 +0000)]
github-43: add disabled unit test showing a problem with ROUNDUP(3987*0.2, 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

7 years agoJavadoc fixes
Nick Burch [Tue, 16 May 2017 02:50:35 +0000 (02:50 +0000)]
Javadoc fixes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795261 13f79535-47bb-0310-9956-ffa450edef68

7 years agogithub-52: add ExcelToHtmlConverter method that works on InputStreams. Thanks to...
Javen O'Neal [Tue, 16 May 2017 00:58:01 +0000 (00:58 +0000)]
github-52: add ExcelToHtmlConverter method that works on InputStreams. 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