diff --git a/data/schemas/schemas_microsoft_com_office_powerpoint_2018_8_main.json b/data/schemas/schemas_microsoft_com_office_powerpoint_2018_8_main.json
index f1b5a11ab..d5ef46deb 100644
--- a/data/schemas/schemas_microsoft_com_office_powerpoint_2018_8_main.json
+++ b/data/schemas/schemas_microsoft_com_office_powerpoint_2018_8_main.json
@@ -64,18 +64,33 @@
"Version": "Office2021",
"Children": [
{
- "Name": "p188:CT_CommentPropertiesExtension/p188:ext"
+ "Name": "p188:CT_CommentPropertiesExtension/p:ext"
}
],
"Particle": {
"Kind": "Sequence",
"Items": [
{
- "Name": "p188:CT_CommentPropertiesExtension/p188:ext",
+ "Kind": "Group",
"Occurs": [
- {}
+ {
+ "Max": 1
+ }
],
- "InitialVersion": "Microsoft365"
+ "Items": [
+ {
+ "Kind": "Sequence",
+ "Items": [
+ {
+ "Name": "p188:CT_CommentPropertiesExtension/p:ext",
+ "Occurs": [
+ {}
+ ],
+ "InitialVersion": "Office2021"
+ }
+ ]
+ }
+ ]
}
]
}
@@ -839,47 +854,6 @@
}
]
}
- },
- {
- "Name": "p188:CT_CommentPropertiesExtension/p188:ext",
- "ClassName": "CommentPropertiesExtension",
- "Summary": "Defines the CommentPropertiesExtension Class.",
- "CompositeType": "OneSequence",
- "BaseClass": "OpenXmlCompositeElement",
- "Version": "Microsoft365",
- "Children": [
- {
- "Name": "p228:CT_TaskDetails/p228:taskDetails",
- "PropertyName": "TaskDetails"
- },
- {
- "Name": "p223:CT_Reactions/p223:reactions",
- "PropertyName": "Reactions"
- }
- ],
- "Particle": {
- "Kind": "Sequence",
- "Items": [
- {
- "Name": "p228:CT_TaskDetails/p228:taskDetails",
- "Occurs": [
- {
- "Max": 1
- }
- ],
- "InitialVersion": "Microsoft365"
- },
- {
- "Name": "p223:CT_Reactions/p223:reactions",
- "Occurs": [
- {
- "Max": 1
- }
- ],
- "InitialVersion": "Microsoft365"
- }
- ]
- }
}
],
"Enums": [
diff --git a/data/schemas/schemas_openxmlformats_org_presentationml_2006_main.json b/data/schemas/schemas_openxmlformats_org_presentationml_2006_main.json
index 5571bf0ca..21acb2e95 100644
--- a/data/schemas/schemas_openxmlformats_org_presentationml_2006_main.json
+++ b/data/schemas/schemas_openxmlformats_org_presentationml_2006_main.json
@@ -773,6 +773,47 @@
]
}
},
+ {
+ "Name": "p188:CT_CommentPropertiesExtension/p:ext",
+ "ClassName": "CommentPropertiesExtension",
+ "Summary": "Data for the Windows platform..",
+ "CompositeType": "OneSequence",
+ "BaseClass": "OpenXmlCompositeElement",
+ "Version": "Office2021",
+ "Children": [
+ {
+ "Name": "p228:CT_TaskDetails/p228:taskDetails",
+ "PropertyName": "TaskDetails"
+ },
+ {
+ "Name": "p223:CT_Reactions/p223:reactions",
+ "PropertyName": "Reactions"
+ }
+ ],
+ "Particle": {
+ "Kind": "Sequence",
+ "Items": [
+ {
+ "Name": "p228:CT_TaskDetails/p228:taskDetails",
+ "Occurs": [
+ {
+ "Max": 1
+ }
+ ],
+ "InitialVersion": "Microsoft365"
+ },
+ {
+ "Name": "p223:CT_Reactions/p223:reactions",
+ "Occurs": [
+ {
+ "Max": 1
+ }
+ ],
+ "InitialVersion": "Microsoft365"
+ }
+ ]
+ }
+ },
{
"Name": "p:CT_CommentAuthorList/p:cmAuthorLst",
"ClassName": "CommentAuthorList",
diff --git a/data/typed/schemas_microsoft_com_office_powerpoint_2018_8_main.json b/data/typed/schemas_microsoft_com_office_powerpoint_2018_8_main.json
index 2c2c1bc6a..aee23545c 100644
--- a/data/typed/schemas_microsoft_com_office_powerpoint_2018_8_main.json
+++ b/data/typed/schemas_microsoft_com_office_powerpoint_2018_8_main.json
@@ -21,10 +21,6 @@
"Name": "p188:CT_CommentRelationship/p188:commentRel",
"ClassName": "CommentRelationship"
},
- {
- "Name": "p188:CT_CommentPropertiesExtension/p188:ext",
- "ClassName": "CommentPropertiesExtension"
- },
{
"Name": "p188:CT_CommentPropertiesExtensionList/p188:extLst",
"ClassName": "CommentPropertiesExtensionList"
diff --git a/data/typed/schemas_openxmlformats_org_presentationml_2006_main.json b/data/typed/schemas_openxmlformats_org_presentationml_2006_main.json
index a15acf7ac..c3f2687da 100644
--- a/data/typed/schemas_openxmlformats_org_presentationml_2006_main.json
+++ b/data/typed/schemas_openxmlformats_org_presentationml_2006_main.json
@@ -389,6 +389,10 @@
"Name": "p:CT_CommentExtension/p:ext",
"ClassName": "CommentExtension"
},
+ {
+ "Name": "p188:CT_CommentPropertiesExtension/p:ext",
+ "ClassName": "CommentPropertiesExtension"
+ },
{
"Name": "p:CT_CommonSlideDataExtension/p:ext",
"ClassName": "CommonSlideDataExtension"
diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P.g.cs
index cb2d5ba36..3cf5b2f1a 100644
--- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P.g.cs
+++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P.g.cs
@@ -1000,9 +1000,9 @@ public static partial class P
/// As an XML element, it:
///
/// - has the following parent XML elements: , , , , , , .
- /// - has the following child XML elements: , , , , , , , , , , , , , , , , , , .
+ /// - has the following child XML elements: , , , , , , , , , , , , , , , , , , , , .
/// - has the following XML attributes: .
- /// - corresponds to the following strongly-typed classes: ApplicationNonVisualDrawingPropertiesExtension, CommentAuthorExtension, CommentExtension, CommonSlideDataExtension, Extension, HandoutMasterExtension, NotesMasterExtension, PresentationExtension, PresentationPropertiesExtension, ShowPropertiesExtension, SlideExtension, SlideLayoutExtension, SlideMasterExtension.
+ /// - corresponds to the following strongly-typed classes: ApplicationNonVisualDrawingPropertiesExtension, CommentAuthorExtension, CommentExtension, CommentPropertiesExtension, CommonSlideDataExtension, Extension, HandoutMasterExtension, NotesMasterExtension, PresentationExtension, PresentationPropertiesExtension, ShowPropertiesExtension, SlideExtension, SlideLayoutExtension, SlideMasterExtension.
///
///
public static readonly XName ext = p + "ext";
diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P188.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P188.g.cs
index a6c5e0a13..db91f472d 100644
--- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P188.g.cs
+++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P188.g.cs
@@ -82,19 +82,6 @@ public static partial class P188
///
public static readonly XName commentRel = p188 + "commentRel";
- ///
- /// Represents the p188:ext XML element.
- ///
- ///
- /// As an XML element, it:
- ///
- /// - has the following parent XML elements: .
- /// - has the following child XML elements: , .
- /// - corresponds to the following strongly-typed classes: CommentPropertiesExtension.
- ///
- ///
- public static readonly XName ext = p188 + "ext";
-
///
/// Represents the p188:extLst XML elements.
///
@@ -102,7 +89,7 @@ public static partial class P188
/// As an XML element, it:
///
/// - has the following parent XML elements: , , .
- /// - has the following child XML elements: , .
+ /// - has the following child XML elements: .
/// - corresponds to the following strongly-typed classes: CommentPropertiesExtensionList, ExtensionList.
///
///
diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P223.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P223.g.cs
index 2a9fc8084..9d9721b3e 100644
--- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P223.g.cs
+++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P223.g.cs
@@ -48,7 +48,7 @@ public static partial class P223
///
/// As an XML element, it:
///
- /// - has the following parent XML elements: , .
+ /// - has the following parent XML elements: , .
/// - has the following child XML elements: .
/// - corresponds to the following strongly-typed classes: Reactions.
///
diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P228.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P228.g.cs
index 9f5ca855d..004b6c045 100644
--- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P228.g.cs
+++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P228.g.cs
@@ -149,7 +149,7 @@ public static partial class P228
///
/// As an XML element, it:
///
- /// - has the following parent XML elements: , .
+ /// - has the following parent XML elements: , .
/// - has the following child XML elements: , .
/// - has the following XML attributes: , .
/// - corresponds to the following strongly-typed classes: TaskDetails.
diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/schemas_microsoft_com_office_powerpoint_2018_8_main.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/schemas_microsoft_com_office_powerpoint_2018_8_main.g.cs
index df2914be8..5f7a0ed5f 100644
--- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/schemas_microsoft_com_office_powerpoint_2018_8_main.g.cs
+++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/schemas_microsoft_com_office_powerpoint_2018_8_main.g.cs
@@ -9,8 +9,6 @@
using DocumentFormat.OpenXml.Drawing;
using DocumentFormat.OpenXml.Framework;
using DocumentFormat.OpenXml.Framework.Metadata;
-using DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M03.Main;
-using DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M08.Main;
using DocumentFormat.OpenXml.Office2016.Drawing.Command;
using DocumentFormat.OpenXml.Office2016.Presentation.Command;
using DocumentFormat.OpenXml.Packaging;
@@ -147,7 +145,7 @@ public DocumentFormat.OpenXml.Drawing.ListStyle? ListStyle
///
/// The following table lists the possible child types:
///
- /// - <p188:ext>
+ /// - <p:ext>
///
///
public partial class CommentPropertiesExtensionList : OpenXmlCompositeElement
@@ -188,10 +186,16 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
base.ConfigureMetadata(builder);
builder.SetSchema("p188:extLst");
builder.Availability = FileFormatVersions.Office2021;
- builder.AddChild();
+ builder.AddChild();
builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
{
- new ElementParticle(typeof(DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.CommentPropertiesExtension), 0, 0, version: FileFormatVersions.Microsoft365)
+ new CompositeParticle.Builder(ParticleType.Group, 0, 1)
+ {
+ new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
+ {
+ new ElementParticle(typeof(DocumentFormat.OpenXml.Presentation.CommentPropertiesExtension), 0, 0, version: FileFormatVersions.Office2021)
+ }
+ }
};
}
@@ -1188,95 +1192,6 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep);
}
- ///
- /// Defines the CommentPropertiesExtension Class.
- /// This class is available in Microsoft365 and above.
- /// When the object is serialized out as xml, it's qualified name is p188:ext.
- ///
- ///
- /// The following table lists the possible child types:
- ///
- /// - <p223:reactions>
- /// - <p228:taskDetails>
- ///
- ///
- public partial class CommentPropertiesExtension : OpenXmlCompositeElement
- {
- ///
- /// Initializes a new instance of the CommentPropertiesExtension class.
- ///
- public CommentPropertiesExtension() : base()
- {
- }
-
- ///
- /// Initializes a new instance of the CommentPropertiesExtension class with the specified child elements.
- ///
- /// Specifies the child elements.
- public CommentPropertiesExtension(IEnumerable childElements) : base(childElements)
- {
- }
-
- ///
- /// Initializes a new instance of the CommentPropertiesExtension class with the specified child elements.
- ///
- /// Specifies the child elements.
- public CommentPropertiesExtension(params OpenXmlElement[] childElements) : base(childElements)
- {
- }
-
- ///
- /// Initializes a new instance of the CommentPropertiesExtension class from outer XML.
- ///
- /// Specifies the outer XML of the element.
- public CommentPropertiesExtension(string outerXml) : base(outerXml)
- {
- }
-
- internal override void ConfigureMetadata(ElementMetadata.Builder builder)
- {
- base.ConfigureMetadata(builder);
- builder.SetSchema("p188:ext");
- builder.Availability = FileFormatVersions.Microsoft365;
- builder.AddChild();
- builder.AddChild();
- builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
- {
- new ElementParticle(typeof(DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M08.Main.TaskDetails), 0, 1, version: FileFormatVersions.Microsoft365),
- new ElementParticle(typeof(DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M03.Main.Reactions), 0, 1, version: FileFormatVersions.Microsoft365)
- };
- }
-
- ///
- /// TaskDetails.
- /// Represents the following element tag in the schema: p228:taskDetails.
- ///
- ///
- /// xmlns:p228 = http://schemas.microsoft.com/office/powerpoint/2022/08/main
- ///
- public DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M08.Main.TaskDetails? TaskDetails
- {
- get => GetElement();
- set => SetElement(value);
- }
-
- ///
- /// Reactions.
- /// Represents the following element tag in the schema: p223:reactions.
- ///
- ///
- /// xmlns:p223 = http://schemas.microsoft.com/office/powerpoint/2022/03/main
- ///
- public DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M03.Main.Reactions? Reactions
- {
- get => GetElement();
- set => SetElement(value);
- }
-
- ///
- public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep);
- }
-
///
/// Defines the CommentStatus enumeration.
///
diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/schemas_openxmlformats_org_presentationml_2006_main.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/schemas_openxmlformats_org_presentationml_2006_main.g.cs
index 3f6136419..55887ae8b 100644
--- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/schemas_openxmlformats_org_presentationml_2006_main.g.cs
+++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/schemas_openxmlformats_org_presentationml_2006_main.g.cs
@@ -9,6 +9,8 @@
using DocumentFormat.OpenXml.Drawing;
using DocumentFormat.OpenXml.Framework;
using DocumentFormat.OpenXml.Framework.Metadata;
+using DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M03.Main;
+using DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M08.Main;
using DocumentFormat.OpenXml.Office.PowerPoint.Y2023.M02.Main;
using DocumentFormat.OpenXml.Office2010.Drawing;
using DocumentFormat.OpenXml.Office2010.PowerPoint;
@@ -1278,6 +1280,95 @@ public DocumentFormat.OpenXml.Drawing.PresetColor? PresetColor
public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep);
}
+ ///
+ /// Data for the Windows platform..
+ /// This class is available in Office 2021 and above.
+ /// When the object is serialized out as xml, it's qualified name is p:ext.
+ ///
+ ///
+ /// The following table lists the possible child types:
+ ///
+ /// - <p223:reactions>
+ /// - <p228:taskDetails>
+ ///
+ ///
+ public partial class CommentPropertiesExtension : OpenXmlCompositeElement
+ {
+ ///
+ /// Initializes a new instance of the CommentPropertiesExtension class.
+ ///
+ public CommentPropertiesExtension() : base()
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the CommentPropertiesExtension class with the specified child elements.
+ ///
+ /// Specifies the child elements.
+ public CommentPropertiesExtension(IEnumerable childElements) : base(childElements)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the CommentPropertiesExtension class with the specified child elements.
+ ///
+ /// Specifies the child elements.
+ public CommentPropertiesExtension(params OpenXmlElement[] childElements) : base(childElements)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the CommentPropertiesExtension class from outer XML.
+ ///
+ /// Specifies the outer XML of the element.
+ public CommentPropertiesExtension(string outerXml) : base(outerXml)
+ {
+ }
+
+ internal override void ConfigureMetadata(ElementMetadata.Builder builder)
+ {
+ base.ConfigureMetadata(builder);
+ builder.SetSchema("p:ext");
+ builder.Availability = FileFormatVersions.Office2021;
+ builder.AddChild();
+ builder.AddChild();
+ builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
+ {
+ new ElementParticle(typeof(DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M08.Main.TaskDetails), 0, 1, version: FileFormatVersions.Microsoft365),
+ new ElementParticle(typeof(DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M03.Main.Reactions), 0, 1, version: FileFormatVersions.Microsoft365)
+ };
+ }
+
+ ///
+ /// TaskDetails, this property is only available in Microsoft365 and later..
+ /// Represents the following element tag in the schema: p228:taskDetails.
+ ///
+ ///
+ /// xmlns:p228 = http://schemas.microsoft.com/office/powerpoint/2022/08/main
+ ///
+ public DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M08.Main.TaskDetails? TaskDetails
+ {
+ get => GetElement();
+ set => SetElement(value);
+ }
+
+ ///
+ /// Reactions, this property is only available in Microsoft365 and later..
+ /// Represents the following element tag in the schema: p223:reactions.
+ ///
+ ///
+ /// xmlns:p223 = http://schemas.microsoft.com/office/powerpoint/2022/03/main
+ ///
+ public DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M03.Main.Reactions? Reactions
+ {
+ get => GetElement();
+ set => SetElement(value);
+ }
+
+ ///
+ public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep);
+ }
+
///
/// List of Comment Authors.
/// This class is available in Office 2007 and above.
diff --git a/src/DocumentFormat.OpenXml.Linq/Presentation/P188.cs b/src/DocumentFormat.OpenXml.Linq/Presentation/P188.cs
new file mode 100644
index 000000000..aeb264a6c
--- /dev/null
+++ b/src/DocumentFormat.OpenXml.Linq/Presentation/P188.cs
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using System;
+using System.Xml.Linq;
+
+namespace DocumentFormat.OpenXml.Linq
+{
+ public static partial class P188
+ {
+ ///
+ /// Represents the p188:ext XML element.
+ ///
+ ///
+ /// As an XML element, it:
+ ///
+ /// - has the following parent XML elements: .
+ /// - has the following child XML elements: , .
+ /// - corresponds to the following strongly-typed classes: CommentPropertiesExtension.
+ ///
+ ///
+ [Obsolete("Unused property, prefer DocumentFormat.OpenXml.Linq.P.ext", true)]
+ [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
+#pragma warning disable SA1307 // Accessible fields should begin with upper-case letter
+#pragma warning disable SA1311 // Static readonly fields should begin with upper-case letter
+ public static readonly XName ext = p188 + "ext";
+#pragma warning restore SA1311 // Static readonly fields should begin with upper-case letter
+#pragma warning restore SA1307 // Accessible fields should begin with upper-case letter
+ }
+}
diff --git a/src/DocumentFormat.OpenXml/Schema/Presentation/CommentPropertiesExtension.cs b/src/DocumentFormat.OpenXml/Schema/Presentation/CommentPropertiesExtension.cs
new file mode 100644
index 000000000..169a6fdeb
--- /dev/null
+++ b/src/DocumentFormat.OpenXml/Schema/Presentation/CommentPropertiesExtension.cs
@@ -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.
+
+using System;
+using System.Collections.Generic;
+
+namespace DocumentFormat.OpenXml.Office2021.PowerPoint.Comment
+{
+ ///
+ /// Data for the Windows platform..
+ /// This class is available in Office 2021 and above.
+ /// When the object is serialized out as xml, it's qualified name is p:ext.
+ ///
+ ///
+ /// The following table lists the possible child types:
+ ///
+ /// - <p223:reactions>
+ /// - <p228:taskDetails>
+ ///
+ ///
+ [Obsolete("Unused type, prefer DocumentFormat.OpenXml.Presentation.CommentPropertiesExtension", true)]
+ [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
+ public partial class CommentPropertiesExtension : DocumentFormat.OpenXml.Presentation.CommentPropertiesExtension
+ {
+ ///
+ /// Initializes a new instance of the CommentPropertiesExtension class.
+ ///
+ public CommentPropertiesExtension()
+ : base()
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the CommentPropertiesExtension class with the specified child elements.
+ ///
+ /// Specifies the child elements.
+ public CommentPropertiesExtension(IEnumerable childElements)
+ : base(childElements)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the CommentPropertiesExtension class with the specified child elements.
+ ///
+ /// Specifies the child elements.
+ public CommentPropertiesExtension(params OpenXmlElement[] childElements)
+ : base(childElements)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the CommentPropertiesExtension class from outer XML.
+ ///
+ /// Specifies the outer XML of the element.
+ public CommentPropertiesExtension(string outerXml)
+ : base(outerXml)
+ {
+ }
+
+ ///
+ public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep);
+ }
+}
diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/ElementChildren.json b/test/DocumentFormat.OpenXml.Framework.Tests/ElementChildren.json
index 6d4441c61..e526a673f 100644
--- a/test/DocumentFormat.OpenXml.Framework.Tests/ElementChildren.json
+++ b/test/DocumentFormat.OpenXml.Framework.Tests/ElementChildren.json
@@ -38191,7 +38191,7 @@
"Children": [
{
"Name": "ext",
- "Namespace": "http://schemas.microsoft.com/office/powerpoint/2018/8/main"
+ "Namespace": "http://schemas.openxmlformats.org/presentationml/2006/main"
}
]
},
@@ -39169,6 +39169,19 @@
}
]
},
+ {
+ "Element": "DocumentFormat.OpenXml.Presentation.CommentPropertiesExtension",
+ "Children": [
+ {
+ "Name": "reactions",
+ "Namespace": "http://schemas.microsoft.com/office/powerpoint/2022/03/main"
+ },
+ {
+ "Name": "taskDetails",
+ "Namespace": "http://schemas.microsoft.com/office/powerpoint/2022/08/main"
+ }
+ ]
+ },
{
"Element": "DocumentFormat.OpenXml.Presentation.CommonBehavior",
"Children": [
diff --git a/test/DocumentFormat.OpenXml.Packaging.Tests/data/Particles.json b/test/DocumentFormat.OpenXml.Packaging.Tests/data/Particles.json
index 856666c5e..a1fd4752c 100644
--- a/test/DocumentFormat.OpenXml.Packaging.Tests/data/Particles.json
+++ b/test/DocumentFormat.OpenXml.Packaging.Tests/data/Particles.json
@@ -54576,6 +54576,12 @@
{
"Key": "DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.CommentPropertiesExtension",
"Value": [
+ {
+ "Key": "Office2021",
+ "Value": {
+ "ParticleType": "Sequence"
+ }
+ },
{
"Key": "Microsoft365",
"Value": {
@@ -54598,19 +54604,24 @@
"Key": "DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.CommentPropertiesExtensionList",
"Value": [
{
- "Key": "Office2021",
- "Value": {
- "ParticleType": "Sequence"
- }
- },
- {
- "Key": "Microsoft365",
+ "Key": "Office2021, Microsoft365",
"Value": {
"ChildrenParticles": [
{
- "ElementType": "DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.CommentPropertiesExtension",
- "MaxOccurs": 0,
- "MinOccurs": 0
+ "ChildrenParticles": [
+ {
+ "ChildrenParticles": [
+ {
+ "ElementType": "DocumentFormat.OpenXml.Presentation.CommentPropertiesExtension",
+ "MaxOccurs": 0,
+ "MinOccurs": 0
+ }
+ ],
+ "ParticleType": "Sequence"
+ }
+ ],
+ "MinOccurs": 0,
+ "ParticleType": "Group"
}
],
"ParticleType": "Sequence"
@@ -56024,6 +56035,33 @@
}
]
},
+ {
+ "Key": "DocumentFormat.OpenXml.Presentation.CommentPropertiesExtension",
+ "Value": [
+ {
+ "Key": "Office2021",
+ "Value": {
+ "ParticleType": "Sequence"
+ }
+ },
+ {
+ "Key": "Microsoft365",
+ "Value": {
+ "ChildrenParticles": [
+ {
+ "ElementType": "DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M08.Main.TaskDetails",
+ "MinOccurs": 0
+ },
+ {
+ "ElementType": "DocumentFormat.OpenXml.Office.PowerPoint.Y2022.M03.Main.Reactions",
+ "MinOccurs": 0
+ }
+ ],
+ "ParticleType": "Sequence"
+ }
+ }
+ ]
+ },
{
"Key": "DocumentFormat.OpenXml.Presentation.CommonBehavior",
"Value": [