-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional O19 types to match Open Specifications (#916)
* Additional O19 types
- Loading branch information
Showing
27 changed files
with
15,776 additions
and
9,795 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...cumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_11_main.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
#nullable enable | ||
|
||
using DocumentFormat.OpenXml; | ||
using DocumentFormat.OpenXml.Framework; | ||
using DocumentFormat.OpenXml.Framework.Metadata; | ||
using DocumentFormat.OpenXml.Packaging; | ||
using DocumentFormat.OpenXml.Validation.Schema; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO.Packaging; | ||
|
||
namespace DocumentFormat.OpenXml.Office2019.Drawing | ||
{ | ||
/// <summary> | ||
/// <para>Defines the PictureAttributionSourceURL Class.</para> | ||
/// <para>This class is available in Office 2019 and above.</para> | ||
/// <para>When the object is serialized out as xml, it's qualified name is a1611:picAttrSrcUrl.</para> | ||
/// </summary> | ||
#pragma warning disable CS0618 // Type or member is obsolete | ||
[SchemaAttr(105, "picAttrSrcUrl")] | ||
#pragma warning restore CS0618 // Type or member is obsolete | ||
public partial class PictureAttributionSourceURL : OpenXmlLeafElement | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the PictureAttributionSourceURL class. | ||
/// </summary> | ||
public PictureAttributionSourceURL() : base() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// <para>id, this property is only available in Office 2019 and later.</para> | ||
/// <para>Represents the following attribute in the schema: r:id</para> | ||
/// </summary> | ||
/// <remark> | ||
/// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships | ||
/// </remark> | ||
|
||
#pragma warning disable CS0618 // Type or member is obsolete | ||
|
||
[SchemaAttr(19, "id")] | ||
#pragma warning restore CS0618 // Type or member is obsolete | ||
|
||
public StringValue? Id | ||
{ | ||
get => GetAttribute<StringValue>(); | ||
set => SetAttribute(value); | ||
} | ||
|
||
internal override void ConfigureMetadata(ElementMetadata.Builder builder) | ||
{ | ||
base.ConfigureMetadata(builder); | ||
builder.SetSchema(105, "picAttrSrcUrl"); | ||
builder.Availability = FileFormatVersions.Office2019; | ||
builder.AddElement<PictureAttributionSourceURL>() | ||
.AddAttribute(19, "id", a => a.Id, aBuilder => | ||
{ | ||
aBuilder.AddValidator(RequiredValidator.Instance); | ||
}); | ||
} | ||
|
||
/// <inheritdoc/> | ||
public override OpenXmlElement CloneNode(bool deep) => CloneImp<PictureAttributionSourceURL>(deep); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...entFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_decorative.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
#nullable enable | ||
|
||
using DocumentFormat.OpenXml; | ||
using DocumentFormat.OpenXml.Drawing; | ||
using DocumentFormat.OpenXml.Framework; | ||
using DocumentFormat.OpenXml.Framework.Metadata; | ||
using DocumentFormat.OpenXml.Packaging; | ||
using DocumentFormat.OpenXml.Validation.Schema; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO.Packaging; | ||
|
||
namespace DocumentFormat.OpenXml.Office2019.Drawing | ||
{ | ||
/// <summary> | ||
/// <para>Defines the Decorative Class.</para> | ||
/// <para>This class is available in Office 2019 and above.</para> | ||
/// <para>When the object is serialized out as xml, it's qualified name is adec:decorative.</para> | ||
/// </summary> | ||
#pragma warning disable CS0618 // Type or member is obsolete | ||
[SchemaAttr(110, "decorative")] | ||
#pragma warning restore CS0618 // Type or member is obsolete | ||
public partial class Decorative : OpenXmlLeafElement | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the Decorative class. | ||
/// </summary> | ||
public Decorative() : base() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// <para>val, this property is only available in Office 2019 and later.</para> | ||
/// <para>Represents the following attribute in the schema: val</para> | ||
/// </summary> | ||
|
||
#pragma warning disable CS0618 // Type or member is obsolete | ||
|
||
[SchemaAttr(0, "val")] | ||
#pragma warning restore CS0618 // Type or member is obsolete | ||
|
||
public BooleanValue? Val | ||
{ | ||
get => GetAttribute<BooleanValue>(); | ||
set => SetAttribute(value); | ||
} | ||
|
||
internal override void ConfigureMetadata(ElementMetadata.Builder builder) | ||
{ | ||
base.ConfigureMetadata(builder); | ||
builder.SetSchema(110, "decorative"); | ||
builder.Availability = FileFormatVersions.Office2019; | ||
builder.AddElement<Decorative>() | ||
.AddAttribute(0, "val", a => a.Val); | ||
} | ||
|
||
/// <inheritdoc/> | ||
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Decorative>(deep); | ||
} | ||
} |
Oops, something went wrong.