5. Adding a vertical tool bar

tutorial/tutorial5.xxe_gui:

  <toolBar name="toolBar" helpId="toolBar">1
    <action name="newAction" />
    <action name="openAction" />
    <action name="saveAction" />
    <action name="saveAllAction" />
    <separator />
    <action name="undoAction" />
    <action name="redoAction" />
    <action name="repeatAction" />
    <action name="commandHistoryAction" />
    <separator />
    <action name="cutAction" />
    <action name="copyAction" />
    <action name="pasteBeforeAction" />
    <action name="pasteAction" />
    <action name="pasteAfterAction" />
    <action name="deleteAction" />
    <separator />
    <action name="splitAction" />
    <action name="joinAction" />
  </toolBar>

  <toolBar name="configSpecificToolBar">2
    <toolBarItems name="configSpecificToolBarItems" />3
  </toolBar>

  <layout label="Document Editor" icon="docedit.png">
    <insert />

    <leftToolBars>4
      <toolBar name="configSpecificToolBar" />
    </leftToolBars>
 </layout>

1

There is no facility similar to the <insert/> which would allow us to remove the set of configuration specific buttons from the standard tool bar. Therefore we have to redefine the standard tool bar (element toolBar called "toolBar" found in Professional.xxe_gui) from scratch.

2

Declare a new tool bar called "configSpecificToolBar" by using a toolBar element.

3

This new toolBar only contains the set of configuration specific buttons. This set is declared in Professional.xxe_gui as the toolBarItems element called "configSpecificToolBarItems". Therefore, we just need to reference this stock part in our new tool bar.

4

Add a leftToolBars child to the layout element. This child element can contain one or more vertical toolBars.