<?xml version="1.0"?>

<!-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
   -
   - The contents of this file are subject to the Mozilla Public License Version
   - 1.1 (the "License"); you may not use this file except in compliance with
   - the License. You may obtain a copy of the License at
   - http://www.mozilla.org/MPL/
   -
   - Software distributed under the License is distributed on an "AS IS" basis,
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
   - for the specific language governing rights and limitations under the
   - License.
   -
   - The Original Code is BlueGriffon.
   -
   - The Initial Developer of the Original Code is
   - Disruptive Innovations SARL.
   - Portions created by the Initial Developer are Copyright (C) 2006
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -   Daniel Glazman (daniel.glazman@disruptive-innovations.com), Original Author
   -
   - Alternatively, the contents of this file may be used under the terms of
   - either the GNU General Public License Version 2 or later (the "GPL"), or
   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
   - in which case the provisions of the GPL or the LGPL are applicable instead
   - of those above. If you wish to allow use of your version of this file only
   - under the terms of either the GPL or the LGPL, and not to allow others to
   - use your version of this file under the terms of the MPL, indicate your
   - decision by deleting the provisions above and replace them with the notice
   - and other provisions required by the LGPL or the GPL. If you do not delete
   - the provisions above, a recipient may use your version of this file under
   - the terms of any one of the MPL, the GPL or the LGPL.
   -
   - ***** END LICENSE BLOCK ***** -->

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://bluegriffon/skin/bluegriffon.css" type="text/css"?>

#include overlays.inc

<!DOCTYPE window [
  <!ENTITY % bluegriffonDTD  SYSTEM "chrome://bluegriffon/locale/bluegriffon.dtd" >
  <!ENTITY % structurebarDTD SYSTEM "chrome://bluegriffon/locale/structurebar.dtd" >
  <!ENTITY % ariaDTD         SYSTEM "chrome://bluegriffon/locale/aria.dtd" >
  <!ENTITY % brandDTD        SYSTEM "chrome://branding/locale/brand.dtd" >
  <!ENTITY % baseMenuOverlayDTD SYSTEM "chrome://browser/locale/baseMenuOverlay.dtd">
  %bluegriffonDTD;
  %structurebarDTD;
  %ariaDTD;
  %brandDTD;
  %baseMenuOverlayDTD;
]>            

<window
  id     = "Bluegriffon"
  windowtype = "bluegriffon"
  title  = "&window.title;"
  width  = "900"
  height = "600"
  persist="screenX screenY width height"
  onload = "Startup()"
  onunload = "Shutdown()"
  onclose = "return onClose()"
  xmlns  = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml">

#include scripts.inc

#include sets.inc
#include popups.inc

#include menubar.inc

  <toolbox class="toolbox-top" id="MainToolbox" context="main-toolbar-context-menu">
#include maintoolbarpalette.inc
    <toolbar id="MainToolbar" class="toolbar-primary chromeclass-toolbar" align="center"
             toolbarname="Main"
             fullscreentoolbar="true"
             persist="iconsize,mode"
             iconsize="small"
             mode="icons"
             customizable="true"
#ifdef XP_MACOSX
             defaultset="newButton,openButton,saveButton,stopButton,spacer,tableButton,tableLayoutButton,imageButton,thumbnailButton,anchorButton,linkButton,domexplorerButton,cssButton,csseditorButton,svgEditMainToolbarButton,videoButton,audioButton,formButton,mathmlButton,spacer,browseButton,spring,throbber-box"/>
#else
             defaultset="newButton,spacer,openButton,spacer,saveButton,stopButton,spacer,tableButton,tableLayoutButton,imageButton,thumbnailButton,anchorButton,linkButton,domexplorerButton,cssButton,csseditorButton,svgEditMainToolbarButton,videoButton,audioButton,formButton,mathmlButton,spacer,browseButton,spring,throbber-box,spacer"/>
#endif
    <toolbarset id="customMainToolbars" context="main-toolbar-context-menu"/>
  </toolbox>

  <toolbox class="toolbox-top" id="FormatToolbox" mode="full">
#include formatbarpalette.inc
    <toolbar id="FormatToolbar" class="chromeclass-toolbar"
             toolbarname="&formatToolbar.name;"
             fullscreentoolbar="true"
             persist="iconsize,mode"
             iconsize="small"
             mode="full"
             align="center"
             context="format-toolbar-context-menu"
             customizable="true"
             defaultset="spacer,ParagraphSelectBox,separator,emButton,strongButton,codeButton,separator,boldButton,italicButton,underlineButton,separator,ulButton,olButton,separator,align-left-button,align-center-button,align-right-button,align-justify-button,separator,indentButton,outdentButton,separator,dirLtrButton,dirRtlButton"/>
    <toolbar id="FormatToolbar2" class="chromeclass-toolbar"
             toolbarname="&formatToolbar2.name;"
             fullscreentoolbar="true"
             persist="iconsize,mode"
             iconsize="small"
             mode="full"
             align="center"
             context="format-toolbar-context-menu"
             customizable="true"
             defaultset="spacer,IdButtonsBox,ClassButtonsBox,FontFaceSelectBox,separator,dtButton,ddButton,rotateButton,ARIARoleSelectBox"/>
    <toolbarset id="customFormatToolbars" context="format-toolbar-context-menu"/>
  </toolbox>

    <vbox flex="1" id="maincontainer">
      <vbox flex="1">
        <box flex="1" id="tabeditorContainer" >
          <tabeditor flex="1" id="tabeditor" visibility="hidden" persist="tabmode"/>
        </box>
#include findbar.inc
        <iframe id="parserIframe" src="about:blank" hidden="true" type="content"/>
      </vbox>
      <hbox align="center" id="helperButtons">
#ifdef XP_MACOSX
	      <tabs id="modeTabbox" previousMode="wysiwyg" flex="1">
	        <tab
	                 selected="true"
	                 id="wysiwygModeButton"
	                 label="&wysiwygMode.label;"
	                 oncommand="ToggleViewMode(this)"
	                 value="wysiwyg"
	                 observes="cmd_viewModeEnabler"/>
	        <tab
	                 id="sourceModeButton"
	                 label="&sourceMode.label;"
	                 oncommand="ToggleViewMode(this)"
	                 value="source"
	                 observes="cmd_viewModeEnabler"/>
	      </tabs>
#else
	      <hbox id="modeTabbox" previousMode="wysiwyg" flex="1">
	      	<spacer flex="1"/>
	      	<label class="multiButton left"
	      				   selected="true"
	      				   id="wysiwygModeButton"
	      				   label="&wysiwygMode.label;"
	      				   onclick="ToggleViewMode(this)"
	      				   value="wysiwyg"
	      				   observes="cmd_viewModeEnabler"/>
	      	<label class="multiButton right"
	      				   id="sourceModeButton"
	      				   label="&sourceMode.label;"
	      				   onclick="ToggleViewMode(this)"
	      				   value="source"
	      				   observes="cmd_viewModeEnabler"/>
	      	<spacer flex="1"/>
	      </hbox>
#endif
      </hbox>
      <structurebar id="structurebar" orient="horizontal">
        <spacer id="structbarflexer" flex="1"/>
      </structurebar>
    </vbox>

#ifdef TOOLBAR_CUSTOMIZATION_SHEET
  <panel id="customizeToolbarSheetPopup" noautohide="true">
    <iframe id="customizeToolbarSheetIFrame"
            style="width: 635px; height: 400px;"
            hidden="true"/>
  </panel>
#endif

  <panelset id="panels"/>

#include autoInsertTable.inc

  <statusbar id="statusbar">
    <deck flex="1" id="statusbarDeck">
      <hbox id="editorBar" align="center">
        <label id="editorBarLabel" value="&getAddOns.label;"
               onclick="OpenAddonsSite()"/>
        <spacer flex="1"/>
        <statusbarpanel id="zoomPanel">
          <spinbuttons onup="BGZoomManager.enlarge(this.nextSibling)"
                       ondown="BGZoomManager.reduce(this.nextSibling)"/>
          <menulist id="menulist-zoompanel"
                    observes="cmd_renderedHTMLEnabler"
                    editable="true"
                    tooltiptext="&setZoomFactor.label;"
                    value="100%"
                    sizetopopup="none"
                    onkeyup="BGZoomManager.onKeyUp(event, this)"
                    oncommand="BGZoomManager.applyZoomValue(this)">
            <menupopup id="menupopup-zoompanel"
                       onpopupshowing="BGZoomManager.fillZoomValues(this)">
              <menuitem label="dummy"/>
            </menupopup>
          </menulist>

        </statusbarpanel>
      </hbox>
      <hbox id="progressBar" align="center">
        <statusbarpanel id="status" label="" crop="end" flex="1"/>
        <spacer flex="1"/>
        <progressmeter id="progress" mode="determined" value="0%" style="display: none"/>
        <statusbarpanel id="security" label="" style="display: none"/>
      </hbox>
    </deck>
  </statusbar>
</window>
