Commit Graph

341 Commits

Author SHA1 Message Date
Javen O'Neal
28999738a9 Convert all *.java files to use native end of line character(s)
$ dos2unix `find -name *.java`
$ svn propset svn:eol-style native `find -name *.java`


git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782114 13f79535-47bb-0310-9956-ffa450edef68
2017-02-08 07:47:30 +00:00
Andreas Beeker
c48a0cf334 #59836 - Tracker: Replace primitives with enums
preparation for removing those many HSSFColor subclasses with an enum

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1779866 13f79535-47bb-0310-9956-ffa450edef68
2017-01-22 22:01:22 +00:00
Andreas Beeker
a7706b3fdf fix eclipse warnings - close resources / type generics
cleanup sources - add parenthesis to statements

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1778955 13f79535-47bb-0310-9956-ffa450edef68
2017-01-15 23:08:47 +00:00
Andreas Beeker
bf311b8e6e SonarQube fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777855 13f79535-47bb-0310-9956-ffa450edef68
2017-01-08 00:38:41 +00:00
Andreas Beeker
1042dacd93 SonarQube fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777669 13f79535-47bb-0310-9956-ffa450edef68
2017-01-06 17:51:22 +00:00
Andreas Beeker
9ee04feeb9 SonarQube fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777541 13f79535-47bb-0310-9956-ffa450edef68
2017-01-06 09:05:14 +00:00
Andreas Beeker
d7da7a0ff4 SonarQube fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777526 13f79535-47bb-0310-9956-ffa450edef68
2017-01-05 23:40:57 +00:00
Andreas Beeker
0aa24b3b60 Rename example class (typo)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777518 13f79535-47bb-0310-9956-ffa450edef68
2017-01-05 22:49:14 +00:00
Andreas Beeker
8973c2fe07 SonarQube fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777252 13f79535-47bb-0310-9956-ffa450edef68
2017-01-04 01:06:30 +00:00
Javen O'Neal
ca0154a793 use case-insensitive string startsWith/endsWith utility function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777031 13f79535-47bb-0310-9956-ffa450edef68
2017-01-02 22:23:56 +00:00
Andreas Beeker
f2052fe278 Sonarqube fixes - Cast one of the operands of this multiplication operation to a ...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1776894 13f79535-47bb-0310-9956-ffa450edef68
2017-01-01 22:59:35 +00:00
kiwiwings
503a63c0d4 fix eclipse warnings - close resources
add getter for HSLF slideshows implementation class

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1774974 13f79535-47bb-0310-9956-ffa450edef68
2016-12-19 01:34:24 +00:00
kiwiwings
c200faedec SonarQube fixes - close resources
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1774969 13f79535-47bb-0310-9956-ffa450edef68
2016-12-18 22:03:31 +00:00
Andreas Beeker
f3674c3394 various sonarqube fixes - mainly resource closing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1774705 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 02:35:30 +00:00
Mark Murphy
f4d208f452 60465: Cannot specify interline spacing for a Paragraph in XWPF
Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=60465

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1774551 13f79535-47bb-0310-9956-ffa450edef68
2016-12-16 03:21:02 +00:00
Andreas Beeker
4cc6e093f4 eclipse warnings - close resources
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773910 13f79535-47bb-0310-9956-ffa450edef68
2016-12-13 00:36:03 +00:00
Dominik Stadler
2f0fc06f0f Adjust some missing/incorrec throws and related javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773662 13f79535-47bb-0310-9956-ffa450edef68
2016-12-11 21:13:46 +00:00
Andreas Beeker
3cdf699add SonarCube fix - make members private
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773165 13f79535-47bb-0310-9956-ffa450edef68
2016-12-07 23:45:38 +00:00
Dominik Stadler
90ce8cb096 Remove unnecessary cast and reformat some code a bit
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771247 13f79535-47bb-0310-9956-ffa450edef68
2016-11-25 05:34:58 +00:00
Andreas Beeker
a6f005de81 SonarCube fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1769366 13f79535-47bb-0310-9956-ffa450edef68
2016-11-12 00:52:10 +00:00
Andreas Beeker
fc86b15f13 - SonarCube fixes
- moved SecureTempFile classes to OOXML, because of duplicated code in test and examples packages

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1769363 13f79535-47bb-0310-9956-ffa450edef68
2016-11-11 23:22:43 +00:00
Javen O'Neal
7b8bc917ac bug 60321: add examples with encrypted temp data. Patch from PJ Fanning.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1768744 13f79535-47bb-0310-9956-ffa450edef68
2016-11-08 17:32:38 +00:00
Dominik Stadler
8d083d8c64 Example AligningCells: Use int instead of short for column-index, closes Github #35
Also use more of the base classes where possible

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1768584 13f79535-47bb-0310-9956-ffa450edef68
2016-11-07 20:50:10 +00:00
Mark Murphy
e65baf7fc8 Move XWPF examples to new package to clean up code coverage
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1768437 13f79535-47bb-0310-9956-ffa450edef68
2016-11-07 05:35:18 +00:00
Mark Murphy
14babbb970 57366: XWPFTable to Header / Footer
Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=57366

This update contains a breaking change

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1767175 13f79535-47bb-0310-9956-ffa450edef68
2016-10-30 18:49:16 +00:00
Mark Murphy
ae589d08d3 Adds an example for building headers and footers in XWPF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1766459 13f79535-47bb-0310-9956-ffa450edef68
2016-10-24 23:56:21 +00:00
Javen O'Neal
c5dddf7fac Eclipse automated refactor/cleanup: add missing @Override and @Deprecated annotations
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765726 13f79535-47bb-0310-9956-ffa450edef68
2016-10-19 21:52:31 +00:00
Mark Murphy
f25343e18f Add Apache license to example file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1764807 13f79535-47bb-0310-9956-ffa450edef68
2016-10-14 02:42:50 +00:00
Mark Murphy
37f9122633 53009: Problem creating header and footer
Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=53009

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1764563 13f79535-47bb-0310-9956-ffa450edef68
2016-10-13 01:13:45 +00:00
Mark Murphy
d106d31934 Add PropertyTemplate for drawing Borders (58787)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1763338 13f79535-47bb-0310-9956-ffa450edef68
2016-10-05 02:23:52 +00:00
Dominik Stadler
db79fe043c Adjust some JavaDoc and remove some unnecessary String.valueOf() calls and fix some other compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1762617 13f79535-47bb-0310-9956-ffa450edef68
2016-09-28 08:44:14 +00:00
Javen O'Neal
38cd94d676 bug 59264: revert CellStyle#getBorder[Top|Bottom|Left|Right]() to return short and add getBorder[Top|Bottom|Left|Right]Enum() returns BorderStyle enum for backwards compatibility with POI 3.14 and earlier
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1760630 13f79535-47bb-0310-9956-ffa450edef68
2016-09-14 05:22:23 +00:00
Javen O'Neal
cd7b5359f8 make CreatePivotTable self-explaining with better variable names
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1757459 13f79535-47bb-0310-9956-ffa450edef68
2016-08-24 04:03:26 +00:00
Javen O'Neal
7f7eba3d04 Update CreatePivotTable with non-deprecated constructor. This closes #36 on github.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1757458 13f79535-47bb-0310-9956-ffa450edef68
2016-08-24 03:54:55 +00:00
Javen O'Neal
bc1f9dfb27 Remove unnecessary short cast. This closes #37 on github
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1757457 13f79535-47bb-0310-9956-ffa450edef68
2016-08-24 03:47:21 +00:00
Mark Murphy
20907fc5b4 revert changes made in r1754691
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1754700 13f79535-47bb-0310-9956-ffa450edef68
2016-08-01 04:21:14 +00:00
Mark Murphy
504a26b844 Add new class Cell Style Template and supporting enum for drawing borders
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1754691 13f79535-47bb-0310-9956-ffa450edef68
2016-07-31 23:59:02 +00:00
Javen O'Neal
9133eaa147 bug 59264,59833,59837: upgrade deprecated methods in examples and testcases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753061 13f79535-47bb-0310-9956-ffa450edef68
2016-07-17 11:45:40 +00:00
Javen O'Neal
a478687281 bug 59264,59833,59837: upgrade deprecated methods in examples and testcases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753060 13f79535-47bb-0310-9956-ffa450edef68
2016-07-17 11:43:50 +00:00
Javen O'Neal
2daa8a93ee close workbook to avoid resource leak
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753053 13f79535-47bb-0310-9956-ffa450edef68
2016-07-17 10:27:44 +00:00
Javen O'Neal
2944b7a7a8 bug 59783: replace deprecated Hyperlink.LINK_* and Hyperlink.getType usage
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753041 13f79535-47bb-0310-9956-ffa450edef68
2016-07-17 09:42:13 +00:00
Javen O'Neal
c44094c04e bug 59873: replace Hyperlink.LINK_* int constants with HyperlinkType enum
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753035 13f79535-47bb-0310-9956-ffa450edef68
2016-07-17 09:20:21 +00:00
Javen O'Neal
034d3cfcca bug 59791: getCellType and getCachedFormulaResultType should return an integer for backwards compatibility
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751256 13f79535-47bb-0310-9956-ffa450edef68
2016-07-04 11:54:20 +00:00
Javen O'Neal
fba65665fb reorganize imports (remove unused imports, sort alphabetically)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751244 13f79535-47bb-0310-9956-ffa450edef68
2016-07-04 10:38:25 +00:00
Javen O'Neal
64ef8e26a3 bug 59791: replace deprecated Cell.CELL_TYPE_* usage with CellType.*
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751240 13f79535-47bb-0310-9956-ffa450edef68
2016-07-04 10:15:18 +00:00
Javen O'Neal
d1d6ea97fb bug 59791: convert Cell Type to an enum
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751237 13f79535-47bb-0310-9956-ffa450edef68
2016-07-04 09:45:46 +00:00
Javen O'Neal
a0f9c1d707 bug 59748: replace remaining Hashtable usages in contrib/poi-ruby and hssf examples
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750182 13f79535-47bb-0310-9956-ffa450edef68
2016-06-25 05:22:05 +00:00
Andreas Beeker
85f22291be Sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750171 13f79535-47bb-0310-9956-ffa450edef68
2016-06-24 22:04:12 +00:00
Andreas Beeker
5fce29e432 Fix for test-data of #59746
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750033 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 23:13:59 +00:00
Javen O'Neal
552ccb58e4 update WriteAuthorAntTitle example to Java 1.6+
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748485 13f79535-47bb-0310-9956-ffa450edef68
2016-06-15 03:29:31 +00:00