<?xml version='1.0' encoding='UTF-8'?>
<gui xmlns="http://www.xmlmind.com/xmleditor/schema/gui"
     xmlns:gui="http://www.xmlmind.com/xmleditor/schema/gui">

  <include location="common.xxe_gui" />

  <!-- Tool bars ========================================================= -->

  <toolBar name="toolBar" helpId="toolBar">
    <action name="printAction" />
    <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" />
    <separator />
    <action name="copyAsInclusionAction" />
    <separator />
    <action name="setStyleSheetAction" />
    <separator />
    <action name="declareNamespaceAction" />
    <separator />
    <action name="editPreferencesAction" />
    <separator />
    <action name="helpAction" />
    <action name="contextualHelpAction" />
    <action name="showContentModelAction" />
    <action name="aboutAction" />
  </toolBar>

  <action name="configSpecificAction" 
          label="XML" icon="icons/configSpecificAction.png">
    <class>com.xmlmind.xmleditapp.applet.ConfigSpecificAction</class>
  </action>

  <toolBar name="configSpecificToolBar" helpId="configSpecificMenu">
    <action name="configSpecificAction" />
    <toolBarItems name="configSpecificToolBarItems" />
  </toolBar>

  <toolBar name="selectToolBar" helpId="selectToolBar">
    <action name="selectParentAction" />
    <action name="selectChildAction" />
    <action name="selectPreviousSiblingAction" />
    <action name="selectNextSiblingAction" />
    <separator />
    <action name="extendSelectionToPreviousSiblingAction" />
    <action name="extendSelectionToNextSiblingAction" />
    <separator />
    <action name="findElementAction" />
  </toolBar>

  <!-- Preferences sheets ================================================ -->

  <preferencesSheets name="preferencesSheets">
    <preferencesSheet name="openOptions" />
    <preferencesSheet name="printOptions" />
    <preferencesSheet name="editOptions" />
    <preferencesSheet name="viewOptions" />
    <preferencesSheet name="tools" label="Tools">
      <preferencesSheet name="validateOptions" />
      <preferencesSheet name="spellOptions" />
    </preferencesSheet>
    <preferencesSheet name="generalOptions" />
  </preferencesSheets>

  <!-- Layout ============================================================ -->

  <layout width="800" height="600">
    <topToolBars>
      <toolBar name="toolBar" />
      <toolBar name="configSpecificToolBar" />
      <group>
        <tool name="nodePathTool" stretch="1" />
        <toolBar name="selectToolBar" />
      </group>
    </topToolBars>

    <bottomToolBars>
      <statusBar name="statusBar" />
    </bottomToolBars>

    <rightPanes width="0.33">
      <pane name="editPane" selected="true" />
      <pane name="editAttributePane" />
      <pane name="textSearchReplacePane" />
      <pane name="checkSpellingPane" />
      <pane name="insertCharacterPane" />
      <pane name="checkValidityPane" />
    </rightPanes>

    <preferencesSheets name="preferencesSheets" />

    <hidden>
      <!-- Required to be able to implement command-line arguments and 
           also to script the applet -->
      <action name="newAction" />
      <action name="openAction" />
      <action name="closeAction" /> 

      <!-- Useful when testing
      <accelerator name="newAction" />
      <accelerator name="openAction" />
      <accelerator name="closeAction" />
      -->

      <!-- Required to support Ctrl-Mouse Wheel -->
      <action name="setLargerTextSizeAction" />

      <!-- Useful accelerators -->
      <accelerator name="textSearchAction" />
      <accelerator name="textSearchBackwardsAction" />
      <accelerator name="textReplaceAction" />
      <accelerator name="textReplaceBackwardsAction" />
      <accelerator name="textFindNextAction" />
      <accelerator name="textFindPreviousAction" />
      <accelerator name="editAttributeAction" />
      <!-- Also required by checkValidityTool -->
      <accelerator name="checkValidityAction" />
      <accelerator name="checkSpellingAction" />

      <!-- These are required to be able to use editPane -->
      <command name="replace" />
      <command name="insert" />
      <command name="convert" />
      <command name="wrap" />
      <action name="replaceAction" />
      <action name="insertBeforeAction" />
      <action name="insertAction" />
      <action name="insertAfterAction" />
      <action name="convertAction" />
      <action name="wrapAction" />

      <part name="editOptionsPart" />
      <part name="viewOptionsPart" />
      <part name="spellOptionsPart" />
    </hidden>
  </layout>

  <layout>
    <rightPanes insert="ifDefined(XXE.Feature.IncludeTool) after editPane">
      <pane name="includePane" />
    </rightPanes>

    <hidden
      insert="ifDefined(XXE.Feature.IncludeTool) after spellOptionsPart">
      <command name="include" />
      <action name="includeReplaceAction" />
      <action name="includeBeforeAction" />
      <action name="includeAction" />
      <action name="includeAfterAction" />
    </hidden>
  </layout>

</gui>
