Commit Graph

1969 Commits

Author SHA1 Message Date
Andreas Beeker 114a4dbd41 #64411 - Provide JigSaw modules
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877398 13f79535-47bb-0310-9956-ffa450edef68
2020-05-05 13:36:30 +00:00
Andreas Beeker 23acaff78d Throw exception on null/placeholder arrays in TNEF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877044 13f79535-47bb-0310-9956-ffa450edef68
2020-04-26 21:38:14 +00:00
Andreas Beeker 6ae31c8a67 Replace assertion with exception
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876951 13f79535-47bb-0310-9956-ffa450edef68
2020-04-24 21:31:49 +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 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 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 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
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 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 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
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 40f320bcf9 github-167 - HSMF enhancements
introduce NameIdChunks.GetPropertyTag:
which enables evaluating property ids from properties identified by name/id in property sets (simple version of IMAPIProp::GetIDsFromNames)

AttachmentChunks.getAttachData:
use new ByteChunkDeferred instead of ByteChunk which enables delayed reading of attachments to avoid all attachments are completely read into memory when parsing which may cause OutOfMemoryErrors on e-mails with big attachments.

POIFSChunkParser:
support reading multi valued chunks (e.g. required when reading the Keywords ("categories") property)

add MAPIProperty.RECEIVED_BY_SMTP_ADDRESS

add unit tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874990 13f79535-47bb-0310-9956-ffa450edef68
2020-03-08 23:26:53 +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
Andreas Beeker 159ad62a47 fix IntelliJ warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874338 13f79535-47bb-0310-9956-ffa450edef68
2020-02-21 21:14:31 +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
Andreas Beeker 33fd0b22d6 Regression findings - fix missing moveto exception
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873515 13f79535-47bb-0310-9956-ffa450edef68
2020-02-02 22:53:09 +00:00
Andreas Beeker 3ef8aa6927 Local EMF test changes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873430 13f79535-47bb-0310-9956-ffa450edef68
2020-01-31 18:45:39 +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 31eb7f9b06 Fix some IDE warnings, Sonar fixes and some missing closing of resources in unit-tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873231 13f79535-47bb-0310-9956-ffa450edef68
2020-01-27 22:54:03 +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 563c29f8cf sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873078 13f79535-47bb-0310-9956-ffa450edef68
2020-01-23 22:48:19 +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
PJ Fanning 2797d07486 try to fix some jdk 14 build issues due to java.lang.Record causing existing POI Record classes to be ambiguous
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872610 13f79535-47bb-0310-9956-ffa450edef68
2020-01-10 23:13:20 +00:00
Andreas Beeker f7fe4b0d59 #63955 - HMEFContentsExtractor fails to extract content from winmail.dat
added example file - optimized junit tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872480 13f79535-47bb-0310-9956-ffa450edef68
2020-01-08 00:49:39 +00:00
Andreas Beeker d1a714f5f1 findbugs fixes and refactor some ClassIDs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872473 13f79535-47bb-0310-9956-ffa450edef68
2020-01-07 22:46:29 +00:00
Andreas Beeker adb8424bc1 Fix Visio compression
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872223 13f79535-47bb-0310-9956-ffa450edef68
2020-01-01 22:44:42 +00:00
Andreas Beeker a0770034fc #64036 - remove reflective calls in Workbook- and SlideShowFactory
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872066 13f79535-47bb-0310-9956-ffa450edef68
2019-12-28 22:39:26 +00:00
Andreas Beeker c66575c1e7 Migrate all junit tests to Junit 4
get rid of references to junit.framework
don't throw AssertionFailedErrors, but use Assert.fail instead
add try-with-resources where it was missing

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872041 13f79535-47bb-0310-9956-ffa450edef68
2019-12-27 23:00:13 +00:00
PJ Fanning 91017547ae fix spelling of OutlookTextExtractor class name
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871994 13f79535-47bb-0310-9956-ffa450edef68
2019-12-26 09:27:51 +00:00
PJ Fanning ceef7e2611 fix spelling of Usage
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871987 13f79535-47bb-0310-9956-ffa450edef68
2019-12-26 06:16:21 +00:00
PJ Fanning 25a82d8c55 fix spelling of OutlookTextExtractor class name
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871986 13f79535-47bb-0310-9956-ffa450edef68
2019-12-26 06:12:56 +00:00
Andreas Beeker 03fe2ded64 #64004 - Replace clone() with copy constructor - mainly HWPF classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871938 13f79535-47bb-0310-9956-ffa450edef68
2019-12-24 11:56:42 +00:00
PJ Fanning 93a7b81ed9 convert some tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871921 13f79535-47bb-0310-9956-ffa450edef68
2019-12-23 09:18:38 +00:00
Andreas Beeker 66471836f5 Replace custom hashCode code with Objects.hash() / Arrays.deepHashCode()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871913 13f79535-47bb-0310-9956-ffa450edef68
2019-12-23 00:15:55 +00:00
Andreas Beeker ba6152503e #64004 - Replace clone() with copy constructor - mainly HSSF classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871911 13f79535-47bb-0310-9956-ffa450edef68
2019-12-22 21:44:45 +00:00
Dominik Stadler 5e394a5e10 Let IntelliJ simplify some assertions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871591 13f79535-47bb-0310-9956-ffa450edef68
2019-12-15 14:53:46 +00:00
Dominik Stadler 1a5cec89d8 Replace manual close with try-with-resources
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871590 13f79535-47bb-0310-9956-ffa450edef68
2019-12-15 14:53:11 +00:00
Andreas Beeker 3fb5e79490 #64004 - Replace clone() with copy constructor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871563 13f79535-47bb-0310-9956-ffa450edef68
2019-12-14 23:44:26 +00:00
Dominik Stadler 57b0576f63 Adjust some JavaDoc and fix some IDE warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871505 13f79535-47bb-0310-9956-ffa450edef68
2019-12-14 13:10:12 +00:00
Andreas Beeker 0f29ae8e4d Sonar fixes - type: bugs / severity: major
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871064 13f79535-47bb-0310-9956-ffa450edef68
2019-12-08 23:29:50 +00:00
Andreas Beeker 9f2f9dc793 Sonar Fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870856 13f79535-47bb-0310-9956-ffa450edef68
2019-12-05 00:18:36 +00:00
Andreas Beeker 08159e66a7 Sonar Fixes + Refactor scattered XML initializations to XMLHelper
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870769 13f79535-47bb-0310-9956-ffa450edef68
2019-12-03 21:56:47 +00:00
Andreas Beeker 2eee474063 #63955 - HMEFContentsExtractor fails to extract content from winmail.dat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870692 13f79535-47bb-0310-9956-ffa450edef68
2019-12-01 21:06:54 +00:00
Andreas Beeker b4b661acc1 Sonar fixes - use try-with-resources
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870653 13f79535-47bb-0310-9956-ffa450edef68
2019-11-30 23:00:08 +00:00
Andreas Beeker 2a982f62ec Replace StringBuffer with StringBuilder
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870600 13f79535-47bb-0310-9956-ffa450edef68
2019-11-29 23:57:35 +00:00
Andreas Beeker 1562175343 Bug 60656 - Emf image support in slideshows
- use Rectangle2D instead of Dimension2D for image bounds
- fix shearing transformation
- fix rendering of font attributes (bold/italic/...)
- emf+: needs its own object table and properties table
- emf+: add linear gradient handler
- emf+: handle brush data of pens
- wmf/emf/emf+: position right aligned text correctly
- emf+: use emf+ instead of emf records in dual-mode
- emf+: handle region data and operations correctly
- emf/+: map font weight to awt font weight correctly

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870566 13f79535-47bb-0310-9956-ffa450edef68
2019-11-29 00:39:35 +00:00