Skip to content

Commit 41b50b9

Browse files
committed
Use full name for SmartTagId and SmartId
1 parent 3cb921e commit 41b50b9

File tree

5 files changed

+83
-8
lines changed

5 files changed

+83
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## Version 2.12.0
8+
9+
### Added
10+
- Added `SmartTagClean` and `SmartTagId` in place of `SmtClean` and `SmtId` (#747)
11+
712
## Version 2.11.1
813

914
### Fixed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ public BooleanValue SpellingError
20012001
/// <para>smtClean</para>
20022002
/// <para>Represents the following attribute in the schema: smtClean</para>
20032003
/// </summary>
2004-
public BooleanValue SmtClean
2004+
public BooleanValue SmartTagClean
20052005
{
20062006
get => GetAttribute<BooleanValue>();
20072007
set => SetAttribute(value);
@@ -2011,7 +2011,7 @@ public BooleanValue SmtClean
20112011
/// <para>smtId</para>
20122012
/// <para>Represents the following attribute in the schema: smtId</para>
20132013
/// </summary>
2014-
public UInt32Value SmtId
2014+
public UInt32Value SmartTagId
20152015
{
20162016
get => GetAttribute<UInt32Value>();
20172017
set => SetAttribute(value);
@@ -2089,8 +2089,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
20892089
.AddAttribute(0, "noProof", a => a.NoProof)
20902090
.AddAttribute(0, "dirty", a => a.Dirty)
20912091
.AddAttribute(0, "err", a => a.SpellingError)
2092-
.AddAttribute(0, "smtClean", a => a.SmtClean)
2093-
.AddAttribute(0, "smtId", a => a.SmtId)
2092+
.AddAttribute(0, "smtClean", a => a.SmartTagClean)
2093+
.AddAttribute(0, "smtId", a => a.SmartTagId)
20942094
.AddAttribute(0, "bmk", a => a.Bookmark);
20952095
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
20962096
{

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27696,7 +27696,7 @@ public BooleanValue SpellingError
2769627696
/// <para>smtClean</para>
2769727697
/// <para>Represents the following attribute in the schema: smtClean</para>
2769827698
/// </summary>
27699-
public BooleanValue SmtClean
27699+
public BooleanValue SmartTagClean
2770027700
{
2770127701
get => GetAttribute<BooleanValue>();
2770227702
set => SetAttribute(value);
@@ -27706,7 +27706,7 @@ public BooleanValue SmtClean
2770627706
/// <para>smtId</para>
2770727707
/// <para>Represents the following attribute in the schema: smtId</para>
2770827708
/// </summary>
27709-
public UInt32Value SmtId
27709+
public UInt32Value SmartTagId
2771027710
{
2771127711
get => GetAttribute<UInt32Value>();
2771227712
set => SetAttribute(value);
@@ -27782,8 +27782,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
2778227782
.AddAttribute(0, "noProof", a => a.NoProof)
2778327783
.AddAttribute(0, "dirty", a => a.Dirty)
2778427784
.AddAttribute(0, "err", a => a.SpellingError)
27785-
.AddAttribute(0, "smtClean", a => a.SmtClean)
27786-
.AddAttribute(0, "smtId", a => a.SmtId)
27785+
.AddAttribute(0, "smtClean", a => a.SmartTagClean)
27786+
.AddAttribute(0, "smtId", a => a.SmartTagId)
2778727787
.AddAttribute(0, "bmk", a => a.Bookmark);
2778827788
}
2778927789

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
using System;
5+
using System.ComponentModel;
6+
7+
namespace DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle
8+
{
9+
public partial class TextCharacterPropertiesType
10+
{
11+
/// <summary>
12+
/// Gets or sets the <see cref="SmartTagClean"/> value. It is only available for backwards compatibility
13+
/// until the next major version change. The <see cref="SmartTagClean"/> property should be used instead.
14+
/// </summary>
15+
[Obsolete("Please use the property 'SmartTagClean' as this property will be removed in a future version")]
16+
[EditorBrowsable(EditorBrowsableState.Never)]
17+
public BooleanValue SmtClean
18+
{
19+
get => SmartTagClean;
20+
set => SmartTagClean = value;
21+
}
22+
23+
/// <summary>
24+
/// Gets or sets the <see cref="SmartTagId"/> value. It is only available for backwards compatibility
25+
/// until the next major version change. The <see cref="SmartTagId"/> property should be used instead.
26+
/// </summary>
27+
[Obsolete("Please use the property 'SmartTagId' as this property will be removed in a future version")]
28+
[EditorBrowsable(EditorBrowsableState.Never)]
29+
public UInt32Value SmtId
30+
{
31+
get => SmartTagId;
32+
set => SmartTagId = value;
33+
}
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
using System;
5+
using System.ComponentModel;
6+
7+
namespace DocumentFormat.OpenXml.Drawing
8+
{
9+
public partial class TextCharacterPropertiesType
10+
{
11+
/// <summary>
12+
/// Gets or sets the <see cref="SmartTagClean"/> value. It is only available for backwards compatibility
13+
/// until the next major version change. The <see cref="SmartTagClean"/> property should be used instead.
14+
/// </summary>
15+
[Obsolete("Please use the property 'SmartTagClean' as this property will be removed in a future version")]
16+
[EditorBrowsable(EditorBrowsableState.Never)]
17+
public BooleanValue SmtClean
18+
{
19+
get => SmartTagClean;
20+
set => SmartTagClean = value;
21+
}
22+
23+
/// <summary>
24+
/// Gets or sets the <see cref="SmartTagId"/> value. It is only available for backwards compatibility
25+
/// until the next major version change. The <see cref="SmartTagId"/> property should be used instead.
26+
/// </summary>
27+
[Obsolete("Please use the property 'SmartTagId' as this property will be removed in a future version")]
28+
[EditorBrowsable(EditorBrowsableState.Never)]
29+
public UInt32Value SmtId
30+
{
31+
get => SmartTagId;
32+
set => SmartTagId = value;
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)