Skip to content

Commit 44d6743

Browse files
committed
added remaining classes for drawing extLst/ext pattern extensions.
1 parent 90356e1 commit 44d6743

File tree

6 files changed

+9304
-8455
lines changed

6 files changed

+9304
-8455
lines changed

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

Lines changed: 162 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace DocumentFormat.OpenXml.Office2019.Drawing.Model3D
3030
/// <item><description>Model3DTransform &lt;am3d:trans></description></item>
3131
/// <item><description>PictureAttributionSourceURL &lt;am3d:attrSrcUrl></description></item>
3232
/// <item><description>Model3DRaster &lt;am3d:raster></description></item>
33-
/// <item><description>OfficeArtExtensionList &lt;am3d:extLst></description></item>
33+
/// <item><description>Model3DExtensionList &lt;am3d:extLst></description></item>
3434
/// <item><description>ObjectViewport &lt;am3d:objViewport></description></item>
3535
/// <item><description>WindowViewport &lt;am3d:winViewport></description></item>
3636
/// <item><description>AmbientLight &lt;am3d:ambientLight></description></item>
@@ -124,7 +124,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
124124
builder.AddChild<Model3DTransform>();
125125
builder.AddChild<PictureAttributionSourceURL>();
126126
builder.AddChild<Model3DRaster>();
127-
builder.AddChild<OfficeArtExtensionList>();
127+
builder.AddChild<Model3DExtensionList>();
128128
builder.AddChild<ObjectViewport>();
129129
builder.AddChild<WindowViewport>();
130130
builder.AddChild<AmbientLight>();
@@ -142,7 +142,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
142142
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DTransform), 1, 1, version: FileFormatVersions.Office2019),
143143
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PictureAttributionSourceURL), 0, 1, version: FileFormatVersions.Office2019),
144144
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DRaster), 0, 1, version: FileFormatVersions.Office2019),
145-
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019),
145+
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtensionList), 0, 1, version: FileFormatVersions.Office2019),
146146
new CompositeParticle.Builder(ParticleType.Choice, 1, 1)
147147
{
148148
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ObjectViewport), 1, 1, version: FileFormatVersions.Office2019),
@@ -199,7 +199,7 @@ public Model3DTransform? Model3DTransform
199199
}
200200

201201
/// <summary>
202-
/// <para>PictureAttributionSourceURL.</para>
202+
/// <para>Optional source attribution URL describes from whence the 3D model came..</para>
203203
/// <para>Represents the following element tag in the schema: am3d:attrSrcUrl.</para>
204204
/// </summary>
205205
/// <remark>
@@ -225,15 +225,15 @@ public Model3DRaster? Model3DRaster
225225
}
226226

227227
/// <summary>
228-
/// <para>OfficeArtExtensionList.</para>
228+
/// <para>Future Model3D extensions.</para>
229229
/// <para>Represents the following element tag in the schema: am3d:extLst.</para>
230230
/// </summary>
231231
/// <remark>
232232
/// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d
233233
/// </remark>
234-
public OfficeArtExtensionList? OfficeArtExtensionList
234+
public Model3DExtensionList? Model3DExtensionList
235235
{
236-
get => GetElement<OfficeArtExtensionList>();
236+
get => GetElement<Model3DExtensionList>();
237237
set => SetElement(value);
238238
}
239239

@@ -1417,7 +1417,7 @@ public StringValue? Link
14171417
}
14181418

14191419
/// <summary>
1420-
/// <para>cstate</para>
1420+
/// <para>Compression state for blips.</para>
14211421
/// <para>Represents the following attribute in the schema: cstate</para>
14221422
/// </summary>
14231423

@@ -1654,6 +1654,95 @@ public DocumentFormat.OpenXml.Drawing.PresetColor? PresetColor
16541654
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ColorType>(deep);
16551655
}
16561656

1657+
/// <summary>
1658+
/// <para>Defines the Model3DExtension Class.</para>
1659+
/// <para>This class is available in Office 2019 and above.</para>
1660+
/// <para>When the object is serialized out as xml, it's qualified name is am3d:ext.</para>
1661+
/// </summary>
1662+
/// <remark>
1663+
/// <para>The following table lists the possible child types:</para>
1664+
/// <list type="bullet">
1665+
/// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.EmbeddedAnimation &lt;a3danim:embedAnim></description></item>
1666+
/// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.PosterFrame &lt;a3danim:posterFrame></description></item>
1667+
/// </list>
1668+
/// </remark>
1669+
#pragma warning disable CS0618 // Type or member is obsolete
1670+
[SchemaAttr(109, "ext")]
1671+
#pragma warning restore CS0618 // Type or member is obsolete
1672+
public partial class Model3DExtension : OpenXmlCompositeElement
1673+
{
1674+
/// <summary>
1675+
/// Initializes a new instance of the Model3DExtension class.
1676+
/// </summary>
1677+
public Model3DExtension() : base()
1678+
{
1679+
}
1680+
1681+
/// <summary>
1682+
/// Initializes a new instance of the Model3DExtension class with the specified child elements.
1683+
/// </summary>
1684+
/// <param name="childElements">Specifies the child elements.</param>
1685+
public Model3DExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements)
1686+
{
1687+
}
1688+
1689+
/// <summary>
1690+
/// Initializes a new instance of the Model3DExtension class with the specified child elements.
1691+
/// </summary>
1692+
/// <param name="childElements">Specifies the child elements.</param>
1693+
public Model3DExtension(params OpenXmlElement[] childElements) : base(childElements)
1694+
{
1695+
}
1696+
1697+
/// <summary>
1698+
/// Initializes a new instance of the Model3DExtension class from outer XML.
1699+
/// </summary>
1700+
/// <param name="outerXml">Specifies the outer XML of the element.</param>
1701+
public Model3DExtension(string outerXml) : base(outerXml)
1702+
{
1703+
}
1704+
1705+
/// <summary>
1706+
/// <para>URI, this property is only available in Office 2019 and later.</para>
1707+
/// <para>Represents the following attribute in the schema: uri</para>
1708+
/// </summary>
1709+
1710+
#pragma warning disable CS0618 // Type or member is obsolete
1711+
1712+
[SchemaAttr(0, "uri")]
1713+
#pragma warning restore CS0618 // Type or member is obsolete
1714+
1715+
public StringValue? Uri
1716+
{
1717+
get => GetAttribute<StringValue>();
1718+
set => SetAttribute(value);
1719+
}
1720+
1721+
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
1722+
{
1723+
base.ConfigureMetadata(builder);
1724+
builder.SetSchema(109, "ext");
1725+
builder.Availability = FileFormatVersions.Office2019;
1726+
builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.EmbeddedAnimation>();
1727+
builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.PosterFrame>();
1728+
builder.AddElement<Model3DExtension>()
1729+
.AddAttribute(0, "uri", a => a.Uri, aBuilder =>
1730+
{
1731+
aBuilder.AddValidator(RequiredValidator.Instance);
1732+
aBuilder.AddValidator(new StringValidator() { IsToken = (true) });
1733+
});
1734+
builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1)
1735+
{
1736+
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.EmbeddedAnimation), 1, 1, version: FileFormatVersions.Office2019),
1737+
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.PosterFrame), 1, 1, version: FileFormatVersions.Office2019),
1738+
new AnyParticle(0, 1)
1739+
};
1740+
}
1741+
1742+
/// <inheritdoc/>
1743+
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Model3DExtension>(deep);
1744+
}
1745+
16571746
/// <summary>
16581747
/// <para>Defines the ShapeProperties Class.</para>
16591748
/// <para>This class is available in Office 2019 and above.</para>
@@ -2088,7 +2177,7 @@ public OfficeArtExtensionList? OfficeArtExtensionList
20882177
}
20892178

20902179
/// <summary>
2091-
/// <para>Defines the PictureAttributionSourceURL Class.</para>
2180+
/// <para>Optional source attribution URL describes from whence the 3D model came..</para>
20922181
/// <para>This class is available in Office 2019 and above.</para>
20932182
/// <para>When the object is serialized out as xml, it's qualified name is am3d:attrSrcUrl.</para>
20942183
/// </summary>
@@ -2256,6 +2345,69 @@ public Blip? Blip
22562345
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Model3DRaster>(deep);
22572346
}
22582347

2348+
/// <summary>
2349+
/// <para>Future Model3D extensions.</para>
2350+
/// <para>This class is available in Office 2019 and above.</para>
2351+
/// <para>When the object is serialized out as xml, it's qualified name is am3d:extLst.</para>
2352+
/// </summary>
2353+
/// <remark>
2354+
/// <para>The following table lists the possible child types:</para>
2355+
/// <list type="bullet">
2356+
/// <item><description>Model3DExtension &lt;am3d:ext></description></item>
2357+
/// </list>
2358+
/// </remark>
2359+
#pragma warning disable CS0618 // Type or member is obsolete
2360+
[SchemaAttr(109, "extLst")]
2361+
#pragma warning restore CS0618 // Type or member is obsolete
2362+
public partial class Model3DExtensionList : OpenXmlCompositeElement
2363+
{
2364+
/// <summary>
2365+
/// Initializes a new instance of the Model3DExtensionList class.
2366+
/// </summary>
2367+
public Model3DExtensionList() : base()
2368+
{
2369+
}
2370+
2371+
/// <summary>
2372+
/// Initializes a new instance of the Model3DExtensionList class with the specified child elements.
2373+
/// </summary>
2374+
/// <param name="childElements">Specifies the child elements.</param>
2375+
public Model3DExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements)
2376+
{
2377+
}
2378+
2379+
/// <summary>
2380+
/// Initializes a new instance of the Model3DExtensionList class with the specified child elements.
2381+
/// </summary>
2382+
/// <param name="childElements">Specifies the child elements.</param>
2383+
public Model3DExtensionList(params OpenXmlElement[] childElements) : base(childElements)
2384+
{
2385+
}
2386+
2387+
/// <summary>
2388+
/// Initializes a new instance of the Model3DExtensionList class from outer XML.
2389+
/// </summary>
2390+
/// <param name="outerXml">Specifies the outer XML of the element.</param>
2391+
public Model3DExtensionList(string outerXml) : base(outerXml)
2392+
{
2393+
}
2394+
2395+
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
2396+
{
2397+
base.ConfigureMetadata(builder);
2398+
builder.SetSchema(109, "extLst");
2399+
builder.Availability = FileFormatVersions.Office2019;
2400+
builder.AddChild<Model3DExtension>();
2401+
builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
2402+
{
2403+
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtension), 0, 0, version: FileFormatVersions.Office2019)
2404+
};
2405+
}
2406+
2407+
/// <inheritdoc/>
2408+
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Model3DExtensionList>(deep);
2409+
}
2410+
22592411
/// <summary>
22602412
/// <para>Defines the ObjectViewport Class.</para>
22612413
/// <para>This class is available in Office 2019 and above.</para>
@@ -2431,7 +2583,7 @@ public OfficeArtExtensionList? OfficeArtExtensionList
24312583
}
24322584

24332585
/// <summary>
2434-
/// <para>Defines the AmbientLight Class.</para>
2586+
/// <para>Ambient light in a scene.</para>
24352587
/// <para>This class is available in Office 2019 and above.</para>
24362588
/// <para>When the object is serialized out as xml, it's qualified name is am3d:ambientLight.</para>
24372589
/// </summary>

0 commit comments

Comments
 (0)