aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
Commit message (Collapse)AuthorAgeFilesLines
* Bug 61203 - XSSFDrawing.getAnchorFromParent handles CTOneCellAnchor ↵Greg Woolsey2017-06-231-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | | incorrectly, ignores CTAbsoluteAnchor This is likely incomplete, but closer to where things should be. It is backward compatible with previous uses of XSSFClientAnchor. This fixes a bug in XSSFGraphicFrame that was hiding the parent class anchor property (which is a protected field set directly from XSSFDrawing). This is a peril of using direct property access - the hiding wasn't obvious because there was no setter being overridden. XSSFGraphicFrame now notices when it relates to a chart, and setts the frame property of the XSSFChart. That was not being set on parse previously, only when creating charts from scratch. That didn't seem right. XSSFClientAnchor now calculates size and position correctly based on initial inputs from the different types of anchors. It DOES NOT update those initial inputs, however. It does properly adjust if the size or initial position are absolute and the corresponding row/column values are requested. Added new class EMUUtils to centralize the measurement constants and conversions since there are so many units in play in the OOXML spec and POI APIs: * EMUs (English Metric Units) * Inches * Centimeters * Points * Pixels * Twips (1/20th of a point) I'm sure there are more conversions that could be done there, I just started with what I needed. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799643 13f79535-47bb-0310-9956-ffa450edef68
* bug 61045 -- allow for (and log!) extra bytes in FormatRecord.Tim Allison2017-06-202-2/+69
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799360 13f79535-47bb-0310-9956-ffa450edef68
* javadocJaven O'Neal2017-06-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799332 13f79535-47bb-0310-9956-ffa450edef68
* Javadoc fixNick Burch2017-06-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799320 13f79535-47bb-0310-9956-ffa450edef68
* bug 57919: close opened resourcesJaven O'Neal2017-06-201-0/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799316 13f79535-47bb-0310-9956-ffa450edef68
* bug 57919: add functions to write and close a POIDocument, guaranteeing ↵Javen O'Neal2017-06-201-0/+78
| | | | | | closure of the output stream and document. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799308 13f79535-47bb-0310-9956-ffa450edef68
* whitespaceJaven O'Neal2017-06-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799303 13f79535-47bb-0310-9956-ffa450edef68
* bug 52063: support 2-argument LOOKUP(lookup_value, array) function in ExcelJaven O'Neal2017-06-201-2/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799302 13f79535-47bb-0310-9956-ffa450edef68
* Need to do the casting differently to make the code compile with Java 6Dominik Stadler2017-06-181-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799038 13f79535-47bb-0310-9956-ffa450edef68
* Fix some IntelliJ warningsDominik Stadler2017-06-182-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799035 13f79535-47bb-0310-9956-ffa450edef68
* #61169 - Text with Japanese characters overflows textbox Andreas Beeker2017-06-173-10/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798986 13f79535-47bb-0310-9956-ffa450edef68
* #61162 - En-/decryption support for HWPFAndreas Beeker2017-06-148-199/+287
| | | | | | | | - encryption support for HWPF - refactor/unify EncryptionInfo handling in H**F classes - remove Iterable interface from WorkbookRecordList - use getRecords() instead, to prevent modifications over the Iterator git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798722 13f79535-47bb-0310-9956-ffa450edef68
* Standardize some more common chart axis properties.Greg Woolsey2017-06-122-2/+16
| | | | | | Implement the ChartAxis ss interface for date axes, which are pretty much a category axis with one extra property, a date granularity (not currently passed through, get it still from the CT* class). Created the class and test from the category axis versions. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798414 13f79535-47bb-0310-9956-ffa450edef68
* Move one testcase with incorrect source locationDominik Stadler2017-06-091-10/+11
| | | | | | | | remove some junit dependencies in example-code build: do not pass junit-jar to normal compile targets to avoid introducing it as dependency again Reformat code, fix warnings, ... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798202 13f79535-47bb-0310-9956-ffa450edef68
* Handle encrypted files with known password in integration testsAndreas Beeker2017-06-062-4/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797839 13f79535-47bb-0310-9956-ffa450edef68
* #61162 - En-/decryption support for HWPFAndreas Beeker2017-06-064-6/+21
| | | | | | Decryption for Binary RC4 and CryptoAPI (... XOR is missing) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797837 13f79535-47bb-0310-9956-ffa450edef68
* javadocsJaven O'Neal2017-05-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796966 13f79535-47bb-0310-9956-ffa450edef68
* #61085 support table stylesGreg Woolsey2017-05-312-0/+177
| | | | | | Needed a bit more, to support table/range only border properties for "internal" vertical and horizontal borders. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796961 13f79535-47bb-0310-9956-ffa450edef68
* Bug 61119 - Fix preset shape rendering and shadingAndreas Beeker2017-05-3041-1447/+576
| | | | | | | | | - Fixed conversion of ooxml to awt angle - replace subclasses and reflection calls with enums - implemented tinting/shading of preset shapes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796823 13f79535-47bb-0310-9956-ffa450edef68
* bug 61059: fix NamePtg to read unsigned shorts instead of signed shorts, ↵Javen O'Neal2017-05-281-1/+1
| | | | | | avoiding a AIOOBE when a workbook contains more than 32k Names. Thanks to Travis Burtrum for the patch. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796466 13f79535-47bb-0310-9956-ffa450edef68
* Bug 60898 - XSSFColor's getARGB() method returns a wrong color value when a ↵Greg Woolsey2017-05-263-22/+55
| | | | | | | | | | | | | | workbook has a custom indexed color teach XSSFColor and most things that create instances about indexed colors. Null is a valid value for IndexedColorMap instances - the existing built-in default colors are used. Whenever a workbook style is accessible in the call hierarchy its color mappings are passed down now. Thanks for the unit test in the issue, it now passes. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796359 13f79535-47bb-0310-9956-ffa450edef68
* Bug 61063: Add a RefListEval to handle UnionPtg and implement it for Rank(), ↵Dominik Stadler2017-05-234-64/+112
| | | | | | may be missing for other functions where ArrayEval is currently handled git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795963 13f79535-47bb-0310-9956-ffa450edef68
* github-55: document that CellReference#isRowWithinRange(String rowNum, ↵Javen O'Neal2017-05-201-1/+18
| | | | | | SpreadsheetVersion ss) expects rowNum to be parseable as an integer git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795681 13f79535-47bb-0310-9956-ffa450edef68
* bug 61110: remove deprecated, misspelled CellReference#isRowWithnRange and ↵Javen O'Neal2017-05-201-16/+0
| | | | | | #isColumnWithnRange methods git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795680 13f79535-47bb-0310-9956-ffa450edef68
* #61085 support table stylesGreg Woolsey2017-05-206-18/+340
| | | | | | | | Added more features - this allows a client app to fully display table styling without resorting to CT* classes, and has some helper logic for the additional processing needed for things like regional/area borders. As far as I can tell I only added stuff, didn't change any existing behavior. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795648 13f79535-47bb-0310-9956-ffa450edef68
* replace "String.indexOf(String) >= 1" with "String.contains(String)"Javen O'Neal2017-05-163-13/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795296 13f79535-47bb-0310-9956-ffa450edef68
* github-32: speed up Irr() Excel formula computation by replacing Math.pow() ↵Javen O'Neal2017-05-161-9/+10
| | | | | | | | with multiplication. Thanks to Daniel Kuan! This closes #32. https://github.com/apache/poi/pull/32 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795266 13f79535-47bb-0310-9956-ffa450edef68
* Javadoc fixesNick Burch2017-05-161-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795261 13f79535-47bb-0310-9956-ffa450edef68
* Add ASL header and exclude table preset from rat-checkAndreas Beeker2017-05-154-0/+68
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795137 13f79535-47bb-0310-9956-ffa450edef68
* #52117 - Invalid "last printed" summary field value - added helper method to ↵Andreas Beeker2017-05-148-376/+331
| | | | | | | | | | identify undefined dates HPSF: fixed uid listing in Section.toString() HPSF: moved timestamp based "utility" methods to Filetime class HPSF: preserve original datastream for unchanged property sets git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795123 13f79535-47bb-0310-9956-ffa450edef68
* git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795002 ↵Greg Woolsey2017-05-126-2/+150
| | | | 13f79535-47bb-0310-9956-ffa450edef68
* Simplify the ValueEval.toString() implementations and include more ↵Dominik Stadler2017-05-127-41/+28
| | | | | | information on unexpected types of ValueEval git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1794956 13f79535-47bb-0310-9956-ffa450edef68
* forgot license (as always)Greg Woolsey2017-05-051-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1794093 13f79535-47bb-0310-9956-ffa450edef68
* 61060 - teach DataFormatter about conditional formatting rules with number ↵Greg Woolsey2017-05-056-20/+227
| | | | | | | | formats Currently only implemented for XSSF, as there is no API available for HSSF conditional formatting rule number formats (if it is even in the files). git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1794084 13f79535-47bb-0310-9956-ffa450edef68
* SonarQube fixesAndreas Beeker2017-05-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793727 13f79535-47bb-0310-9956-ffa450edef68
* HPSF: Change CustomProperties to delegateAndreas Beeker2017-05-032-122/+152
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793699 13f79535-47bb-0310-9956-ffa450edef68
* Remove Unicode chars in commentsAndreas Beeker2017-05-032-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793647 13f79535-47bb-0310-9956-ffa450edef68
* fix javadocsAndreas Beeker2017-05-031-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793604 13f79535-47bb-0310-9956-ffa450edef68
* #52372 - OutOfMemoryError parsing a word fileAndreas Beeker2017-05-021-228/+245
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793602 13f79535-47bb-0310-9956-ffa450edef68
* HPSF: Add CopyCompare to IntegrationTestsAndreas Beeker2017-05-021-16/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793600 13f79535-47bb-0310-9956-ffa450edef68
* HPSF: Enable new number types in VariantSupportAndreas Beeker2017-05-021-72/+141
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793598 13f79535-47bb-0310-9956-ffa450edef68
* Fix hpsf javadocs and code issuesAndreas Beeker2017-05-0212-319/+925
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793596 13f79535-47bb-0310-9956-ffa450edef68
* HPSF: Use LittleEndianStream instead of offset calculationAndreas Beeker2017-05-0223-931/+804
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793594 13f79535-47bb-0310-9956-ffa450edef68
* bug 61059: add @Override annotationsJaven O'Neal2017-05-011-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793418 13f79535-47bb-0310-9956-ffa450edef68
* Improve information contained in exception in CellRangeAddress()Dominik Stadler2017-04-301-6/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793252 13f79535-47bb-0310-9956-ffa450edef68
* bug 61049 fix ordering of builtin formulasTim Allison2017-04-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1792918 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug #61007Greg Woolsey2017-04-191-1/+7
| | | | | | | | Revert to previous "expected" test results even though they don't match excel for a specific case, to accommodate tighter logic about which format patterns to send to CellFormat vs. handle directly in DataFormatter. Send what was checked previously plus only multi-segment conditional range formats. Allows existing tests to pass plus the new test with the case for these conditional formats. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1791964 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug #61007Greg Woolsey2017-04-191-4/+3
| | | | | | use CellFormat for all format strings containing multiple parts (";" delimited) and update unit test to expect the same values as Excel. Also added tests for the failing formats. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1791949 13f79535-47bb-0310-9956-ffa450edef68
* Let IntelliJ cleanup some code-warnings across the whole code-base: ↵Dominik Stadler2017-04-1744-61/+61
| | | | | | unnecessary toString or semicolon git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1791720 13f79535-47bb-0310-9956-ffa450edef68
* #60998 - HSLFTable.setRowHeight sets row height incorrect Andreas Beeker2017-04-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1791696 13f79535-47bb-0310-9956-ffa450edef68