Partilhar via


Server Ribbon Schema

Applies to: SharePoint Foundation 2010

The Server ribbon schema defines the structure of XML documents that customize the Server ribbon.

XML Schema Definition

An XML document that customizes the Server ribbon must validate with the schema that is defined in the cui.xsd file. This file is located in the following directory: %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\XML.

Elements

The following list maps relationships between elements in the Server ribbon schema definition.

<CommandUI>

    <Ribbon>

        <Tabs>

            <Tab>

                <Groups>

                    <Group>

                        <Controls>

                            <Button/>

                            <CheckBox/>

                            <ComboBox>

                                <Menu>

                                    <MenuSection>

                                        <Controls>

                                            <Button/>

                                            <ColorPicker>

                                                <Colors>

                                                    <Color/>

                                                <Colors/>

                                            </ColorPicker>

                                            <FlyoutAnchor>

                                                <Menu>

                                                </Menu>

                                            </FlyoutAnchor>

                                            <InsertTable/>

                                            <ToggleButton/>

                                        </Controls>

                                        <Gallery>

                                            <GalleryButton/>

                                        </Gallery>

                                    </MenuSection>

                                </Menu>

                            </ComboBox>

                            <DropDown>

                                <Menu>

                                </Menu>

                            </DropDown>

                            <FlyoutAnchor>

                                <Menu>

                                </Menu>

                            </FlyoutAnchor>

                            <GalleryButton/>

                            <Label/>

                            <MRUSplitButton>

                                <Menu>

                                </Menu>

                            <Spinner>

                                <Unit>

                                    <UnitAbbreviation/>

                                </Unit>

                            </Spinner>

                            <SplitButton>

                                <Menu>

                                </Menu>

                            </SplitButton>

                            <TextBox/>

                            <ToggleButton/>

                        </Controls>

                    </Group>

                </Groups>

                <Scaling>

                    <MaxSize/>

                    <Scale/>

                </Scaling>

            </Tab>

        </Tabs>

        <ContextualTabs>

            <ContextualGroup>

                <Tab>

                </Tab>

            </ContextualGroup>

        </ContextualTabs>

    </Ribbon>

    <Templates>

        <RibbonTemplates>

            <GroupTemplate>

                <Layout>

                    <Section>

                        <Row>

                            <ControlRef/>

                            <Strip>

                                <ControlRef/>

                            </Strip>

                            <OverflowArea/>

                        </Row>

                    </Section>

                    <OverflowSection/>

                </Layout>

            </GroupTemplate>

        </RibbonTemplates>

    </Templates>

    <QAT>

        <Controls>

        </Controls>

    </QAT>

    <Jewel>

        <Menu>

        </Menu>

    </Jewel>

</CommandUI>

See Also

Reference

CommandUIDefinition Element

Concepts

Building Block: Server Ribbon