Skip to content

Commit 17ee5b6

Browse files
committed
Merge remote-tracking branch 'upstream/main' into issue-1635
2 parents 4c53d42 + ddc3e5f commit 17ee5b6

File tree

281 files changed

+328
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+328
-0
lines changed

gen/DocumentFormat.OpenXml.Generator.Models/Editor/TextWriterExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public static void WriteFileHeader(this TextWriter writer)
2929
writer.WriteLine(Line2);
3030
writer.WriteLine();
3131
writer.WriteLine("#nullable enable");
32+
writer.WriteLine("#pragma warning disable CS0618");
3233
writer.WriteLine();
3334
}
3435

gen/DocumentFormat.OpenXml.Generator.Models/Generators/Elements/DataModelWriterExtensions.cs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ public static class DataModelWriterExtensions
1515
{
1616
public static class AttributeStrings
1717
{
18+
public const string ObsoleteClassWarn = "[Obsolete(\"Unused class, will be removed in a future version.\", false)]";
1819
public const string ObsoletePropertyWarn = "[Obsolete(\"Unused property, will be removed in a future version.\", false)]";
1920
public const string ObsoletePropertyError = "[Obsolete(\"Unused property, will be removed in a future version.\", true)]";
2021
public const string ObsoleteAttributeWarn = "[Obsolete(\"Unused attribute, will be removed in a future version.\", false)]";
2122
public const string ObsoleteAttributeError = "[Obsolete(\"Unused attribute, will be removed in a future version.\", true)]";
23+
public const string ObsoleteChildWarn = "[Obsolete(\"Obsolete child element, will be removed in a future version.\", false)]";
2224
public const string EditorBrowsableAlways = "[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)] ";
2325
public const string EditorBrowsableAdvanced = "[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)] ";
2426
public const string EditorBrowsableNever = "[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] ";
@@ -30,6 +32,18 @@ public static class AttributeStrings
3032
AttributeStrings.EditorBrowsableNever,
3133
];
3234

35+
private static readonly List<string> ObsoleteClassErrorList =
36+
[
37+
AttributeStrings.ObsoleteClassWarn,
38+
AttributeStrings.EditorBrowsableNever,
39+
];
40+
41+
private static readonly List<string> ObsoleteChildWarnList =
42+
[
43+
AttributeStrings.ObsoleteChildWarn,
44+
AttributeStrings.EditorBrowsableNever,
45+
];
46+
3347
// Use this dictionary to add attributes like ObsoleteAttribute or other directives to classes, child elements or attributes.
3448
private static readonly Dictionary<TypedQName, Dictionary<TypedQName, List<string>>> _attributeData =
3549
new Dictionary<TypedQName, Dictionary<TypedQName, List<string>>>()
@@ -117,6 +131,36 @@ public static class AttributeStrings
117131
},
118132
}
119133
},
134+
{
135+
"xlpda:CT_PivotCacheDynamicArray/xlpda:pivotCacheDynamicArray",
136+
new Dictionary<TypedQName, List<string>>()
137+
{
138+
{
139+
"xlpda:CT_PivotCacheDynamicArray/xlpda:pivotCacheDynamicArray",
140+
ObsoleteClassErrorList
141+
},
142+
}
143+
},
144+
{
145+
"xprd:CT_PivotCacheRichInfo/xprd:richInfo",
146+
new Dictionary<TypedQName, List<string>>()
147+
{
148+
{
149+
"xprd:CT_PivotCacheRichInfo/xprd:richInfo",
150+
ObsoleteClassErrorList
151+
},
152+
}
153+
},
154+
{
155+
"x:CT_PivotCacheDefinitionExtension/x:ext",
156+
new Dictionary<TypedQName, List<string>>()
157+
{
158+
{
159+
"xprd:CT_PivotCacheRichInfo/xprd:richInfo",
160+
ObsoleteChildWarnList
161+
},
162+
}
163+
},
120164
};
121165

122166
public static bool GetDataModelSyntax(this IndentedTextWriter writer, OpenXmlGeneratorServices services, SchemaNamespace model)

generated/DocumentFormat.OpenXml.Framework/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Namespaces.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
55

66
#nullable enable
7+
#pragma warning disable CS0618
78

89
using System.Collections.Generic;
910

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Package_PresentationDocument_IPartFactoryFeature.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
55

66
#nullable enable
7+
#pragma warning disable CS0618
78

89
using DocumentFormat.OpenXml;
910
using DocumentFormat.OpenXml.Features;

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Package_PresentationDocument_IRootElementFeature.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
55

66
#nullable enable
7+
#pragma warning disable CS0618
78

89
using DocumentFormat.OpenXml;
910
using DocumentFormat.OpenXml.Features;

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Package_PresentationDocument_ITypedPartFactoryFeature.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
55

66
#nullable enable
7+
#pragma warning disable CS0618
78

89
using DocumentFormat.OpenXml;
910
using DocumentFormat.OpenXml.Features;

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Package_SpreadsheetDocument_IPartFactoryFeature.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
55

66
#nullable enable
7+
#pragma warning disable CS0618
78

89
using DocumentFormat.OpenXml;
910
using DocumentFormat.OpenXml.Features;

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Package_SpreadsheetDocument_IRootElementFeature.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
55

66
#nullable enable
7+
#pragma warning disable CS0618
78

89
using DocumentFormat.OpenXml;
910
using DocumentFormat.OpenXml.Features;

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Package_SpreadsheetDocument_ITypedPartFactoryFeature.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
55

66
#nullable enable
7+
#pragma warning disable CS0618
78

89
using DocumentFormat.OpenXml;
910
using DocumentFormat.OpenXml.Features;

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Package_WordprocessingDocument_IPartFactoryFeature.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
55

66
#nullable enable
7+
#pragma warning disable CS0618
78

89
using DocumentFormat.OpenXml;
910
using DocumentFormat.OpenXml.Features;

0 commit comments

Comments
 (0)