diff options
author | Yegor Kozlov <yegor@apache.org> | 2011-12-28 12:32:07 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2011-12-28 12:32:07 +0000 |
commit | 463c68c6b374a110b3ec688ef85d5fcaeda85afd (patch) | |
tree | 79682589ac96be70eb2ee1450c0878144e236eff /src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java | |
parent | 7a49fa7ad4a4cc6a5bb56e6634e3c9defde9d98f (diff) | |
download | poi-463c68c6b374a110b3ec688ef85d5fcaeda85afd.tar.gz poi-463c68c6b374a110b3ec688ef85d5fcaeda85afd.zip |
more progress with merging external slides
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1225169 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java index 66cb5abb53..920cf8beaf 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java @@ -25,6 +25,7 @@ import org.apache.poi.openxml4j.opc.TargetMode; import org.apache.poi.util.Beta;
import org.apache.poi.util.Units;
import org.apache.xmlbeans.XmlObject;
+import org.openxmlformats.schemas.drawingml.x2006.main.CTBlip;
import org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties;
import org.openxmlformats.schemas.drawingml.x2006.main.CTGroupTransform2D;
import org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps;
@@ -33,6 +34,7 @@ import org.openxmlformats.schemas.drawingml.x2006.main.CTPositiveSize2D; import org.openxmlformats.schemas.presentationml.x2006.main.CTConnector;
import org.openxmlformats.schemas.presentationml.x2006.main.CTGroupShape;
import org.openxmlformats.schemas.presentationml.x2006.main.CTGroupShapeNonVisual;
+import org.openxmlformats.schemas.presentationml.x2006.main.CTPicture;
import org.openxmlformats.schemas.presentationml.x2006.main.CTShape;
import java.awt.Graphics2D;
@@ -309,4 +311,18 @@ public class XSLFGroupShape extends XSLFShape { }
+ @Override
+ void copy(XSLFShape src){
+ XSLFGroupShape gr = (XSLFGroupShape)src;
+ // recursively update each shape
+ XSLFShape[] tgtShapes = getShapes();
+ XSLFShape[] srcShapes = gr.getShapes();
+ for(int i = 0; i < tgtShapes.length; i++){
+ XSLFShape s1 = srcShapes[i];
+ XSLFShape s2 = tgtShapes[i];
+
+ s2.copy(s1);
+ }
+ }
+
}
\ No newline at end of file |