3394 Commits

Author SHA1 Message Date
Dominik Stadler
4abe6ef9ef Bug 63294: Add some more methods to allow to use CellType everywhere
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876948 13f79535-47bb-0310-9956-ffa450edef68
2020-04-24 20:58:38 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
Andreas Beeker
3cb1a38d8e Sonar Fixes - try to fix XXE warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875860 13f79535-47bb-0310-9956-ffa450edef68
2020-03-29 14:55:31 +00:00
Andreas Beeker
c01273ad02 Sonar Fixes
- use String.replace instead of String.replaceAll for literal values
- use constants from base class

- deprecated various references to constants of org.apache.poi.ss.usermodel.FontFormatting - to be replaced by o.a.p.s.u.Font in POI 5.0.0

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875859 13f79535-47bb-0310-9956-ffa450edef68
2020-03-29 14:39:11 +00:00
Dominik Stadler
cc1b6557ee Bug 63845: Adjust handling of formula-cells to fix regression introduced in 4.1.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875837 13f79535-47bb-0310-9956-ffa450edef68
2020-03-29 08:16:17 +00:00
Dominik Stadler
e88fac30b8 Bug 61863: Update JavaDoc to describe relation to workbook-level flag
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875804 13f79535-47bb-0310-9956-ffa450edef68
2020-03-28 09:49:24 +00:00
Andreas Beeker
7a340230fd #64241 - shade and tint calculation are based now on scRGB (opposed to HSL) colorspace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875522 13f79535-47bb-0310-9956-ffa450edef68
2020-03-22 18:59:43 +00:00
Andreas Beeker
d3de3636cf #64241 - XSLF - Wrong scheme colors used when rendering
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875499 13f79535-47bb-0310-9956-ffa450edef68
2020-03-21 18:25:38 +00:00
Andreas Beeker
9de555bfd4 #64213 - Picture.resize(double scale) scales width wrong for small pictures and when dx1 is set
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875266 13f79535-47bb-0310-9956-ffa450edef68
2020-03-16 18:46:48 +00:00
Andreas Beeker
ef90a5f2c8 Get UUID from ClassID
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874989 13f79535-47bb-0310-9956-ffa450edef68
2020-03-08 23:20:44 +00:00
Dominik Stadler
199895bfc4 Work on bug 64038 and other bugs and add test for 62865
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874983 13f79535-47bb-0310-9956-ffa450edef68
2020-03-08 20:17:19 +00:00
Dominik Stadler
77fbcb788d Try to use https for poi.apache.org everywhere
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874981 13f79535-47bb-0310-9956-ffa450edef68
2020-03-08 20:17:08 +00:00
Dominik Stadler
a7d96dcb73 Bug 58896 and 52834: Cache Sheet.getMergedRegions() as it seems to sometimes be the culprit for autosize taking a very long time.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874973 13f79535-47bb-0310-9956-ffa450edef68
2020-03-08 11:17:34 +00:00
Dominik Stadler
1e8cba79ce Bug 60282: Update JavaDoc and use a common constant for TWIPS_PER_POINT
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874966 13f79535-47bb-0310-9956-ffa450edef68
2020-03-08 08:28:17 +00:00
Dominik Stadler
af4751b260 Update JavaDoc for logging and marshalling
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874965 13f79535-47bb-0310-9956-ffa450edef68
2020-03-08 08:28:11 +00:00
Dominik Stadler
2776f18423 Fix incorrect handling of format which should not produce any digit for zero
Also include the internally computed format-string when the resulting format causes an exception

One other case with question marks is still not handled correctly, though

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874950 13f79535-47bb-0310-9956-ffa450edef68
2020-03-07 15:33:53 +00:00
Andreas Beeker
3691704678 Sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874530 13f79535-47bb-0310-9956-ffa450edef68
2020-02-25 21:27:07 +00:00
Axel Howind
fd4410d50b replace some calls to Collection methods with shorter/more effective versions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874263 13f79535-47bb-0310-9956-ffa450edef68
2020-02-20 16:27:19 +00:00
Axel Howind
842e71a3d7 use indexOf(char) instead of indexOf(String) where possible; replace one more StringBuffer with StringBuilder - bug 63805
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874262 13f79535-47bb-0310-9956-ffa450edef68
2020-02-20 15:51:17 +00:00
Axel Howind
09d55c7832 Applied "clean up IntList code" patch from bug 63805
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874257 13f79535-47bb-0310-9956-ffa450edef68
2020-02-20 15:04:57 +00:00
Andreas Beeker
bc969fe4aa PPTX2PNG - fix SVG gradients
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874150 13f79535-47bb-0310-9956-ffa450edef68
2020-02-17 22:29:29 +00:00
Tim Allison
636cc83665 Bug 64130 -- handle empty worksheet names in OldSheetRecord more robustly.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873863 13f79535-47bb-0310-9956-ffa450edef68
2020-02-10 17:38:29 +00:00
Andreas Beeker
8803989321 Use indexed palette for duo tone pattern
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873516 13f79535-47bb-0310-9956-ffa450edef68
2020-02-03 00:25:52 +00:00
Andreas Beeker
4a2273c370 XSLF Performance - don't initialize the JAXBContext every time
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873499 13f79535-47bb-0310-9956-ffa450edef68
2020-02-02 11:15:56 +00:00
Andreas Beeker
5acb7d6c47 TextLayout.getAdvance() for " " returns 0 in some cases / JDKs, which caused an div by 0 -> Infinity problem
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873494 13f79535-47bb-0310-9956-ffa450edef68
2020-02-02 06:04:14 +00:00
Dominik Stadler
d3767e1de7 Improve some assertions and error messages for exceptions seen in the regression tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873385 13f79535-47bb-0310-9956-ffa450edef68
2020-01-30 21:09:17 +00:00
Dominik Stadler
366c80c480 Handle empty files correctly when looking for FileMagic to avoid NegativeArraySizeException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873232 13f79535-47bb-0310-9956-ffa450edef68
2020-01-27 22:54:15 +00:00
Andreas Beeker
8202a34d69 #64036 - Replace reflection calls in factories for Java 9+ - Escher factories
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873187 13f79535-47bb-0310-9956-ffa450edef68
2020-01-26 19:50:40 +00:00
Andreas Beeker
0fb322bb92 #64088 - SlideShow rendering fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872984 13f79535-47bb-0310-9956-ffa450edef68
2020-01-19 20:44:36 +00:00