mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
182 lines
8.5 KiB
XML
182 lines
8.5 KiB
XML
<?xml version="1.0"?>
|
|
<!-- The contents of this file are subject to the Netscape 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/NPL/
|
|
-
|
|
- 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 Netscape are
|
|
- Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
- Rights Reserved.
|
|
-
|
|
- Contributor(s):
|
|
- Blake Ross <blakeross@telocity.com>
|
|
-->
|
|
<!DOCTYPE window SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
|
|
<overlay id="contentAreaContextOverlay"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<!-- Context menu -->
|
|
<!-- XXX: Replace strres.js when nsContextMenu.js is converted -->
|
|
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
|
<script type="application/x-javascript">
|
|
// Global variable that holds the nsContextMenu instance.
|
|
var gContextMenu = null;
|
|
</script>
|
|
<script type="application/x-javascript" src="chrome://communicator/content/nsContextMenu.js"/>
|
|
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
|
|
|
|
<popupset id="contentAreaContextSet">
|
|
<!-- This is a generic context menu for a content area. It contains
|
|
each and every possible menu choice. The appropriate items are
|
|
hidden/shown upon display, based on what the user has clicked-on.
|
|
-->
|
|
<popup id="contentAreaContextMenu"
|
|
onpopupshowing="gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
|
|
onpopuphiding="gContextMenu = null;">
|
|
<!-- Open ==================================== -->
|
|
<menuitem id="context-openlink"
|
|
label="&openLinkCmd.label;"
|
|
accesskey="&openLinkCmd.accesskey;"
|
|
oncommand="gContextMenu.openLink();"/>
|
|
<menuitem id="context-openlinkintab"
|
|
label="&openLinkCmdInTab.label;"
|
|
accesskey="&openLinkCmdInTab.accesskey;"
|
|
oncommand="gContextMenu.openLinkInTab();"/>
|
|
<menuitem id="context-openframe"
|
|
label="&openFrameCmd.label;"
|
|
accesskey="&openFrameCmd.accesskey;"
|
|
oncommand="gContextMenu.openFrame();"/>
|
|
<menuitem id="context-showonlythisframe"
|
|
label="&showOnlyThisFrameCmd.label;"
|
|
accesskey="&showOnlyThisFrameCmd.accesskey;"
|
|
oncommand="gContextMenu.showOnlyThisFrame();"/>
|
|
<menuseparator id="context-sep-open"/>
|
|
<!-- Navigation ============================== -->
|
|
<menuitem id="context-back"
|
|
label="&goBackCmd.label;"
|
|
accesskey="&goBackCmd.accesskey;"
|
|
oncommand="BrowserBack()"/>
|
|
<menuitem id="context-forward"
|
|
label="&goForwardCmd.label;"
|
|
accesskey="&goForwardCmd.accesskey;"
|
|
oncommand="BrowserForward()"/>
|
|
<menuitem id="context-reload"
|
|
label="&reloadCmd.label;"
|
|
accesskey="&reloadCmd.accesskey;"
|
|
oncommand="BrowserReload();"/>
|
|
<menuitem id="context-reload-frame"
|
|
label="&reloadFrameCmd.label;"
|
|
accesskey="&reloadFrameCmd.accesskey;"
|
|
oncommand="gContextMenu.reloadFrame();"/>
|
|
<menuitem id="context-stop"
|
|
label="&stopCmd.label;" disabled="true"
|
|
oncommand="BrowserStop();"/>
|
|
<menuseparator id="context-sep-navigation"/>
|
|
<!-- View ==================================== -->
|
|
<menuitem id="context-viewsource"
|
|
label="&viewPageSourceCmd.label;"
|
|
accesskey="&viewPageSourceCmd.accesskey;"
|
|
oncommand="BrowserViewSource();"/>
|
|
<menuitem id="context-viewframesource"
|
|
label="&viewFrameSourceCmd.label;"
|
|
accesskey="&viewFrameSourceCmd.accesskey;"
|
|
oncommand="gContextMenu.viewFrameSource();"/>
|
|
<menuitem id="context-viewinfo"
|
|
label="&viewPageInfoCmd.label;"
|
|
accesskey="&viewPageInfoCmd.accesskey;"
|
|
oncommand="gContextMenu.viewInfo();"/>
|
|
<menuitem id="context-viewframeinfo"
|
|
label="&viewFrameInfoCmd.label;"
|
|
accesskey="&viewFrameInfoCmd.accesskey;"
|
|
oncommand="gContextMenu.viewFrameInfo();"/>
|
|
<menuitem id="context-viewimage"
|
|
label="&viewImageCmd.label;"
|
|
accesskey="&viewImageCmd.accesskey;"
|
|
oncommand="gContextMenu.viewImage();"/>
|
|
<menuitem id="context-viewbgimage"
|
|
label="&viewBGImageCmd.label;"
|
|
accesskey="&viewBGImageCmd.accesskey;"
|
|
oncommand="gContextMenu.viewBGImage();"/>
|
|
<menuseparator id="context-sep-view"/>
|
|
<!-- Misc ==================================== -->
|
|
<menuitem id="context-bookmarkpage"
|
|
label="&bookmarkPageCmd.label;"
|
|
accesskey="&bookmarkPageCmd.accesskey;"
|
|
oncommand="BookmarksUtils.addBookmarkForBrowser(document.getElementById('content').webNavigation, true);"/>
|
|
<menuitem id="context-bookmarklink"
|
|
label="&bookmarkLinkCmd.label;"
|
|
accesskey="&bookmarkLinkCmd.accesskey;"
|
|
oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL(),
|
|
gContextMenu.linkText(),
|
|
undefined, true);"/>
|
|
<menuitem id="context-searchselect"
|
|
oncommand="OpenSearch('internet',false, gContextMenu.searchSelected());"/>
|
|
|
|
<menuseparator id="context-sep-bookmark"/>
|
|
<!-- Save ==================================== -->
|
|
<menuitem id="context-savepage"
|
|
label="&savePageCmd.label;"
|
|
accesskey="&savePageCmd.accesskey;"
|
|
oncommand="gContextMenu.savePage();"/>
|
|
<menuitem id="context-saveframe"
|
|
label="&saveFrameCmd.label;"
|
|
accesskey="&saveFrameCmd.accesskey;"
|
|
oncommand="gContextMenu.saveFrame();"/>
|
|
<menuitem id="context-savelink"
|
|
label="&saveLinkCmd.label;"
|
|
accesskey="&saveLinkCmd.accesskey;"
|
|
oncommand="gContextMenu.saveLink();"/>
|
|
<menuitem id="context-saveimage"
|
|
accesskey="&saveImageCmd.accesskey;"
|
|
oncommand="gContextMenu.saveImage();"/>
|
|
<menuseparator id="context-sep-save"/>
|
|
<!-- Application Integration ================= -->
|
|
<menuseparator id="context-sep-apps"/>
|
|
<!-- Clipboard =============================== -->
|
|
<menuitem id="context-selectall"
|
|
label="&selectAllCmd.label;"
|
|
accesskey="&selectAllCmd.accesskey;"
|
|
command="cmd_selectAll"/>
|
|
<menuitem id="context-cut"
|
|
label="&cutCmd.label;"
|
|
accesskey="&cutCmd.accesskey;"
|
|
command="cmd_cut"/>
|
|
<menuitem id="context-copy"
|
|
label="©Cmd.label;"
|
|
accesskey="©Cmd.accesskey;"
|
|
command="cmd_copy"/>
|
|
<menuitem id="context-paste"
|
|
label="&pasteCmd.label;"
|
|
accesskey="&pasteCmd.accesskey;"
|
|
command="cmd_paste"/>
|
|
<menuitem id="context-copyemail"
|
|
label="©EmailCmd.label;"
|
|
accesskey="©EmailCmd.accesskey;"
|
|
oncommand="gContextMenu.copyEmail();"/>
|
|
<menuitem id="context-copylink"
|
|
label="©LinkCmd.label;"
|
|
accesskey="©LinkCmd.accesskey;"
|
|
command="cmd_copyLink"/>
|
|
<menuitem id="context-copyimage"
|
|
label="©ImageCmd.label;"
|
|
accesskey="©ImageCmd.accesskey;"
|
|
command="cmd_copyImageLocation"/>
|
|
<menuseparator id="context-sep-clip"/>
|
|
<!-- Metadata ================================ -->
|
|
<menuitem id="context-metadata"
|
|
label="&metadataCmd.label;"
|
|
accesskey="&metadataCmd.accesskey;"
|
|
oncommand="gContextMenu.showMetadata();"/>
|
|
</popup>
|
|
</popupset>
|
|
</overlay>
|