6. Adding a Characters menu


  <action name="insertLeftAction" label="_L - &#x2190;">1
    <command name="insertString" parameter="&#x2190;" />
  <action name="insertRightAction" label="_R - &#x2192;">
    <command name="insertString" parameter="&#x2192;" />

  <action name="insertAlphaAction" label="_A - &#x03B1;">
    <command name="insertString" parameter="&#x03B1;" />
  <action name="insertBetaAction" label="_B - &#x03B2;">
    <command name="insertString" parameter="&#x03B2;" />
  <action name="insertGammaAction" label="_C - &#x03B3;">
    <command name="insertString" parameter="&#x03B3;" />

  <menu name="arrowsMenu" label="_Arrows">
    <action name="insertLeftAction" />
    <action name="insertRightAction" />

  <menu name="greekMenu" label="_Greek">
    <action name="insertAlphaAction" />
    <action name="insertBetaAction" />
    <action name="insertGammaAction" />

  <menu name="charactersMenu" label="_Characters">2
    <menu name="arrowsMenu" />
    <menu name="greekMenu" />

  <menuBar name="menuBar" insert="after editMenu">3
    <menu name="charactersMenu" />


Define actions which insert the chosen special characters by wrapping an action around standard command "insertString" (see Section 49, “insertString” in XMLmind XML Editor - Commands).


Define the Characters menu and its two submenus: the Arrows menu and the Greek menu.


This inserts menu "charactersMenu" after menu "editMenu" in the standard menu bar (menuBar element called "menuBar" found in DesktopApp.xxe_gui). More information about attribute insert in Customizing a composite part without redefining it from scratch.