Skip to content

Commit 9810f9c

Browse files
committed
obsolete PivotCacheRichInfo and PivotCacheDynamicArray classes
1 parent a073d05 commit 9810f9c

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ 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)]";
@@ -30,6 +31,12 @@ public static class AttributeStrings
3031
AttributeStrings.EditorBrowsableNever,
3132
];
3233

34+
private static readonly List<string> ObsoleteClassErrorList =
35+
[
36+
AttributeStrings.ObsoleteClassWarn,
37+
AttributeStrings.EditorBrowsableNever,
38+
];
39+
3340
// Use this dictionary to add attributes like ObsoleteAttribute or other directives to classes, child elements or attributes.
3441
private static readonly Dictionary<TypedQName, Dictionary<TypedQName, List<string>>> _attributeData =
3542
new Dictionary<TypedQName, Dictionary<TypedQName, List<string>>>()
@@ -117,6 +124,26 @@ public static class AttributeStrings
117124
},
118125
}
119126
},
127+
{
128+
"xlpda:CT_PivotCacheDynamicArray/xlpda:pivotCacheDynamicArray",
129+
new Dictionary<TypedQName, List<string>>()
130+
{
131+
{
132+
"xlpda:CT_PivotCacheDynamicArray/xlpda:pivotCacheDynamicArray",
133+
ObsoleteClassErrorList
134+
},
135+
}
136+
},
137+
{
138+
"xprd:CT_PivotCacheRichInfo/xprd:richInfo",
139+
new Dictionary<TypedQName, List<string>>()
140+
{
141+
{
142+
"xprd:CT_PivotCacheRichInfo/xprd:richInfo",
143+
ObsoleteClassErrorList
144+
},
145+
}
146+
},
120147
};
121148

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ namespace DocumentFormat.OpenXml.Office.SpreadSheetML.Y2022.PivotRichData
2121
/// <para>This class is available in Microsoft365 and above.</para>
2222
/// <para>When the object is serialized out as xml, it's qualified name is xprd:richInfo.</para>
2323
/// </summary>
24+
[Obsolete("Unused class, will be removed in a future version.", false)]
25+
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
2426
public partial class PivotCacheRichInfo : OpenXmlLeafElement
2527
{
2628
#pragma warning disable CS0109

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ namespace DocumentFormat.OpenXml.Office.SpreadSheetML.Y2024.PivotDynamicArrays
2121
/// <para>This class is available in Microsoft365 and above.</para>
2222
/// <para>When the object is serialized out as xml, it's qualified name is xlpda:pivotCacheDynamicArray.</para>
2323
/// </summary>
24+
[Obsolete("Unused class, will be removed in a future version.", false)]
25+
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
2426
public partial class PivotCacheDynamicArray : OpenXmlLeafElement
2527
{
2628
#pragma warning disable CS0109

0 commit comments

Comments
 (0)