Commit Graph

103 Commits

Author SHA1 Message Date
Yegor Kozlov
750f848de7 removed test document referenced in Bug 51524 because it cannot be distributed with AL2 projects
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1159993 13f79535-47bb-0310-9956-ffa450edef68
2011-08-21 15:01:23 +00:00
Sergey Vladimirov
0c3cb7008f fix 51678 -- Extracting text from Bug51524.zip is slow
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1159245 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 14:30:15 +00:00
Sergey Vladimirov
2acd64779a fix 51678 -- Extracting text from Bug51524.zip is slow
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1159244 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 14:29:59 +00:00
Sergey Vladimirov
8ea6b350e8 fix 51671 - HWPFDocument.write based on NPOIFSFileSystem throws a NullPointerException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1158754 13f79535-47bb-0310-9956-ffa450edef68
2011-08-17 14:53:28 +00:00
Sergey Vladimirov
79ecde0c88 reuse existing POIFS of hwpf document to preserve all OLE streams
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1156727 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 18:49:35 +00:00
Sergey Vladimirov
7f72be652e fix issues related to document properties loading and saving
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1156662 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 16:37:31 +00:00
Sergey Vladimirov
3cbe7923e5 fix document parts boundaries modifications on text changes (in FIB)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1156616 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 13:55:35 +00:00
Yegor Kozlov
bde41cbbe6 fixed missing ASF licence headers
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1156541 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 08:47:58 +00:00
Sergey Vladimirov
73bfd88166 update test case for 41898 issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155347 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 13:04:28 +00:00
Sergey Vladimirov
0e3a966465 rename emf_2003_image.doc to Bug41898.doc and move test to TestBugs class
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155339 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 12:50:15 +00:00
Sergey Vladimirov
6538ace5c6 new word-to-text converter can handle OLE2 included objects, so issue 47731 is fixed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155337 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 12:42:34 +00:00
Sergey Vladimirov
1d9900c184 Add Word-to-Text converter and use it as replacement for WordExtractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155336 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 12:38:52 +00:00
Sergey Vladimirov
8b6d31c903 add non-deprecated method insertTableBefore to Range
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155214 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 05:34:46 +00:00
Sergey Vladimirov
653bf768e8 add TestBugs to AllHWPFTests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155212 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 05:20:07 +00:00
Sergey Vladimirov
215b57dfcf backlink used doc's stringbuilder and singlenton TextPiece from TextPieceTable
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155210 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 05:17:35 +00:00
Sergey Vladimirov
d7a0a6ee85 extract Bugzilla tests from TestProblems into TestBugs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155205 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 04:46:36 +00:00
Sergey Vladimirov
aeeed4ee06 fix picture matching procedure
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1151766 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 08:49:38 +00:00
Sergey Vladimirov
b958f6fb8c Bug 47286 were fixed, update test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1151761 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 08:32:13 +00:00
Sergey Vladimirov
c10da4c31a replace ComplexFileTable with single-element-one right after load; replace text piece table as well
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150675 13f79535-47bb-0310-9956-ffa450edef68
2011-07-25 12:58:09 +00:00
Sergey Vladimirov
a661f497d0 new test case for 47731 issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150463 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 18:55:57 +00:00
Sergey Vladimirov
a8e015ab9f Bug 44431 - HWPFDocument.write destroys fields - seems to be fixed some time ago, but other bugs prevented to see it.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150461 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 18:40:42 +00:00
Sergey Vladimirov
cbd29dbda3 arrays shall be compared using Arrays.toString()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150455 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 18:35:03 +00:00
Sergey Vladimirov
acc635adee introduce SubdocumentPart and simplify CP start/end FIB API
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1148303 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 12:51:11 +00:00
Sergey Vladimirov
05c7df2042 introduce DocumentPart enum and simplify fields access API
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1148280 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 11:49:48 +00:00
Sergey Vladimirov
9f7257440b fix Bug 51524 -- PapBinTable constructor is slow (regression)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1148002 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 18:44:03 +00:00
Sergey Vladimirov
6815f67967 introduce picture descriptor structure (internal), now Picture class extends it;
add test case with correctly cropped picture info

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147450 13f79535-47bb-0310-9956-ffa450edef68
2011-07-16 16:19:49 +00:00
Sergey Vladimirov
0a631075ec update TestRangeProperties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145542 13f79535-47bb-0310-9956-ffa450edef68
2011-07-12 11:04:43 +00:00
Sergey Vladimirov
8430800f64 SEPX uses chars as boundaries coordinates, don't do double conversions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145286 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 18:41:53 +00:00
Sergey Vladimirov
b95ff1310d make sure at least English text is extracted
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144684 13f79535-47bb-0310-9956-ffa450edef68
2011-07-09 15:36:05 +00:00
Sergey Vladimirov
f23c8a021a temporary(?) workaround for Bug 49933 - Word 6/95 documents with sections cause ArrayIndexOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144683 13f79535-47bb-0310-9956-ffa450edef68
2011-07-09 15:33:41 +00:00
Sergey Vladimirov
d07d8ec7f7 fix the same problem as with PAPX -- CHPX shall be stored based on text positions, not on bytes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144638 13f79535-47bb-0310-9956-ffa450edef68
2011-07-09 11:08:45 +00:00
Sergey Vladimirov
a496e6c0fa one of problems linked to 47286 seems to be found -- some CHPX were not saved
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144352 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 15:08:02 +00:00
Sergey Vladimirov
65f24a120b save document fields, but Bug47286 looks better, but still not the save
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144275 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 11:54:51 +00:00
Sergey Vladimirov
b5de84932e fix test for 47286
now it will fail if bug is fixed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144235 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 10:04:03 +00:00
Sergey Vladimirov
18b0247ee2 Test case shall not fail
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144202 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 09:06:33 +00:00
Sergey Vladimirov
eb1dd34245 fix TestPAPBinTable
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144177 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 06:53:14 +00:00
Sergey Vladimirov
beabf33a84 already fixed 48065 - Problems with save output of HWPF (losing formatting)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143809 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 13:13:04 +00:00
Sergey Vladimirov
dd2005da09 fix 47563 - Exception when working with table
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143802 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 12:52:57 +00:00
Sergey Vladimirov
d6d163fd96 fix 47287 - StringIndexOutOfBoundsException in CharacterRun.replaceText()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143786 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 12:11:53 +00:00
Sergey Vladimirov
f19392c371 Bug 46817 - Regression: Text from some table cells missing is fixed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143772 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 11:41:53 +00:00
Sergey Vladimirov
9a5143cf4f fail() shall throw Error, not AssertionError (which is ignored)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143771 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 11:39:30 +00:00
Sergey Vladimirov
65787fc1b9 update test: according to file dump, last row char is 85, so end offset is 86, not 87.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143725 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 09:25:34 +00:00
Sergey Vladimirov
25f3636438 correctly detect cells of inner tables, do not include last "fake" cell in row
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143707 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 08:24:55 +00:00
Sergey Vladimirov
8ac3172759 rewrite table bounds detection for Word 97, including inner table support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143070 13f79535-47bb-0310-9956-ffa450edef68
2011-07-05 14:13:27 +00:00
Sergey Vladimirov
320a3ab737 fix range detection for documents with section across document parts.
Bug46817.doc is the example of document where section contains all document parts - including main part and additional from textbox. Previous implemenetation didn't correctly calculate last paragraph for Section (intersection of SEPX and main document range). Test case is added.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143014 13f79535-47bb-0310-9956-ffa450edef68
2011-07-05 12:02:02 +00:00
Sergey Vladimirov
bc0abec2c4 add additional TableProperties; implement TableAutoformatLookSpecifier
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1142827 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 22:21:10 +00:00
Yegor Kozlov
bc467bb8c1 resolved old bugzilla issues, added unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1139204 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 08:46:37 +00:00
Yegor Kozlov
07253cbc8b Bugzilla 51335: Parse picture goal and crop sizes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1134663 13f79535-47bb-0310-9956-ffa450edef68
2011-06-11 14:58:50 +00:00
Yegor Kozlov
1715a0deaf removed svn:executable from project files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1022458 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14 10:34:59 +00:00
Yegor Kozlov
76470fed4e avoid NPE in ListLevel.getNumberText() when numberText is null, see Bugzilla 50075
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1022456 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14 10:30:29 +00:00