|
@@ -38,25 +38,32 @@ namespace HTEXLib.Models.HTEX
|
|
|
|
|
|
public override List<Item> DrawElement()
|
|
public override List<Item> DrawElement()
|
|
{
|
|
{
|
|
- var GraphicDataChildren = graphicFrame.element.Graphic.GraphicData.ChildElements;
|
|
|
|
-
|
|
|
|
|
|
+ List < Item > items= null;
|
|
|
|
+ var GraphicDataChildren = graphicFrame.element.Graphic.GraphicData.ChildElements;
|
|
|
|
+
|
|
foreach (var clild in GraphicDataChildren) {
|
|
foreach (var clild in GraphicDataChildren) {
|
|
if (clild is DocumentFormat.OpenXml.Drawing.Table Table) {
|
|
if (clild is DocumentFormat.OpenXml.Drawing.Table Table) {
|
|
HtexTable table = new HtexTable(id,rot,width,height,top,left,invisible,animatable,index,Table,slide,partForm);
|
|
HtexTable table = new HtexTable(id,rot,width,height,top,left,invisible,animatable,index,Table,slide,partForm);
|
|
- return table.DrawElement();
|
|
|
|
|
|
+ items= table.DrawElement();
|
|
}
|
|
}
|
|
if (clild is DocumentFormat.OpenXml.Drawing.Charts.ChartReference Chart)
|
|
if (clild is DocumentFormat.OpenXml.Drawing.Charts.ChartReference Chart)
|
|
{
|
|
{
|
|
HtexChart chart = new HtexChart(id, rot, width, height, top, left, invisible, animatable, index, Chart, slide, partForm);
|
|
HtexChart chart = new HtexChart(id, rot, width, height, top, left, invisible, animatable, index, Chart, slide, partForm);
|
|
- return chart.DrawElement();
|
|
|
|
|
|
+ items = chart.DrawElement();
|
|
}
|
|
}
|
|
if (clild is DocumentFormat.OpenXml.Drawing.Diagrams.RelationshipIds Diagram)
|
|
if (clild is DocumentFormat.OpenXml.Drawing.Diagrams.RelationshipIds Diagram)
|
|
{
|
|
{
|
|
HtexDiagram diagram = new HtexDiagram(id, rot, width, height, top, left, invisible, animatable, index, Diagram, slide, partForm);
|
|
HtexDiagram diagram = new HtexDiagram(id, rot, width, height, top, left, invisible, animatable, index, Diagram, slide, partForm);
|
|
- return diagram.DrawElement();
|
|
|
|
|
|
+ items = diagram.DrawElement();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ if (items != null&& items.Count > 0)
|
|
|
|
+ {
|
|
|
|
+ items[0].uid = graphicFrame.suid;
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return null;
|
|
|
|
|
|
+ return items;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|