Skip to content

Commit

Permalink
change internal to private as there's no need for internal anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed May 12, 2024
1 parent 86ccb57 commit 3bce34a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions OfficeIMO.Word/WordChart.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Drawing.Charts;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;
Expand Down Expand Up @@ -65,7 +64,7 @@ private UInt32Value _index {
}
}
}
internal CategoryAxis AddCategoryAxis() {
private CategoryAxis AddCategoryAxis() {
CategoryAxis categoryAxis1 = new CategoryAxis();
categoryAxis1.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart");
AxisId axisId3 = new AxisId() { Val = (UInt32Value)148921728U };
Expand Down Expand Up @@ -103,7 +102,7 @@ internal CategoryAxis AddCategoryAxis() {
return categoryAxis1;
}

internal ValueAxis AddValueAxis() {
private ValueAxis AddValueAxis() {
ValueAxis valueAxis1 = new ValueAxis();
valueAxis1.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart");
AxisId axisId4 = new AxisId() { Val = (UInt32Value)154227840U };
Expand Down Expand Up @@ -139,7 +138,7 @@ internal ValueAxis AddValueAxis() {
return valueAxis1;
}

internal DataLabels AddDataLabel() {
private DataLabels AddDataLabel() {
DataLabels dataLabels1 = new DataLabels();
dataLabels1.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart");
ShowLegendKey showLegendKey1 = new ShowLegendKey() { Val = false };
Expand All @@ -160,7 +159,7 @@ internal DataLabels AddDataLabel() {
return dataLabels1;
}

internal WordParagraph InsertChart(WordDocument wordDocument, WordParagraph paragraph, bool roundedCorners, int width = 600, int height = 600) {
private WordParagraph InsertChart(WordDocument wordDocument, WordParagraph paragraph, bool roundedCorners, int width = 600, int height = 600) {
ChartPart part = CreateChartPart(wordDocument, roundedCorners);
// _chartPart = part;
var id = _document._wordprocessingDocument.MainDocumentPart.GetIdOfPart(part);
Expand All @@ -174,7 +173,7 @@ internal WordParagraph InsertChart(WordDocument wordDocument, WordParagraph para
return paragraph;
}

internal ChartPart CreateChartPart(WordDocument document, bool roundedCorners) {
private ChartPart CreateChartPart(WordDocument document, bool roundedCorners) {
ChartPart part = document._wordprocessingDocument.MainDocumentPart.AddNewPart<ChartPart>(); //("rId1");

ChartSpace chartSpace1 = new ChartSpace();
Expand All @@ -187,7 +186,7 @@ internal ChartPart CreateChartPart(WordDocument document, bool roundedCorners) {
return part;
}

internal Chart GenerateChart(string title = null) {
private Chart GenerateChart(string title = null) {
Chart chart1 = new Chart();
AutoTitleDeleted autoTitleDeleted1 = new AutoTitleDeleted() { Val = false };
PlotArea plotArea1 = new PlotArea() { Layout = new Layout() };
Expand Down Expand Up @@ -227,7 +226,7 @@ internal void UpdateTitle() {
}
}

internal static Title AddTitle(string title) {
private static Title AddTitle(string title) {
Title title1 = new Title();
ChartText chartText1 = new ChartText();

Expand Down

0 comments on commit 3bce34a

Please sign in to comment.