2.2.35 sharedControls (List of Shared Quick Access Toolbar Controls)

This element specifies the section of the quick access toolbar that is shared among all documents. This element SHOULD NOT be specified if the containing Custom UI XML document is a Quick Access Toolbar Customizations part. If the containing Custom UI XML document is a Ribbon Extensibility part, this element can be used if the startFromScratch attribute is set to "true" on the ribbon element.

For example, consider a Ribbon Extensibility XML document that adds the two buttons to the shared section of the quick access toolbar:

Shared controls on the quick access toolbar

Figure 22: Shared controls on the quick access toolbar

This is specified using the following XML fragment:

 <qat>
  <sharedControls>
   <button id="button1" imageMso="HappyFace" />
   <button idMso="Cut" />
  </sharedControls>
 </qat>

The following table summarizes the elements that are parents of this element.

Parent Elements

qat (section 2.2.32)

The following table summarizes the child elements of this element.

Child Elements

Section

button (Unsized Button)

2.2.3

control (Quick Access Toolbar Control Clone)

2.2.13

separator (Separator)

2.2.34

The following XML schema fragment defines the contents of this element:

 <xsd:complexType name="CT_QatItems">
    <xsd:sequence>
    <xsd:choice minOccurs="0" maxOccurs="1000">
    <xsd:element name="control" type="CT_ControlCloneQat"/>
    <xsd:element name="button" type="CT_ButtonRegular"/>
    <xsd:element name="separator" type="CT_Separator"/>
    </xsd:choice>
    </xsd:sequence>
 </xsd:complexType>