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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using System.Collections.Generic;
using System.IO.Packaging;

namespace DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed
namespace DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed
{
/// <summary>
/// <para>Defines the OEmbedShared Class.</para>
Expand All @@ -23,7 +23,7 @@ namespace DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description><see cref="DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed.OfficeArtExtensionList" /> <c>&lt;aoe:extLst></c></description></item>
/// <item><description><see cref="DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed.OfficeArtExtensionList" /> <c>&lt;aoe:extLst></c></description></item>
/// </list>
/// </remark>
#pragma warning disable CS0618 // Type or member is obsolete
Expand Down Expand Up @@ -99,7 +99,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
base.ConfigureMetadata(builder);
builder.SetSchema("aoe:oembedShared");
builder.Availability = FileFormatVersions.Microsoft365;
builder.AddChild<DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed.OfficeArtExtensionList>();
builder.AddChild<DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed.OfficeArtExtensionList>();
builder.AddElement<OEmbedShared>()
.AddAttribute("srcUrl", a => a.SrcUrl, aBuilder =>
{
Expand All @@ -111,7 +111,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
});
builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Microsoft365.Drawing.OEmbed.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Microsoft365)
new ElementParticle(typeof(DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Microsoft365)
};
}

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using System.Collections.Generic;
using System.IO.Packaging;

namespace DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink
namespace DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink
{
/// <summary>
/// <para>Defines the ScriptLink Class.</para>
Expand All @@ -23,7 +23,7 @@ namespace DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description><see cref="DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink.OfficeArtExtensionList" /> <c>&lt;asl:extLst></c></description></item>
/// <item><description><see cref="DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink.OfficeArtExtensionList" /> <c>&lt;asl:extLst></c></description></item>
/// </list>
/// </remark>
#pragma warning disable CS0618 // Type or member is obsolete
Expand Down Expand Up @@ -83,12 +83,12 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
base.ConfigureMetadata(builder);
builder.SetSchema("asl:scriptLink");
builder.Availability = FileFormatVersions.Microsoft365;
builder.AddChild<DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink.OfficeArtExtensionList>();
builder.AddChild<DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink.OfficeArtExtensionList>();
builder.AddElement<ScriptLink>()
.AddAttribute("val", a => a.Val);
builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Microsoft365.Drawing.ScriptLink.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Microsoft365)
new ElementParticle(typeof(DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Microsoft365)
};
}

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

Expand Down
Loading