author Serge Gautherie <>
Thu, 26 Mar 2009 15:00:18 +0100
changeset 2285 e79e68147a0f703884c2981cddf6be5a3d09ee0f
parent 533 b1da7109257adfaec6fdc05dd6c443713b669176
child 2495 f7b876d9df06fa2c325ec0d6fa93c42837c5fd3b
permissions -rw-r--r--
Bug 469581 - |make *test*| doesn't accept arguments, like --leak-threshold; (Bv1-CC) Keep SeaMonkey |mochitest-browser-chrome| in sync'; r=kairo

<?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
   - 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 Mozilla Communicator client code, released
   - March 31, 1998.
   - The Initial Developer of the Original Code is
   - Netscape Communications Corporation.
   - Portions created by the Initial Developer are Copyright (C) 1998-1999
   - the Initial Developer. All Rights Reserved.
   - Contributor(s):
   -   Ryan Cassin (
   - Alternatively, the contents of this file may be used under the terms of
   - either of 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 GPL or the LGPL. 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://editor/skin/editor.css" type="text/css"?> 
<?xml-stylesheet href="chrome://editor/skin/textEditor.css" type="text/css"?> 

<?xml-stylesheet href="chrome://editor/skin/editorPrimaryToolbar.css" type="text/css"?> 
<?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/contentAreaContextOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
<?xul-overlay href="chrome://debugQA/content/debugQAEditorOverlay.xul"?>

<!DOCTYPE window [
<!ENTITY % debugQAEditorOverlayDTD SYSTEM "chrome://debugqa/locale/debugQAEditorOverlay.dtd">
<!ENTITY % editorDTD SYSTEM "chrome://editor/locale/editor.dtd">

<!-- NOTE: If we don't have "title" set, text editor doesn't work! -->
<window id="main-window"
        onclose="return EditorCanClose()"
        width="640" height="480"
        screenX="10" screenY="10"
        persist="screenX screenY width height sizemode"

  <script type="application/x-javascript" src="chrome://editor/content/editor.js"/>
  <script type="application/x-javascript" src="chrome://editor/content/ComposerCommands.js"/>
  <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  <script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
editor.xul has these - do we need them?
  <script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>

  <commands id="commands">
    <commandset id="globalEditMenuItems"/>
    <commandset id="selectEditMenuItems"/>
    <commandset id="undoEditMenuItems"/>
    <commandset id="clipboardEditMenuItems"/>
    <commandset id="commonEditorMenuItems"/>
    <commandset id="composerEditMenuItems"/>
    <commandset id="composerSaveMenuItems"/>    
    <commandset id="composerMenuItems"/>

  <broadcaster id="args" value="chrome://debugqa/content/EditorInitPagePlain.html"/>
  <broadcaster id="canPrint"/>
<!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs
  <broadcaster id="dialog.start" ready="false"/>
  <observes element="dialog.start" attribute="ready" onbroadcast="EditorStartup('text')"/>
  <!-- broadcaster nodes are appended here from the overlays -->
  <broadcasterset id="broadcasterset">
    <broadcaster id="Editor:Throbber" busy="false"/>

  <!-- keys are appended from the overlay -->
  <keyset id="keyset"/>

  <toolbox id="EditorToolbox">
    <menubar id="main-menubar" class="chromeclass-menubar">
      <menu id="fileMenu"/>
      <menu id="editMenu"/>

      <menu label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
        <!-- id pulls in "Show Sidebar" item from sidebarOverlay -->
        <menupopup id="menu_View_Popup">
          <menu id="viewToolbar"/>
          <menu id = "composerCharsetMenu" />

      <menu id="insertMenuPlainText"/>

      <!-- tasks menu filled from tasksOverlay -->
      <menu accesskey="t" id="tasksMenu"/>

      <!-- help menu filled from globalOverlay -->
      <menu accesskey="h" id="menu_Help"/>

      <spacer flex="1"/>

     <!-- toolbar filled out from editorOverlay -->
    <toolbar class="toolbar-primary" id="EditToolbar" persist="collapsed">
      <toolbarbutton id="newButton"/>
      <toolbarbutton id="openButton"/>
      <toolbarbutton id="saveButton"/>
      <spacer class="separator-small"/>
      <toolbarbutton id="printButton"/>
      <toolbarbutton id="spellingButton"/>
      <spacer flex="1"/>

  <popup id="popupNotificationMenu"/>

  <hbox id="sidebar-parent" flex="1">
    <!-- From sidebarOverlay.xul -->
    <vbox id="sidebar-box" class="chromeclass-extrachrome" hidden="true"/>
    <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
    <vbox id="appcontent" flex="1">

      <editor editortype="text" type="content-primary" id="content-frame" src="about:blank" flex="1"/>

      <statusbar id="status-bar">
        <statusbarpanel class="statusbarpanel-iconic" id="offline-status"/>
        <statusbarpanel class="statusbarpanel-progress">
          <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0">
              <observes element="Editor:Throbber" attribute="busy"/>
        <statusbarpanel id="statusText" label="&statusText.label;" flex="1" crop="right"/>

    </vbox> <!-- appcontent -->
  </hbox><!-- sidebar-parent -->

  <hbox id="taskbar" class="toolbox-bottom"/>