Commit Graph

504 Commits

Author SHA1 Message Date
Nick Burch
c22c2e813c Finish off the example use of MissingRecordAwareHSSFListener, which outputs a csv
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@548049 13f79535-47bb-0310-9956-ffa450edef68
2007-06-17 15:54:52 +00:00
Nick Burch
8dc3f008cf Make a start on some example code to use MissingRecordAwareHSSFListener for turning a xls into a csv
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@548030 13f79535-47bb-0310-9956-ffa450edef68
2007-06-17 10:59:48 +00:00
Yegor Kozlov
c5a4a5b891 encode unicode chars in HSLF unit tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@543411 13f79535-47bb-0310-9956-ffa450edef68
2007-06-01 07:06:51 +00:00
Yegor Kozlov
49a0737b06 HSLF: readonly support for hyperlinks
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@542804 13f79535-47bb-0310-9956-ffa450edef68
2007-05-30 11:56:46 +00:00
Yegor Kozlov
aeaf8fe21f fixed bug 38256: RuntimeException: Couldn't instantiate the class for type with id 0
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@542453 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 08:32:56 +00:00
Yegor Kozlov
28b2906621 support for text bullets
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@542179 13f79535-47bb-0310-9956-ffa450edef68
2007-05-28 09:45:09 +00:00
Yegor Kozlov
bdd52c732f fixed bug 42520: NPE in Picture.getPictureData() and bug 42524: NPE in Shape.getShapeType(); Also changed the code to write messages to POILogger instead of System.err/System.out
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@541867 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 07:22:51 +00:00
Yegor Kozlov
09b709f426 fixed bug 42486: Failure parsing a seemingly valid PPT. Some of the assertions in ExHyperlink were too strong. Write to log instead of throwing exception
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@541632 13f79535-47bb-0310-9956-ffa450edef68
2007-05-25 13:03:26 +00:00
Yegor Kozlov
3bcdf011d1 added support for TitleMaster object
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@541622 13f79535-47bb-0310-9956-ffa450edef68
2007-05-25 12:04:45 +00:00
Yegor Kozlov
581fb11400 fixed bug 42484: NullPointerException from ShapeGroup.getAnchor()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@541281 13f79535-47bb-0310-9956-ffa450edef68
2007-05-24 12:09:34 +00:00
Yegor Kozlov
eb267bb14a fixed bug 42485: All TextBoxes inside ShapeGroups have null TextRuns
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@541274 13f79535-47bb-0310-9956-ffa450edef68
2007-05-24 11:38:36 +00:00
Yegor Kozlov
ddef996756 throw HSLFException instead of RuntimeException
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@541267 13f79535-47bb-0310-9956-ffa450edef68
2007-05-24 11:05:24 +00:00
Yegor Kozlov
8d87bbd972 return null instead of throwing exception when slide master is not found
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@541266 13f79535-47bb-0310-9956-ffa450edef68
2007-05-24 11:04:22 +00:00
Yegor Kozlov
ba9e3eb545 applied patches from bug 42474: (1) Incorrect matching of notes to slides and (2) NPE in RichTextRun.isBold() when the RichTextRun comes from a Notes model object
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@541219 13f79535-47bb-0310-9956-ffa450edef68
2007-05-24 07:52:04 +00:00
Nick Burch
b6fedbefd9 Initial version of a Missing Record Aware shim on HSSFListener. Includes limited tests, but not yet any documentation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@539462 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 13:27:04 +00:00
Nick Burch
80249d9780 If the apparent location of the current user atom is past the end of the data, then the file's clearly corrupt, so throw a better exception
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@539453 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 13:17:41 +00:00
Yegor Kozlov
5161e63400 cleaning the code before release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@530031 13f79535-47bb-0310-9956-ffa450edef68
2007-04-18 14:22:55 +00:00
Yegor Kozlov
0d56d5df4a use POILogger instead of System.err in hslf records. If users want verbose output they should explicitly enable it through -Dorg.apache.poi.util.POILogger option. P.S. I think this should be done through the whole HSLF, i.e. no direct calls of System.out and Sysrtem.err
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@527820 13f79535-47bb-0310-9956-ffa450edef68
2007-04-12 07:40:15 +00:00
Nick Burch
99e3b2389d It seems that some PPT files only have linkAtom + linkDetailsA for their ExHyperlink, and miss the linkDetailsB. For those files, do the right thing
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@525127 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 10:13:20 +00:00
Yegor Kozlov
51840d63ad convert from pixels (96dpi) to points(72dpi) when setting picture anchor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@524085 13f79535-47bb-0310-9956-ffa450edef68
2007-03-30 13:48:56 +00:00
Nick Burch
5cf00bc2a6 Apply Trejkax's fix from bug #41653, and do a whole load of tests for the HWPF picture stuff. Includes a stub test for the problem identified in bug #41898
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@523777 13f79535-47bb-0310-9956-ffa450edef68
2007-03-29 17:36:37 +00:00
Nick Burch
5803bf4514 Don't NPE if we have a reference to a note, where there's no core record to go with that note's RefID. Instead, just log it, and pretend the note wasn't there.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@523678 13f79535-47bb-0310-9956-ffa450edef68
2007-03-29 11:50:50 +00:00
Yegor Kozlov
c57a5a47d0 fixed bug 41384: Array index wrong in record creation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@520893 13f79535-47bb-0310-9956-ffa450edef68
2007-03-21 14:04:32 +00:00
Nick Burch
2e4f27d57b If the username length in the CurrentUserAtom is clearly wrong, treat it as if there was no username, rather than giving an ArrayIndexOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@513391 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 15:59:56 +00:00
Rainer Klute
6ea2f6804a Make this compile for me.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@501314 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 05:49:04 +00:00
Nick Burch
066910f3c0 Add ExObjList support
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@497107 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 18:09:24 +00:00
Nick Burch
1557708b2a Add ExHyperlink tests against a real file
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@497090 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 17:12:26 +00:00
Nick Burch
a2bc714fa3 Add support for ExHyperlink and ExHyperlinkAtom
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@497079 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 16:59:45 +00:00
Nick Burch
255bc5a9c3 Support InteractiveInfo, the parent of InteractiveInfoAtom
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@497061 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 16:17:46 +00:00
Nick Burch
3577d348c3 Initial, basic support for InteractiveInfoAtom
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@497058 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 16:05:26 +00:00
Nick Burch
b892245d39 Tweak comments and variable names, to make the wacky colour stuff as BGR not RGB clearer
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@496782 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 17:22:38 +00:00
Nick Burch
16b4ba157a Refactor the TextPropCollection and TextProp classes into their own model package. Some of the logic in StyleTextPropAtom should probably be refactored out too, but that's still to do
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@496405 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 17:00:41 +00:00
Nick Burch
0d2f337be6 Fix for bug #41357, by moving byte array creation until after we've decided that we have a valid picture
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@496398 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 16:40:03 +00:00
Nick Burch
3b14ab1eb2 Update the order of the TextProps, as it seems not to be based quite on the mask order. Fix from Yegor, from bug #40143
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@496369 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 15:22:39 +00:00
Mark Emlyn David Thomas
dec3b4b591 git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@496331 13f79535-47bb-0310-9956-ffa450edef68 2007-01-15 14:36:03 +00:00
Mark Emlyn David Thomas
a07ff5e91c Add standard licence header
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@496329 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 14:27:03 +00:00
Nick Burch
ad857c6fbc Throw an exception if a picture claims to have a negative amount of data. Should avoid problem in bug #41357
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@495578 13f79535-47bb-0310-9956-ffa450edef68
2007-01-12 14:19:35 +00:00
Nick Burch
ff124420a0 Handle the fact that StyleTextPropAtom needs to work with a text length that's one larger than the underlying text it represents. (Fix from Yegor from bug #40143)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@495278 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 16:18:30 +00:00
Nick Burch
e7c94a114b Update with new knowledge of how this all works, from bug #41176
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@494519 13f79535-47bb-0310-9956-ffa450edef68
2007-01-09 18:51:29 +00:00
Henri Yandell
81357fd328 Applied copy2license script to the files that were converted by dos2unix. ant jar continues to pass.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@489762 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 21:00:02 +00:00
Henri Yandell
094505af85 Applying dos2unix on some of the Java files. The copy2license script isn't picking up the dos line endings. Hopefully not a problem for anyone
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@489760 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 20:56:04 +00:00
Henri Yandell
fca4623791 Applying the copy2license.pl script (with tiny modification to allow for more whitespace than it expects in the POI header) to all files. ant jar succeeds, and the svn diff has been verified by eye. Still more files to do, this is the first pass.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@489730 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:18:16 +00:00
Nick Burch
f067316bb0 Try to work with files that don't have a master SlideListWithText, but go straight into a Slides one. Throw a better exception on slides with a mixed first SlideListWithText (see bug 41176 for more details)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@487182 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 11:50:54 +00:00
Nick Burch
5c5dcf0d4f If we have a picture of type 0, don't even bother trying to create a PictureData object for it
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@487181 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 11:49:56 +00:00
Nick Burch
f86c96a2ab Support compressed pictures properly, from bug #41032
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@480585 13f79535-47bb-0310-9956-ffa450edef68
2006-11-29 14:49:40 +00:00
Nick Burch
5984e70059 Update from Yegor in bug 41046 - support background shapes and fills
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@480104 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 15:55:27 +00:00
Nick Burch
f09b28bcd5 Ditch a few calls to System.out, in favour of calls to POILogger
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@480102 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 15:54:39 +00:00
Nick Burch
0bf725ae46 Fix for bug 41015 - add in another paragraph property
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@480093 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 15:34:20 +00:00
Amol S. Deshmukh
b6d7c5ec34 superclass for logical functions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@479294 13f79535-47bb-0310-9956-ffa450edef68
2006-11-26 06:15:17 +00:00
Amol S. Deshmukh
ae6f6b3d1a updated to include additional tests for IF()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@479293 13f79535-47bb-0310-9956-ffa450edef68
2006-11-26 06:14:54 +00:00
Amol S. Deshmukh
0bce29d37c initial version
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@479290 13f79535-47bb-0310-9956-ffa450edef68
2006-11-26 06:14:11 +00:00
Amol S. Deshmukh
3cad882697 implemented IF() function
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@479289 13f79535-47bb-0310-9956-ffa450edef68
2006-11-26 06:13:29 +00:00
Amol S. Deshmukh
c2bd2b7b1c added testcases for functions: if, islogical, isnontext, isnumber, isref, istext, left, right
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@479288 13f79535-47bb-0310-9956-ffa450edef68
2006-11-26 06:12:46 +00:00
Amol S. Deshmukh
ad43b3a7ab replaced use of deprecated calls to get string value from cell
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@479287 13f79535-47bb-0310-9956-ffa450edef68
2006-11-26 06:11:36 +00:00
Amol S. Deshmukh
1fd5b611a3 Fixed:
1. evaluateInCell failed if the cell originally contained a numeric value
2. Sheet references were not handled correctly


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@478367 13f79535-47bb-0310-9956-ffa450edef68
2006-11-22 23:12:06 +00:00
Amol S. Deshmukh
471bb226a4 removed use of deprecated calls to get the String value of a cell
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@477928 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 22:17:34 +00:00
Nick Burch
fd3bbdbd1c Detect when the Current User stream is too short, and give a more helpful exception in that case
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@477162 13f79535-47bb-0310-9956-ffa450edef68
2006-11-20 12:26:51 +00:00
Nick Burch
23303f691f Avoid an exception when getting the default bitmap image size on some JVMs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@474253 13f79535-47bb-0310-9956-ffa450edef68
2006-11-13 11:13:55 +00:00
Nick Burch
59ced4d73e Support for DIB picture types, from Bug 40740
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@464984 13f79535-47bb-0310-9956-ffa450edef68
2006-10-17 18:12:43 +00:00
Nick Burch
5f167f01b2 Support for Master Sheets from Yegor (bug 40753)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@464982 13f79535-47bb-0310-9956-ffa450edef68
2006-10-17 18:01:19 +00:00
Nick Burch
966759c29b Don't depend on source files being utf8 for test to work
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@464977 13f79535-47bb-0310-9956-ffa450edef68
2006-10-17 17:52:18 +00:00
Nick Burch
353eafdd29 If we hit an unknown picture type, don't break completely - report an error but carry on without the picture
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@463202 13f79535-47bb-0310-9956-ffa450edef68
2006-10-12 11:26:05 +00:00
Nick Burch
ccc494626e Fix for NPE in bug #40036. The TextBox will still be fairly useless though
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@450097 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 15:53:21 +00:00
Nick Burch
9d50165790 FOP fix from bug #39086
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@450068 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 14:54:45 +00:00
Nick Burch
34878d8f01 From bug #38616 - support for extracting images from word files, plus tests for this
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@450066 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 14:46:39 +00:00
Nick Burch
31e27577bd Don't just assume we'll only have container records for the shape's escher records
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@450057 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 14:14:59 +00:00
Nick Burch
93d416796d Handle the case where a StyleTextPropAtom has a mask that codes for more properties than we have data for (+tests for this)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@449983 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 11:19:30 +00:00
Nick Burch
f038906105 Support alignment and indent levels for HSLF - patch from Yegor in bug #40324
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@448004 13f79535-47bb-0310-9956-ffa450edef68
2006-09-19 22:47:44 +00:00
Nick Burch
6e1236c74a Improved picture support for HSLF, from Yegor in bug 40388
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@448001 13f79535-47bb-0310-9956-ffa450edef68
2006-09-19 22:37:38 +00:00
Jason Height
5e3eb6beff Just removed a bunch of unused imports etc. Reduces eclipse warnings
Jason

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437998 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 07:47:00 +00:00
Jason Height
d636083355 Hopefully fixed scratchpad test org.apache.poi.hssf/record/formula/functions/TestEverything.java from running out of memory and killing gump
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437486 13f79535-47bb-0310-9956-ffa450edef68
2006-08-28 00:31:36 +00:00
Jason Height
76a2ebcf6e Found a case where the shared formula does not resolve. This was in the test case for the org.apache.poi.hssf.record.formula.eval.TextEverything
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437126 13f79535-47bb-0310-9956-ffa450edef68
2006-08-26 08:23:22 +00:00
Nick Burch
3ed8893246 Access to Saved By Information - patch from Trejkaz in bug #38647
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@431320 13f79535-47bb-0310-9956-ffa450edef68
2006-08-14 10:29:49 +00:00
Nick Burch
ec2a2ca3ca Throw a more useful exception in the case of word95 documents
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@430365 13f79535-47bb-0310-9956-ffa450edef68
2006-08-10 12:20:24 +00:00
Nick Burch
b11c11fb65 If we're created with an InputStream, check to see if it's really RTF before proceeding
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@430363 13f79535-47bb-0310-9956-ffa450edef68
2006-08-10 12:12:27 +00:00
Nick Burch
9356b01d88 Yegor's TxMasterStyleAtom code from Bug #40057
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@423129 13f79535-47bb-0310-9956-ffa450edef68
2006-07-18 16:44:57 +00:00
Nick Burch
bc74b9a09f Add lookups for the common text alignments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@423127 13f79535-47bb-0310-9956-ffa450edef68
2006-07-18 16:25:20 +00:00
Nick Burch
774caa9892 Yegor's update from bug #39991 - better identification of what underlying picture data a picture object relates to
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@421843 13f79535-47bb-0310-9956-ffa450edef68
2006-07-14 09:18:44 +00:00
Nick Burch
e15bce1dd2 Expose the underlying TextRun
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@421555 13f79535-47bb-0310-9956-ffa450edef68
2006-07-13 09:24:39 +00:00
Nick Burch
c8b4f5798c Add in a main() method, so people can stop moaning
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@421238 13f79535-47bb-0310-9956-ffa450edef68
2006-07-12 11:22:50 +00:00
Nick Burch
611a6f2fdd Remove a bit of debug code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@418856 13f79535-47bb-0310-9956-ffa450edef68
2006-07-03 21:27:09 +00:00
Nick Burch
519fa953c3 Get to a consistent indent
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@418849 13f79535-47bb-0310-9956-ffa450edef68
2006-07-03 20:59:09 +00:00
Nick Burch
9e077b9335 Yegor's Slide Title patch from bug 39948
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@418847 13f79535-47bb-0310-9956-ffa450edef68
2006-07-03 20:53:08 +00:00
Nick Burch
1ea2717c6f Add correct detection for encrypted powerpoint files. An exception will be thrown if they are encountered.\n(As we don't know how the encryption is done, we can't do any decryption of these files)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@418842 13f79535-47bb-0310-9956-ffa450edef68
2006-07-03 20:34:41 +00:00
Nick Burch
9f3cfdce35 Support re-ordering of slides, now that we know how slider ordering works
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@418612 13f79535-47bb-0310-9956-ffa450edef68
2006-07-02 16:02:20 +00:00
Nick Burch
7175573d2f Hopefully fix bug 39228 - big overhaul of how slides and notes are build, based on Yegor's discoveries. Hopefully, we now return the right slide #, and in the right order
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@417541 13f79535-47bb-0310-9956-ffa450edef68
2006-06-27 18:15:32 +00:00
Nick Burch
8514bc913e Update Document to offer the SlideListWithTexts by name, and change addSlide to add to the right SlideListWithText. (Based on a bug, the number I don't have to hand, doh\!)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@417434 13f79535-47bb-0310-9956-ffa450edef68
2006-06-27 11:42:29 +00:00
Nick Burch
0a800b06b4 Tweak rich text handling
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@414857 13f79535-47bb-0310-9956-ffa450edef68
2006-06-16 16:32:07 +00:00
Nick Burch
cbe41c08b1 Tweak comments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@414846 13f79535-47bb-0310-9956-ffa450edef68
2006-06-16 15:03:01 +00:00
Nick Burch
59ff1beb2b Tests for new RichText code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413914 13f79535-47bb-0310-9956-ffa450edef68
2006-06-13 14:58:46 +00:00
Nick Burch
053951da78 Refactor to allow easy testing of multiple files. Will enable a second file when bug #39800 is fixed
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413913 13f79535-47bb-0310-9956-ffa450edef68
2006-06-13 14:58:24 +00:00
Nick Burch
6f7e6cba29 Hopefully handle the building and using of RichTextRuns correctly. Should include proper handling of the +1 length in the styles (Bug 39177), and shared character/paragraph styles (Bugs 39547 and 38544)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413912 13f79535-47bb-0310-9956-ffa450edef68
2006-06-13 14:57:34 +00:00
Nick Burch
01f4fd56fe Some PersistPtrHolders seem to reference records stored after them. Add a second pass to cope with these cases
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413911 13f79535-47bb-0310-9956-ffa450edef68
2006-06-13 14:54:52 +00:00
Nick Burch
6496f86c8c Some initial changes that are needed to fix bug #38544
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413694 13f79535-47bb-0310-9956-ffa450edef68
2006-06-12 16:07:29 +00:00
Nick Burch
aebc06f029 New dev program for helping us understand how SlideListWithTexts interact
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413678 13f79535-47bb-0310-9956-ffa450edef68
2006-06-12 15:16:44 +00:00
Nick Burch
a12a110062 Add some comments to the code, to help understand why an extra +1 is added (based on discussions in bug #39177)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413671 13f79535-47bb-0310-9956-ffa450edef68
2006-06-12 14:45:07 +00:00
Nick Burch
2d3f5b568e Make the output of the positions easier to understand
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413669 13f79535-47bb-0310-9956-ffa450edef68
2006-06-12 14:44:30 +00:00
Nick Burch
03ce1cdb81 Better handling of zero sized images, and where the picture stream doesn't have enough data left for a full header
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413658 13f79535-47bb-0310-9956-ffa450edef68
2006-06-12 14:06:08 +00:00
Nick Burch
9dc69a14b3 Add test for empty constructor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@405757 13f79535-47bb-0310-9956-ffa450edef68
2006-05-10 13:24:54 +00:00
Nick Burch
f80d4eadfa Don't blindly cast children to FontEntityAtom
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@405381 13f79535-47bb-0310-9956-ffa450edef68
2006-05-09 10:47:22 +00:00
Nick Burch
e626f3ec08 Fixes from Yegor, from bug #39395
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@405092 13f79535-47bb-0310-9956-ffa450edef68
2006-05-08 16:43:11 +00:00
Nick Burch
ca716cdbe5 Tests to go with fix for bug 39374
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@395889 13f79535-47bb-0310-9956-ffa450edef68
2006-04-21 14:06:10 +00:00
Nick Burch
121902a2c7 Fix for bug 39374 - handle unicode text runs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@395888 13f79535-47bb-0310-9956-ffa450edef68
2006-04-21 14:05:42 +00:00
Nick Burch
2e7eca951c Tests for fixes associated with Bug 39324
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@395882 13f79535-47bb-0310-9956-ffa450edef68
2006-04-21 13:45:04 +00:00
Nick Burch
1af4f0ca39 Bug fix for newly created bitmask values (part of bug 39324). A few enhancements to make adding new TextPropCollections easier
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@395880 13f79535-47bb-0310-9956-ffa450edef68
2006-04-21 13:43:53 +00:00
Nick Burch
9122e79a49 When adding TextBoxes to a slide, make sure we update the PPDrawing's cache of TextboxWrappers
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@395879 13f79535-47bb-0310-9956-ffa450edef68
2006-04-21 13:41:56 +00:00
Nick Burch
85da377c7d Test to ensure that when we add slides, we can write them back out and everything behaves
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@395280 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 15:43:06 +00:00
Nick Burch
4a27fd3c8a Updated test from Yegor, to also test creating text boxes with properties
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@395219 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 11:41:27 +00:00
Nick Burch
1bb312f416 Updates from Yegor: New shape and picture stuff (see bug 39256)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@393576 13f79535-47bb-0310-9956-ffa450edef68
2006-04-12 18:48:53 +00:00
Nick Burch
b463116c03 PPT file where the slides are returned in the wrong order, from bug #39228
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@393555 13f79535-47bb-0310-9956-ffa450edef68
2006-04-12 18:04:05 +00:00
Nick Burch
5d5464b3ad Tests to ensure that the StyleTextProp and RichText stuff plays nicely together
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@393553 13f79535-47bb-0310-9956-ffa450edef68
2006-04-12 18:01:11 +00:00
Nick Burch
4bc2ee40a8 Need right date in the test formatter
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@393552 13f79535-47bb-0310-9956-ffa450edef68
2006-04-12 18:00:38 +00:00
Nick Burch
4ef50e7e94 Fix bug #39177 - Last TextPropCollection needs a length 1 longer than the text that makes it up
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@393550 13f79535-47bb-0310-9956-ffa450edef68
2006-04-12 17:59:45 +00:00
Nick Burch
03a9571272 Bug fix for writing out the mask for BitMask properties
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@393549 13f79535-47bb-0310-9956-ffa450edef68
2006-04-12 17:59:03 +00:00
Nick Burch
9e06090a6e Add a check that just opening a usermodel slidesheet on it doesn't break things
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@393497 13f79535-47bb-0310-9956-ffa450edef68
2006-04-12 16:31:34 +00:00
Nick Burch
0ce1e5a77c Add constructors taking the main objects, rather than just input streams
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@391617 13f79535-47bb-0310-9956-ffa450edef68
2006-04-05 14:04:32 +00:00
Nick Burch
1e70a2efc7 Fix for 12 vs 24 hour times
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@391591 13f79535-47bb-0310-9956-ffa450edef68
2006-04-05 11:44:28 +00:00
Nick Burch
94ab8d0aff More HPSF-related beautification
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@391590 13f79535-47bb-0310-9956-ffa450edef68
2006-04-05 11:43:40 +00:00
Rainer Klute
ff008b3ae9 HPSF-related beautification
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@391555 13f79535-47bb-0310-9956-ffa450edef68
2006-04-05 07:26:52 +00:00
Nick Burch
4850277501 Convert HWPFDocument to having POIDocument as its parent
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@391365 13f79535-47bb-0310-9956-ffa450edef68
2006-04-04 17:02:14 +00:00
Nick Burch
7fa4feb4bb Create a new Superclass, POIDocument, which handles the property (hpsf) stuff which was previously done by HSLFSlideShow. Add tests for this, and convert HSLFSlideShow to using it
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@391363 13f79535-47bb-0310-9956-ffa450edef68
2006-04-04 16:50:04 +00:00
Nick Burch
59121bead0 Prevent infinite recursion (leading to stack overflow) on broken documents where a PAP claims to be its own parent
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@391084 13f79535-47bb-0310-9956-ffa450edef68
2006-04-03 16:46:01 +00:00
Nick Burch
b57714f465 Add more tests to ensure the IDs are still correct after writing out and reading back in again
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@389292 13f79535-47bb-0310-9956-ffa450edef68
2006-03-27 21:42:13 +00:00
Nick Burch
2dde4d5774 Fixes/Updates to tests to go with big change in how slides/notes are tied to their text
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@389287 13f79535-47bb-0310-9956-ffa450edef68
2006-03-27 21:36:00 +00:00
Nick Burch
5d1dd22d12 Big change in how we tie slides, notes, and their text together. Now make use of the RefID and SlideIndentifier values to pull everything together
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@389286 13f79535-47bb-0310-9956-ffa450edef68
2006-03-27 21:35:37 +00:00
Nick Burch
19ff07c8a6 Have more useful information on how the different IDs are used
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@389284 13f79535-47bb-0310-9956-ffa450edef68
2006-03-27 21:34:29 +00:00
Nick Burch
15eb02e851 From Bug 38544 - example ppt file where paragraph styles run out before char styles
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@389282 13f79535-47bb-0310-9956-ffa450edef68
2006-03-27 21:31:31 +00:00
Nick Burch
f2acaed7d3 Developer helper program to try to help match Slide IDs between SlidePersistAtoms and Slides
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@389234 13f79535-47bb-0310-9956-ffa450edef68
2006-03-27 19:42:13 +00:00
Nick Burch
b07df66836 More slide related tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@388942 13f79535-47bb-0310-9956-ffa450edef68
2006-03-26 19:08:10 +00:00
Nick Burch
446971f3f4 Start to do more useful/sensible things with Slide IDs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@388941 13f79535-47bb-0310-9956-ffa450edef68
2006-03-26 19:07:52 +00:00
Nick Burch
903bbb2ba6 Tests for adding multiple slides
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@388930 13f79535-47bb-0310-9956-ffa450edef68
2006-03-26 17:37:36 +00:00
Nick Burch
85b8807855 Fix for adding multiple slides
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@388929 13f79535-47bb-0310-9956-ffa450edef68
2006-03-26 17:37:04 +00:00
Nick Burch
29a5b2b56b Tests for patches from Yegor (Bug #39097)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@388921 13f79535-47bb-0310-9956-ffa450edef68
2006-03-26 16:21:08 +00:00
Nick Burch
7067a15892 Patches from Yegor (Bug #39097), along with some sorting out of indenting, method positioning etc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@388920 13f79535-47bb-0310-9956-ffa450edef68
2006-03-26 16:20:08 +00:00
Nick Burch
32740c0bb7 Also grab text from CStrings, which will get Comments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@387016 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 18:44:10 +00:00
Nick Burch
624aaabf09 Fix for adding slides to sheets which already have some - get the SlidePersistAtom correctly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@387010 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 18:09:20 +00:00
Nick Burch
71eda449e6 Add Yegor's new slide functionality (see bug 38954), with a bit of refactoring
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@387009 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 17:54:17 +00:00
Nick Burch
a193016805 Add Yegor's new slide functionality (see bug 38954), with a bit of refactoring
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@387008 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 17:53:49 +00:00
Nick Burch
9cf5b40189 Tests for improved child record adding code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386997 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 16:29:50 +00:00
Nick Burch
7222245b33 Improve the child record adding code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386996 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 16:29:31 +00:00
Nick Burch
7cfd0162a7 Test for new Environment record
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386987 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 16:10:07 +00:00
Nick Burch
eb53534020 Add an Environment record, and make the code simpler
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386986 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 16:09:51 +00:00
Nick Burch
b7827f2687 Test for new Document record class
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386982 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 15:59:43 +00:00
Nick Burch
e76e2d8526 Create a Document record class, to do a lot of the common Document stuff for us
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386981 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 15:59:23 +00:00
Nick Burch
00011b1c8e Tests to ensure we create empty StyleTextPropAtoms correctly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386976 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 14:52:41 +00:00
Nick Burch
40dc76c0cf Create empty StyleTextPropAtoms correctly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386975 13f79535-47bb-0310-9956-ffa450edef68
2006-03-19 14:52:23 +00:00
Nick Burch
8b1721c749 Tests for getting and changing the font of a rich text run
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386873 13f79535-47bb-0310-9956-ffa450edef68
2006-03-18 18:56:38 +00:00
Nick Burch
7ce58ff9d1 Support for getting and changing the font of a rich text run
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386872 13f79535-47bb-0310-9956-ffa450edef68
2006-03-18 18:56:26 +00:00
Nick Burch
d3a66fae07 Tests for creating a new Comment2000 record
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@385356 13f79535-47bb-0310-9956-ffa450edef68
2006-03-12 19:19:18 +00:00
Nick Burch
637078aca3 Support for creating a new Comment2000 record
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@385355 13f79535-47bb-0310-9956-ffa450edef68
2006-03-12 19:18:59 +00:00