33. windowLayout
Prev | Chapter 7. Configuration elements |

## 33. windowLayout

    <windowLayout>
      Content (in any order): center [ top ]? [ bottom ]?
                              [ left ]? [ right ]?
    </windowLayout>

    <center
      css = non empty token
    />

    <top
      css = non empty token
      size = double between 0 and 1 exclusive : 0.25
    />

    <bottom
      css = non empty token
      size = double between 0 and 1 exclusive : 0.25
    />

    <left
      css = non empty token
      size = double between 0 and 1 exclusive : 0.25
    />

    <right
      css = non empty token
      size = double between 0 and 1 exclusive : 0.25
    />

By default, XXE creates a single view when a document is opened. This view is the tree view if no CSS style sheets are available for the opened document. This view is a styled view using first non-alternate CSS style sheet if one or more style sheets are available for the opened document.

The windowLayout element allows to force XXE to automatically create several views for the same document when this document is opened. This is similar to using menu item View → Add except that these actions have been automated.

Child elements `center`, `top`, `bottom`, `left`, `right` specify which view to add and where it is added. Note that having a `center` child element is required.

The `css` attribute of these child elements specify which CSS style sheet to use. An absent `css` attribute means that a tree view is to be used.

The `size` attribute of the four ``border views'': `top`, `bottom`, `left`, `right`, specify the proportional size of the view. For example: <top.size="0.25"/> means that a tree view will occupy one fourth of the available height and that this tree view will be found above the central, main view.

Two DocBook examples:

      <windowLayout>
        <center css="DocBook" />
        <bottom css="Document structure" size="0.15" />
      </windowLayout>

      <windowLayout>
        <left />
        <top css="Document structure" />
        <center css="DocBook" />
      </windowLayout>

      <css name="DocBook" location="css/docbook.css" />
      <css name="Document structure" alternate="true"
           location="css/structure.css" />
      <css name="Show info about included elements" alternate="true"
           location="css/visible_inclusions.css" />

Prev | Up |
32. validateHook | Home |