]> source.dussan.org Git - poi.git/log
poi.git
10 years agoAdd a note about file resources, see bug #56537
Nick Burch [Wed, 4 Jun 2014 16:34:16 +0000 (16:34 +0000)]
Add a note about file resources, see bug #56537

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

10 years agoWhen finding the CTCol object for a XSSF Sheet column, as we often have to traverse...
Nick Burch [Wed, 4 Jun 2014 15:58:14 +0000 (15:58 +0000)]
When finding the CTCol object for a XSSF Sheet column, as we often have to traverse most of the list, and we are mostly reading not changing, switch to fetching all the objects as an array in one go, rather than fetching one at a time, which is hopefully faster. Aims to help bug #56556

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

10 years agoAdd workaround for IBM JDK where Ant populates classname instead of className for...
Dominik Stadler [Thu, 29 May 2014 12:04:51 +0000 (12:04 +0000)]
Add workaround for IBM JDK where Ant populates classname instead of className for some reason

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

10 years agoHSSFCell should follow XSSF, and allow setting a null-style to return to the default...
Nick Burch [Thu, 29 May 2014 11:39:50 +0000 (11:39 +0000)]
HSSFCell should follow XSSF, and allow setting a null-style to return to the default style, fixes bug #56572

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

10 years agoUpdate to latest Ant 1.9.4 and add ant-launcher which is used in
Dominik Stadler [Thu, 29 May 2014 09:16:29 +0000 (09:16 +0000)]
Update to latest Ant 1.9.4 and add ant-launcher which is used in
ExcelAnt tests to make it easier to run these tests in Eclipse

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

10 years agoRemove null-checks that can never be reached
Dominik Stadler [Thu, 29 May 2014 09:15:33 +0000 (09:15 +0000)]
Remove null-checks that can never be reached
add test for ExcelAnt setString

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

10 years agoIncrease the font-inaccuracy for one unit test as some machines have fonts that lead...
Dominik Stadler [Tue, 27 May 2014 20:45:25 +0000 (20:45 +0000)]
Increase the font-inaccuracy for one unit test as some machines have fonts that lead to lower values, e.g. we get only 770 instead of 980 for Jenkins build on IBM JDK and on some local Windows machines

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

10 years agoFix for 56563 - Multithreading bug when reading 2 similar files
Dominik Stadler [Mon, 26 May 2014 20:03:08 +0000 (20:03 +0000)]
Fix for 56563 - Multithreading bug when reading 2 similar files

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

10 years agoIf a NoteRecord has no author tag, it seems it can sometimes be double padded. Fixes...
Nick Burch [Fri, 23 May 2014 14:07:20 +0000 (14:07 +0000)]
If a NoteRecord has no author tag, it seems it can sometimes be double padded. Fixes #47251

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

10 years agoHandle date format strings in an iso8601 style format, with a T in them. Fixes bug...
Nick Burch [Fri, 23 May 2014 09:18:16 +0000 (09:18 +0000)]
Handle date format strings in an iso8601 style format, with a T in them. Fixes bug #54034

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

10 years agoPatch from Yaniv Kunda from bug #56274 - Fix SXSSF writing of tables when creating...
Nick Burch [Wed, 21 May 2014 17:08:25 +0000 (17:08 +0000)]
Patch from Yaniv Kunda from bug #56274 - Fix SXSSF writing of tables when creating from a template

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

10 years agoMove some tests from "unfixed" to "normal" test classes as the underlying bug is...
Dominik Stadler [Tue, 20 May 2014 14:12:19 +0000 (14:12 +0000)]
Move some tests from "unfixed" to "normal" test classes as the underlying bug is now fixed.
Also make on of the unfixed bugs cause an actual failure so it is justified to stay in "unfixed"

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

10 years agoBug 53691: Fix a copy/paste error in CFRuleRecord.clone()
Dominik Stadler [Tue, 20 May 2014 14:01:22 +0000 (14:01 +0000)]
Bug 53691: Fix a copy/paste error in CFRuleRecord.clone()
also make CFRuleRecord.toString() print out more information which caused the bug to be much harder to find
Add unit tests to verify/reproduce this

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

10 years agoBug 56170: Fix a problem with cells in workbooks becoming disconnected from XMLBeans...
Dominik Stadler [Sun, 18 May 2014 19:18:27 +0000 (19:18 +0000)]
Bug 56170: Fix a problem with cells in workbooks becoming disconnected from XMLBeans whenever columns need to be reordered during writing the file. This happens because setCArray() disconnects any previously stored array-item but we try to re-use them. So we need to recreate the CTCell and set it in the XSSFCell to make this work in all currently tested cases.

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

10 years agoApache POI - Use assertArrayEquals() instead of assertTrue(Arrays.equals()), this...
Dominik Stadler [Fri, 16 May 2014 13:25:45 +0000 (13:25 +0000)]
Apache POI - Use assertArrayEquals() instead of assertTrue(Arrays.equals()), this way we get better information on failure

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

10 years agoFix Bug 56514, add missing null-check if simple shape does not have any text
Dominik Stadler [Fri, 16 May 2014 07:09:55 +0000 (07:09 +0000)]
Fix Bug 56514, add missing null-check if simple shape does not have any text

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

10 years agoBug 56325: fix Exception when removing sheets with named ranges in the workbook
Dominik Stadler [Thu, 15 May 2014 21:14:52 +0000 (21:14 +0000)]
Bug 56325: fix Exception when removing sheets with named ranges in the workbook

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

10 years agoAvoid unnecessary string creation/concatination for numeric conversion, use Double...
Dominik Stadler [Thu, 15 May 2014 21:14:32 +0000 (21:14 +0000)]
Avoid unnecessary string creation/concatination for numeric conversion, use Double.toString() instead

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

10 years agoAdd a HSSF print paper size constant for "printer default" for bug #56509
Nick Burch [Thu, 15 May 2014 10:15:04 +0000 (10:15 +0000)]
Add a HSSF print paper size constant for "printer default" for bug #56509

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

10 years agoBug 56468 - Writing a workbook more than once corrupts the file
Andreas Beeker [Wed, 14 May 2014 21:14:16 +0000 (21:14 +0000)]
Bug 56468 - Writing a workbook more than once corrupts the file

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

10 years agofix some Eclipse warnings, unnecessary null-check and missing close() in tests
Dominik Stadler [Tue, 13 May 2014 11:31:18 +0000 (11:31 +0000)]
fix some Eclipse warnings, unnecessary null-check and missing close() in tests

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

10 years agoBased on reading of the new file format docs, start to tweak how fixed length vs...
Nick Burch [Sun, 11 May 2014 21:16:40 +0000 (21:16 +0000)]
Based on reading of the new file format docs, start to tweak how fixed length vs variable length / multi-valued properties are handled

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

10 years agoOutlook sometimes stores a codepage of ANSI when it means 1252, detect and alias...
Nick Burch [Thu, 8 May 2014 15:17:22 +0000 (15:17 +0000)]
Outlook sometimes stores a codepage of ANSI when it means 1252, detect and alias, fixes bug #53983

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

10 years agoImplement a few more MAPI property types
Nick Burch [Thu, 8 May 2014 14:49:21 +0000 (14:49 +0000)]
Implement a few more MAPI property types

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

10 years agoFix inconsistent indents
Nick Burch [Thu, 8 May 2014 14:46:43 +0000 (14:46 +0000)]
Fix inconsistent indents

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

10 years agoBug 56486 - Add XOR obfuscation/decryption support to HSSF
Andreas Beeker [Mon, 5 May 2014 21:41:31 +0000 (21:41 +0000)]
Bug 56486 - Add XOR obfuscation/decryption support to HSSF

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

10 years agoBug 56269 - DateFormat - Rounding of fractionals
Andreas Beeker [Sun, 4 May 2014 21:17:18 +0000 (21:17 +0000)]
Bug 56269 - DateFormat - Rounding of fractionals

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

10 years agoThe NPOIFS-classes result currently in left-over memory mapped buffers.
Andreas Beeker [Sun, 4 May 2014 20:58:42 +0000 (20:58 +0000)]
The NPOIFS-classes result currently in left-over memory mapped buffers.
These are actually hard to workaround, so for Windows the test is ignored, if this error happens.
http://stackoverflow.com/questions/3602783/file-access-synchronized-on-java-object

Apart of that, the RandomFileAccess instance is saved in the FileBackedDataSource as it needs to
be closed instead of the Channel.
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4796385

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

10 years agoFile leak detector: Close streams in some tests
Dominik Stadler [Sun, 4 May 2014 08:05:32 +0000 (08:05 +0000)]
File leak detector: Close streams in some tests

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

10 years agoExcel 2007 and later allows for more than 3 Conditional Formatting rules per sheet...
Nick Burch [Fri, 2 May 2014 15:49:23 +0000 (15:49 +0000)]
Excel 2007 and later allows for more than 3 Conditional Formatting rules per sheet, so change our hard limit to logging a compatibility warning. Test file from Pau Coma Ramirez from bug #56482

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

10 years agoGenerics warnings fixes
Nick Burch [Fri, 2 May 2014 09:15:23 +0000 (09:15 +0000)]
Generics warnings fixes

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

10 years agoProvide a convenience method for creating a PropertySet from a Directory + Entry
Nick Burch [Mon, 28 Apr 2014 14:19:13 +0000 (14:19 +0000)]
Provide a convenience method for creating a PropertySet from a Directory + Entry

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

10 years agoFix generics warnings
Nick Burch [Mon, 28 Apr 2014 14:03:18 +0000 (14:03 +0000)]
Fix generics warnings

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

10 years agoUpdate the HPSF change properties example to use NPOIFS + in-place writes, and have...
Nick Burch [Mon, 28 Apr 2014 09:22:58 +0000 (09:22 +0000)]
Update the HPSF change properties example to use NPOIFS + in-place writes, and have NPOIFS give a helpful error if you try to in-place write on a read only open

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

10 years agoGet NPOIFS in-place-write working!
Nick Burch [Mon, 28 Apr 2014 06:35:39 +0000 (06:35 +0000)]
Get NPOIFS in-place-write working!

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

10 years agojunit4 fix
Andreas Beeker [Sat, 26 Apr 2014 23:37:40 +0000 (23:37 +0000)]
junit4 fix

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

10 years agoMore on the HPFS in-place NPOIFS write tests, and a note about what is still to do...
Nick Burch [Sat, 26 Apr 2014 22:50:00 +0000 (22:50 +0000)]
More on the HPFS in-place NPOIFS write tests, and a note about what is still to do for them

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

10 years agoFix javadoc layout
Nick Burch [Sat, 26 Apr 2014 22:43:23 +0000 (22:43 +0000)]
Fix javadoc layout

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

10 years agoConvert the HPSF test to JUnit 4, and add a bit more testing for NPOIFS
Nick Burch [Sat, 26 Apr 2014 21:51:28 +0000 (21:51 +0000)]
Convert the HPSF test to JUnit 4, and add a bit more testing for NPOIFS

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

10 years agoStream tests for NDocumentOutputStream
Nick Burch [Sat, 26 Apr 2014 21:33:19 +0000 (21:33 +0000)]
Stream tests for NDocumentOutputStream

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

10 years agoNDocumentOutputStream write logic
Nick Burch [Fri, 25 Apr 2014 23:34:09 +0000 (23:34 +0000)]
NDocumentOutputStream write logic

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

10 years agoFix inconsistent whitespace
Nick Burch [Fri, 25 Apr 2014 23:33:16 +0000 (23:33 +0000)]
Fix inconsistent whitespace

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

10 years agoBegin to support and test in-place changes to documents within a NPOIFS stream
Nick Burch [Fri, 25 Apr 2014 23:07:00 +0000 (23:07 +0000)]
Begin to support and test in-place changes to documents within a NPOIFS stream

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

10 years agoSupport for replacing the contents of a Document in a NPOIFSFileSytem, in place
Nick Burch [Fri, 25 Apr 2014 22:40:51 +0000 (22:40 +0000)]
Support for replacing the contents of a Document in a NPOIFSFileSytem, in place

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

10 years agoComplete NPOIFS write tests
Nick Burch [Fri, 25 Apr 2014 22:05:46 +0000 (22:05 +0000)]
Complete NPOIFS write tests

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

10 years agoWhen deleting a document in NPOIFS, free the underlying blocks
Nick Burch [Fri, 25 Apr 2014 22:00:30 +0000 (22:00 +0000)]
When deleting a document in NPOIFS, free the underlying blocks

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

10 years agoMore progress with the write/read npoifs tests, but one bug still to go....
Nick Burch [Fri, 25 Apr 2014 21:23:10 +0000 (21:23 +0000)]
More progress with the write/read npoifs tests, but one bug still to go....

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

10 years agoRefactor some of the NPOIFS write tests, and begin on the last missing write test
Nick Burch [Fri, 25 Apr 2014 21:11:26 +0000 (21:11 +0000)]
Refactor some of the NPOIFS write tests, and begin on the last missing write test

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

10 years agoAdd a getEntryNames() method to POIFS/NPOIFS directory entries, to make listing easier
Nick Burch [Fri, 25 Apr 2014 21:10:52 +0000 (21:10 +0000)]
Add a getEntryNames() method to POIFS/NPOIFS directory entries, to make listing easier

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

10 years agoFinish off the next NPOIFS write text
Nick Burch [Fri, 25 Apr 2014 20:38:55 +0000 (20:38 +0000)]
Finish off the next NPOIFS write text

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

10 years agoMore NPOIFS mini stream improvements, and more tests for it all
Nick Burch [Fri, 25 Apr 2014 18:39:31 +0000 (18:39 +0000)]
More NPOIFS mini stream improvements, and more tests for it all

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

10 years agoCorrect mini stream initialisation, and enable more npoifs write tests
Nick Burch [Fri, 25 Apr 2014 18:14:28 +0000 (18:14 +0000)]
Correct mini stream initialisation, and enable more npoifs write tests

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

10 years agoMore NPOIFS tests, and a partial mini-stream fix
Nick Burch [Fri, 25 Apr 2014 17:06:10 +0000 (17:06 +0000)]
More NPOIFS tests, and a partial mini-stream fix

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

10 years agoMore npoifs write tests, some disabled as failing
Nick Burch [Fri, 25 Apr 2014 10:57:15 +0000 (10:57 +0000)]
More npoifs write tests, some disabled as failing

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

10 years agoAdd common code for writing out and reading NPOIFS again, and add a disabled roundtri...
Nick Burch [Thu, 24 Apr 2014 22:22:06 +0000 (22:22 +0000)]
Add common code for writing out and reading NPOIFS again, and add a disabled roundtrip test (currently failing...)

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

10 years agoCorrect NPOIFS mini stream first write bug, and add more NPOIFS stream write tests
Nick Burch [Thu, 24 Apr 2014 21:08:34 +0000 (21:08 +0000)]
Correct NPOIFS mini stream first write bug, and add more NPOIFS stream write tests

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

10 years agoAdd TODOs for the next set of NPOIFS write tests we need
Nick Burch [Thu, 24 Apr 2014 20:23:43 +0000 (20:23 +0000)]
Add TODOs for the next set of NPOIFS write tests we need

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

10 years agoMore NPOIFS write testing, and fix a problem with writing xbat details out
Nick Burch [Thu, 24 Apr 2014 17:44:10 +0000 (17:44 +0000)]
More NPOIFS write testing, and fix a problem with writing xbat details out

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

10 years agoUpdate a test to use the existing EntryUtils to copy with, rather than duplciating...
Nick Burch [Thu, 24 Apr 2014 17:32:47 +0000 (17:32 +0000)]
Update a test to use the existing EntryUtils to copy with, rather than duplciating the logic, and tweak naming/javadocs to clarify what the test does

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

10 years agoMore unit tests for NPOIFS writing, and correct a bug in how bats get allocated in...
Nick Burch [Thu, 24 Apr 2014 17:25:10 +0000 (17:25 +0000)]
More unit tests for NPOIFS writing, and correct a bug in how bats get allocated in xbats. (Some issues still remain)

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

10 years agoMore int/long sizing fixes for >2gb NPOIFS files, see bug #56447
Nick Burch [Thu, 24 Apr 2014 16:15:21 +0000 (16:15 +0000)]
More int/long sizing fixes for >2gb NPOIFS files, see bug #56447

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

10 years agoFix bug #56450 - Avoid a NPE if a comment has no associated NoteRecord (but we still...
Nick Burch [Thu, 24 Apr 2014 15:42:53 +0000 (15:42 +0000)]
Fix bug #56450 - Avoid a NPE if a comment has no associated NoteRecord (but we still don't know where it belongs)

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

10 years agoFix some Eclipse identified warnings
Nick Burch [Thu, 24 Apr 2014 15:07:20 +0000 (15:07 +0000)]
Fix some Eclipse identified warnings

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

10 years agoTwo more test files from Stefan Kopf for bug #56164, and unit tests which use them
Nick Burch [Thu, 24 Apr 2014 14:52:09 +0000 (14:52 +0000)]
Two more test files from Stefan Kopf for bug #56164, and unit tests which use them

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

10 years agoCorrect an eclipse warning around close(), and a related bug that this identified
Nick Burch [Thu, 24 Apr 2014 14:50:52 +0000 (14:50 +0000)]
Correct an eclipse warning around close(), and a related bug that this identified

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

10 years agoBug 56437 - [PATCH] Streaming write support in NPOIFS
Andreas Beeker [Mon, 21 Apr 2014 14:37:33 +0000 (14:37 +0000)]
Bug 56437 - [PATCH] Streaming write support in NPOIFS

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

10 years agoSome encryption fixes:
Andreas Beeker [Mon, 21 Apr 2014 12:16:54 +0000 (12:16 +0000)]
Some encryption fixes:
- don't rely on SecretKey object having the right algorithm set
- leave encryption-description parsing of string/stream to xmlbeans and refactor it to one location
- use namespaces of schema instead of hard-coded strings
- use CryptoFunctions.getMessageDigest() instead of code duplication

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

10 years agoTweak 'assertAlmostEquals' bast on Jenkins results
Nick Burch [Fri, 18 Apr 2014 23:44:08 +0000 (23:44 +0000)]
Tweak 'assertAlmostEquals' bast on Jenkins results

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

10 years agoUnit test for column autosizing of % values
Nick Burch [Fri, 18 Apr 2014 20:46:57 +0000 (20:46 +0000)]
Unit test for column autosizing of % values

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

10 years agoBug 56315: Make rounding in MathX.round() behave equal to Excel, adjust/enhance some...
Dominik Stadler [Fri, 18 Apr 2014 18:20:15 +0000 (18:20 +0000)]
Bug 56315: Make rounding in MathX.round() behave equal to Excel, adjust/enhance some more tests in MathX

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

10 years agoTry to exclude some generated files from Sonar runs
Dominik Stadler [Fri, 18 Apr 2014 18:19:17 +0000 (18:19 +0000)]
Try to exclude some generated files from Sonar runs

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

10 years agoRather than having lots of classes all create their own XML DocumentBuilderFactory...
Nick Burch [Tue, 15 Apr 2014 21:59:52 +0000 (21:59 +0000)]
Rather than having lots of classes all create their own XML DocumentBuilderFactory instance, push that logic to a helper which sets all the right defaults

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

10 years agoMore stax jar removal for Java 6
Nick Burch [Tue, 15 Apr 2014 16:29:05 +0000 (16:29 +0000)]
More stax jar removal for Java 6

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

10 years agoNow that we require Java 1.6, we no longer need to include the STAX-API jar as JRE...
Nick Burch [Tue, 15 Apr 2014 15:19:30 +0000 (15:19 +0000)]
Now that we require Java 1.6, we no longer need to include the STAX-API jar as JRE 1.6 has it build in

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

10 years agoFix some Eclipse warnings
Dominik Stadler [Fri, 4 Apr 2014 07:26:53 +0000 (07:26 +0000)]
Fix some Eclipse warnings

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

10 years agoexclude new broken test-file for this test
Dominik Stadler [Fri, 4 Apr 2014 07:26:24 +0000 (07:26 +0000)]
exclude new broken test-file for this test

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

10 years agoAdd another test file for bug #47251, from Joe Yuan, and a disabled test
Nick Burch [Tue, 1 Apr 2014 23:27:05 +0000 (23:27 +0000)]
Add another test file for bug #47251, from Joe Yuan, and a disabled test

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

10 years agoFix two javadoc warnings reported in Jenkins build and add some @Overrides
Dominik Stadler [Tue, 1 Apr 2014 10:40:13 +0000 (10:40 +0000)]
Fix two javadoc warnings reported in Jenkins build and add some @Overrides

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

10 years agoUndo a toString() removal for a case where it is actually necessary.
Dominik Stadler [Tue, 1 Apr 2014 08:28:52 +0000 (08:28 +0000)]
Undo a toString() removal for a case where it is actually necessary.

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

10 years agoperformance issue: removed instantiation of new String object by copying an existing...
Cédric Walter [Mon, 31 Mar 2014 16:16:52 +0000 (16:16 +0000)]
performance issue: removed instantiation of new String object by copying an existing string.

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

10 years agoperformance issue: call toString() on a String object. This is entirely redundant.
Cédric Walter [Mon, 31 Mar 2014 16:01:39 +0000 (16:01 +0000)]
performance issue: call toString() on a String object. This is entirely redundant.

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

10 years agoperformance issue logging calls are expensive because of the objects created when...
Cédric Walter [Mon, 31 Mar 2014 15:54:52 +0000 (15:54 +0000)]
performance issue logging calls are expensive because of the objects created when assembling the log messages. Using the check() method of the logging sub-system can prevent object creation

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

10 years agoPatch from bug #56328 from David North - the maximum row number in a formula depends...
Nick Burch [Fri, 28 Mar 2014 21:54:30 +0000 (21:54 +0000)]
Patch from bug #56328 from David North - the maximum row number in a formula depends on HSSF vs XSSF

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

10 years agoUpdate Yegor's gpg key in the Keys file, with the latest version from the key servers...
Nick Burch [Wed, 26 Mar 2014 19:03:03 +0000 (19:03 +0000)]
Update Yegor's gpg key in the Keys file, with the latest version from the key servers (more signatures, correct expiry etc)

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

10 years agoPatch for #55594 from Paul Vonnahme - Fix SXSSF encodings on EBC
Nick Burch [Sat, 22 Mar 2014 20:48:58 +0000 (20:48 +0000)]
Patch for #55594 from Paul Vonnahme - Fix SXSSF encodings on EBC
IDIC platforms, by setting the required encoding explicitly

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

10 years agoAvoid an IndexOutOfBoundsException if there are no property nodes when searching...
Nick Burch [Tue, 18 Mar 2014 14:40:27 +0000 (14:40 +0000)]
Avoid an IndexOutOfBoundsException if there are no property nodes when searching for the start index, return -1 instead

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

10 years agoSupport adding tabs to a XWPFRun, and add unit tests on toString() for addTab and...
Nick Burch [Tue, 18 Mar 2014 14:26:28 +0000 (14:26 +0000)]
Support adding tabs to a XWPFRun, and add unit tests on toString() for addTab and addCarriageReturn

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

10 years agoFix whitespace
Nick Burch [Tue, 18 Mar 2014 14:17:36 +0000 (14:17 +0000)]
Fix whitespace

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

10 years agoFix bug #56278 - Support loading .xlsx files with no Styles Table
Nick Burch [Mon, 17 Mar 2014 19:02:21 +0000 (19:02 +0000)]
Fix bug #56278 - Support loading .xlsx files with no Styles Table

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

10 years agoBug 56195: replace System.err with propert logging
Dominik Stadler [Sun, 16 Mar 2014 19:46:56 +0000 (19:46 +0000)]
Bug 56195: replace System.err with propert logging

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

10 years agoExclude some generated classes from coverage measurements, now instruction coverage...
Dominik Stadler [Sun, 16 Mar 2014 19:46:46 +0000 (19:46 +0000)]
Exclude some generated classes from coverage measurements, now instruction coverage is at around 72%, also update JaCoCo to latest version 0.6.5

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

10 years agoRemove two files added inadvertedely
Dominik Stadler [Sat, 15 Mar 2014 17:31:43 +0000 (17:31 +0000)]
Remove two files added inadvertedely

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

10 years agoAdd missing test-file for bug 56169
Dominik Stadler [Sat, 15 Mar 2014 17:31:25 +0000 (17:31 +0000)]
Add missing test-file for bug 56169

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

10 years agoBug 56169: Fix NPE during export to XML with xs:all
Dominik Stadler [Sat, 15 Mar 2014 17:29:17 +0000 (17:29 +0000)]
Bug 56169: Fix NPE during export to XML with xs:all

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

10 years agoBug 56114: Add testcase to verify that the flag is correctly stored in the XLS
Dominik Stadler [Sat, 15 Mar 2014 17:00:22 +0000 (17:00 +0000)]
Bug 56114: Add testcase to verify that the flag is correctly stored in the XLS

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

10 years agoWhen looking for text run related records after a TextHeaderAtom, provide a cleaner...
Nick Burch [Sat, 15 Mar 2014 08:16:43 +0000 (08:16 +0000)]
When looking for text run related records after a TextHeaderAtom, provide a cleaner way to skip ones we don't care about, and a cleaner way to find the StyleTextPropAtom. Should fix #56260

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

10 years agoImplement MasterTextPropAtom, which provides the indents for a run of text, needed...
Nick Burch [Sat, 15 Mar 2014 08:14:36 +0000 (08:14 +0000)]
Implement MasterTextPropAtom, which provides the indents for a run of text, needed for #56260

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

10 years ago#56260 Partial fix for a slide with a TextHeaderAtom but no other atoms related to...
Nick Burch [Fri, 14 Mar 2014 13:59:24 +0000 (13:59 +0000)]
#56260 Partial fix for a slide with a TextHeaderAtom but no other atoms related to it, which is followed by another TextHeaderAtom straight away

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

10 years agoSample file for #56260, provided by Atlassian in CONF-18721
Nick Burch [Fri, 14 Mar 2014 13:59:08 +0000 (13:59 +0000)]
Sample file for #56260, provided by Atlassian in CONF-18721

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

10 years agoBug 56075 - Add Change Tracking support to XWPF
Andreas Beeker [Thu, 13 Mar 2014 00:16:56 +0000 (00:16 +0000)]
Bug 56075 - Add Change Tracking support to XWPF

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