Skip to content

Commit 169c246

Browse files
authored
Refactor C# namespace to map xmlns URIs (#1105)
1 parent 22eba0c commit 169c246

File tree

8 files changed

+676
-676
lines changed

8 files changed

+676
-676
lines changed

src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2021_oembed.g.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using System.Collections.Generic;
1414
using System.IO.Packaging;
1515

16-
namespace DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed
16+
namespace DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed
1717
{
1818
/// <summary>
1919
/// <para>Defines the OEmbedShared Class.</para>
@@ -23,7 +23,7 @@ namespace DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed
2323
/// <remark>
2424
/// <para>The following table lists the possible child types:</para>
2525
/// <list type="bullet">
26-
/// <item><description><see cref="DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed.OfficeArtExtensionList" /> <c>&lt;aoe:extLst></c></description></item>
26+
/// <item><description><see cref="DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed.OfficeArtExtensionList" /> <c>&lt;aoe:extLst></c></description></item>
2727
/// </list>
2828
/// </remark>
2929
#pragma warning disable CS0618 // Type or member is obsolete
@@ -99,7 +99,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
9999
base.ConfigureMetadata(builder);
100100
builder.SetSchema("aoe:oembedShared");
101101
builder.Availability = FileFormatVersions.Microsoft365;
102-
builder.AddChild<DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed.OfficeArtExtensionList>();
102+
builder.AddChild<DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed.OfficeArtExtensionList>();
103103
builder.AddElement<OEmbedShared>()
104104
.AddAttribute("srcUrl", a => a.SrcUrl, aBuilder =>
105105
{
@@ -111,7 +111,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
111111
});
112112
builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
113113
{
114-
new ElementParticle(typeof(DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Microsoft365)
114+
new ElementParticle(typeof(DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Microsoft365)
115115
};
116116
}
117117

@@ -122,9 +122,9 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
122122
/// <remark>
123123
/// xmlns:aoe = http://schemas.microsoft.com/office/drawing/2021/oembed
124124
/// </remark>
125-
public DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed.OfficeArtExtensionList? OfficeArtExtensionList
125+
public DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed.OfficeArtExtensionList? OfficeArtExtensionList
126126
{
127-
get => GetElement<DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed.OfficeArtExtensionList>();
127+
get => GetElement<DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed.OfficeArtExtensionList>();
128128
set => SetElement(value);
129129
}
130130

src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2021_scriptlink.g.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using System.Collections.Generic;
1414
using System.IO.Packaging;
1515

16-
namespace DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink
16+
namespace DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink
1717
{
1818
/// <summary>
1919
/// <para>Defines the ScriptLink Class.</para>
@@ -23,7 +23,7 @@ namespace DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink
2323
/// <remark>
2424
/// <para>The following table lists the possible child types:</para>
2525
/// <list type="bullet">
26-
/// <item><description><see cref="DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink.OfficeArtExtensionList" /> <c>&lt;asl:extLst></c></description></item>
26+
/// <item><description><see cref="DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink.OfficeArtExtensionList" /> <c>&lt;asl:extLst></c></description></item>
2727
/// </list>
2828
/// </remark>
2929
#pragma warning disable CS0618 // Type or member is obsolete
@@ -83,12 +83,12 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
8383
base.ConfigureMetadata(builder);
8484
builder.SetSchema("asl:scriptLink");
8585
builder.Availability = FileFormatVersions.Microsoft365;
86-
builder.AddChild<DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink.OfficeArtExtensionList>();
86+
builder.AddChild<DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink.OfficeArtExtensionList>();
8787
builder.AddElement<ScriptLink>()
8888
.AddAttribute("val", a => a.Val);
8989
builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
9090
{
91-
new ElementParticle(typeof(DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Microsoft365)
91+
new ElementParticle(typeof(DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Microsoft365)
9292
};
9393
}
9494

@@ -99,9 +99,9 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
9999
/// <remark>
100100
/// xmlns:asl = http://schemas.microsoft.com/office/drawing/2021/scriptlink
101101
/// </remark>
102-
public DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink.OfficeArtExtensionList? OfficeArtExtensionList
102+
public DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink.OfficeArtExtensionList? OfficeArtExtensionList
103103
{
104-
get => GetElement<DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink.OfficeArtExtensionList>();
104+
get => GetElement<DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink.OfficeArtExtensionList>();
105105
set => SetElement(value);
106106
}
107107

0 commit comments

Comments
 (0)