Commit Graph

712 Commits

Author SHA1 Message Date
Andreas Beeker
6b8af03c42 #58190 - The current picture handling uses raw integers for types and index, replace with enum and reference
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1693825 13f79535-47bb-0310-9956-ffa450edef68
2015-08-02 20:21:35 +00:00
Andreas Beeker
f5e9adea84 merged common_sl branch to trunk
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1692593 13f79535-47bb-0310-9956-ffa450edef68
2015-07-24 21:47:55 +00:00
Andreas Beeker
d439f080d6 merge trunk to common sl branch
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1691843 13f79535-47bb-0310-9956-ffa450edef68
2015-07-19 19:00:32 +00:00
Andreas Beeker
cec1989a51 Introduce dirty flag for paragraphs and store them to records on save
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1691774 13f79535-47bb-0310-9956-ffa450edef68
2015-07-18 20:35:28 +00:00
Andreas Beeker
d8bf3aae84 junit fixes
set font size via Double
color handling via HSL calculation

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1691117 13f79535-47bb-0310-9956-ffa450edef68
2015-07-15 00:30:21 +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
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
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
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
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
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
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
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
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
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
Andreas Beeker
02e70fdbfe fixed HSLF text handling
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1677496 13f79535-47bb-0310-9956-ffa450edef68
2015-05-03 23:42:42 +00:00
Andreas Beeker
f0d95c3f8d Added Distributed option to TextAlignment
Added FontAlignment

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1676849 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 20:26:05 +00:00
Tim Allison
13dc67c73a POI-56998 add some getters to help with list numbering in hwpf
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1676561 13f79535-47bb-0310-9956-ffa450edef68
2015-04-28 15:17:51 +00:00
Andreas Beeker
e6413c3fe7 committing intermediate results - hslf is mostly migrated to common interface - junit tests partly fail - still a few compile errors - xslf drawing works - hslf drawing is not yet tested
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1676365 13f79535-47bb-0310-9956-ffa450edef68
2015-04-27 20:13:43 +00:00
Dominik Stadler
acfc276396 Fix usage of Generics in some classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1674964 13f79535-47bb-0310-9956-ffa450edef68
2015-04-20 19:15:21 +00:00
Nick Burch
b3c46f90c1 Patch from Jon Scharff from bug #57820 - Avoid NPE on HSLF Tables with a top position of -1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1674441 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 04:16:28 +00:00
Dominik Stadler
f9961331ff Bug 47304: use fixed encoding when extracting text in WordDocument
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1668367 13f79535-47bb-0310-9956-ffa450edef68
2015-03-22 13:33:43 +00:00
Andreas Beeker
652211b8d2 Snapshot commit - still lots of errors, xslf rendering works, started work on hslf
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1667902 13f79535-47bb-0310-9956-ffa450edef68
2015-03-19 23:44:23 +00:00
Andreas Beeker
a0070048fe committing intermediate results - xslf now compiles - hslf needs to be migrated to common interface - drawing is not yet tested
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1664935 13f79535-47bb-0310-9956-ffa450edef68
2015-03-07 23:35:40 +00:00
Dominik Stadler
0e16d14349 Move test-case to location where the scratchpad-classes are available
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1662712 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 15:01:46 +00:00
Andreas Beeker
996c9dd93c initial commit - still lots of errors, but I need to switch to a clean trunk for releasing and testing
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1661322 13f79535-47bb-0310-9956-ffa450edef68
2015-02-21 10:56:03 +00:00
Dominik Stadler
8edf70ec8f Add unit tests for XSSFTextRun and TextPainter, slightly more tests for XSSFSheet and enhance unit tests for XWPFParagraph and ExcelAntTest
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1649309 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 10:23:01 +00:00
Dominik Stadler
5a20499263 Bug 53453: Apply patch to add methods to set margins in sections of HWPF documents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1649176 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 09:34:07 +00:00
Andreas Beeker
0ea9f5fff9 Test and fix for bug #46441
Use generics on Shape.getEscherChild() and SimpleShape.getClientDataRecord() to minimize casting
Unify access to Shape.getEscherOptRecord()

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1649152 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 22:57:05 +00:00
Dominik Stadler
d909e0998c Add verifying test-case for bug 52420
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1649147 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 22:38:52 +00:00
Andreas Beeker
b2a69b6152 Bug 56240 - Handle PP97_DUALSTORAGE streams
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648466 13f79535-47bb-0310-9956-ffa450edef68
2014-12-30 02:20:57 +00:00
Andreas Beeker
de9699fcad Bug 47261 - SlideShow.removeSlide makes PPT corrupted
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648458 13f79535-47bb-0310-9956-ffa450edef68
2014-12-30 01:05:41 +00:00
Andreas Beeker
26ae1edcd8 Bug 49541 - Mapping of symbol characters to unicode equivalent
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648415 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 19:43:35 +00:00
Andreas Beeker
8e3eee35cd Bug 54541 - Add support for cropped images in Slide.draw()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648335 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 13:35:57 +00:00
Dominik Stadler
5c76ccba5b Add missing close() of resources in both production code and tests
Use revert() instead of close() on OCPPackage in some places to not re-write the file unnecessarily.
This should now run tests without leftover file handles when checked with file leak detector and
allows to find newly introduced cases more easily.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648160 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 09:16:57 +00:00
Dominik Stadler
1cf8152d14 Start adding some coverage of more Scratchpad-classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648157 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 09:08:22 +00:00
Dominik Stadler
5173eca9ea Fix Eclipse warnings, unnecessary casts, use generics, static access...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648156 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 09:06:12 +00:00
Andreas Beeker
4bed984c0f Charset.forName() for known encodings makes catching UnknownEncodingException obsolete
Unify UTF-16LE conversion to StringUtil
BugFix for RecordInputStream.readFully in combination with continuing records
BugFix for integration tests - fix pathname for handler/exclude lookup on windows

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648032 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 01:33:28 +00:00
Andreas Beeker
202aa8177f - Support for Office Binary Document RC4 CryptoAPI Encryption for HSLF
- Support for Office Binary Document RC4 Encryption
- use LittleEndian class in LittleEndianInputStream
- add normalize method for HSLF, to remove edit history, which is also necessary for encryption support
- update PersistDirectoryEntry handling in PersistPtrHolder to recognize groups while serializing
- deprecated PersistPtrHolder.getSlideOffsetDataLocationsLookup() - throws now UnsupportedOperationException,
  as this wasn't used outside the scope of the class and was quite internal logic of PersistPtrHolder


git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1647867 13f79535-47bb-0310-9956-ffa450edef68
2014-12-25 01:56:29 +00:00
Andreas Beeker
21d2bc3cff #57272 - deadlock on corrupted PPT file
+ some refactoring in HSLFSlideShow, which will be necessary for cryptoapi support 

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1643680 13f79535-47bb-0310-9956-ffa450edef68
2014-12-07 14:34:19 +00:00
Nick Burch
0bd50defba Add a disabled unit test for bug #56880
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1630543 13f79535-47bb-0310-9956-ffa450edef68
2014-10-09 17:58:47 +00:00
Dominik Stadler
379214975e Add unit test for bug 37625 which verifies that this file can now be loaded
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613837 13f79535-47bb-0310-9956-ffa450edef68
2014-07-27 19:57:57 +00:00
Nick Burch
4c98f1db45 Patch from Raúl Wegmann from bug #56735 / GitHub Pull #10 - Rationalise POI temp file creation to the TempFile util class, and allow a system wide setting of where Temp files (eg for SXSSF) go, via TempFile / TempFileCreationStrategy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613246 13f79535-47bb-0310-9956-ffa450edef68
2014-07-24 18:58:27 +00:00
Nick Burch
bb91152a12 For places where an ordered collection is created and used within the context of a single thread, and there are no thread safety concerns, use ArrayList not Vector. See bug #54838
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613186 13f79535-47bb-0310-9956-ffa450edef68
2014-07-24 16:41:43 +00:00
Dominik Stadler
9d1d93b88f Add missing @Overrides, reformat some files, increase coverage slightly,
comments, fix Eclipse warnings and add close() calls in some tests and
in HMEFMessage() to close files during tests correctly.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1602008 13f79535-47bb-0310-9956-ffa450edef68
2014-06-11 20:36:30 +00:00
Dominik Stadler
927e62f662 Apache POI - Use assertArrayEquals() instead of assertTrue(Arrays.equals()), this way we get better information on failure
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1595190 13f79535-47bb-0310-9956-ffa450edef68
2014-05-16 13:25:45 +00:00
Nick Burch
0bcdc868f3 Based on reading of the new file format docs, start to tweak how fixed length vs variable length / multi-valued properties are handled
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1593861 13f79535-47bb-0310-9956-ffa450edef68
2014-05-11 21:16:40 +00:00
Nick Burch
d2d289b90f Rather than having lots of classes all create their own XML DocumentBuilderFactory instance, push that logic to a helper which sets all the right defaults
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1587739 13f79535-47bb-0310-9956-ffa450edef68
2014-04-15 21:59:52 +00:00
Nick Burch
1e03ded992 When looking for text run related records after a TextHeaderAtom, provide a cleaner way to skip ones we don't care about, and a cleaner way to find the StyleTextPropAtom. Should fix #56260
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1577803 13f79535-47bb-0310-9956-ffa450edef68
2014-03-15 08:16:43 +00:00
Nick Burch
adb98e1073 #56260 Partial fix for a slide with a TextHeaderAtom but no other atoms related to it, which is followed by another TextHeaderAtom straight away
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1577537 13f79535-47bb-0310-9956-ffa450edef68
2014-03-14 13:59:24 +00:00
Nick Burch
7984a1ec3f More helpful visio v5 exception, see bug #56171
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1570388 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 23:20:19 +00:00
Andreas Beeker
8afdb7a9ce Bug 55732 - PPT can't open, fails with "Couldn't instantiate .... StyleTextProp9Atom : java.lang.ArrayIndexOutOfBoundsException: 56"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1569984 13f79535-47bb-0310-9956-ffa450edef68
2014-02-19 23:45:07 +00:00
Andreas Beeker
edf1ffd89b upgraded to junit4 (before other changes)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1569972 13f79535-47bb-0310-9956-ffa450edef68
2014-02-19 23:30:12 +00:00
Dominik Stadler
dcad3624dc Fix unit tests broken by newly added test-file, ignore TestFontRendering as it is inherently unstable currently
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568744 13f79535-47bb-0310-9956-ffa450edef68
2014-02-16 09:11:28 +00:00
Dominik Stadler
2414998aac Adjust test to write the failing PNG in case expected and actual do not match
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568740 13f79535-47bb-0310-9956-ffa450edef68
2014-02-16 08:39:17 +00:00
Dominik Stadler
b51a52cf20 Provide more output on test that failed for me locally
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568558 13f79535-47bb-0310-9956-ffa450edef68
2014-02-15 00:21:19 +00:00
Andreas Beeker
8c3785890a Bug 55902 - Mixed fonts issue with Chinese characters (unable to form images from ppt)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1567455 13f79535-47bb-0310-9956-ffa450edef68
2014-02-11 23:16:54 +00:00
Nick Burch
fdcd28194e Fix up whitespace / indents to be consistent
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1563491 13f79535-47bb-0310-9956-ffa450edef68
2014-02-01 22:05:23 +00:00
Nick Burch
2b0c8deb2f Expose the StyleIndex of CharacterRuns, and expand the range style tests to cover this + related
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1563486 13f79535-47bb-0310-9956-ffa450edef68
2014-02-01 21:52:19 +00:00
Andreas Beeker
439ad29071 Added license headers
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1559297 13f79535-47bb-0310-9956-ffa450edef68
2014-01-18 00:38:04 +00:00
Dominik Stadler
5e77641784 remove some unused imports and some useless TODOs, slightly more
coverage, @Overrides, more info on failing test, fix some Eclipse
warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1554535 13f79535-47bb-0310-9956-ffa450edef68
2013-12-31 15:12:30 +00:00
Andreas Beeker
ae2b93eaa0 Bug 45776 - Fix corrupt file problem using TextRun.setText
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1554077 13f79535-47bb-0310-9956-ffa450edef68
2013-12-29 22:14:05 +00:00
Andreas Beeker
c95d740ee4 Bug 41246 - AIOOBE with missing notes entries
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553760 13f79535-47bb-0310-9956-ffa450edef68
2013-12-27 23:42:34 +00:00
Andreas Beeker
3ef65e166d Bug 48593 - [PATCH] Multiple Saves Causes Slide Corruption
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553610 13f79535-47bb-0310-9956-ffa450edef68
2013-12-27 00:22:19 +00:00
Andreas Beeker
e34a1f9620 Bug 55579 - [PATCH] Patch for add/embed OLE objects into HSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553435 13f79535-47bb-0310-9956-ffa450edef68
2013-12-26 00:46:16 +00:00
Andreas Beeker
2788aca235 javadoc and compiler warning house-keeping
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553428 13f79535-47bb-0310-9956-ffa450edef68
2013-12-25 23:24:04 +00:00
Yegor Kozlov
fdda5f2071 removed pictureFileZero.ppt from svn as requested by the owner, see discussion on @poi-dev from Dec 12, 2013
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1551845 13f79535-47bb-0310-9956-ffa450edef68
2013-12-18 05:26:49 +00:00
Yegor Kozlov
362fec4a01 Bugzilla 55560 : Patch for hiding slides in HSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1540295 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 11:57:21 +00:00
Dominik Stadler
7014abae83 Bug 52400: fix handling some types of TNEF files, make HMEFMessage.HEADER_SIGNATURE int as it is handled as int everywhere, move .dat files to HMEF sample dir, cover some border cases in HMEFMessage, add another .dat sample file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1538353 13f79535-47bb-0310-9956-ffa450edef68
2013-11-03 12:43:42 +00:00
Dominik Stadler
19630f1a29 Add more output to assertion in test-case that is sometimes failing, see e.g. Jenkins build #170...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1538330 13f79535-47bb-0310-9956-ffa450edef68
2013-11-03 10:11:09 +00:00
Nick Burch
a6b301e485 Fix bug #55733 - XWPFWordExtractor need
s to handle .docx files with neither headers nor footers

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1538044 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 19:43:46 +00:00
Tim Allison
58dd7d7c0c POI-54722 table text in ppt files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1526960 13f79535-47bb-0310-9956-ffa450edef68
2013-09-27 15:45:55 +00:00
Dominik Stadler
ffc31302a4 Adjust build.xml to run JaCoCo coverage when running unit tests when
flag coverage.enabled is set to true, download necessary jars, add jacoco:coverage
to junit targets and a testcoveragereport target which produces the coverage report.
Also fix a test that is affected by JaCoCo and add slightly more coverage in another test.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1510243 13f79535-47bb-0310-9956-ffa450edef68
2013-08-04 16:38:01 +00:00
Nick Burch
dd1116a1e3 Have MAPIMessage try the codepage properties to get the ascii encoding, before falling back to the existing logic around content type parsing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1497038 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 18:46:37 +00:00
Nick Burch
43b811f049 More unit tests for the HSMF fixed sized property values (a few still remain to be fixed though)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1497023 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 17:45:57 +00:00
Nick Burch
43886b815b Fix inconsistent whitespace in HSMF test files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496969 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 15:28:25 +00:00
Nick Burch
b3e4741320 Convert classes with a assertContains method to using the new POITestCase common parent class, which has it there
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496697 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 00:49:41 +00:00
Nick Burch
c4f77a02e2 Unit test for bugs #54880 & #55030 - seems ok so far
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1488403 13f79535-47bb-0310-9956-ffa450edef68
2013-05-31 21:17:55 +00:00
Yegor Kozlov
362ded1f94 Bugzilla 54188 - Avoid NPE in PPT2PNG
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1413339 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 11:53:50 +00:00
Yegor Kozlov
e68f4e043d Bugzilla 54111 - Fixed extracting text from table cells in HSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1406688 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 16:02:42 +00:00
Sergey Vladimirov
d8ca4323de Bug 52583 - Conversion to html : Problem with combobox
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1406208 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 16:26:43 +00:00
Sergey Vladimirov
2f9f29380a fix bug 53182 - Reading combined character styling and direct formatting of a character run
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1405850 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 15:51:41 +00:00
Sergey Vladimirov
1ab0e33b9d 52311 - Conversion to html : Problem in titles number
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1405808 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 14:38:12 +00:00
Sergey Vladimirov
2af967af3d move test case for Bug 47563 to distinguish file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1405771 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 12:39:58 +00:00
Sergey Vladimirov
db30e0f337 a bit more debug logging
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1405759 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 12:02:50 +00:00
Yegor Kozlov
1a3d907dab Bugzilla 53979 - Support fetching properties of Numbered Lists from PPT files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1401652 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 12:39:58 +00:00
Yegor Kozlov
04b9f9dff9 fixed failing tests, force UTC time zone when formatting dates
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1401641 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 12:06:40 +00:00
Nick Burch
f6f8425c40 Bug #53784 - Partial support for fixed-length Outlook property values in HSMF, with test from Claudius from the bug report
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1398241 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 10:44:33 +00:00
Nick Burch
a2300daefe Use a chunk that really isn't there, to avoid issues when we start to support message dates better
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1398237 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 10:36:30 +00:00
Sergey Vladimirov
a475de5785 add 4th example file from Bug 53380
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1390167 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 21:42:09 +00:00
Sergey Vladimirov
dc4fd539e0 refactor list format override structures (was marked with @Internal annotation)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1389039 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 12:57:39 +00:00
Sergey Vladimirov
9f666b8aee refactor list format override structures (was marked with @Internal annotation)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1389037 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 12:56:09 +00:00
Sergey Vladimirov
edae5cb060 +one more test file for Bug 53380
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1388351 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 07:16:03 +00:00
Sergey Vladimirov
94ae826022 Fixed bug 53380 -- ArrayIndexOutOfBounds Excetion parsing word 97 document
We had incorrect implementation for sprmCShd80 (0x4866) 0x66 processing, Shd was used instead of Shd80

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1383584 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:49:44 +00:00
Yegor Kozlov
fb1719c85d Bugzilla 53446 - Fixed some problems extracting PNGs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1369263 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 05:30:19 +00:00
Yegor Kozlov
e971e30d3b Bugzilla 53205 - Fix some parsing errors and encoding issues in HDGF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1365638 13f79535-47bb-0310-9956-ffa450edef68
2012-07-25 15:45:09 +00:00
Nick Burch
9a5378ff55 In preparation for reading the HSMF __properties stream, improve the Types support to be a class with ID+Name+Length, rather than simply an ID. Allows some tidying in HMEF. (Also stubs a few properties bits)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1358802 13f79535-47bb-0310-9956-ffa450edef68
2012-07-08 18:05:17 +00:00
Nick Burch
0ac6f0fd5a Patch from Josh Holthaus from bug #53165 - HWPF support for fetching the description (alt text) of a picture
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1332594 13f79535-47bb-0310-9956-ffa450edef68
2012-05-01 09:46:15 +00:00
Maxim Valyanskiy
6facec409f unit test for #52991 (unexpected end of ZLIB input stream)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1305812 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 11:29:39 +00:00
Yegor Kozlov
b459075ba0 optimized unused imports in poi-scratchpad
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1296980 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 09:46:11 +00:00
Yegor Kozlov
ede267e7a9 bugzilla 52682 - allow setting text with trailing carriage return in HSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1295488 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 09:51:28 +00:00
Yegor Kozlov
cee330b145 bugzilla 52244 - use correct text attributes when presentation has multiple TxMasterStyleAtoms of the same type
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1295478 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 09:03:16 +00:00
Yegor Kozlov
df61625757 Bugzilla 52599 - avoid duplicate text when rendering slides in HSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1292273 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 13:23:31 +00:00
Yegor Kozlov
a4c7338078 Bugzilla 51731 - fixed painting shape outlines in HSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1292247 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 11:44:21 +00:00
Yegor Kozlov
c8f9bde8ee removed svn:executable bit from project files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1212745 13f79535-47bb-0310-9956-ffa450edef68
2011-12-10 08:02:08 +00:00
Yegor Kozlov
e8208a7363 Bugzilla 46288: fixed refcount of Fill pictures in HSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1212381 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 12:50:20 +00:00
Nick Burch
aed41195ce Add test file for bug #51873 from Jeremy, and a test that uses it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1210332 13f79535-47bb-0310-9956-ffa450edef68
2011-12-05 05:12:23 +00:00
Nick Burch
bfcf5190eb Restore HWPF support for inline Escher images (stored in Escher rather than direct in a PICFAndOfficeArtData in the main stream), plus add test for this kind of file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1207497 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 18:42:30 +00:00
Yegor Kozlov
06916478b3 Bugzilla 51803: fixed HSLF TextExtractor to extract content from master slide
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1203295 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 17:35:42 +00:00
Yegor Kozlov
afecad3532 keep rat-check quiet, also started writing xslf docs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1198722 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 13:22:04 +00:00
Sergey Vladimirov
d8e086c2ee update test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195134 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 09:11:20 +00:00
Sergey Vladimirov
5a930ae36f different workarounds for old Word format
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195133 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 08:59:16 +00:00
Sergey Vladimirov
ec46537ca0 Fix 47958 - ArrayIndexOutOfBoundsException from PicturesTable.getAllPictures() during Escher tree walk
Fix 50936 - Exception parsing MS Word 8.0 file (as duplicate of 47958)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195080 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 00:33:44 +00:00
Sergey Vladimirov
9883b370e2 fix 51944 - PAPFormattedDiskPage.getPAPX - IndexOutOfBounds
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195079 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 00:04:38 +00:00
Sergey Vladimirov
0cf37b664b fix additional issue found in bug 52032, add test files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195077 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 23:57:48 +00:00
Sergey Vladimirov
1c3711e4ce update list types definitions using new Grfhic class
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195068 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 23:01:54 +00:00
Sergey Vladimirov
992fe34dc7 fix 52032 - HWPF - ArrayIndexOutofBoundsException with no stack trace (broken after revision 1178063)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195060 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 22:34:09 +00:00
Sergey Vladimirov
871070a8e1 add picture height / width to PicturesManager arguments
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1180740 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 23:00:39 +00:00
Nick Burch
f3bd9df526 Fix typo, leave the old version there deprecated for now
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1179787 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 19:44:48 +00:00
Sergey Vladimirov
99ee1edb17 always pad properties to 4 bytes
fix 51834 - Opening and Writing .doc file results in corrupt document

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178113 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 01:06:22 +00:00
Sergey Vladimirov
c91b9c072d correctly save PlfLst
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178104 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 00:11:05 +00:00
Sergey Vladimirov
69e7860bcc update LVLF definition
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178098 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 22:23:31 +00:00
Sergey Vladimirov
23a44c7c6d replcae FIBLongHandler with FibRgLw97 and remove CPSplitCalculator
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178038 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 16:16:17 +00:00
Sergey Vladimirov
a4ec172b7a extract FibBase from FIB
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178019 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 15:32:32 +00:00
Sergey Vladimirov
7ecbfcfbaa picture loading completely rewritten, bugs 51902 and 51890 fixed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1177709 13f79535-47bb-0310-9956-ffa450edef68
2011-09-30 15:49:19 +00:00
Nick Burch
8de1ce7c6a Tweak the HSLF and XSLF tests for master slide text to cover more (some of which is disabled for now)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1175870 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 13:48:59 +00:00
Nick Burch
59204cbc38 Tidy up HSLF extractor tests, and add a bit more for bug #51803
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173753 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 16:46:43 +00:00
Sergey Vladimirov
f779c3f462 handle lists margins
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173161 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 14:14:17 +00:00
Sergey Vladimirov
6a74c4a55e add test case for sprmTDefTable (opcode 0xD608)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173033 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 08:52:03 +00:00
Sergey Vladimirov
b12828a65e HWPF Bookmarks tables are correctly updated on text updates. Add HWPF API to update range text and delete bookmarks.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1170437 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 05:41:21 +00:00
Sergey Vladimirov
d1aeec0d78 fix Bug 51772 - IllegalArgumentException Parsing MS Word 97 - 2003;
Replace byte->char translation with byte range -> char range_S_ translation for PAPX / CHPX tables

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1166144 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 12:12:17 +00:00
Sergey Vladimirov
d6e3c74c2f add initial implementation for Excel to XSL FO converter
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1162724 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 10:45:01 +00:00
Nick Burch
193c198f25 Add missing license header
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1161479 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 10:14:26 +00:00
Sergey Vladimirov
995e5bdfa8 add copyrights and comments
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160749 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 15:44:03 +00:00
Sergey Vladimirov
48bce381fc add watermark test case (as example)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160745 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 15:35:07 +00:00
Sergey Vladimirov
4f66b1ced4 do not test ex45698-22488.xls -- requires too much memory
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160703 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 14:16:07 +00:00
Sergey Vladimirov
1190b117c5 update test case after colors conversion fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160585 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 08:48:51 +00:00
Sergey Vladimirov
bebd5bea10 add page-break test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160289 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 15:03:51 +00:00
Sergey Vladimirov
ca2e6c13df add test case for "page break before" property of paragraph
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160263 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 13:27:15 +00:00
Sergey Vladimirov
2ae382b2c9 refix 51686 - fix possible NPE, add writeTo() to ObjectPoolImpl.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160152 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 08:55:21 +00:00
Sergey Vladimirov
92abc388c7 [[51686]] rename testWORD.doc to Bug51686.doc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160143 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 08:38:20 +00:00
Maxim Valyanskiy
7a008634fa bug#51686 - ConcurrentModificationException in Tika's OfficeParser
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160137 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 07:56:43 +00:00
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
7efd316c75 translate almost any number to english and roman letters
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1158701 13f79535-47bb-0310-9956-ffa450edef68
2011-08-17 13:47:51 +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