suite/common/viewSourceOverlay.xul
author Gervase Markham <gerv@gerv.net>
Wed, 30 May 2012 17:48:24 +0100
changeset 12286 84ac3c71109811da751f0ef2d72108075938f094
parent 7498 a52cfb552cfd8b78dd5d09231cf6fb92364e85a0
child 12663 9f4f979d34f74bf898bd2a514695fa589421546e
permissions -rw-r--r--
Bug 757018 - upgrade license to MPL 2.

<?xml version="1.0"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

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

<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>

<!DOCTYPE overlay [

<!ENTITY % navDTD SYSTEM "chrome://navigator/locale/navigator.dtd">
%navDTD;

]>

<overlay id="viewSourceOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script type="application/javascript"
          src="chrome://communicator/content/viewSourceOverlay.js"/>
  <script type="application/javascript"
          src="chrome://communicator/content/findUtils.js"/>

  <window id="viewSource">
    <commandset id="tasksCommands"/>
    <command id="cmd_newNavigator"/>
    <command id="cmd_newEditor"/>
    <command id="cmd_editPage" oncommand="ViewSourceEditPage();"/>
    <command id="cmd_find"
             oncommand="findInPage(getFindInstData());"/>
    <command id="cmd_findAgain"
             oncommand="findAgainInPage(getFindInstData(), false);"/>
    <command id="cmd_findPrevious"
             oncommand="findAgainInPage(getFindInstData(), true);"/>
    <stringbundle id="findBundle"
                  src="chrome://global/locale/finddialog.properties"/>
  </window>

  <keyset id="viewSourceKeys">
    <keyset id="tasksKeys"/>
    <key id="key_newBlankPage"/>
    <key id="key_newNavigator"/>
    <key id="key_editPage" key="&editPageCmd.commandkey;"
         command="Browser:EditPage" modifiers="accel"/>
  </keyset>

  <menubar id="viewSource-main-menubar"
           class="chromeclass-menubar"
           grippytooltiptext="&menuBar.tooltip;">
    <menu id="menu_file">
      <menupopup id="filemenu-popup">
        <menu id="menu_New" position="1">
          <menupopup id="menu_NewPopup">
            <menuitem id="menu_newNavigator"/>
            <menuitem id="menu_newEditor"/>
          </menupopup>
        </menu>
        <menuitem id="menu_editPage" insertafter="menu_savePage"
                  key="key_editPage" command="cmd_editPage"
                  label="&editPageCmd.label;"
                  accesskey="&editPageCmd.accesskey;"/>
        <menuseparator insertbefore="menu_pageSetup"/>
      </menupopup>
    </menu>

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

    <!-- window menu filled from tasksOverlay -->
    <menu id="windowMenu"/>

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

</overlay>