Commit Graph

10379 Commits

Author SHA1 Message Date
Dominik Stadler 52320e3213 Fix some IDE warnings, remove usage of deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876947 13f79535-47bb-0310-9956-ffa450edef68
2020-04-24 20:58:32 +00:00
Dominik Stadler a415ae13f7 Re-establish class which is used in mass-regression-testing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876946 13f79535-47bb-0310-9956-ffa450edef68
2020-04-24 20:58:23 +00:00
Dominik Stadler 0c8d02f53e Adjust README.rst somewhat, remove outdated git-link which redirects to Github now
Closes #174

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876945 13f79535-47bb-0310-9956-ffa450edef68
2020-04-24 20:58:20 +00:00
Dominik Stadler 827e7e324b Also remove very old versions of ooxml-schemas-jar (ca. POI 3.5)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876944 13f79535-47bb-0310-9956-ffa450edef68
2020-04-24 20:57:59 +00:00
Andreas Beeker ad73704e81 Sonar fix - "Add the missing @deprecated Javadoc tag."
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876854 13f79535-47bb-0310-9956-ffa450edef68
2020-04-22 21:25:25 +00:00
Andreas Beeker 778f4f5d7d #55505 - CountryRecord not found
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876805 13f79535-47bb-0310-9956-ffa450edef68
2020-04-21 22:13:59 +00:00
Andreas Beeker c8a5bdf22a Sonar fix - "Add a "NoSuchElementException" for iteration beyond the end of the collection."
PPTX2PNG - handle ignoreParse/quite for file inputs too

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876768 13f79535-47bb-0310-9956-ffa450edef68
2020-04-20 22:01:54 +00:00
Andreas Beeker 948d4a3574 Sonar fix - "Cast one of the operands of this addition operation to a 'long'/'double'"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876767 13f79535-47bb-0310-9956-ffa450edef68
2020-04-20 21:28:34 +00:00
Andreas Beeker 65c8c6cd11 Sonar fix - Suppress "Make sure that command line arguments are used safely here." for examples
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876766 13f79535-47bb-0310-9956-ffa450edef68
2020-04-20 20:57:37 +00:00
Andreas Beeker 30280a9e5a fix integration test error
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876741 13f79535-47bb-0310-9956-ffa450edef68
2020-04-20 08:27:36 +00:00
Andreas Beeker 661c0b66bc Sonar fixes
- Math operands should be cast before assignment
- Suppress - Make sure that command line arguments are used safely here
- Suppress - Replace this use of System.out or System.err by a logger.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876737 13f79535-47bb-0310-9956-ffa450edef68
2020-04-19 23:37:06 +00:00
Andreas Beeker c41dee931f #63745 - Add traversing and debugging interface to HSSF
a few more HSSF / Old Excel classes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876732 13f79535-47bb-0310-9956-ffa450edef68
2020-04-19 20:33:54 +00:00
Andreas Beeker fbcf0c81ba Fix new Name.isHidden leftover
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876731 13f79535-47bb-0310-9956-ffa450edef68
2020-04-19 20:32:46 +00:00
Nick Burch e9d0ddce93 Add unit tests for new Name.isHidden method
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876725 13f79535-47bb-0310-9956-ffa450edef68
2020-04-19 15:40:37 +00:00
Nick Burch 248e85dbba Inspired by Stackoverflow #61292598 - Expose if a Named Range is hidden or not
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876722 13f79535-47bb-0310-9956-ffa450edef68
2020-04-19 15:23:32 +00:00
Andreas Beeker 2841f3cd0e Sonar fixes - Ignore System.out-calls and args checks in examples
Remove superfluous internal methods

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876704 13f79535-47bb-0310-9956-ffa450edef68
2020-04-18 21:31:18 +00:00
Andreas Beeker 7b2674f5af #57843 - RuntimeException on extracting text from Word 97-2004 Document
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876641 13f79535-47bb-0310-9956-ffa450edef68
2020-04-16 22:11:34 +00:00
Andreas Beeker 7daeb4278c Replace Allocate+System.arraycopy with Array.copyOf/Range and IOUtils.safelyClone
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876640 13f79535-47bb-0310-9956-ffa450edef68
2020-04-16 22:11:16 +00:00
Andreas Beeker cdefe69aab Sonar fix - Child class methods named for parent class methods should be overrides
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876526 13f79535-47bb-0310-9956-ffa450edef68
2020-04-14 19:09:27 +00:00
Andreas Beeker d06de78703 #64350 - Sonar fix - "Iterator.next()" methods should throw "NoSuchElementException"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876525 13f79535-47bb-0310-9956-ffa450edef68
2020-04-14 19:07:24 +00:00
PJ Fanning fde6f81305 [bug-64348] partial fix for IndexOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876512 13f79535-47bb-0310-9956-ffa450edef68
2020-04-14 12:53:17 +00:00
PJ Fanning 531e4fee2e [bug-64348] partial fix for IndexOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876487 13f79535-47bb-0310-9956-ffa450edef68
2020-04-14 09:06:56 +00:00
Andreas Beeker f9417a92b2 #64036 - Replace reflection calls in factories for Java 9+ (HSSF Record Factory)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876467 13f79535-47bb-0310-9956-ffa450edef68
2020-04-13 21:55:05 +00:00
Andreas Beeker 4fd05fac12 #63745 - Add traversing and debugging interface to HSSF
This makes toString() implementations obsolete.

This also contains preparation for #64036 to (maybe) change the record factory interface of HSSF. 

Remove duplicated record SeriesToChartGroupRecord, which is a duplicate of SeriesChartGroupIndexRecord.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876433 13f79535-47bb-0310-9956-ffa450edef68
2020-04-12 22:03:52 +00:00
Alain Béarez f7b4edd27e Add table row at correct index
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876409 13f79535-47bb-0310-9956-ffa450edef68
2020-04-12 00:26:12 +00:00
Andreas Beeker 50d52bf828 Add Java 15 job
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876407 13f79535-47bb-0310-9956-ffa450edef68
2020-04-11 23:16:18 +00:00
Alain Béarez a9ec119c40 Return and set paragraph indentation level
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876406 13f79535-47bb-0310-9956-ffa450edef68
2020-04-11 21:43:18 +00:00
Nick Burch 2b2631225d #64319 Tighten the scientific format code to avoid making eg TRUE into TRUE+, handle formats like 0E-0, and ensure formats like 0E0 work correctly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876396 13f79535-47bb-0310-9956-ffa450edef68
2020-04-11 15:36:27 +00:00
PJ Fanning 0ea6b0800d [bug-64327] bugfix in SXSSFSheet isColumnTrackedForAutoSizing for untracked. Thanks to Eugene Kortov. This closes #175
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876336 13f79535-47bb-0310-9956-ffa450edef68
2020-04-09 20:14:50 +00:00
PJ Fanning 84ba670e27 bouncycastle 1.64
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876280 13f79535-47bb-0310-9956-ffa450edef68
2020-04-08 08:29:15 +00:00
Nick Burch 2fb30f7892 Add disabled unit test for #64319
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876225 13f79535-47bb-0310-9956-ffa450edef68
2020-04-07 09:46:32 +00:00
Andreas Beeker 3a6ebecc6f ArrayUtil - remove unused method
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876205 13f79535-47bb-0310-9956-ffa450edef68
2020-04-06 20:43:16 +00:00
Andreas Beeker 65ccec11cb Sonar fixes - String literals should not be duplicated
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876163 13f79535-47bb-0310-9956-ffa450edef68
2020-04-05 20:50:40 +00:00
Andreas Beeker d842136464 Sonar fixes - "static" base class members should not be accessed via derived types
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876159 13f79535-47bb-0310-9956-ffa450edef68
2020-04-05 18:55:46 +00:00
Andreas Beeker 074d68fedf Sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876157 13f79535-47bb-0310-9956-ffa450edef68
2020-04-05 16:23:21 +00:00
Dominik Stadler af890fba13 Ignore OOM test for now, somehow catching Exceptions does not work when run on Gradle
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876143 13f79535-47bb-0310-9956-ffa450edef68
2020-04-05 05:52:12 +00:00
Andreas Beeker 0174c4df27 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876138 13f79535-47bb-0310-9956-ffa450edef68
2020-04-05 01:01:47 +00:00
Andreas Beeker 81400a3ee2 Bug 60656 - Emf image support in slideshows
- fixed WmfExtTextOut dx handling for variable text spacing
- fixed WmfExtTextOut text position for (0,0) references based on the current/last path location
- fixed WmfExtTextOut handling of symbol/wingdings charset (move ascii to unicode private area, because Java font loader maps the glyphs there) - and use existing workaround if the fonts aren't installed, i.e. use corresponding unicode characters of the logcial font then
- provide option in PPTX2PNG to use given file input type, if the file magic is unknown
- provide option in PPTX2PNG to render text as shapes in SVG, as dx handling (above) implemented via TextAttribute.TRACKING is not supported by batik 

source of the sample.wmf, which I've used:
https://stackoverflow.com/questions/58726194/svg-rendering-with-batik-produce-broken-image

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876136 13f79535-47bb-0310-9956-ffa450edef68
2020-04-05 00:42:08 +00:00
Andreas Beeker 1dc771394b Sonar Fixes - "static" base class members should not be accessed via derived types
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876067 13f79535-47bb-0310-9956-ffa450edef68
2020-04-02 23:54:48 +00:00
Andreas Beeker 3f7d718a67 Sonar Fixes - The diamond operator ("<>") should be used
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876064 13f79535-47bb-0310-9956-ffa450edef68
2020-04-02 22:37:45 +00:00
Andreas Beeker 24c4f94962 Sonar Fixes and remove obsolete classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876019 13f79535-47bb-0310-9956-ffa450edef68
2020-04-01 23:25:33 +00:00
Andreas Beeker efd9c7c277 #64301 - Allow try-with-resources with OPCPackage.revert()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876018 13f79535-47bb-0310-9956-ffa450edef68
2020-04-01 23:23:55 +00:00
Alain Béarez d383fea7bd Sonar Fixes - code smells
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875979 13f79535-47bb-0310-9956-ffa450edef68
2020-04-01 01:40:57 +00:00
Alain Béarez 8e00a42767 Remove chart title
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875978 13f79535-47bb-0310-9956-ffa450edef68
2020-04-01 01:40:52 +00:00
Alain Béarez c7c3bbb0ed Keep last run properties when resetting paragraph text
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875977 13f79535-47bb-0310-9956-ffa450edef68
2020-04-01 01:40:49 +00:00
Tim Allison 5976721660 64261 -- fix handling of drop down list when items are selected
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875956 13f79535-47bb-0310-9956-ffa450edef68
2020-03-31 18:16:09 +00:00
Alain Béarez 65990027e1 Sonar Fixes - public final class with private constructor for examples
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875902 13f79535-47bb-0310-9956-ffa450edef68
2020-03-31 01:16:39 +00:00
Alain Béarez c67d2605fd Insert a new row in XSLFTable
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875901 13f79535-47bb-0310-9956-ffa450edef68
2020-03-31 00:47:45 +00:00
Andreas Beeker a850690d7c Sonar Fixes
- name clashes with constants
- missing break in switch statements

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875863 13f79535-47bb-0310-9956-ffa450edef68
2020-03-29 22:37:23 +00:00
Alain Béarez ce544b8550 allow add and remove a HyperlinkRun or a FieldRun
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875862 13f79535-47bb-0310-9956-ffa450edef68
2020-03-29 22:21:35 +00:00