34. 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 ViewAdd 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="Table of contents" size="0.15" />
</windowLayout>

<windowLayout>
  <left />
  <top css="Table of contents" />
  <center css="DocBook" />
</windowLayout>

<css name="DocBook" location="css/docbook.css" />
<css name="Table of contents" alternate="true"
     location="css/toc.css" />
<css name="Show info about included elements" alternate="true" 
     location="css/docbook__visible_inclusions.css" />