30. toolBar

<toolBar
  name = NMTOKEN
  insert = non empty token
  replace = non empty token
  replaceEnd = non empty token
>
  Content: [ separator | button | insert ]*
</toolBar>

<separator />

<insert />

<button
  icon = anyURI
  toolTip = non empty token
  group = boolean : false
>
  Content: [ class [ property ]* ]? command | menu
</button>

<class>
  Content: Java class name
</class>

<property
  name = NMTOKEN matching [_a-zA-Z][_a-zA-Z0-9]*
  type = (boolean|byte|char|short|int|long|float|double|
          String|URL)
  value = string
/>

<command
  name = NMTOKEN (optionally preceded by a command namespace)
  parameter = string
/>

<menu>
  Content: [ item | separator ]+
</menu>

<item
  label = non empty token
  icon = anyURI
  command = NMTOKEN (optionally preceded by a command namespace)
  parameter = string
/>

Add buttons specified in this element to the tool bar.

Example:

<toolBar>
  <button toolTip="Convert to emphasis" 
          icon="../icons2/emphasis_menu.gif">
    <menu>
      <item label="emphasis" command="convert"
            parameter="[implicitElement] emphasis" />
      <separator />
      <item label="literal" command="convert"
            parameter="[implicitElement] literal" />
    </menu>
  </button>

  <button toolTip="Convert to plain text" icon="../icons2/plain.gif">
    <command name="convert" parameter="[implicitElement] #text" />
  </button>

  <separator />

  <button toolTip="Add para" icon="../icons2/para.gif">
    <command name="add" parameter="after[implicitElement] para" />
  </button>
</toolBar>