Commit Graph

1645 Commits

Author SHA1 Message Date
Andreas Beeker
c3af0776ec Fix exception for old powerpoint documents without the usual stream name
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1847442 13f79535-47bb-0310-9956-ffa450edef68
2018-11-25 23:01:54 +00:00
Dominik Stadler
e75a0b9e89 Add test for FileMagic
JavaDoc warning fixes
Remove some IDE warnings
Reformat code of sample application

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1847437 13f79535-47bb-0310-9956-ffa450edef68
2018-11-25 21:56:43 +00:00
Andreas Beeker
8b781ed03e #62949 - SlideShow rendering - keyframe fractions must be increasing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1847428 13f79535-47bb-0310-9956-ffa450edef68
2018-11-25 19:25:35 +00:00
Tim Allison
b76bf26677 bug 60316 -- skip the glossary document, not the template document.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1847263 13f79535-47bb-0310-9956-ffa450edef68
2018-11-23 13:32:22 +00:00
PJ Fanning
df83dab1a4 add missing classes to poi-ooxml-schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1847083 13f79535-47bb-0310-9956-ffa450edef68
2018-11-21 09:10:19 +00:00
PJ Fanning
f28629f10d [bug-62929] add null check for blip fill. Thanks to Mate Borcsok
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1847004 13f79535-47bb-0310-9956-ffa450edef68
2018-11-20 14:15:14 +00:00
Andreas Beeker
d6cc11ed7a Remove/Minimize references to Scratchpad module from other modules
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846931 13f79535-47bb-0310-9956-ffa450edef68
2018-11-19 18:00:42 +00:00
Andreas Beeker
0d052def85 #62921 - Provide OOXMLLite alternative for Java 12+
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846809 13f79535-47bb-0310-9956-ffa450edef68
2018-11-18 00:01:40 +00:00
PJ Fanning
d64003436f [bug-62908] populate NamedColors
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846520 13f79535-47bb-0310-9956-ffa450edef68
2018-11-13 16:08:11 +00:00
PJ Fanning
3885cb0839 fix typo
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846497 13f79535-47bb-0310-9956-ffa450edef68
2018-11-13 09:19:05 +00:00
PJ Fanning
e6505d0e10 add testcase for https://bz.apache.org/bugzilla/show_bug.cgi?id=62906
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846492 13f79535-47bb-0310-9956-ffa450edef68
2018-11-13 08:37:11 +00:00
PJ Fanning
6b7e322227 add testcase for https://bz.apache.org/bugzilla/show_bug.cgi?id=62906
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846489 13f79535-47bb-0310-9956-ffa450edef68
2018-11-13 08:20:47 +00:00
Andreas Beeker
0aa9b34d08 Bug 62872 - Writing large files with 800k rows gives java.io.IOException: This archive contains unclosed entries.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1845629 13f79535-47bb-0310-9956-ffa450edef68
2018-11-02 22:59:58 +00:00
Tim Allison
1cd3f7b14e bug 60316 -- until we can implement it properly, gracefully skip the glossary document in XWPF.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1845517 13f79535-47bb-0310-9956-ffa450edef68
2018-11-01 21:14:03 +00:00
Dominik Stadler
0cc8ec178f IDE warnings, tried to reproduce Bug 58927, but could not
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1845434 13f79535-47bb-0310-9956-ffa450edef68
2018-11-01 10:29:54 +00:00
Tim Allison
ad52c65f70 bug 62859 -- fix two potential NPEs when initializing XWPFSDTContent
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844920 13f79535-47bb-0310-9956-ffa450edef68
2018-10-26 19:06:18 +00:00
Dominik Stadler
b0f5c2ca7b IDE warnings, slightly more tests and fix test to not leave a modified file behind
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844894 13f79535-47bb-0310-9956-ffa450edef68
2018-10-26 10:58:37 +00:00
Dominik Stadler
232616f44d Adjust sample for creating comments to also create a .xlsx file
Enhance workbook factory to allow to create new empty workbooks as well

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844881 13f79535-47bb-0310-9956-ffa450edef68
2018-10-26 09:32:57 +00:00
Dominik Stadler
2148b7f278 Typos and IDE warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844879 13f79535-47bb-0310-9956-ffa450edef68
2018-10-26 09:32:43 +00:00
Dominik Stadler
8f11f0010e Set NOSONAR, adjust test slightly and reformat code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844878 13f79535-47bb-0310-9956-ffa450edef68
2018-10-26 09:32:30 +00:00
Greg Woolsey
d24b4492f0 #62834 FormulaEvaluator.evaluateInCell() throws Exception
added cell type = formula check when looping through the shared formula range, to ignore any non-formula cells.

Also refactored a bit to enable passing in the evaluation context, as getCellFormula() uses it behind the scenes when evaluating a shared formula cell (has to shift the formula references based on the master cell).  Review of these changes is welcome, as always.

Checked all other code referencing the "SHARED" enum, and didn't see anything else that dealt with formula cell values and thus would need to notice non-formula cells.

Added unit test based on the failing file from Bugzilla.  Test failed until the fixed code was in place.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844295 13f79535-47bb-0310-9956-ffa450edef68
2018-10-19 01:11:47 +00:00
Nick Burch
290e9c4087 #62831 Fix WorkbookFactory.create with a subclass of File, eg from JFileChooser
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844116 13f79535-47bb-0310-9956-ffa450edef68
2018-10-17 14:24:59 +00:00
Nick Burch
ba71f90c32 Failing unit test for bug #62831
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1844115 13f79535-47bb-0310-9956-ffa450edef68
2018-10-17 14:20:02 +00:00
Alain Béarez
5a53f36391 fix more LGTM alerts, in tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1843557 13f79535-47bb-0310-9956-ffa450edef68
2018-10-11 14:50:27 +00:00
Tim Allison
fcbed10cfc 62815 -- some numeric values not correctly extracted from xlsb
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1843553 13f79535-47bb-0310-9956-ffa450edef68
2018-10-11 14:14:07 +00:00
PJ Fanning
5baa52f86e small adjustments to byte sizes in TestPackage zip-bomb tests to try fix test that fails on old-xerces harness
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842980 13f79535-47bb-0310-9956-ffa450edef68
2018-10-05 20:17:39 +00:00
PJ Fanning
88fd68050f use jaxp transformer instead of dom serializer to try fix old-xerces test failure
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842979 13f79535-47bb-0310-9956-ffa450edef68
2018-10-05 20:09:45 +00:00
Alain Béarez
e88fc19ca4 change chart data to experiment diverse scripts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842687 13f79535-47bb-0310-9956-ffa450edef68
2018-10-03 08:20:50 +00:00
Alain Béarez
72d02f0c1c extract valuable code from 54470 submitted patch
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842548 13f79535-47bb-0310-9956-ffa450edef68
2018-10-01 19:27:32 +00:00
PJ Fanning
19baa76652 [bug-62736] Relations on XSLFPictureShape are removed unconditionally. Thanks to Mate Borcsok
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842055 13f79535-47bb-0310-9956-ffa450edef68
2018-09-26 21:42:21 +00:00
Greg Woolsey
891deb3967 Bug 62740 - XSSFTable constructor automatically assigns invalid (non-unique) column IDs
fix the logic and update the unit test to check for and catch the problem.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1841357 13f79535-47bb-0310-9956-ffa450edef68
2018-09-19 17:42:43 +00:00
PJ Fanning
e930d76d7b add ooxml-schemas enum classes to poi-ooxml-schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1841274 13f79535-47bb-0310-9956-ffa450edef68
2018-09-18 23:21:00 +00:00
PJ Fanning
c18375a4d0 [bug-62730] include all inner list classes in poi-ooxml-schemas.jar
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1841270 13f79535-47bb-0310-9956-ffa450edef68
2018-09-18 22:09:15 +00:00
PJ Fanning
74f788358a [bug-62733] XSLFBackground setFill() can corrupt the document
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1841240 13f79535-47bb-0310-9956-ffa450edef68
2018-09-18 16:55:29 +00:00
PJ Fanning
b7c7301941 handle test issues when running with old xerces
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1840386 13f79535-47bb-0310-9956-ffa450edef68
2018-09-08 22:28:02 +00:00
Andreas Beeker
2044779351 #62649 - Remove OPOIFS* / rename NPOIFS* to POIFS*
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839709 13f79535-47bb-0310-9956-ffa450edef68
2018-08-31 00:25:50 +00:00
PJ Fanning
45d85a05af remove stray stacktrace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839385 13f79535-47bb-0310-9956-ffa450edef68
2018-08-28 01:49:16 +00:00
PJ Fanning
45558cda65 add missing classes to poi-ooxml-schema.jar
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839384 13f79535-47bb-0310-9956-ffa450edef68
2018-08-28 01:38:34 +00:00
Alain Béarez
85e2e8616d test integration of XDDF text entities
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839259 13f79535-47bb-0310-9956-ffa450edef68
2018-08-26 21:33:16 +00:00
Andreas Beeker
e4bd5e838f #62649 - Remove OPOIFS
Fix HPSF UTF-8 encoding error with Bug52311.doc while refactoring CopyCompare/EntryUtils

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839201 13f79535-47bb-0310-9956-ffa450edef68
2018-08-26 11:55:00 +00:00
Dominik Stadler
71002b2491 Adjust test for JDK 9, 10 and 11
fix some IDE/Javadoc warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839195 13f79535-47bb-0310-9956-ffa450edef68
2018-08-26 11:41:09 +00:00
Dominik Stadler
4663238bb8 Adjust for JDK 11 ea-26 build, need to add jaxb via normal jar dependency now as it was removed from the JDK
Also needed to remove a few uses of Mockito which fail now with certain abstract classes
Update to Mockito 2.21

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838763 13f79535-47bb-0310-9956-ffa450edef68
2018-08-23 20:23:20 +00:00
Dominik Stadler
5acb18ac04 Remove some IDE warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838733 13f79535-47bb-0310-9956-ffa450edef68
2018-08-23 13:34:25 +00:00
PJ Fanning
179e81c4a4 [github-122] XWPF: Set table and table cell widths to percentage, twips, or auto. This closes #122
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838449 13f79535-47bb-0310-9956-ffa450edef68
2018-08-20 18:12:37 +00:00
Tim Allison
5a2090fe9d entity_expansion
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838135 13f79535-47bb-0310-9956-ffa450edef68
2018-08-15 19:20:11 +00:00
PJ Fanning
ae13b034fe [github-121] Fix issue with setting vertical alignment and emphasis mark. This closes #121
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838133 13f79535-47bb-0310-9956-ffa450edef68
2018-08-15 18:31:36 +00:00
Andreas Beeker
1407ace4f7 #61589 - Importing content does not copy hyperlink address
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1837909 13f79535-47bb-0310-9956-ffa450edef68
2018-08-12 22:35:02 +00:00
PJ Fanning
1691c2372a disable dtd processing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1837850 13f79535-47bb-0310-9956-ffa450edef68
2018-08-11 09:22:05 +00:00
Andreas Beeker
d21c3d50ee #62587 - repeated call to XSLFSheet.removeShape leads to java.lang.IllegalArgumentException: partName
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1837839 13f79535-47bb-0310-9956-ffa450edef68
2018-08-11 01:55:39 +00:00
Tim Allison
070e815109 bug 62592 -- prevent StackOverflowError on corrupt thmx
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1837658 13f79535-47bb-0310-9956-ffa450edef68
2018-08-08 16:06:18 +00:00