diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-09-21 00:09:45 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-09-21 00:09:45 +0000 |
commit | c7e9309e83af9a6bde15b625771137edbcfec8f2 (patch) | |
tree | a0ed878eb3deef8a4d01d129acb0b852422e38a9 /src/integrationtest/org/apache/poi | |
parent | eb6cc7eca19f55e07e4cac9bf8ebdea30573440e (diff) | |
download | poi-c7e9309e83af9a6bde15b625771137edbcfec8f2.tar.gz poi-c7e9309e83af9a6bde15b625771137edbcfec8f2.zip |
- #58216 - provide picture-shape resize that maintains the aspect ratio
- moved SlideShowFactory to Common SL
- changed get/setAnchor to Rectangle instead of Rectangle2D
- Fixed some Common SL generic definitions
- picture dimensions are now in points and an additional method exists for pixels
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1704206 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest/org/apache/poi')
-rw-r--r-- | src/integrationtest/org/apache/poi/stress/SlideShowHandler.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java b/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java index 34830f1e01..9d6d1b3dcd 100644 --- a/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java +++ b/src/integrationtest/org/apache/poi/stress/SlideShowHandler.java @@ -29,14 +29,13 @@ import java.io.IOException; import java.util.HashMap;
import java.util.Map;
-import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
-import org.apache.poi.sl.SlideShowFactory;
import org.apache.poi.sl.draw.Drawable;
import org.apache.poi.sl.usermodel.PictureData;
import org.apache.poi.sl.usermodel.Shape;
import org.apache.poi.sl.usermodel.ShapeContainer;
import org.apache.poi.sl.usermodel.Slide;
import org.apache.poi.sl.usermodel.SlideShow;
+import org.apache.poi.sl.usermodel.SlideShowFactory;
import org.apache.poi.sl.usermodel.TextParagraph;
import org.apache.poi.sl.usermodel.TextRun;
import org.apache.poi.sl.usermodel.TextShape;
@@ -55,12 +54,7 @@ public abstract class SlideShowHandler extends POIFSFileHandler { readContent(ss);
// read in the writen file
- SlideShow<?,?> read;
- try {
- read = SlideShowFactory.create(new ByteArrayInputStream(out.toByteArray()));
- } catch (InvalidFormatException e) {
- throw new IllegalStateException(e);
- }
+ SlideShow<?,?> read = SlideShowFactory.create(new ByteArrayInputStream(out.toByteArray()));
assertNotNull(read);
readContent(read);
|