]> source.dussan.org Git - poi.git/log
poi.git
7 years agoInconsistent whitespace
Nick Burch [Tue, 25 Oct 2016 09:35:28 +0000 (09:35 +0000)]
Inconsistent whitespace

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

7 years agoRefactor child pointer logic to the factory
Nick Burch [Tue, 25 Oct 2016 09:33:37 +0000 (09:33 +0000)]
Refactor child pointer logic to the factory

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

7 years agoWork in progress - v5 pointer containers
Nick Burch [Tue, 25 Oct 2016 09:15:02 +0000 (09:15 +0000)]
Work in progress - v5 pointer containers

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

7 years agoPartial Visio v5 pointer support
Nick Burch [Tue, 25 Oct 2016 07:37:00 +0000 (07:37 +0000)]
Partial Visio v5 pointer support

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

7 years agoTest visio v5 file from senthil from TIKA-1658
Nick Burch [Tue, 25 Oct 2016 07:14:09 +0000 (07:14 +0000)]
Test visio v5 file from senthil from TIKA-1658

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

7 years agoAdds an example for building headers and footers in XWPF
Mark Murphy [Mon, 24 Oct 2016 23:56:21 +0000 (23:56 +0000)]
Adds an example for building headers and footers in XWPF

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

7 years agoAllow more time for a unit-test when running on slow Gump VM
Dominik Stadler [Mon, 24 Oct 2016 12:07:15 +0000 (12:07 +0000)]
Allow more time for a unit-test when running on slow Gump VM

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

7 years agoBug 60294 - Add "unknown" ShapeType for 4095
Andreas Beeker [Sat, 22 Oct 2016 19:34:47 +0000 (19:34 +0000)]
Bug 60294 - Add "unknown" ShapeType for 4095

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

7 years agoBug 60289: Fix handling of unicode escapes with lowercase hex-chars
Dominik Stadler [Fri, 21 Oct 2016 16:31:51 +0000 (16:31 +0000)]
Bug 60289: Fix handling of unicode escapes with lowercase hex-chars

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

7 years agoCorrectly handle all types of old files, not just word
Dominik Stadler [Fri, 21 Oct 2016 16:31:43 +0000 (16:31 +0000)]
Correctly handle all types of old files, not just word

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

7 years agoFix some IDE warnings, JavaDoc, ...
Dominik Stadler [Fri, 21 Oct 2016 16:31:37 +0000 (16:31 +0000)]
Fix some IDE warnings, JavaDoc, ...

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

7 years agobug 60288: remove defensive copy for internal relationships. Patch from Tim Helmstedt...
Javen O'Neal [Fri, 21 Oct 2016 07:29:40 +0000 (07:29 +0000)]
bug 60288: remove defensive copy for internal relationships. Patch from Tim Helmstedt. This closes #38.

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

8 years agofix integration-tests
Andreas Beeker [Thu, 20 Oct 2016 22:31:50 +0000 (22:31 +0000)]
fix integration-tests

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

8 years agoExclude new BIFF5 file in some unit tests
Dominik Stadler [Thu, 20 Oct 2016 20:31:57 +0000 (20:31 +0000)]
Exclude new BIFF5 file in some unit tests

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

8 years agoAdd some missing close() calls
Dominik Stadler [Thu, 20 Oct 2016 20:31:50 +0000 (20:31 +0000)]
Add some missing close() calls

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

8 years agoBUG-60286 avoid NPE XWPFRun. Didn't add unit test or document...didn't seem to be...
Tim Allison [Thu, 20 Oct 2016 18:58:47 +0000 (18:58 +0000)]
BUG-60286 avoid NPE XWPFRun.  Didn't add unit test or document...didn't seem to be worth it.

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

8 years agoBUG-60285 avoid NPE if missing relationship id
Tim Allison [Thu, 20 Oct 2016 18:45:03 +0000 (18:45 +0000)]
BUG-60285 avoid NPE if missing relationship id

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

8 years agoBUG-60284 -- need to update dev tests <face_palm/>
Tim Allison [Thu, 20 Oct 2016 18:39:47 +0000 (18:39 +0000)]
BUG-60284 -- need to update dev tests <face_palm/>

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

8 years agoBUG-60284 -- throw EncryptedDocumentException for password protected OldExcel files
Tim Allison [Thu, 20 Oct 2016 15:13:16 +0000 (15:13 +0000)]
BUG-60284 -- throw EncryptedDocumentException for password protected OldExcel files

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

8 years agowhitespace
Javen O'Neal [Thu, 20 Oct 2016 02:24:50 +0000 (02:24 +0000)]
whitespace

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

8 years agoupgrade to junit4
Javen O'Neal [Thu, 20 Oct 2016 02:24:17 +0000 (02:24 +0000)]
upgrade to junit4

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

8 years agoEclipse automated refactor/cleanup: add final modifier to private fields to unit...
Javen O'Neal [Thu, 20 Oct 2016 02:21:14 +0000 (02:21 +0000)]
Eclipse automated refactor/cleanup: add final modifier to private fields to unit tests

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

8 years agoclose resource
Javen O'Neal [Thu, 20 Oct 2016 02:05:42 +0000 (02:05 +0000)]
close resource

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

8 years agoEclipse automated refactor/cleanup: convert for loops to for-each loops
Javen O'Neal [Thu, 20 Oct 2016 01:54:56 +0000 (01:54 +0000)]
Eclipse automated refactor/cleanup: convert for loops to for-each loops

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

8 years agoremove *_dump directory
Andreas Beeker [Wed, 19 Oct 2016 23:43:42 +0000 (23:43 +0000)]
remove *_dump directory

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

8 years agoBug 55714 - Background image ignored on slide copy
Andreas Beeker [Wed, 19 Oct 2016 23:25:51 +0000 (23:25 +0000)]
Bug 55714 - Background image ignored on slide copy

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

8 years agoStringUtil.count was renamed to StringUtil.countMatches
Javen O'Neal [Wed, 19 Oct 2016 23:06:35 +0000 (23:06 +0000)]
StringUtil.count was renamed to StringUtil.countMatches

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

8 years agoEclipse automated refactor/cleanup: convert for loops to for-each loops
Javen O'Neal [Wed, 19 Oct 2016 23:04:39 +0000 (23:04 +0000)]
Eclipse automated refactor/cleanup: convert for loops to for-each loops

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

8 years agoadd StringUtil.count, inspired by Apache Commons Lang StringUtils#countMatches and...
Javen O'Neal [Wed, 19 Oct 2016 23:04:16 +0000 (23:04 +0000)]
add StringUtil.count, inspired by Apache Commons Lang StringUtils#countMatches and Python's str.count(substr)

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

8 years agoEclipse automated refactor/cleanup: convert for loops to for-each loops
Javen O'Neal [Wed, 19 Oct 2016 22:28:07 +0000 (22:28 +0000)]
Eclipse automated refactor/cleanup: convert for loops to for-each loops

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

8 years agoEclipse automated refactor/cleanup: add missing @Override and @Deprecated annotations
Javen O'Neal [Wed, 19 Oct 2016 21:52:31 +0000 (21:52 +0000)]
Eclipse automated refactor/cleanup: add missing @Override and @Deprecated annotations

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

8 years agoBUG-59302 --add minimal support for VBAMacro extraction to HSLF; credit to Andreas...
Tim Allison [Wed, 19 Oct 2016 18:44:46 +0000 (18:44 +0000)]
BUG-59302 --add minimal support for VBAMacro extraction to HSLF; credit to Andreas Beeker for this patch.  Problems are mine.

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

8 years agoclose pkg
Javen O'Neal [Wed, 19 Oct 2016 09:04:01 +0000 (09:04 +0000)]
close pkg

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

8 years agoadd @Override decorators to SheetIterator, move code outside of for-loop
Javen O'Neal [Wed, 19 Oct 2016 08:38:19 +0000 (08:38 +0000)]
add @Override decorators to SheetIterator, move code outside of for-loop

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

8 years agoreenable unit test for bug 58648 that passes now
Javen O'Neal [Wed, 19 Oct 2016 08:03:57 +0000 (08:03 +0000)]
reenable unit test for bug 58648 that passes now

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

8 years agobug 60255: use actual number of package parts rather than hard-coding an upper-bound
Javen O'Neal [Wed, 19 Oct 2016 07:47:07 +0000 (07:47 +0000)]
bug 60255: use actual number of package parts rather than hard-coding an upper-bound

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

8 years agoremove @deprecated annotation from Enum-returning getters. These will be deprecated...
Javen O'Neal [Wed, 19 Oct 2016 07:43:18 +0000 (07:43 +0000)]
remove @deprecated annotation from Enum-returning getters. These will be deprecated after the int-returning getters are removed.

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

8 years agodisabled unit tests are now passing for bug 48703
Javen O'Neal [Wed, 19 Oct 2016 07:37:47 +0000 (07:37 +0000)]
disabled unit tests are now passing for bug 48703

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

8 years agoFix some IDE warnings/javadoc/...
Dominik Stadler [Wed, 19 Oct 2016 06:52:44 +0000 (06:52 +0000)]
Fix some IDE warnings/javadoc/...

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

8 years agomake code more similar between default case and indexed case
Javen O'Neal [Wed, 19 Oct 2016 06:44:09 +0000 (06:44 +0000)]
make code more similar between default case and indexed case

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

8 years agoon Windows, a directory cannot contain a file and a directory with the same name
Javen O'Neal [Wed, 19 Oct 2016 05:18:48 +0000 (05:18 +0000)]
on Windows, a directory cannot contain a file and a directory with the same name

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

8 years agofindbugs: Switch statement found in org.apache.poi.sl.draw.DrawShape.applyTransform...
Javen O'Neal [Wed, 19 Oct 2016 05:07:30 +0000 (05:07 +0000)]
findbugs: Switch statement found in org.apache.poi.sl.draw.DrawShape.applyTransform(Graphics2D) where default case is missing

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

8 years agoadd data type to UTF_16LE
Javen O'Neal [Wed, 19 Oct 2016 05:06:49 +0000 (05:06 +0000)]
add data type to UTF_16LE

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

8 years agoremove java.nio.charset.StandardCharsets which is not available until Java 7
Javen O'Neal [Wed, 19 Oct 2016 05:00:07 +0000 (05:00 +0000)]
remove java.nio.charset.StandardCharsets which is not available until Java 7

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

8 years agoBUG 60273 -- Use codepageutil to get correct charset in VBAMacroReader
Tim Allison [Tue, 18 Oct 2016 18:24:39 +0000 (18:24 +0000)]
BUG 60273 -- Use codepageutil to get correct charset in VBAMacroReader

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

8 years agoBUG 59858 -- avoid npe when there's a collision of record names...doh. Fix unit test.
Tim Allison [Tue, 18 Oct 2016 16:54:12 +0000 (16:54 +0000)]
BUG 59858 -- avoid npe when there's a collision of record names...doh. Fix unit test.

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

8 years agoBUG 59858 -- avoid npe when there's a collision of record names
Tim Allison [Tue, 18 Oct 2016 16:43:20 +0000 (16:43 +0000)]
BUG 59858 -- avoid npe when there's a collision of record names

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

8 years agoBUG 59830 -- incorrect reading of unicode stream name
Tim Allison [Tue, 18 Oct 2016 15:47:38 +0000 (15:47 +0000)]
BUG 59830 -- incorrect reading of unicode stream name

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

8 years agoBUG 60158 -- AIOOBE in VBAMacroReader
Tim Allison [Tue, 18 Oct 2016 12:55:34 +0000 (12:55 +0000)]
BUG 60158 -- AIOOBE in VBAMacroReader

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

8 years agoBug 53191 - Problems with line style when converting ppt to png
Andreas Beeker [Sun, 16 Oct 2016 22:48:25 +0000 (22:48 +0000)]
Bug 53191 - Problems with line style when converting ppt to png

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

8 years agoBug 60259: Add missing dispose() call
Dominik Stadler [Sat, 15 Oct 2016 19:07:04 +0000 (19:07 +0000)]
Bug 60259: Add missing dispose() call

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

8 years agoUpdate to japicmp-gradle-plugin:0.1.2 and enable newly added properties
Dominik Stadler [Sat, 15 Oct 2016 07:09:13 +0000 (07:09 +0000)]
Update to japicmp-gradle-plugin:0.1.2 and enable newly added properties

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

8 years agoClose temp-file in test to not leak file-handles and fail deleting the file on Windows
Dominik Stadler [Sat, 15 Oct 2016 06:54:26 +0000 (06:54 +0000)]
Close temp-file in test to not leak file-handles and fail deleting the file on Windows

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

8 years agoBug 60029: apply suggested fix and fix some IntelliJ warnings
Dominik Stadler [Sat, 15 Oct 2016 06:54:20 +0000 (06:54 +0000)]
Bug 60029: apply suggested fix and fix some IntelliJ warnings

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

8 years agoBug 60134: Add initial tasks for running japicmp to the Gradle build
Dominik Stadler [Fri, 14 Oct 2016 20:46:30 +0000 (20:46 +0000)]
Bug 60134: Add initial tasks for running japicmp to the Gradle build

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

8 years agoadd length sanity check for length of embedded OLE10Native (BUG 60256)
Tim Allison [Fri, 14 Oct 2016 14:57:29 +0000 (14:57 +0000)]
add length sanity check for length of embedded OLE10Native (BUG 60256)

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

8 years agoadd ignored test and triggering document for BUG 60256
Tim Allison [Fri, 14 Oct 2016 13:22:23 +0000 (13:22 +0000)]
add ignored test and triggering document for BUG 60256

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

8 years agoExclude broken hand-crafted test file
Nick Burch [Fri, 14 Oct 2016 13:03:53 +0000 (13:03 +0000)]
Exclude broken hand-crafted test file

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

8 years ago#60255 When creating a XSSF drawing, find the next available document part, even...
Nick Burch [Fri, 14 Oct 2016 10:44:03 +0000 (10:44 +0000)]
#60255 When creating a XSSF drawing, find the next available document part, even if another type has pinched the next number

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

8 years agoTest file for #60255
Nick Burch [Fri, 14 Oct 2016 10:39:16 +0000 (10:39 +0000)]
Test file for #60255

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

8 years agobug 56781,60246: fix named range validation to match valid name rules per Excel docs
Javen O'Neal [Fri, 14 Oct 2016 10:11:23 +0000 (10:11 +0000)]
bug 56781,60246: fix named range validation to match valid name rules per Excel docs

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

8 years agobug 60253: add helper functions to make the constructor formula1-overloading code...
Javen O'Neal [Fri, 14 Oct 2016 08:09:39 +0000 (08:09 +0000)]
bug 60253: add helper functions to make the constructor formula1-overloading code simpler

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

8 years agobug 60253: remove repeated check for ValidationType.ANY
Javen O'Neal [Fri, 14 Oct 2016 07:07:15 +0000 (07:07 +0000)]
bug 60253: remove repeated check for ValidationType.ANY

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

8 years agobug 60253: revert XSSFDataValidationConstraint#prettyPrint QUOTE change in r1749129
Javen O'Neal [Fri, 14 Oct 2016 07:04:27 +0000 (07:04 +0000)]
bug 60253: revert XSSFDataValidationConstraint#prettyPrint QUOTE change in r1749129

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

8 years agomake cached fields transient
Javen O'Neal [Fri, 14 Oct 2016 05:13:47 +0000 (05:13 +0000)]
make cached fields transient

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

8 years agoAdd Apache license to example file
Mark Murphy [Fri, 14 Oct 2016 02:42:50 +0000 (02:42 +0000)]
Add Apache license to example file

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

8 years ago53009: Problem creating header and footer
Mark Murphy [Thu, 13 Oct 2016 01:13:45 +0000 (01:13 +0000)]
53009: Problem creating header and footer

Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=53009

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

8 years agoBug 60230 - Roundtrip test that encrypts XSSFWorkbook and then decrypts it fails...
Andreas Beeker [Sun, 9 Oct 2016 20:34:35 +0000 (20:34 +0000)]
Bug 60230 - Roundtrip test that encrypts XSSFWorkbook and then decrypts it fails with latest code

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

8 years agowhitespace
Javen O'Neal [Sun, 9 Oct 2016 19:09:26 +0000 (19:09 +0000)]
whitespace

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

8 years agobug 60230: add disabled unit test from PJ Fanning for a roundtrip write/read of an...
Javen O'Neal [Sun, 9 Oct 2016 19:03:49 +0000 (19:03 +0000)]
bug 60230: add disabled unit test from PJ Fanning for a roundtrip write/read of an encrypted XSSFWorkbook

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

8 years agobug 60153: java.nio.charset.StandardCharsets is not available until Java 7. Use Chars...
Javen O'Neal [Sun, 9 Oct 2016 18:06:46 +0000 (18:06 +0000)]
bug 60153: java.nio.charset.StandardCharsets is not available until Java 7. Use Charset.forName for Java 6 compatibility

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

8 years agobug 60153: patch from PJ Fanning to demonstrate that SXSSFWorkbook SheetDataWriter...
Javen O'Neal [Sun, 9 Oct 2016 12:58:46 +0000 (12:58 +0000)]
bug 60153: patch from PJ Fanning to demonstrate that SXSSFWorkbook SheetDataWriter can write encrypted temporary files to disk and the workbook can be AES encrypted when written to disk for a fully secure disk environment

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

8 years agofix findbugs warning BC_VACUOUS_INSTANCEOF from bug 55075
Javen O'Neal [Sun, 9 Oct 2016 12:15:39 +0000 (12:15 +0000)]
fix findbugs warning BC_VACUOUS_INSTANCEOF from bug 55075

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

8 years agobug 60228: getCellTypeEnum should not be deprecated until after getCellType returns...
Javen O'Neal [Sun, 9 Oct 2016 10:59:34 +0000 (10:59 +0000)]
bug 60228: getCellTypeEnum should not be deprecated until after getCellType returns a CellType enum

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

8 years agobug 60153: findbugs OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE close opened streams...
Javen O'Neal [Sun, 9 Oct 2016 10:51:13 +0000 (10:51 +0000)]
bug 60153: findbugs OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE close opened streams if an exception is raised while decorating the stream

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

8 years agobug 55075: add missing import
Javen O'Neal [Sun, 9 Oct 2016 10:26:49 +0000 (10:26 +0000)]
bug 55075: add missing import

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

8 years agobug 55075: remove wildcard import; previous commit contributed by Frank Ploessel
Javen O'Neal [Sun, 9 Oct 2016 10:13:06 +0000 (10:13 +0000)]
bug 55075: remove wildcard import; previous commit contributed by Frank Ploessel

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

8 years agobug 55075,51233: create drawings with correct height when rows are custom height
Javen O'Neal [Sun, 9 Oct 2016 10:02:36 +0000 (10:02 +0000)]
bug 55075,51233: create drawings with correct height when rows are custom height

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

8 years agobug 60021: add note that EncryptionInfo may require poi-ooxml.jar to run EncryptionModes
Javen O'Neal [Sun, 9 Oct 2016 05:40:38 +0000 (05:40 +0000)]
bug 60021: add note that EncryptionInfo may require poi-ooxml.jar to run EncryptionModes

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

8 years agobug 60153: encrypt SXSSF temporary files; patch from PJ Fanning
Javen O'Neal [Sun, 9 Oct 2016 04:43:14 +0000 (04:43 +0000)]
bug 60153: encrypt SXSSF temporary files; patch from PJ Fanning

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

8 years agobug 60197: Workbook#setSheetOrder should update named range sheet indices
Javen O'Neal [Sun, 9 Oct 2016 03:02:13 +0000 (03:02 +0000)]
bug 60197: Workbook#setSheetOrder should update named range sheet indices

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

8 years agobug 60219: add disabled unit test for parsing formulas containing external workbook...
Javen O'Neal [Sat, 8 Oct 2016 23:41:08 +0000 (23:41 +0000)]
bug 60219: add disabled unit test for parsing formulas containing external workbook references with a quoted sheet name

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

8 years agoBug 60003 - Regression: HSLF Powerpoint text extractor from footer of master slide
Andreas Beeker [Sat, 8 Oct 2016 18:08:25 +0000 (18:08 +0000)]
Bug 60003 - Regression: HSLF Powerpoint text extractor from footer of master slide

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

8 years agoBug 60226 - ClassLoader workaround for OSGI when processing OOXML files
Andreas Beeker [Sat, 8 Oct 2016 17:07:15 +0000 (17:07 +0000)]
Bug 60226 - ClassLoader workaround for OSGI when processing OOXML files

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

8 years agoAdd initial compile steps with a simple multi-project setup to build.gradle
Dominik Stadler [Fri, 7 Oct 2016 19:33:11 +0000 (19:33 +0000)]
Add initial compile steps with a simple multi-project setup to build.gradle
Adjust some tests to make them run fine in the Gradle build as well

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

8 years agobug 60216: javadocx fix for Comment#isVisible and Comment#setVisible; patch from...
Javen O'Neal [Fri, 7 Oct 2016 12:39:15 +0000 (12:39 +0000)]
bug 60216: javadocx fix for Comment#isVisible and Comment#setVisible; patch from Daniel Kueppers

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

8 years agoBug 59958: Add simple test-case
Dominik Stadler [Wed, 5 Oct 2016 20:13:38 +0000 (20:13 +0000)]
Bug 59958: Add simple test-case

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

8 years agoUse IOUtils.closeQuietly() in more places
Dominik Stadler [Wed, 5 Oct 2016 20:00:07 +0000 (20:00 +0000)]
Use IOUtils.closeQuietly() in more places
Avoid two possible file-handle leaks when opening files fails with an exception
Make tests close resources properly to not spam the output when running with file-leak-detector

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

8 years agoBug 53028: Broken auto fit row height in the cells with word wrap
Dominik Stadler [Wed, 5 Oct 2016 19:59:56 +0000 (19:59 +0000)]
Bug 53028: Broken auto fit row height in the cells with word wrap

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

8 years agoPrint out size of extracted text in CommandLineExtractor
Dominik Stadler [Wed, 5 Oct 2016 19:59:50 +0000 (19:59 +0000)]
Print out size of extracted text in CommandLineExtractor

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

8 years agoSome IDE warning fixes and unit test adjustments
Dominik Stadler [Wed, 5 Oct 2016 19:59:44 +0000 (19:59 +0000)]
Some IDE warning fixes and unit test adjustments

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

8 years agoJavadoc fixes
Nick Burch [Wed, 5 Oct 2016 10:39:03 +0000 (10:39 +0000)]
Javadoc fixes

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

8 years agoAdd PropertyTemplate for drawing Borders (58787)
Mark Murphy [Wed, 5 Oct 2016 02:23:52 +0000 (02:23 +0000)]
Add PropertyTemplate for drawing Borders (58787)

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

8 years agoJavadoc fixes
Nick Burch [Fri, 30 Sep 2016 10:22:27 +0000 (10:22 +0000)]
Javadoc fixes

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

8 years agobug 60187: set BorderStyle directly instead of through short code
Javen O'Neal [Fri, 30 Sep 2016 07:02:02 +0000 (07:02 +0000)]
bug 60187: set BorderStyle directly instead of through short code

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

8 years agobug 60187: replace methods operating on BorderStyle codes with BorderStyle enums
Javen O'Neal [Fri, 30 Sep 2016 06:39:29 +0000 (06:39 +0000)]
bug 60187: replace methods operating on BorderStyle codes with BorderStyle enums

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

8 years agoBug 59857 - Password protected files with "Microsoft Enhanced Cryptographic Provider...
Andreas Beeker [Wed, 28 Sep 2016 23:36:09 +0000 (23:36 +0000)]
Bug 59857 - Password protected files with "Microsoft Enhanced Cryptographic Provider v1.0"

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

8 years agomerge trunk to branch hssf_cryptoapi hssf_cryptoapi
Andreas Beeker [Wed, 28 Sep 2016 21:22:13 +0000 (21:22 +0000)]
merge trunk to branch

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

8 years agomerge trunk to branch
Andreas Beeker [Wed, 28 Sep 2016 21:01:40 +0000 (21:01 +0000)]
merge trunk to branch

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

8 years agoAdjust some JavaDoc and remove some unnecessary String.valueOf() calls and fix some...
Dominik Stadler [Wed, 28 Sep 2016 08:44:14 +0000 (08:44 +0000)]
Adjust some JavaDoc and remove some unnecessary String.valueOf() calls and fix some other compiler warnings

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