Skip to content

Commit

Permalink
support mc:AlternateContent in slide shape tree
Browse files Browse the repository at this point in the history
  • Loading branch information
plutext committed May 4, 2019
1 parent 955feb4 commit d1bc3a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.docx4j.dml.CTGroupShapeProperties;
import org.docx4j.dml.CTNonVisualDrawingProps;
import org.docx4j.dml.CTNonVisualGroupDrawingShapeProps;
import org.docx4j.mce.AlternateContent;

import org.jvnet.jaxb2_commons.ppp.Child;

Expand Down Expand Up @@ -96,7 +97,8 @@ public class GroupShape implements Child
@XmlElement(name = "graphicFrame", type = CTGraphicalObjectFrame.class),
@XmlElement(name = "cxnSp", type = CxnSp.class),
@XmlElement(name = "pic", type = Pic.class),
@XmlElement(name = "contentPart", type = CTRel.class)
@XmlElement(name = "contentPart", type = CTRel.class),
@XmlElement(name = "AlternateContent", namespace = "http://schemas.openxmlformats.org/markup-compatibility/2006", type = AlternateContent.class)
})
protected List<Object> spOrGrpSpOrGraphicFrame;
protected CTExtensionListModify extLst;
Expand Down Expand Up @@ -175,6 +177,7 @@ public void setGrpSpPr(CTGroupShapeProperties value) {
* {@link CxnSp }
* {@link Pic }
* {@link CTRel }
* {@link AlternateContent }
*
*
*/
Expand Down
7 changes: 7 additions & 0 deletions xsd/pml/pml-2ed.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ WHICH VERSION?
USAGE INSTRUCTIONS
To generate java classes, you need xjc.
20190429:
sh /bvols/\@Overflow/No_COW//java/jaxb-ri-2.2.11/bin/xjc.sh -classpath /bvols/\@Overflow/No_COW/java/parent-pointer-plugin-1.2.jar -Xparent-pointer pml-2ed.xsd -d tmp -no-header -target 2.0
sh ~/jaxb-ri-20071219/bin/xjc.sh pml-2ed.xsd -d ~/workspace/docx4j/src/pptx4j/java -no-header -target 2.0
Expand Down Expand Up @@ -3942,6 +3946,9 @@ PRINCIPLES:
<xsd:documentation>Content Part</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!-- added docx4j 8.1.0 -->
<xsd:element ref="mc:AlternateContent" />

</xsd:choice>
<xsd:element name="extLst" type="CT_ExtensionListModify" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
Expand Down

0 comments on commit d1bc3a4

Please sign in to comment.