Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pivot table openxml implementation #783

Merged
merged 10 commits into from
May 10, 2022
231 changes: 128 additions & 103 deletions OpenXmlFormats/Drawing/Chart/Chart.cs

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions OpenXmlFormats/Drawing/SpreadsheetDrawing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1807,6 +1807,20 @@ public CT_Marker to
set { toField = value; }
}

private Vml.Spreadsheet.CT_AlternateContent alternateContentField = null;

public Vml.Spreadsheet.CT_AlternateContent alternateContent
{
get
{
return alternateContentField;
}
set
{
this.alternateContentField = value;
}
}

#region Choice - one of CT_Shape, CT_GroupShape, CT_GraphicalObjectFrame, CT_Connector or CT_Picture

[XmlElement]
Expand Down Expand Up @@ -1863,6 +1877,10 @@ public void Write(StreamWriter sw)
this.graphicalObjectField.Write(sw, "graphicFrame");
else if (this.pictureField != null)
this.picture.Write(sw, "pic");
if (this.alternateContent != null)
{
this.alternateContent.Write(sw, "AlternateContent");
}
if (this.clientData != null)
{
this.clientData.Write(sw, "clientData");
Expand Down Expand Up @@ -1906,6 +1924,10 @@ internal static CT_TwoCellAnchor Parse(XmlNode node, XmlNamespaceManager namespa
{
twoCellAnchor.graphicFrame = CT_GraphicalObjectFrame.Parse(childNode, namespaceManager);
}
else if (childNode.LocalName == "AlternateContent")
{
twoCellAnchor.alternateContent = Vml.Spreadsheet.CT_AlternateContent.Parse(childNode, namespaceManager);
}
else if (childNode.LocalName == "clientData")
{
twoCellAnchor.clientData = CT_AnchorClientData.Parse(childNode, namespaceManager);
Expand Down
Loading