Commit Graph

5263 Commits

Author SHA1 Message Date
Nick Burch
9c9023524a Further HSSF support towards CF IconSets #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691113 13f79535-47bb-0310-9956-ffa450edef68
2015-07-15 00:04:53 +00:00
Nick Burch
59a1946bf5 Start on high-level HSSF representation of Icon CF #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691111 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 23:44:33 +00:00
Nick Burch
4ac9f854c3 HSSF record support for CF Iconset rules
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691107 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 23:30:53 +00:00
Nick Burch
1d7cd9d933 Lookup
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691104 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 23:22:53 +00:00
Nick Burch
38531825e4 More CF Icon descriptions and interfaces #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691101 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 22:43:22 +00:00
Nick Burch
5fbb76585c Icon set / multi-state constants #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691100 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 22:33:05 +00:00
Nick Burch
c38bb72090 More CF colour tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691094 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 21:54:28 +00:00
Nick Burch
a6836c595f Start checking the CF colours in the unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691092 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 21:45:23 +00:00
Nick Burch
f581c54c5a Fix javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691084 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 21:22:44 +00:00
Nick Burch
e0f6ff5ca1 #58138 CF Border colour getters and setters on Color objects as well as shorts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691083 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 21:19:13 +00:00
Nick Burch
8a62462905 Support unsetting the XSSF CF pattern colours
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691081 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 21:10:14 +00:00
Nick Burch
aea747e464 #58138 Color object support for HSSF CF borders
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691079 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 20:52:07 +00:00
Nick Burch
73f2c142e8 Unset the border formattings when set to 0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691078 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 20:40:15 +00:00
Nick Burch
8962f982f5 Fix inconsistent whitespace/indents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691076 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 20:37:27 +00:00
Nick Burch
c806cede90 Prepare HSSFBorderFormatting for #58138
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691075 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 20:36:10 +00:00
Nick Burch
36c3b8d688 Cleaner code for checking and casting the Color objects
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691064 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 19:29:18 +00:00
Nick Burch
894029a48f Fix inconsistent whitespace/formatting
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691049 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 18:35:04 +00:00
Nick Burch
2eb88db1b0 Provide format-agnostic conditional formatting patter colour getters and setters
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691047 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 18:32:35 +00:00
Nick Burch
e349269fcf Fix inconsistent whitespace/formatting
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691046 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 18:14:50 +00:00
Nick Burch
777806d350 Provide format-agnostic conditional formatting font colour getter and setter
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691045 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 18:05:28 +00:00
Nick Burch
892d7fa4d0 Constant for the Office 2010 Conditional Formatting extensions namespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691015 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 16:12:40 +00:00
Andreas Beeker
e0f6a64678 Bug 58133 - Agile encryption - wrong checksum calculation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690837 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 22:49:59 +00:00
Nick Burch
98d79c8eda Check more of the complex CF cases from the test files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690813 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 20:25:52 +00:00
Nick Burch
659af54686 Consistent whitespace/indents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690809 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 20:12:50 +00:00
Nick Burch
4632e35c3d Move some test checks to using ConditionType instead of raw bytes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690808 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 20:11:47 +00:00
Nick Burch
fbf95cdb54 Enable CF2007 test for XLSX too
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690805 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 19:56:09 +00:00
Nick Burch
9217c91425 Provide a Conditional Formatting type class, and deprecate the byte-based types, to better work with the wider range
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690803 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 19:47:21 +00:00
Nick Burch
705c3fe1f9 Have the HSSF ConditionalFormattingTable look for CF12 records as well, and begin more detailed testing of the high level rules #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690796 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 18:55:42 +00:00
Nick Burch
fda28eae8b Fix inconsistent indents/whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690794 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 18:40:25 +00:00
Nick Burch
65aa10e10f Begin updating the HSSF CF code to work on the base types, so it can handle both CF and CF12
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690793 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 18:38:15 +00:00
Nick Burch
529c2c7126 More clone support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690791 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 18:34:50 +00:00
Nick Burch
9e7d44b81c Fix inconsistent indents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690790 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 18:28:05 +00:00
Nick Burch
6cc72aab77 Fix generics, and use base types
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690789 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 18:27:06 +00:00
Nick Burch
72f0f10882 Enable CFRule12 use #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690783 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 18:09:12 +00:00
Nick Burch
010e67c749 More helpful output if a re-write test fails
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690780 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 18:00:28 +00:00
Nick Burch
fdd0d249ca CFRule12 tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690778 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 17:54:28 +00:00
Nick Burch
935491b4e2 New future record interface, and more CFRule12 toString output
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690773 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 17:32:05 +00:00
Nick Burch
4fbce64e1d Allow dumping of null arrays
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690772 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 17:31:04 +00:00
Nick Burch
c723be5dad Further CFRule12 parsing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690742 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 16:07:39 +00:00
Nick Burch
363a2723c3 CFRule12 can have standard formats too, so push logic to base class #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690686 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 14:51:36 +00:00
David North
24612d3e82 Add Sheet.getMergedRegions to obtain them all as a list. Implement this for XSSF using "deprecated" methods in XMLBeans which allow the operation to be linear in the number of regions rather than n-squared.
Fixes #57893

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690661 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 13:00:35 +00:00
Dominik Stadler
da56e012c3 Bug 58113: Fix regression: NullPointerException when setting cell value to null
add unit tests which verifies this for all three SS-implementations

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690652 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 12:17:52 +00:00
David North
2f8aa558b3 Patch from Chris Boyle to add basic support for .xlsm (macro-enabled) workbooks. The binary blob containing the VBA macros may be copied from one such workbook into another.
Fixes #58036

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690593 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 09:05:17 +00:00
Nick Burch
5e1c3ce90f Template IDs from which CFs can be based
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690534 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 21:34:18 +00:00
Nick Burch
a904047399 Refactor some of the CFRuleRecord logic out to CFRuleBase, and begin work on CFRule12Record #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690527 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 20:38:57 +00:00
Nick Burch
2610a29c28 Fix formatting/indents/comments
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690512 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 19:28:27 +00:00
Nick Burch
883f4f4e0d Introduce a CFHeaderBase common parent #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690503 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 18:35:33 +00:00
Nick Burch
7359be141e Update FtrHeader and CFHeader clone/create
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690500 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 18:16:13 +00:00
Nick Burch
13144e3301 More whitespace / indent updates
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690497 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 18:06:34 +00:00
Nick Burch
1610f82ae7 Fix indent/whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690495 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 18:02:50 +00:00
Nick Burch
c63ff25ebb Start to support CF12 headers for #58130
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690494 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 17:58:27 +00:00
Nick Burch
8c1cb7e48a Javadocs, and more record names
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690490 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 17:31:54 +00:00
Nick Burch
57f4733ba4 Javadoc and comment updates for CFs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690486 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 17:06:45 +00:00
Andreas Beeker
65538c0f71 JUnit and rendering fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1690421 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 00:38:39 +00:00
Nick Burch
58755bf197 Add another Conditional Formatting example - multiple rules which overlap
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690405 13f79535-47bb-0310-9956-ffa450edef68
2015-07-11 20:45:58 +00:00
Andreas Beeker
ee53e203c0 added ASL header to drawing classes
fixed a few rendering NPEs
added dummy interfaces for table / connector shapes

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1690185 13f79535-47bb-0310-9956-ffa450edef68
2015-07-09 22:46:29 +00:00
Dominik Stadler
0f24b7532c OOXMLPrettyPrint: Populate the standalone-attribute always to avoid differences in the resulting XML files from Excel and POI
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1689794 13f79535-47bb-0310-9956-ffa450edef68
2015-07-08 05:57:32 +00:00
Andreas Beeker
6fe5b7bf51 downgraded xjc params to jdk6 and regenerated geometry binding classes
added rendering for auto numbers
fixed various bugs on failing tests
changed xslf paragraph indent to indentLevel to align with hslf
added escher record factory subclass to hslf, to eventually make hslf wrapper classes obsolete

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1689777 13f79535-47bb-0310-9956-ffa450edef68
2015-07-08 00:09:34 +00:00
Dominik Stadler
090b86cb71 Add some missing close(), reduce output in unit tests and remove some other Eclipse warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1689590 13f79535-47bb-0310-9956-ffa450edef68
2015-07-07 07:44:11 +00:00
Nick Burch
e942647b66 When writing the mini-stream, set the size of it on the root property #58061
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1689505 13f79535-47bb-0310-9956-ffa450edef68
2015-07-06 21:39:42 +00:00
Nick Burch
08b74eb15e Helper method to report the number of blocks used in a BAT
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1689504 13f79535-47bb-0310-9956-ffa450edef68
2015-07-06 21:15:57 +00:00
Dominik Stadler
98314d076e Bug 57744: Fix parsing the email submission data when id contains a hyphen
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688998 13f79535-47bb-0310-9956-ffa450edef68
2015-07-03 11:04:52 +00:00
Dominik Stadler
8942828a8f Bug 57678: Apply patch to better handle years in mail-messages between 1980 and 1999.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688993 13f79535-47bb-0310-9956-ffa450edef68
2015-07-03 10:32:53 +00:00
Nick Burch
305d31a998 Fix OPOIFS generics warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688920 13f79535-47bb-0310-9956-ffa450edef68
2015-07-02 22:36:45 +00:00
Nick Burch
605b16c061 To better match OPOIFS, pad to the end of a block with 0xFF/-1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688543 13f79535-47bb-0310-9956-ffa450edef68
2015-07-01 00:43:33 +00:00
Nick Burch
75af780517 More NPOIFS ministream tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688534 13f79535-47bb-0310-9956-ffa450edef68
2015-06-30 23:50:35 +00:00
Nick Burch
51af6e58b4 Allow optional dumping of the raw ministream as well
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688533 13f79535-47bb-0310-9956-ffa450edef68
2015-06-30 23:25:41 +00:00
Nick Burch
8eae3df77e Support optionally dumping the properties stream
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688091 13f79535-47bb-0310-9956-ffa450edef68
2015-06-29 06:05:42 +00:00
Dominik Stadler
efc96e1d8e Open file read-only in test to avoid making it dirty during running unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688045 13f79535-47bb-0310-9956-ffa450edef68
2015-06-28 19:55:56 +00:00
Nick Burch
069d7db9e0 Put the properties table at block 0, with the first BAT at block 1, to hopefully solve #58061
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688038 13f79535-47bb-0310-9956-ffa450edef68
2015-06-28 18:53:21 +00:00
Nick Burch
41649874b9 Print mini stream information, and property entries
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688037 13f79535-47bb-0310-9956-ffa450edef68
2015-06-28 18:51:50 +00:00
Nick Burch
7c00beb63e Fix inconsistent whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688031 13f79535-47bb-0310-9956-ffa450edef68
2015-06-28 17:54:20 +00:00
Nick Burch
cc909dfa75 Refactor the small block reader creation, so that POIFSHeaderDumper can dump the sbat structure too
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688030 13f79535-47bb-0310-9956-ffa450edef68
2015-06-28 17:53:24 +00:00
Andreas Beeker
aeb6995095 Bug 54332 - WMF extraction failing in Tika for older PowerPoint Files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1687398 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 23:34:03 +00:00
Dominik Stadler
bde247f61a Fix test to find the exception-text in all cases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1687212 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 08:53:25 +00:00
Dominik Stadler
5103ea7c0c show full exception stack-trace if zip-bomb detection test fails
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1687197 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 08:33:06 +00:00
Andreas Beeker
7393f122b2 Removed Java7 calls
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1687176 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 07:06:01 +00:00
Andreas Beeker
c0cb680292 Bug 56865 - Limit number of bytes (by counting them) while opening office docs
Bug 50090 - 'zip' bomb prevention

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1687148 13f79535-47bb-0310-9956-ffa450edef68
2015-06-23 23:39:07 +00:00
Andreas Beeker
057768994e Bug 58069 - Biff8RC4 xorShort returns wrong value for unsigned shorts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1687146 13f79535-47bb-0310-9956-ffa450edef68
2015-06-23 23:06:23 +00:00
Andreas Beeker
48208023fb Bug 58040 - Log Forging
and marked POILogger/POILogFactory internal

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686748 13f79535-47bb-0310-9956-ffa450edef68
2015-06-21 19:06:32 +00:00
Dominik Stadler
f58646196d Bug 57923: Fix check for tokens in NameRecord.getExternSheetNumber() to avoid ArrayOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686689 13f79535-47bb-0310-9956-ffa450edef68
2015-06-21 06:56:45 +00:00
Andreas Beeker
e484eeac43 fixed javadoc links after imports have been organized
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686636 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 15:08:42 +00:00
Dominik Stadler
e4f5df42f6 Bug 56655: Fix Sumifs for cases where the criteria is in error.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686610 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 13:10:28 +00:00
Dominik Stadler
cb5588c4a1 Bug 56420: Fix possible NullPointerException when empty cell is included in Sumif calculation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686564 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 11:29:14 +00:00
Andreas Beeker
f97d6f6c34 Rendering fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1686117 13f79535-47bb-0310-9956-ffa450edef68
2015-06-17 22:21:13 +00:00
Dominik Stadler
ebf65abac7 Comment out writing to file in c:/temp which breaks the build now
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686106 13f79535-47bb-0310-9956-ffa450edef68
2015-06-17 20:41:08 +00:00
Dominik Stadler
13eb52f12f Move more tests into base class and add a TestSXSSFBugs class to verify some things that are supported against SXSSFWorkbook as well
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686035 13f79535-47bb-0310-9956-ffa450edef68
2015-06-17 14:53:38 +00:00
Dominik Stadler
e7d33e4ccb Make setLandscape(false) and setLeftToRight(false) do what one would expect
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686019 13f79535-47bb-0310-9956-ffa450edef68
2015-06-17 14:26:31 +00:00
Dominik Stadler
8473e57b71 Bug 57963: Add a task to the integration-test build which verifies that most examples can be built without scratchpad.jar
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1685705 13f79535-47bb-0310-9956-ffa450edef68
2015-06-16 05:42:36 +00:00
David North
32bf29fba6 Whitespace seems to be confusing the license header check; try pasting one off another file.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1685523 13f79535-47bb-0310-9956-ffa450edef68
2015-06-15 09:44:12 +00:00
Dominik Stadler
dafeb24564 One more file with missing license header
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1685522 13f79535-47bb-0310-9956-ffa450edef68
2015-06-15 09:38:29 +00:00
Dominik Stadler
f77cdd40b4 add missing license header
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1685506 13f79535-47bb-0310-9956-ffa450edef68
2015-06-15 08:17:08 +00:00
Andreas Beeker
2170a52383 Rendering of rotated group shapes fixed, other smaller fixes, defaulting to white transparent slide background
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1685344 13f79535-47bb-0310-9956-ffa450edef68
2015-06-13 23:26:46 +00:00
David North
369c593380 Add explicit test for NPE only caught by other tests. Test '97 fallback behaviour generally.
https://bz.apache.org/bugzilla/show_bug.cgi?id=56328

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1685104 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 15:29:20 +00:00
David North
16a9eca7c8 My own patch to fix #56328
Add tests for initial patch applied by Nick in r1582892

Fix and test AreaReference#isWholeColumnReference to take account of the prevailing spreadsheet version. Fixing all users of this is a big undertaking, so for now I've left a fallback on the original behaviour for some cases.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1685101 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 15:20:10 +00:00
Andreas Beeker
4acc6a84a1 Fixed TextRun handling and various junit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1684773 13f79535-47bb-0310-9956-ffa450edef68
2015-06-10 22:23:47 +00:00
David North
c580758b2c Use a different arbitrary value for the ID of the comment shape type. This appears to prevent Excel >= 2010 from turning POI-written comments into the wrong shape (giant curved arrow).
Fixes https://bz.apache.org/bugzilla/show_bug.cgi?id=55410

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1683315 13f79535-47bb-0310-9956-ffa450edef68
2015-06-03 12:50:10 +00:00
Dominik Stadler
d3f93952e9 Bug 53109: Correctly handle unicode strings in NameCommentRecord
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682999 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 20:49:53 +00:00
Nick Burch
7915b3ce38 Patch from René Scheibe from bug #57512 - Fix potential NPE in DateUtil for invalid dates
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682796 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 21:18:11 +00:00
Dominik Stadler
44821b1f39 Add missing license header
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682794 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 21:02:39 +00:00
Dominik Stadler
493511bbdc Bug 57904: Add full source build from dist-packages to CI builds
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682786 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 20:11:28 +00:00
Tim Allison
ca17056096 POI-57975: clean up white spaces and other style issues in XWPF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682473 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 14:01:31 +00:00
Andreas Beeker
d1f9035400 Fixed several test drivers or the implementation
renamed font functions in HSLFTextRun

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1682356 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 23:32:26 +00:00
Tim Allison
b8f9c0cad1 POI-57889 -- actually trigger inclusion of CTNumLvl with document contributed by Moritz Dorka on TIKA-1315
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682310 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 19:08:24 +00:00
Nick Burch
a727593a41 Correct package
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682210 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 11:15:07 +00:00
Nick Burch
c5c70d3ce4 Pull out the parts of TextPainter needed by XSLF from HSLF to common-SL in core #57963
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682209 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 11:13:23 +00:00
Nick Burch
1b20215fc7 #57963 Move the WP and SL interface definitions to core from scratchpad, so the OOXML classes can work without scratchpad
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682204 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 11:06:18 +00:00
Nick Burch
77916b9364 #57951 Use BigDecimal in some cases in DataFormatter.formatRawCellContents, to avoid rounding problems on JDK8. Patch from Robert Kish
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682083 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 17:15:17 +00:00
Nick Burch
4e3011f70a Fix inconsistent indents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1682081 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 17:10:45 +00:00
Dominik Stadler
03805d9e20 Add WorkbookFactory.create() with a flag to allow to open files read-only, keep the current way of opening read/write as default to not break existing code.
Also adjust Javadoc somewhat.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681823 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 19:30:21 +00:00
Dominik Stadler
9017803980 Make POIXMLDocument implement Closeable as it holds an OCPPackage with open resources and thus should be closed after usage. Until now only XSSFWorkbook did this, but it makes sense for all derived classes.
Also make close() in POIXMLDocument public to not have to re-implement it in all sub-classes.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681822 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 19:30:04 +00:00
Nick Burch
2f87b078e9 Add ignore - file has no content streams
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681809 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 18:38:34 +00:00
Nick Burch
b2d1c1b6ac #56791 Make NPOIFS the default when POIFSFileSystem is requested
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681804 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 18:04:00 +00:00
Nick Burch
b8d9c978ad Force OPOIFS test to explicitly create OPOIFS instance
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681803 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 18:03:29 +00:00
Nick Burch
8878be359a Force OPOIFS test to explicitly create OPOIFS instance
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681802 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 17:59:13 +00:00
Nick Burch
e4b6cb6811 Remove a long-deprecated OPOIFS related method
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681801 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 17:55:23 +00:00
Nick Burch
fe07d32178 Fix warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681763 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 14:06:17 +00:00
Nick Burch
e9f442ffa7 Fix testing for NPOIFS zero-length stream writing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681762 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 13:56:40 +00:00
Nick Burch
e812e61ad3 Fix NPOIFS to handle dodgy excel-95 file from bug #46904
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681756 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 13:46:20 +00:00
Nick Burch
e579b78672 More 0 byte stream tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681754 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 13:41:29 +00:00
Andreas Beeker
063e74acf6 Fixed some style related corner cases and adapted the tests for it
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1681411 13f79535-47bb-0310-9956-ffa450edef68
2015-05-24 01:10:12 +00:00
Andreas Beeker
78b9be3876 Creating a new slideshow and manipulating existing ones works again :)
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1681389 13f79535-47bb-0310-9956-ffa450edef68
2015-05-23 22:07:05 +00:00
Andreas Beeker
a1c2269e6f A few text handling related fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1680695 13f79535-47bb-0310-9956-ffa450edef68
2015-05-20 23:07:08 +00:00
Dominik Stadler
8cf9eaa685 Add verification unit test for bug 47169
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1680657 13f79535-47bb-0310-9956-ffa450edef68
2015-05-20 19:13:36 +00:00
Dominik Stadler
001cdeb936 Apply fix reported in bug 47661 and add unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1680642 13f79535-47bb-0310-9956-ffa450edef68
2015-05-20 18:00:19 +00:00
Dominik Stadler
589b189151 Prevent problems reported in Bug 56574 by ensuring that Cells are properly removed when a row is overwritten by calling createRow() with it's rownum.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1680280 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 13:13:09 +00:00
Dominik Stadler
dafabdc7b9 Move location where document is held and adjust constructors and class-hierarchy accordingly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1679903 13f79535-47bb-0310-9956-ffa450edef68
2015-05-17 21:26:31 +00:00
Dominik Stadler
cbd315d441 Adjust error message to have the same error across different types of Workbook and revert test to check on common error message again
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678874 13f79535-47bb-0310-9956-ffa450edef68
2015-05-12 06:27:11 +00:00
Dominik Stadler
c4a26a18f4 Fix unit test which asserts on actual error message
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678861 13f79535-47bb-0310-9956-ffa450edef68
2015-05-12 04:54:47 +00:00
Andreas Beeker
6520c37b7f Commit changes in common_sl - need to update trunk ...
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1678832 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 22:07:40 +00:00
Dominik Stadler
b3a56bd752 Adjust intendation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678814 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 20:03:36 +00:00
Dominik Stadler
eb58b83090 Provide better exception if we would access out of bounds in arraycopy for Escher properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678812 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 20:00:42 +00:00
Dominik Stadler
142e4a9f92 Avoid possible NPE found via CommonCrawl files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678811 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 20:00:18 +00:00
Dominik Stadler
5ca35be087 Add checks for invalid row number in RowRecord to find corrupted files earlier
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678810 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 19:59:52 +00:00
Nick Burch
c9c4aee324 #56791 More updates from OPOIFS to NPOIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678802 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 19:00:12 +00:00
Nick Burch
dd8fc66a0c #56791 More updates from OPOIFS to NPOIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678801 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 18:59:10 +00:00
Nick Burch
46f4c0fbd2 Leave POIFSFileSystem as a lightweight shim around OPOIFSFileSystem pending the final changeover for #56791
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678790 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 18:21:20 +00:00
Nick Burch
aec457dbcb #56791 More updates from OPOIFS to NPOIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678787 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 18:15:03 +00:00
Nick Burch
a89a9d673a #56791 More updates from OPOIFS to NPOIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678783 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 18:04:30 +00:00
Nick Burch
bd6012d9b9 Add a deep re-write NPOIFS test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678781 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 18:00:45 +00:00
Nick Burch
1945dfc00c Correct zero byte entry support in NPOIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678778 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 17:53:59 +00:00
Nick Burch
0d95d3df70 Disabled NPOIFS unit test - problem with 0 length entries discovered working on #56791
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678769 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 15:27:59 +00:00
Nick Burch
794e2b95fa More NPOIFS ministore tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678767 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 15:20:42 +00:00
Nick Burch
89890a247a Add a (disabled) failing unit test on heavily nested NPOIFS copies, found working on #56791
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678764 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 14:58:43 +00:00
Nick Burch
2df3bef375 #56791 Remove long-deprecated OPOIFS related methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678760 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 14:26:39 +00:00
Nick Burch
252d7cc81a #56791 Default to NPOIFS
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678759 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 14:26:01 +00:00
Nick Burch
08bd34b20f Begin making NPOIFS the default #56791
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678677 13f79535-47bb-0310-9956-ffa450edef68
2015-05-11 06:29:17 +00:00
Nick Burch
8bd0d5b819 Refactor common default styles code to use the new helpers
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678197 13f79535-47bb-0310-9956-ffa450edef68
2015-05-07 13:34:03 +00:00
Nick Burch
120608b1f9 Start exposing the default paragraph and run styles from XWPFStyles
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678193 13f79535-47bb-0310-9956-ffa450edef68
2015-05-07 13:25:47 +00:00
Nick Burch
1c693babb8 Fix inconsistent whitespace/indents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678188 13f79535-47bb-0310-9956-ffa450edef68
2015-05-07 13:08:15 +00:00