mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
2bde9ef865
r=bz r=biesi sr=neil
266 lines
13 KiB
XML
266 lines
13 KiB
XML
<?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 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):
|
|
- Blake Ross <blakeross@telocity.com>
|
|
-
|
|
- 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 ***** -->
|
|
<!DOCTYPE overlay 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;
|
|
|
|
// Global variable that caches the default search engine info
|
|
var gDefaultEngine = 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="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
|
|
onpopuphiding="if (event.target == this) gContextMenu = null;">
|
|
<menuitem id="popupwindow-reject"
|
|
label="&popupWindowRejectCmd.label;"
|
|
accesskey="&popupWindowRejectCmd.accesskey;"
|
|
oncommand="gContextMenu.rejectPopupWindows(event.shiftKey);"/>
|
|
<menuitem id="popupwindow-allow"
|
|
label="&popupWindowAllowCmd.label;"
|
|
accesskey="&popupWindowAllowCmd.accesskey;"
|
|
oncommand="gContextMenu.allowPopupWindows();"/>
|
|
<menuseparator id="context-sep-popup"/>
|
|
|
|
<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(event.shiftKey);"/>
|
|
<menuseparator id="context-sep-open"/>
|
|
<menuitem id="context-bookmarklink"
|
|
label="&bookmarkLinkCmd.label;"
|
|
accesskey="&bookmarkLinkCmd.accesskey;"
|
|
oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL(),
|
|
gContextMenu.linkText(),
|
|
undefined, false);"/>
|
|
<menuitem id="context-savelink"
|
|
valueSaveAs="&saveLinkAsCmd.label;"
|
|
valueSave="&saveLinkCmd.label;"
|
|
accesskey="&saveLinkCmd.accesskey;"
|
|
oncommand="gContextMenu.saveLink();"/>
|
|
<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"/>
|
|
<menuseparator id="context-sep-copylink"/>
|
|
<menuitem id="context-fitimage"
|
|
type="checkbox"
|
|
label="&fitImageCmd.label;"
|
|
accesskey="&fitImageCmd.accesskey;"
|
|
oncommand="gContextMenu.toggleImageSize();"/>
|
|
<menuitem id="context-reloadimage"
|
|
label="&reloadImageCmd.label;"
|
|
accesskey="&reloadImageCmd.accesskey;"
|
|
oncommand="gContextMenu.reloadImage();"/>
|
|
<menuitem id="context-viewimage"
|
|
label="&viewImageCmd.label;"
|
|
accesskey="&viewImageCmd.accesskey;"
|
|
oncommand="gContextMenu.viewImage();"/>
|
|
<menuitem id="context-copyimage"
|
|
label="©ImageCmd.label;"
|
|
accesskey="©ImageCmd.accesskey;"
|
|
command="cmd_copyImage"/>
|
|
<menuseparator id="context-sep-copyimage"/>
|
|
<menuitem id="context-saveimage"
|
|
valueSaveAs="&saveImageAsCmd.label;"
|
|
valueSave="&saveImageCmd.label;"
|
|
accesskey="&saveImageCmd.accesskey;"
|
|
oncommand="gContextMenu.saveImage();"/>
|
|
<menuitem id="context-setWallpaper"
|
|
label="&setWallpaperCmd.label;"
|
|
accesskey="&setWallpaperCmd.accesskey;"
|
|
oncommand="gContextMenu.setWallpaper();"/>
|
|
<menuseparator id="context-sep-image"/>
|
|
<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-stop"
|
|
label="&stopCmd.label;"
|
|
accesskey="&stopCmd.accesskey;"
|
|
disabled="true"
|
|
oncommand="BrowserStop();"/>
|
|
<menuseparator id="context-sep-stop"/>
|
|
<menuitem id="context-bookmarkpage"
|
|
label="&bookmarkPageCmd.label;"
|
|
accesskey="&bookmarkPageCmd.accesskey;"
|
|
oncommand="gContextMenu.addBookmark();"/>
|
|
<menuitem id="context-savepage"
|
|
valueSaveAs="&savePageAsCmd.label;"
|
|
valueSave="&savePageCmd.label;"
|
|
accesskey="&savePageCmd.accesskey;"
|
|
oncommand="saveDocument(window.content.document);"/>
|
|
<menuseparator id="context-sep-viewbgimage"/>
|
|
<menuitem id="context-viewbgimage"
|
|
label="&viewBGImageCmd.label;"
|
|
accesskey="&viewBGImageCmd.accesskey;"
|
|
oncommand="gContextMenu.viewBGImage();"/>
|
|
<menuitem id="context-undo"
|
|
label="&undoCmd.label;"
|
|
accesskey="&undoCmd.accesskey;"
|
|
command="cmd_undo"/>
|
|
<menuitem id="context-redo"
|
|
label="&redoCmd.label;"
|
|
accesskey="&redoCmd.accesskey;"
|
|
command="cmd_redo"/>
|
|
<menuseparator id="context-sep-undo"/>
|
|
<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-delete"
|
|
label="&deleteCmd.label;"
|
|
accesskey="&deleteCmd.accesskey;"
|
|
command="cmd_delete"/>
|
|
<menuseparator id="context-sep-paste"/>
|
|
<menuitem id="context-selectall"
|
|
label="&selectAllCmd.label;"
|
|
accesskey="&selectAllCmd.accesskey;"
|
|
command="cmd_selectAll"/>
|
|
<menuseparator id="context-sep-selectall"/>
|
|
<menuitem id="context-searchselect"
|
|
accesskey="&search.accesskey;"
|
|
oncommand="OpenSearch('internet', gContextMenu.searchSelected(), true, event.shiftKey);"/>
|
|
<menuseparator id="frame-sep"/>
|
|
<menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
|
|
<menupopup id="frame_popup">
|
|
<menuitem label="&showOnlyThisFrameCmd.label;"
|
|
accesskey="&showOnlyThisFrameCmd.accesskey;"
|
|
oncommand="gContextMenu.showOnlyThisFrame();"/>
|
|
<menuitem label="&openFrameCmd.label;"
|
|
accesskey="&openFrameCmd.accesskey;"
|
|
oncommand="gContextMenu.openFrame();"/>
|
|
<menuitem label="&openFrameCmdInTab.label;"
|
|
accesskey="&openFrameCmdInTab.accesskey;"
|
|
oncommand="gContextMenu.openFrameInTab(event.shiftKey);"/>
|
|
<menuseparator/>
|
|
<menuitem id="context-reload-frame"
|
|
label="&reloadFrameCmd.label;"
|
|
accesskey="&reloadFrameCmd.accesskey;"
|
|
oncommand="gContextMenu.reloadFrame();"/>
|
|
<menuseparator/>
|
|
<menuitem label="&bookmarkFrameCmd.label;"
|
|
accesskey="&bookmarkFrameCmd.accesskey;"
|
|
oncommand="gContextMenu.addBookmarkForFrame();"/>
|
|
<menuitem id="saveframeas"
|
|
valueSaveAs="&saveFrameAsCmd.label;"
|
|
valueSave="&saveFrameCmd.label;"
|
|
accesskey="&saveFrameCmd.accesskey;"
|
|
oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
|
|
<menuseparator/>
|
|
<menuitem label="&viewFrameSourceCmd.label;"
|
|
accesskey="&viewFrameSourceCmd.accesskey;"
|
|
oncommand="gContextMenu.viewFrameSource();"/>
|
|
<menuitem label="&viewFrameInfoCmd.label;"
|
|
accesskey="&viewFrameInfoCmd.accesskey;"
|
|
oncommand="gContextMenu.viewFrameInfo();"/>
|
|
</menupopup>
|
|
</menu>
|
|
<menuseparator id="context-sep-properties"/>
|
|
<menuitem id="context-viewpartialsource-selection"
|
|
label="&viewPartialSourceForSelectionCmd.label;"
|
|
accesskey="&viewPartialSourceCmd.accesskey;"
|
|
oncommand="gContextMenu.viewPartialSource('selection');"/>
|
|
<menuitem id="context-viewpartialsource-mathml"
|
|
label="&viewPartialSourceForMathMLCmd.label;"
|
|
accesskey="&viewPartialSourceCmd.accesskey;"
|
|
oncommand="gContextMenu.viewPartialSource('mathml');"/>
|
|
<menuitem id="context-viewsource"
|
|
label="&viewPageSourceCmd.label;"
|
|
accesskey="&viewPageSourceCmd.accesskey;"
|
|
observes="isImage"
|
|
oncommand="BrowserViewSourceOfDocument(content.document);"/>
|
|
<menuitem id="context-viewinfo"
|
|
label="&viewPageInfoCmd.label;"
|
|
accesskey="&viewPageInfoCmd.accesskey;"
|
|
oncommand="gContextMenu.viewInfo();"/>
|
|
<menuitem id="context-metadata"
|
|
label="&metadataCmd.label;"
|
|
accesskey="&metadataCmd.accesskey;"
|
|
oncommand="gContextMenu.showMetadata();"/>
|
|
<menuseparator hidden="true" id="context-sep-bidi"/>
|
|
<menuitem hidden="true" id="context-bidi-text-direction-toggle"
|
|
label="&bidiSwitchTextDirectionItem.label;"
|
|
accesskey="&bidiSwitchTextDirectionItem.accesskey;"
|
|
command="cmd_switchTextDirection"/>
|
|
<menuitem hidden="true" id="context-bidi-page-direction-toggle"
|
|
label="&bidiSwitchPageDirectionItem.label;"
|
|
accesskey="&bidiSwitchPageDirectionItem.accesskey;"
|
|
oncommand="SwitchDocumentDirection(window.content);"/>
|
|
</popup>
|
|
</popupset>
|
|
</overlay>
|