4.7. The `hidden` child element of `layout`
Prev | 4. layout | Next

### 4.7. The `hidden` child element of `layout`

    <hidden
      insert = non empty token
    >
      Content: [ command|property|openedDocumentHook|
                 part|action|accelerator|insert ]*
    </hidden>

    <insert />

    <command
      name = NMTOKEN
    />

    <property
      name = NMTOKEN
    />

    <openedDocumentHook
      name = NMTOKEN
    />

    <part
      name = NMTOKEN
    />

    <action
      name = NMTOKEN
    />

    <accelerator
      name = NMTOKEN
    />

Specifies which parts are needed, even if they are not visible, to make a functioning XML editor, given the visible parts which are referenced in preferencesSheets, topToolBars, rightPanes, etc.

All the child elements of `hidden` are references to parts declared elsewhere in this GUI specification.

Example:

      <hidden>
        <!-- These are required to be able to use editPane -->
        <command name="replace" />
        <command name="insert" />
        <command name="convert" />
        <command name="wrap" />

        <part name="editOptionsPart" />
        <part name="spellOptionsPart" />
        <part name="spreadsheetOptionsPart" />
        <part name="webDAVOptionsPart" />

        <part name="autoSavePart" />

        <!-- Required by setStyleSheetMenuItems -->
        <action name="setStyleSheetAction" />
      </hidden>

The `accelerator` child element is a variant of the `action` child element. When the application has no menu bar, the accelerator (e.g. Ctrl+O) of an action referenced using the `action` child element is disabled, while the accelerator of an action referenced using the `accelerator` child element is enabled.

Prev | Up | Next
4.6. The `preferencesSheets` child element of `layout` | Home | 4.8. The `insert` descendant element of `layout`