Commit Graph

1380 Commits

Author SHA1 Message Date
Yegor Kozlov
54a27f05db removed svn:executable from src/java/org/apache/poi/ss/util/SheetUtil.java
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1087234 13f79535-47bb-0310-9956-ffa450edef68
2011-03-31 10:06:53 +00:00
Yegor Kozlov
5addb68f08 Support for continued ExtSSTRecords, see Bugzilla 50967
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1085900 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 10:05:42 +00:00
Nick Burch
fa006be753 Fix bug #48968 - Implement support for HOUR, MINUTE and SECOND formulas
Includes some re-working of the existing Calendar functions, unit tests for the old and new Calendar functions, and a wider date+formula+formatting test for this area


git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1085591 13f79535-47bb-0310-9956-ffa450edef68
2011-03-25 22:52:12 +00:00
Nick Burch
eb812a0e8c Fix a couple of NPOIFS bugs relating to empty files, empty documents and non-padded stream data
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1085493 13f79535-47bb-0310-9956-ffa450edef68
2011-03-25 18:02:46 +00:00
Nick Burch
e520f5b82f Fix up constructor to ensure that the filesystem objects are around when we need them, and not just after we wanted them as it was...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1085467 13f79535-47bb-0310-9956-ffa450edef68
2011-03-25 16:53:26 +00:00
Nick Burch
915713a4d3 More NPOIFS Constructor updates
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1085451 13f79535-47bb-0310-9956-ffa450edef68
2011-03-25 16:24:34 +00:00
Nick Burch
535e69dea4 Fix generics warnings, and make the NPOIFS and deprecated constructor parts of Publisher clearer and consistent with other parts
Also fix a test filename


git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1085443 13f79535-47bb-0310-9956-ffa450edef68
2011-03-25 16:06:11 +00:00
Yegor Kozlov
1ba16fb3b9 improved DataFormatter, see Bugzilla 50841
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1083173 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 12:42:01 +00:00
Nick Burch
5d2184a007 Fix bug #49219 - ExternalNameRecord can have a DDE Link entry without an operation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1082958 13f79535-47bb-0310-9956-ffa450edef68
2011-03-18 15:51:39 +00:00
Nick Burch
9e5f795b54 Fix bug #50939 - ChartEndObjectRecord is supposed to have 6 bytes at the end, but handle it not
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1082936 13f79535-47bb-0310-9956-ffa450edef68
2011-03-18 14:30:47 +00:00
Yegor Kozlov
ab33e375d3 fixed setting named styles to HSSFCells. see Bugzilla 50912
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1080689 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 17:33:36 +00:00
Yegor Kozlov
31681260ed fixed RecordFormatException when reading unicode strings with photenic data, see Bugzilla 50779
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1080496 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 09:33:22 +00:00
Nick Burch
0df8c11c4b Two more differences between the LZW in HDGF and HMEF:
* Little Endian vs Big Endian storage of the code position
 * Initial dictionary position is the end of pre-fill, if there is one, rather than always being position 0


git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1078300 13f79535-47bb-0310-9956-ffa450edef68
2011-03-05 15:25:39 +00:00
Nick Burch
18153d96ef Fix bug #50718 - More helpful error message when you try to create a CellReference with #REF!
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1078039 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 16:17:21 +00:00
Nick Burch
fd0c177783 Fix bug #50847 - XSSFFont now accepts the full range of Charsets from FontChartset
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1077950 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 14:01:14 +00:00
Nick Burch
61c7755195 Fix generics warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1077923 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 12:56:25 +00:00
Nick Burch
640a664542 From bug #50786 - Speed up calls to HSSFColor.getIndexHash() by returning a cached, unmodifiable Map. HSSFColor.getModifiableIndexHash() provides access to the old (slow but modifiable) functionality
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1077920 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 12:50:02 +00:00
Nick Burch
649df30b76 Start on unit tests for HMEF. Quite a bit is still stubbed out, and it shows that the LZW isn't quite right yet (so tests disabled)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1075955 13f79535-47bb-0310-9956-ffa450edef68
2011-03-01 18:12:44 +00:00
Nick Burch
51ed90fc4a Fix generics warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1072080 13f79535-47bb-0310-9956-ffa450edef68
2011-02-18 17:41:17 +00:00
Nick Burch
1c61709fdb Fix a couple more 1.6isms
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1069975 13f79535-47bb-0310-9956-ffa450edef68
2011-02-11 22:38:18 +00:00
Nick Burch
b048b8422a Fix bug #46664 - When creating HSSF Print Areas, ensure the named range is reference based not value based
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1069780 13f79535-47bb-0310-9956-ffa450edef68
2011-02-11 12:36:57 +00:00
Nick Burch
d1aab350fd Fix bug #50756 - When formatting numbers based on their Cell Style, treat GENERAL the same as the more typical General
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1069775 13f79535-47bb-0310-9956-ffa450edef68
2011-02-11 12:31:40 +00:00
Yegor Kozlov
2f15806b6e fixed HSSFWorkbook.createCellStyle to throw exception if the maximum number of cell styles was exceeded
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1069730 13f79535-47bb-0310-9956-ffa450edef68
2011-02-11 10:03:25 +00:00
Yegor Kozlov
8ef7fcdba3 fixed a regression caused by not escaped dollar sumbols, see r1061288 and Bugzilla 49928
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1069396 13f79535-47bb-0310-9956-ffa450edef68
2011-02-10 14:07:04 +00:00
Nick Burch
23935eb2a5 Fix bug #49928 for HSSF too - refactor HSSFDataFormat to allow overriding of built in formats, and tweak the format unit tests to do the same check for HSSF and XSSF. Also corrects some builtin formats for new HSSFWorkbooks which were slightly off
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1061288 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 13:20:24 +00:00
Yegor Kozlov
48544b470b added implementations for CLEAN(), CHAR() and ADDRESS(), see Bugzilla 50607
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1060788 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 12:30:18 +00:00
Nick Burch
3215f32e54 In NPOIFS, close the file we opened in more exception cases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1055379 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 09:42:00 +00:00
Nick Burch
bfd6fb0e2b More NPOIFS tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1054199 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 06:49:53 +00:00
Nick Burch
981b7cbd8e Add unit test for using HSSF with both POIFS and NPOIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1054190 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 05:30:11 +00:00
Nick Burch
bc2f0eb994 Fix generics warnings, and add another constructor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1054189 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 05:28:30 +00:00
Nick Burch
2d9837bd90 Tweak NPOIFS constructors so that if you have a FileChannel, you can pass it in, but that the File based one will tidy up after itself in the event of errors
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1054033 13f79535-47bb-0310-9956-ffa450edef68
2010-12-31 00:46:00 +00:00
Nick Burch
c82f06605e NPOIFS needs an explicit close, as it has to keep the File / buffer around to read from. Adds a close method
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053777 13f79535-47bb-0310-9956-ffa450edef68
2010-12-30 00:58:28 +00:00
Nick Burch
2f466d27fe Refactor DocumentInputStream so that it can transparently handle both old style and new style POIFS Documents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053562 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 07:28:10 +00:00
Nick Burch
7fe097413c Add a NPOIFS aware createDocumentInputStream method to DirectoryNode, and use it in POIDocument. Also fix indent in the latter
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053522 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 03:30:07 +00:00
Nick Burch
f2b541e026 Since a DirectoryNode has a reference to the underlying POIFSFileSystem, tidy up the POIDocument constructor to not need both passing in
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053521 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 03:19:46 +00:00
Nick Burch
3f85bdc6d3 More NPOIFS BAT vs XBAT confusion fixes. Also fixes recent POIFS regression on big files, and adds a POIFS unit test for XBAT containing files (previously there wasn't one)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053511 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 03:00:46 +00:00
Nick Burch
e2abe57845 More NPOIFS XBAT updates
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053504 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 01:34:56 +00:00
Nick Burch
30a23fc7b4 Fix the name of the RootProperty, as it never changes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 01:34:18 +00:00
Nick Burch
01626c6626 XBAT logic in NPOIFS was incorrect - it's a chain of doubly indirect, not singly indirect BATs. Start to correct
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053495 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 01:05:01 +00:00
Nick Burch
029850e5cf Implement a NPOIFS document reader, and add tests which use it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053279 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 08:52:50 +00:00
Nick Burch
5ed63966c4 Allow POIFSLister to switch between the two different POIFS implementations when listing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053274 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 07:13:47 +00:00
Nick Burch
9a865f1a30 Add NPOIFS high level Document implementation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053273 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 07:15:38 +00:00
Nick Burch
63cfee8179 Start on refactoring ready to support NPOIFS Directory/Document nodes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053269 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 06:21:40 +00:00
Nick Burch
35c54e42b9 Partial NPOIFS write implementation, and tidy up of methods around this
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053261 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 05:31:32 +00:00
Nick Burch
4f984c02c3 Add TODOs for further stream writing work
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053251 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 04:46:12 +00:00
Nick Burch
14fbfb1321 More NPOIFSStream tests, and explicit free support+test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053249 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 04:29:18 +00:00
Nick Burch
f8c1e5437f Add tests for the NPOIFS mini stream
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053014 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 07:39:57 +00:00
Nick Burch
bf9444f784 Start to support the MiniStream, by extracting out the BlockStore superclass and implementing a SBAT/Stream based mini block version
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053007 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 06:50:05 +00:00
Nick Burch
17c775625c Move the SBAT/BAT cutoff constant to POIFSConstants
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1052995 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 04:04:47 +00:00
Nick Burch
cd216b6f0b More NPOIFS tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1052988 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 01:51:10 +00:00