@@ -30,7 +30,7 @@ namespace DocumentFormat.OpenXml.Office2019.Drawing.Model3D
30
30
/// <item><description>Model3DTransform <am3d:trans></description></item>
31
31
/// <item><description>PictureAttributionSourceURL <am3d:attrSrcUrl></description></item>
32
32
/// <item><description>Model3DRaster <am3d:raster></description></item>
33
- /// <item><description>OfficeArtExtensionList <am3d:extLst></description></item>
33
+ /// <item><description>Model3DExtensionList <am3d:extLst></description></item>
34
34
/// <item><description>ObjectViewport <am3d:objViewport></description></item>
35
35
/// <item><description>WindowViewport <am3d:winViewport></description></item>
36
36
/// <item><description>AmbientLight <am3d:ambientLight></description></item>
@@ -124,7 +124,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
124
124
builder . AddChild < Model3DTransform > ( ) ;
125
125
builder . AddChild < PictureAttributionSourceURL > ( ) ;
126
126
builder . AddChild < Model3DRaster > ( ) ;
127
- builder . AddChild < OfficeArtExtensionList > ( ) ;
127
+ builder . AddChild < Model3DExtensionList > ( ) ;
128
128
builder . AddChild < ObjectViewport > ( ) ;
129
129
builder . AddChild < WindowViewport > ( ) ;
130
130
builder . AddChild < AmbientLight > ( ) ;
@@ -142,7 +142,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
142
142
new ElementParticle ( typeof ( DocumentFormat . OpenXml . Office2019 . Drawing . Model3D . Model3DTransform ) , 1 , 1 , version : FileFormatVersions . Office2019 ) ,
143
143
new ElementParticle ( typeof ( DocumentFormat . OpenXml . Office2019 . Drawing . Model3D . PictureAttributionSourceURL ) , 0 , 1 , version : FileFormatVersions . Office2019 ) ,
144
144
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 ) ,
146
146
new CompositeParticle . Builder ( ParticleType . Choice , 1 , 1 )
147
147
{
148
148
new ElementParticle ( typeof ( DocumentFormat . OpenXml . Office2019 . Drawing . Model3D . ObjectViewport ) , 1 , 1 , version : FileFormatVersions . Office2019 ) ,
@@ -199,7 +199,7 @@ public Model3DTransform? Model3DTransform
199
199
}
200
200
201
201
/// <summary>
202
- /// <para>PictureAttributionSourceURL .</para>
202
+ /// <para>Optional source attribution URL describes from whence the 3D model came. .</para>
203
203
/// <para>Represents the following element tag in the schema: am3d:attrSrcUrl.</para>
204
204
/// </summary>
205
205
/// <remark>
@@ -225,15 +225,15 @@ public Model3DRaster? Model3DRaster
225
225
}
226
226
227
227
/// <summary>
228
- /// <para>OfficeArtExtensionList .</para>
228
+ /// <para>Future Model3D extensions .</para>
229
229
/// <para>Represents the following element tag in the schema: am3d:extLst.</para>
230
230
/// </summary>
231
231
/// <remark>
232
232
/// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d
233
233
/// </remark>
234
- public OfficeArtExtensionList ? OfficeArtExtensionList
234
+ public Model3DExtensionList ? Model3DExtensionList
235
235
{
236
- get => GetElement < OfficeArtExtensionList > ( ) ;
236
+ get => GetElement < Model3DExtensionList > ( ) ;
237
237
set => SetElement ( value ) ;
238
238
}
239
239
@@ -1417,7 +1417,7 @@ public StringValue? Link
1417
1417
}
1418
1418
1419
1419
/// <summary>
1420
- /// <para>cstate </para>
1420
+ /// <para>Compression state for blips. </para>
1421
1421
/// <para>Represents the following attribute in the schema: cstate</para>
1422
1422
/// </summary>
1423
1423
@@ -1654,6 +1654,95 @@ public DocumentFormat.OpenXml.Drawing.PresetColor? PresetColor
1654
1654
public override OpenXmlElement CloneNode ( bool deep ) => CloneImp < ColorType > ( deep ) ;
1655
1655
}
1656
1656
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 <a3danim:embedAnim></description></item>
1666
+ /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.PosterFrame <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
+
1657
1746
/// <summary>
1658
1747
/// <para>Defines the ShapeProperties Class.</para>
1659
1748
/// <para>This class is available in Office 2019 and above.</para>
@@ -2088,7 +2177,7 @@ public OfficeArtExtensionList? OfficeArtExtensionList
2088
2177
}
2089
2178
2090
2179
/// <summary>
2091
- /// <para>Defines the PictureAttributionSourceURL Class .</para>
2180
+ /// <para>Optional source attribution URL describes from whence the 3D model came. .</para>
2092
2181
/// <para>This class is available in Office 2019 and above.</para>
2093
2182
/// <para>When the object is serialized out as xml, it's qualified name is am3d:attrSrcUrl.</para>
2094
2183
/// </summary>
@@ -2256,6 +2345,69 @@ public Blip? Blip
2256
2345
public override OpenXmlElement CloneNode ( bool deep ) => CloneImp < Model3DRaster > ( deep ) ;
2257
2346
}
2258
2347
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 <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
+
2259
2411
/// <summary>
2260
2412
/// <para>Defines the ObjectViewport Class.</para>
2261
2413
/// <para>This class is available in Office 2019 and above.</para>
@@ -2431,7 +2583,7 @@ public OfficeArtExtensionList? OfficeArtExtensionList
2431
2583
}
2432
2584
2433
2585
/// <summary>
2434
- /// <para>Defines the AmbientLight Class .</para>
2586
+ /// <para>Ambient light in a scene .</para>
2435
2587
/// <para>This class is available in Office 2019 and above.</para>
2436
2588
/// <para>When the object is serialized out as xml, it's qualified name is am3d:ambientLight.</para>
2437
2589
/// </summary>
0 commit comments