Commit Graph

275 Commits

Author SHA1 Message Date
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 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 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 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
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 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 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