<?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" />

  <!-- Virtual drive/URL chooser support ========== -->

  <action name="toggleUseURLChooserAction" 
          toolTip="Use URL chooser rather than file chooser"
          icon="icons/toggleUseURLChooserAction.png"
          selectedIcon="icons/toggleUseURLChooserAction_selected.png">
    <class>com.xmlmind.xmleditapp.kit.part.ToggleUseURLChooserAction</class>
  </action>

  <toolBar name="toolBar" insert="after saveAllAction">
    <action name="toggleUseURLChooserAction" />
  </toolBar>

  <!-- Automatic spell checker support ========== -->

  <action name="toggleAutoSpellCheckAction" label="_Automatic Spell Checker"
          icon="icons/toggleAutoSpellCheckAction.png"
          selectedIcon="icons/toggleAutoSpellCheckAction_selected.png">
    <class>com.xmlmind.xmleditapp.kit.part.ToggleAutoSpellCheckAction</class>
  </action>

  <menu name="toolsMenu" insert="after checkSpellingAction">
    <action name="toggleAutoSpellCheckAction" />
  </menu>

  <statusBar name="statusBar">
    <action name="toggleAutoSpellCheckAction" />
    <separator />
    <insert />
  </statusBar>

  <!-- Tools/Spreadsheet sub-menu ========== -->

  <action name="showColumnRowLabelsAction" label="_Show Table Labels">
    <command name="showColumnRowLabels" parameter="on" 
             editingContextSensitive="false" />
  </action>

  <action name="hideColumnRowLabelsAction" label="_Hide Table Labels">
    <command name="showColumnRowLabels" parameter="off" 
             editingContextSensitive="false" />
  </action>

  <action name="setFormulaAction" label="_Insert/Edit Formula">
    <command name="setFormula" />
  </action>

  <action name="disableFormulasAction" label="_Disable Selected Formulas">
    <command name="removeFormulas" parameter="disable" />
  </action>

  <action name="enableFormulasAction" label="_Enable Selected Formulas">
    <command name="removeFormulas" parameter="enable" />
  </action>

  <action name="removeFormulasAction" label="_Remove Selected Formulas">
    <command name="removeFormulas" />
  </action>

  <action name="clearCacheAction" label="_Clear External Document Cache">
    <command name="spreadsheet" parameter="clearDocumentCache" 
             editingContextSensitive="false" />
  </action>

  <action name="toggleAutoRecalcAction" label="_Auto-Update Mode">
    <class>com.xmlmind.xmleditapp.kit.part.ToggleAutoRecalcAction</class>
  </action>

  <action name="recalcAction" label="_Update">
    <command name="spreadsheet" parameter="recalc" 
             editingContextSensitive="false" />
  </action>

  <menu name="spreadsheetMenu" label="S_preadsheet">
    <action name="showColumnRowLabelsAction" />
    <action name="hideColumnRowLabelsAction" />
    <separator />
    <action name="setFormulaAction" />
    <action name="disableFormulasAction" />
    <action name="enableFormulasAction" />
    <action name="removeFormulasAction" />
    <separator />
    <action name="clearCacheAction" />
    <separator />
    <action name="toggleAutoRecalcAction" />
    <action name="recalcAction" />
  </menu>

  <menu name="toolsMenu"
    insert="ifDefined(XXE.Feature.Spreadsheet) after helperApplicationMenu">
    <separator />
    <menu name="spreadsheetMenu" />
  </menu>

  <!-- Customize Configuration sub-menu ========== -->

  <action name="saveAsTemplateAction" 
          label="Save _Document as Template...">
    <class>com.xmlmind.xmleditapp.kit.part.SaveAsTemplateAction</class>
  </action>

  <action name="saveElementAsTemplateAction" 
          label="Save Selected _Element as Template...">
    <class>com.xmlmind.xmleditapp.kit.part.SaveElementAsTemplateAction</class>
  </action>

  <action name="saveWindowLayoutAction" 
          label="Save _Views as Default...">
    <class>com.xmlmind.xmleditapp.app.part.SaveWindowLayoutAction</class>
  </action>

  <action name="addKeyboardShortcutAction" 
          label="Add _Keyboard Shortcut...">
    <class>com.xmlmind.xmleditapp.kit.part.AddKeyboardShortcutAction</class>
  </action>

  <action name="editConversionParametersAction" 
          label="Change Document _Conversion Parameters...">
    <class>com.xmlmind.xmleditapp.kit.part.EditConversionParametersAction</class>
  </action>

  <menuItems name="customizeConfigMenuItems">
    <class>com.xmlmind.xmleditapp.kit.part.ConfigSpecificMenuItems</class>
    <property name="specificationName" type="String" value="customizeConfig" />
  </menuItems>

  <menu name="customizeConfigurationMenu" label="_Customize Configuration">
    <action name="saveAsTemplateAction" />
    <action name="saveElementAsTemplateAction" />
    <action name="saveWindowLayoutAction" />
    <action name="addKeyboardShortcutAction" />
    <action name="editConversionParametersAction" />
    <menuItems name="customizeConfigMenuItems" />
  </menu>

  <menu name="optionsMenu" insert="after editPreferencesAction">
    <separator />
    <menu name="customizeConfigurationMenu" />
  </menu>

  <!-- Spreadsheet options ========== -->

  <preferencesSheet name="spreadsheetOptions">
    <class>com.xmlmind.xmleditapp.kit.prefsheet.SpreadsheetOptions</class>
  </preferencesSheet>

  <preferencesSheets name="preferencesSheets"
    insert="ifDefined(XXE.Feature.Spreadsheet) after helperApplicationsOptions">
    <preferencesSheet name="spreadsheetOptions" />
  </preferencesSheets>

  <part name="spreadsheetOptionsPart">
    <class>com.xmlmind.xmleditapp.kit.part.SpreadsheetOptionsPart</class>
  </part>

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

  <layout>
    <hidden
      insert="ifDefined(XXE.Feature.Spreadsheet) after setStyleSheetAction">
      <part name="spreadsheetOptionsPart" />
    </hidden>
  </layout>

</gui>
