Skip to content

Commit

Permalink
Microsoft365 schemas update (#1097)
Browse files Browse the repository at this point in the history
* adds microsoft365 (subscription) features
  • Loading branch information
tomjebo authored Dec 16, 2021
1 parent ec28405 commit 2831c8b
Show file tree
Hide file tree
Showing 24 changed files with 6,319 additions and 2,747 deletions.
30 changes: 25 additions & 5 deletions gen/DocumentFormat.OpenXml.Generator/Data/namespaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
"Uri": "http://schemas.microsoft.com/office/drawing/2017/model3d",
"Version": "Office2019"
},
{
"Prefix": "aoe",
"Uri": "http://schemas.microsoft.com/office/drawing/2021/oembed",
"Version": "Microsoft365"
},
{
"Prefix": "ap",
"Uri": "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
Expand All @@ -80,6 +85,11 @@
"Uri": "http://schemas.microsoft.com/office/drawing/2018/sketchyshapes",
"Version": "Office2021"
},
{
"Prefix": "asl",
"Uri": "http://schemas.microsoft.com/office/drawing/2021/scriptlink",
"Version": "Microsoft365"
},
{
"Prefix": "asvg",
"Uri": "http://schemas.microsoft.com/office/drawing/2016/SVG/main",
Expand Down Expand Up @@ -314,11 +324,21 @@
"Uri": "http://schemas.microsoft.com/office/powerpoint/2018/8/main",
"Version": "Office2021"
},
{
"Prefix": "p1912",
"Uri": "http://schemas.microsoft.com/office/powerpoint/2019/12/main",
"Version": "Office2021"
},
{
"Prefix": "p202",
"Uri": "http://schemas.microsoft.com/office/powerpoint/2020/02/main",
"Version": "Office2021"
},
{
"Prefix": "p216",
"Uri": "http://schemas.microsoft.com/office/powerpoint/2021/06/main",
"Version": "Microsoft365"
},
{
"Prefix": "packaging",
"Uri": "http://schemas.microsoft.com/office/internal/2007/ofapi/packaging"
Expand Down Expand Up @@ -347,11 +367,6 @@
"Uri": "http://schemas.microsoft.com/projectml/2012/main",
"Version": "Office2013"
},
{
"Prefix": "ppt1912SchemaUri",
"Uri": "http://schemas.microsoft.com/office/powerpoint/2019/12/main",
"Version": "Office2021"
},
{
"Prefix": "pRoam",
"Uri": "http://schemas.microsoft.com/office/powerpoint/2012/roamingSettings",
Expand Down Expand Up @@ -454,6 +469,11 @@
"Prefix": "wne",
"Uri": "http://schemas.microsoft.com/office/word/2006/wordml"
},
{
"Prefix": "woe",
"Uri": "http://schemas.microsoft.com/office/word/2020/oembed",
"Version": "Microsoft365"
},
{
"Prefix": "wp",
"Uri": "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
Expand Down
11 changes: 6 additions & 5 deletions gen/DocumentFormat.OpenXml.Generator/Models/OfficeVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ namespace DocumentFormat.OpenXml.Generator.Models;
public enum OfficeVersion
{
Office2007 = 0,
Office2010 = 1,
Office2013 = 2,
Office2016 = 3,
Office2019 = 4,
Office2021 = 5,
Office2010,
Office2013,
Office2016,
Office2019,
Office2021,
Microsoft365,
}
6 changes: 3 additions & 3 deletions src/DocumentFormat.OpenXml.Linq/GeneratedCode/A.g.cs

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions src/DocumentFormat.OpenXml.Linq/GeneratedCode/ACLSH.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Xml.Linq;

namespace DocumentFormat.OpenXml.Linq
{
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:aclsh="http://schemas.microsoft.com/office/drawing/2020/classificationShape" namespace.
/// </summary>
public static class ACLSH
{
/// <summary>
/// Defines the XML namespace associated with the aclsh prefix.
/// </summary>
public static readonly XNamespace aclsh = "http://schemas.microsoft.com/office/drawing/2020/classificationShape";

/// <summary>
/// Represents the aclsh:classification XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="A.ext" />, <see cref="A.graphicData" />.</description></item>
/// <item><description>has the following XML attributes: <see cref="NoNamespace.classificationOutcomeType" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: ClassificationOutcome.</description></item>
/// </list>
/// </remarks>
public static readonly XName classification = aclsh + "classification";
}
}
109 changes: 109 additions & 0 deletions src/DocumentFormat.OpenXml.Linq/GeneratedCode/ALF.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Xml.Linq;

namespace DocumentFormat.OpenXml.Linq
{
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:alf="http://schemas.microsoft.com/office/drawing/2021/livefeed" namespace.
/// </summary>
public static class ALF
{
/// <summary>
/// Defines the XML namespace associated with the alf prefix.
/// </summary>
public static readonly XNamespace alf = "http://schemas.microsoft.com/office/drawing/2021/livefeed";

/// <summary>
/// Represents the alf:backgroundProps XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="liveFeedProps" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="Blur" />, <see cref="Custom" />, <see cref="extLst" />, <see cref="Normal" />, <see cref="Removed" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: LiveFeedBackgroundProperties.</description></item>
/// </list>
/// </remarks>
public static readonly XName backgroundProps = alf + "backgroundProps";

/// <summary>
/// Represents the alf:Blur XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="backgroundProps" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="extLst" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: BackgroundBlurProperties.</description></item>
/// </list>
/// </remarks>
public static readonly XName Blur = alf + "Blur";

/// <summary>
/// Represents the alf:Custom XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="backgroundProps" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="extLst" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: BackgroundCustomProperties.</description></item>
/// </list>
/// </remarks>
public static readonly XName Custom = alf + "Custom";

/// <summary>
/// Represents the alf:extLst XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="backgroundProps" />, <see cref="Blur" />, <see cref="Custom" />, <see cref="liveFeedProps" />, <see cref="Normal" />, <see cref="Removed" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="A.ext" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: OfficeArtExtensionList.</description></item>
/// </list>
/// </remarks>
public static readonly XName extLst = alf + "extLst";

/// <summary>
/// Represents the alf:liveFeedProps XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="A.ext" />, <see cref="A.graphicData" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="backgroundProps" />, <see cref="extLst" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: LiveFeedProperties.</description></item>
/// </list>
/// </remarks>
public static readonly XName liveFeedProps = alf + "liveFeedProps";

/// <summary>
/// Represents the alf:Normal XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="backgroundProps" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="extLst" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: BackgroundNormalProperties.</description></item>
/// </list>
/// </remarks>
public static readonly XName Normal = alf + "Normal";

/// <summary>
/// Represents the alf:Removed XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="backgroundProps" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="extLst" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: BackgroundRemovedProperties.</description></item>
/// </list>
/// </remarks>
public static readonly XName Removed = alf + "Removed";
}
}
45 changes: 45 additions & 0 deletions src/DocumentFormat.OpenXml.Linq/GeneratedCode/AOE.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Xml.Linq;

namespace DocumentFormat.OpenXml.Linq
{
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:aoe="http://schemas.microsoft.com/office/drawing/2021/oembed" namespace.
/// </summary>
public static class AOE
{
/// <summary>
/// Defines the XML namespace associated with the aoe prefix.
/// </summary>
public static readonly XNamespace aoe = "http://schemas.microsoft.com/office/drawing/2021/oembed";

/// <summary>
/// Represents the aoe:extLst XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="oembedShared" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="A.ext" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: OfficeArtExtensionList.</description></item>
/// </list>
/// </remarks>
public static readonly XName extLst = aoe + "extLst";

/// <summary>
/// Represents the aoe:oembedShared XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="A.ext" />, <see cref="A.graphicData" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="extLst" />.</description></item>
/// <item><description>has the following XML attributes: <see cref="NoNamespace.srcUrl" />, <see cref="NoNamespace.type" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: OEmbedShared.</description></item>
/// </list>
/// </remarks>
public static readonly XName oembedShared = aoe + "oembedShared";
}
}
45 changes: 45 additions & 0 deletions src/DocumentFormat.OpenXml.Linq/GeneratedCode/ASL.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Xml.Linq;

namespace DocumentFormat.OpenXml.Linq
{
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:asl="http://schemas.microsoft.com/office/drawing/2021/scriptlink" namespace.
/// </summary>
public static class ASL
{
/// <summary>
/// Defines the XML namespace associated with the asl prefix.
/// </summary>
public static readonly XNamespace asl = "http://schemas.microsoft.com/office/drawing/2021/scriptlink";

/// <summary>
/// Represents the asl:extLst XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="scriptLink" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="A.ext" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: OfficeArtExtensionList.</description></item>
/// </list>
/// </remarks>
public static readonly XName extLst = asl + "extLst";

/// <summary>
/// Represents the asl:scriptLink XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="A.ext" />, <see cref="A.graphicData" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="extLst" />.</description></item>
/// <item><description>has the following XML attributes: <see cref="NoNamespace.val" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: ScriptLink.</description></item>
/// </list>
/// </remarks>
public static readonly XName scriptLink = asl + "scriptLink";
}
}
Loading

0 comments on commit 2831c8b

Please sign in to comment.