<toolBar name = NMTOKEN > Content: [ separator | button | insert ]+ </toolBar> <separator /> <insert /> <button icon = anyURI toolTip = non empty token > Content: command | menu </button> <command name = NMTOKEN parameter = string /> <menu> Content: [ item | separator ]+ </menu> <item label = non empty token icon = anyURI command = NMTOKEN 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>A toolBar configuration element can extend previously defined toolBar by using child element insert.
Example, this specification adds a button before the buttons of previously defined tool bar:
<toolBar>
<button toolTip="Insert formula" icon="icons/formula.gif">
<command name="insertOrConfigureFormula"/>
</button>
<separator />
<insert />
</toolBar>