2.1.7.1 ActiveX
An instance of the ActiveX part specifies an ActiveX control.
Content type: application/vnd.ms-office.activeX+xml
Source relationship: http://schemas.openxmlformats.org/officeDocument/2006/relationships/control
An ActiveX part MUST be the target of an explicit relationship from the worksheet (section 2.1.7.62) part.
An ActiveX part is permitted to have explicit relationships to the ActiveX Binary (section 2.1.7.2) part.
An ActiveX part MUST NOT have implicit or explicit relationships to any other part (section 2.1.2) specified by this document.
The syntax of the structures contained in this part uses XML schema definition (XSD), as specified in [XMLSCHEMA1] and [XMLSCHEMA2].
This specification defines and references various XML namespaces using the mechanisms specified in [XMLNS].
The content of the ActiveX part is XML as specified by the following XSD.
-
<?xml version="1.0" encoding="utf-8"?> <xsd:schema targetNamespace="http://schemas.microsoft.com/office/2006/activeX" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/office/2006/activeX" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" elementFormDefault="qualified" attributeFormDefault="qualified" blockDefault="#all"> <xsd:import id="r" namespace="http://schemas.openxmlformats.org/officeDocument/2006/ relationships" /> <xsd:element name="ocx" type="CT_Ocx" maxOccurs="1" minOccurs="1"/> <xsd:complexType name="CT_Ocx"> <xsd:sequence> <xsd:element name="ocxPr" type="CT_OcxPr" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="classid" type="ST_String" use="required"/> <xsd:attribute name="license" type="ST_String" use="optional" /> <xsd:attribute ref="r:id" use="optional" /> <xsd:attribute name="persistence" type="ST_Persistence" use="required" /> </xsd:complexType> <xsd:simpleType name="ST_String"> <xsd:restriction base="xsd:string" /> </xsd:simpleType> <xsd:simpleType name="ST_Persistence"> <xsd:restriction base="ST_String"> <xsd:enumeration value="persistPropertyBag"/> <xsd:enumeration value="persistStream"/> <xsd:enumeration value="persistStreamInit"/> <xsd:enumeration value="persistStorage"/> </xsd:restriction> </xsd:simpleType> <xsd:complexType name="CT_OcxPr"> <xsd:sequence> <xsd:choice> <xsd:element name="font" type="CT_Font" maxOccurs="1" minOccurs="0" /> <xsd:element name="picture" type="CT_Picture" maxOccurs="1" minOccurs="0"/> </xsd:choice> </xsd:sequence> <xsd:attribute name="name" type="ST_String" use="required" /> <xsd:attribute name="value" type="ST_String" use="optional" /> </xsd:complexType> <xsd:complexType name="CT_Font"> <xsd:sequence> <xsd:element name="ocxPr" type="CT_OcxPr" minOccurs="0" maxOccurs="unbounded" /> </xsd:sequence> <xsd:attribute name="persistence" type="ST_Persistence" use="optional"/> <xsd:attribute ref="r:id" use="optional"/> </xsd:complexType> <xsd:complexType name="CT_Picture"> <xsd:attribute ref="r:id" use="optional"/> </xsd:complexType> </xsd:schema>
The XML schema associated with the imported namespace, "http://schemas.openxmlformats.org/officeDocument/2006/relationships", is specified in [ISO/IEC29500-1:2016], section 22.8.