Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions OpenXmlFormats/Drawing/Chart/BarChart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class CT_BarChart

public CT_BarChart()
{
groupingField = new CT_BarGrouping();
}
public static CT_BarChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
{
Expand Down Expand Up @@ -301,6 +302,8 @@ public CT_BarDir AddNewBarDir()

public int SizeOfAxIdArray()
{
if(axIdField==null)
return 0;
return axIdField.Count;
}

Expand Down
37 changes: 32 additions & 5 deletions OpenXmlFormats/Drawing/Chart/Chart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ public static CT_ChartSpace Parse(XmlNode node, XmlNamespaceManager namespaceMan
}



public void Save(Stream stream)
{
this.Write(stream);
}
internal void Write(Stream stream)
{
using (StreamWriter sw = new StreamWriter(stream))
Expand Down Expand Up @@ -1751,7 +1754,7 @@ public CT_Layout AddNewLayout()
}
public bool IsSetLegendPos()
{
return legendPosSpecifiedField;
return this.legendPos!=null;
}
public CT_LegendPos AddNewLegendPos()
{
Expand Down Expand Up @@ -3876,6 +3879,17 @@ public CT_TextBody AddNewRich()
this.richField = new CT_TextBody();
return this.richField;
}

public void UnsetRich()
{
this.richField=null;
}

public CT_StrRef AddNewStrRef()
{
this.strRefField = new CT_StrRef();
return this.strRefField;
}
}


Expand Down Expand Up @@ -4126,7 +4140,7 @@ public void SetPtArray(object value)
{
if(value== null)
{
this.pt.Clear();
this.pt?.Clear();
this.ptCountField = null;
}
else
Expand Down Expand Up @@ -9418,7 +9432,7 @@ public void SetPtArray(object value)
{
if(value== null)
{
this.pt.Clear();
this.pt?.Clear();
this.ptCountField = null;
}
else
Expand Down Expand Up @@ -11172,7 +11186,7 @@ public List<CT_SerAx> serAx
return this.serAxField;
}
set
{
{
this.serAxField = value;
}
}
Expand Down Expand Up @@ -11292,21 +11306,29 @@ public CT_DateAx AddNewDateAx()

public int SizeOfValAxArray()
{
if(this.valAxField==null)
return 0;
return this.valAxField.Count;
}

public int SizeOfCatAxArray()
{
if(this.catAxField==null)
return 0;
return this.catAxField.Count;
}

public int SizeOfDateAxArray()
{
if(this.dateAxField==null)
return 0;
return this.dateAxField.Count;
}

public int SizeOfSerAxArray()
{
if(this.serAxField==null)
return 0;
return this.serAxField.Count;
}

Expand Down Expand Up @@ -12198,6 +12220,11 @@ public void Set(CT_Chart other)
this.view3DField = other.view3DField;
}

public void UnsetTitle()
{
this.titleField=null;
}

[XmlElement(Order = 0)]
public CT_Title title
{
Expand Down
2 changes: 2 additions & 0 deletions OpenXmlFormats/Drawing/Chart/LineChart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,8 @@ public bool IsSetVaryColors()

public int SizeOfAxIdArray()
{
if(this.axIdField==null)
return 0;
return this.axIdField.Count;
}

Expand Down
2 changes: 2 additions & 0 deletions OpenXmlFormats/Drawing/Chart/ScatterChart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,8 @@ public CT_Boolean AddNewVaryColors()

public int SizeOfAxIdArray()
{
if(this.axIdField==null)
return 0;
return this.axIdField.Count;
}

Expand Down
5 changes: 0 additions & 5 deletions main/HSSF/UserModel/HSSFPatriarch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,6 @@ public IClientAnchor CreateAnchor(int dx1, int dy1, int dx2, int dy2, int col1,
{
return new HSSFClientAnchor(dx1, dy1, dx2, dy2, (short)col1, row1, (short)col2, row2);
}

public IChart CreateChart(IClientAnchor anchor)
{
throw new RuntimeException("NotImplemented");
}
/**
* create shape tree from existing escher records tree
*/
Expand Down
48 changes: 0 additions & 48 deletions main/SS/UserModel/Chart.cs

This file was deleted.

26 changes: 0 additions & 26 deletions main/SS/UserModel/Charts/AreaChartData.cs

This file was deleted.

19 changes: 0 additions & 19 deletions main/SS/UserModel/Charts/AreaChartSeries.cs

This file was deleted.

41 changes: 0 additions & 41 deletions main/SS/UserModel/Charts/AxisCrossBetween.cs

This file was deleted.

45 changes: 0 additions & 45 deletions main/SS/UserModel/Charts/AxisCrosses.cs

This file was deleted.

41 changes: 0 additions & 41 deletions main/SS/UserModel/Charts/AxisOrientation.cs

This file was deleted.

Loading
Loading