Commit Graph

10081 Commits

Author SHA1 Message Date
Dominik Stadler 734d6911d8 Do not use a WeakReference for the parent-link in HWPF-Ranges
Some unit-tests show sporadic failures and it seems functionality is actually
broken if the WeakReference is garbage-collected. Not sure why a
WeakReference was used here anyway.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1866054 13f79535-47bb-0310-9956-ffa450edef68
2019-08-29 05:15:57 +00:00
Dominik Stadler d81b74ba67 Adjust JavaDoc and code formatting
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1866053 13f79535-47bb-0310-9956-ffa450edef68
2019-08-29 05:15:50 +00:00
PJ Fanning 3623bea505 [bug-63664] do not use DocumentBuilderFactory directly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1865720 13f79535-47bb-0310-9956-ffa450edef68
2019-08-22 21:57:50 +00:00
Dominik Stadler a3298f9c16 Bug 63657: Optimize onDocumentWrite() to not do the full re-assignment
if not necessary at all, also use getCArray() instead of getCList() as
access-operations are much quicker this way

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1865209 13f79535-47bb-0310-9956-ffa450edef68
2019-08-15 07:55:06 +00:00
Dominik Stadler ba66108653 Close file-resources in unit-tests, fix IDE warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1865208 13f79535-47bb-0310-9956-ffa450edef68
2019-08-15 07:54:58 +00:00
Dominik Stadler 0619e7ebfb Bug 63657: Rework the for bug #62130 to not use up twice as much memory when writing documents.
Unfortunately XMLBeans is very tricky to use here, mainly the fact that setCArray does not replace the internal objects, but copies the content into the currently held objects makes it rather hard to do this right.

Therefore we now try to keep the existing objects and only replace the content as required to
have a stable ordering of cells in the row-XML structure.

This also fixes removing cells from rows to avoid invalid situations and
correctly free CTCellImpl instances.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1864977 13f79535-47bb-0310-9956-ffa450edef68
2019-08-12 16:42:46 +00:00
PJ Fanning 958f72caae add some missing classes to poi-ooxml-schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863753 13f79535-47bb-0310-9956-ffa450edef68
2019-07-25 17:26:21 +00:00
PJ Fanning 9bd1a6348a add some missing classes to poi-ooxml-schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863752 13f79535-47bb-0310-9956-ffa450edef68
2019-07-25 17:04:23 +00:00
Andreas Beeker ec2951bece Bug 60656 - fix image dimensions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863602 13f79535-47bb-0310-9956-ffa450edef68
2019-07-22 21:31:58 +00:00
Andreas Beeker e18eef07b1 Refactor alpha handling
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863601 13f79535-47bb-0310-9956-ffa450edef68
2019-07-22 21:30:12 +00:00
Andreas Beeker 58eb1a8070 Bug 63580 - Fix texture paint handling
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863600 13f79535-47bb-0310-9956-ffa450edef68
2019-07-22 21:29:55 +00:00
PJ Fanning 21ed5240e7 try to fix NPE in tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863516 13f79535-47bb-0310-9956-ffa450edef68
2019-07-21 08:39:56 +00:00
PJ Fanning cf1eb05304 missing @since annotations
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863476 13f79535-47bb-0310-9956-ffa450edef68
2019-07-20 12:11:07 +00:00
PJ Fanning 4fbad5c3f7 [github-150] XWPFPicture: easy access to width and depth. Thanks to Thibaut Cuvelier. This closes #150
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863434 13f79535-47bb-0310-9956-ffa450edef68
2019-07-19 21:05:15 +00:00
PJ Fanning ea58359b7c [github-153] XWPFParagraph: easier way to create a link. Thanks to Thibaut Cuvelier. This closes #153
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863433 13f79535-47bb-0310-9956-ffa450edef68
2019-07-19 20:49:48 +00:00
PJ Fanning 10b5a462dc [github-157] add setters for ExtendedProperties. Thanks to Thibaut Cuvelier. This closes #157
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863432 13f79535-47bb-0310-9956-ffa450edef68
2019-07-19 19:48:14 +00:00
PJ Fanning 65c4aafe3e [github-156] add setKeepNext to XWPFParagraph. Thanks to Thibaut Cuvelier.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1863182 13f79535-47bb-0310-9956-ffa450edef68
2019-07-16 21:00:49 +00:00
Tim Allison c7bcd70d54 Bug 63542 -- bump min record limit for TNEFAttribute
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1862895 13f79535-47bb-0310-9956-ffa450edef68
2019-07-10 20:02:59 +00:00
PJ Fanning 0d323ec9b0 [bug-63533] fix javadoc that refers to horisontalPdi
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1862382 13f79535-47bb-0310-9956-ffa450edef68
2019-07-01 14:07:16 +00:00
Andreas Beeker dd6d090969 fix rendering of xslf shapes with no/external blip part
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861958 13f79535-47bb-0310-9956-ffa450edef68
2019-06-23 23:13:15 +00:00
Andreas Beeker 0df618c109 omit png output on test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861953 13f79535-47bb-0310-9956-ffa450edef68
2019-06-23 22:26:24 +00:00
Andreas Beeker 861988bac3 Bug 60656 - EMF image support in slideshows
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861952 13f79535-47bb-0310-9956-ffa450edef68
2019-06-23 22:21:15 +00:00
Dominik Stadler 9cde034ab9 Bug 62906 and 63401: Ensure tables have an initial name which does not conflict with
existing names

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861819 13f79535-47bb-0310-9956-ffa450edef68
2019-06-22 06:12:19 +00:00
Dominik Stadler 16779b96e5 Fix IDE warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861818 13f79535-47bb-0310-9956-ffa450edef68
2019-06-22 06:12:12 +00:00
Dominik Stadler 50874d9d0d Bug 63509: Allow to format a CellReference without sheet-name for ignoredErrors.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861817 13f79535-47bb-0310-9956-ffa450edef68
2019-06-22 06:12:05 +00:00
PJ Fanning 0cd5834661 [bug-57342] Excel compatible Zip64 implementation. Thanks to Krzysztof Rzymkowski. This closes #154
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861196 13f79535-47bb-0310-9956-ffa450edef68
2019-06-12 21:34:39 +00:00
PJ Fanning 25d3f3527d tidy up some int casts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861176 13f79535-47bb-0310-9956-ffa450edef68
2019-06-12 18:14:22 +00:00
PJ Fanning d20bc98f70 [bug-63498] NPE when calling getShapeName on XSLFTableCell. Thanks to Mate Borcsok.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861172 13f79535-47bb-0310-9956-ffa450edef68
2019-06-12 17:30:52 +00:00
PJ Fanning 3e061ca74c XMLBeans Java 1.12 build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861021 13f79535-47bb-0310-9956-ffa450edef68
2019-06-11 10:40:56 +00:00
PJ Fanning b88fbb9f06 modify xmlbeans jobs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860890 13f79535-47bb-0310-9956-ffa450edef68
2019-06-09 10:04:42 +00:00
Andreas Beeker 27c20b0e9a Bug 60656 - EMF image support in slideshows
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860732 13f79535-47bb-0310-9956-ffa450edef68
2019-06-06 22:32:41 +00:00
Dominik Stadler 8808bf7b72 ExcelComparator: Adjust iterating rows/columns
Run this sample as part of the integration tests
Open the files read-only to not re-write them with changed content
Add null-checks and use toString() to prevent exceptions with certain files

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860688 13f79535-47bb-0310-9956-ffa450edef68
2019-06-05 20:28:07 +00:00
Dominik Stadler b12b4398ed Print out where the junit-test-report is written to
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860687 13f79535-47bb-0310-9956-ffa450edef68
2019-06-05 20:28:00 +00:00
Dominik Stadler d3b794de7a Add helper class for mass-regression-tests which scans a directory and provides
the matching FileHandlers for each found file.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860686 13f79535-47bb-0310-9956-ffa450edef68
2019-06-05 20:27:54 +00:00
PJ Fanning 5e33bd4b29 [github-151] XWPFRun: allow style retrieval. This closes #151
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860464 13f79535-47bb-0310-9956-ffa450edef68
2019-06-01 01:09:40 +00:00
PJ Fanning 8638dbf9b8 [bug-63463] ignore forbiddenapis in new testcase
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860422 13f79535-47bb-0310-9956-ffa450edef68
2019-05-31 00:13:37 +00:00
PJ Fanning 85b09a629c [bug-63463] ignore forbiddenapis in new testcase
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860420 13f79535-47bb-0310-9956-ffa450edef68
2019-05-30 22:05:53 +00:00
PJ Fanning 680d655435 [bug-63463] add tests fix issue with shifting rows (failing tests ignored). Thanks to David Gauntt.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860419 13f79535-47bb-0310-9956-ffa450edef68
2019-05-30 20:59:14 +00:00
PJ Fanning 7ef085af37 [bug-63463] fix issue with shifting rows. Thanks to David Gauntt.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860384 13f79535-47bb-0310-9956-ffa450edef68
2019-05-30 07:56:33 +00:00
Alain Béarez dcb6d534fd remove code smells
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860311 13f79535-47bb-0310-9956-ffa450edef68
2019-05-29 01:05:26 +00:00
PJ Fanning 0ccbf4671d fix forbidden api issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860160 13f79535-47bb-0310-9956-ffa450edef68
2019-05-27 20:00:04 +00:00
PJ Fanning 2343919656 try to fix integration tests (by ignoring some new msg files)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860155 13f79535-47bb-0310-9956-ffa450edef68
2019-05-27 17:46:41 +00:00
PJ Fanning f74a8f9abb [github-149] improve MAPIMessage.guess7BitEncoding, improve MAPIMessage.getHtmlBody. Thanks to Dominik Hölzl. This closes #149
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860043 13f79535-47bb-0310-9956-ffa450edef68
2019-05-26 09:43:59 +00:00
PJ Fanning 3d5671ac5e remove some tab indents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859758 13f79535-47bb-0310-9956-ffa450edef68
2019-05-22 22:59:12 +00:00
PJ Fanning 3e80ec9c5e try to use more https urls in pom.xml
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859701 13f79535-47bb-0310-9956-ffa450edef68
2019-05-22 08:17:16 +00:00
Alain Béarez 9995e178e3 code inspired from Axel Richter on StackOverflow
closes #139
closes #144

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859676 13f79535-47bb-0310-9956-ffa450edef68
2019-05-21 23:28:15 +00:00
PJ Fanning f6eaab2165 try to remove http refs from some pom files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859663 13f79535-47bb-0310-9956-ffa450edef68
2019-05-21 16:55:34 +00:00
PJ Fanning 31adf0096f switch svn jars to https site
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859625 13f79535-47bb-0310-9956-ffa450edef68
2019-05-21 12:21:41 +00:00
Alain Béarez e3df15d773 fix missing space in string literal (LGTM)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859596 13f79535-47bb-0310-9956-ffa450edef68
2019-05-21 00:14:15 +00:00
Alain Béarez 928e6937f4 fix result of multiplication cast to wider type
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859595 13f79535-47bb-0310-9956-ffa450edef68
2019-05-21 00:14:12 +00:00