diff options
Diffstat (limited to '')
-rw-r--r-- | comm/suite/base/content/viewSourceOverlay.xul | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/comm/suite/base/content/viewSourceOverlay.xul b/comm/suite/base/content/viewSourceOverlay.xul new file mode 100644 index 0000000000..f5ede156f0 --- /dev/null +++ b/comm/suite/base/content/viewSourceOverlay.xul @@ -0,0 +1,81 @@ +<?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://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 src="chrome://communicator/content/viewSourceOverlay.js"/> + <script src="chrome://communicator/content/findUtils.js"/> + + <window id="viewSource"> + <commandset id="tasksCommands"/> + <command id="cmd_newNavigator"/> + <command id="cmd_newPrivateWindow"/> + <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_newPrivateWindow"/> + <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="menu_FilePopup"> + <menu id="menu_New" position="1"> + <menupopup id="menu_NewPopup"> + <menuitem id="menu_newNavigator"/> + <menuitem id="menu_newPrivateWindow"/> + <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> |