2003-12-03 08:37:53 +03:00
|
|
|
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2005-02-01 20:36:54 +03:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
2003-12-03 08:37:53 +03:00
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2005-02-01 20:36:54 +03:00
|
|
|
#
|
2003-12-03 08:37:53 +03:00
|
|
|
# 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/
|
2005-02-01 20:36:54 +03:00
|
|
|
#
|
2003-12-03 08:37:53 +03:00
|
|
|
# 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.
|
2005-02-01 20:36:54 +03:00
|
|
|
#
|
2003-12-03 08:37:53 +03:00
|
|
|
# The Original Code is Mozilla.org Code.
|
2005-02-01 20:36:54 +03:00
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
2003-12-03 08:37:53 +03:00
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
2005-02-01 20:36:54 +03:00
|
|
|
#
|
2003-12-03 08:37:53 +03:00
|
|
|
# Contributor(s):
|
2005-02-01 20:36:54 +03:00
|
|
|
#
|
2003-12-03 08:37:53 +03:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either 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.
|
2005-02-01 20:36:54 +03:00
|
|
|
#
|
2003-12-03 08:37:53 +03:00
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
<popup id="contentAreaContextMenu"
|
|
|
|
onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
|
2006-04-27 03:37:45 +04:00
|
|
|
onpopuphiding="if (event.target == this) { gContextMenu = null; }">
|
2005-12-05 21:18:11 +03:00
|
|
|
<menuitem id="spell-no-suggestions"
|
|
|
|
disabled="true"
|
|
|
|
label="&spellNoSuggestions.label;"/>
|
|
|
|
<menuseparator id="spell-suggestions-separator"/>
|
|
|
|
<menuitem id="spell-add-to-dictionary"
|
|
|
|
label="&spellAddToDictionary.label;"
|
|
|
|
accesskey="&spellAddToDictionary.accesskey;"
|
|
|
|
oncommand="InlineSpellCheckerUI.addToDictionary();"/>
|
|
|
|
<menuitem id="spell-check-enabled"
|
|
|
|
label="&spellEnable.label;"
|
2006-02-10 23:28:50 +03:00
|
|
|
type="checkbox"
|
2005-12-05 21:18:11 +03:00
|
|
|
accesskey="&spellEnable.accesskey;"
|
|
|
|
oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
|
|
|
|
<menu id="spell-dictionaries"
|
|
|
|
label="&spellDictionaries.label;"
|
|
|
|
accesskey="&spellDictionaries.accesskey;">
|
|
|
|
<menupopup id="spell-dictionaries-menu">
|
|
|
|
<menuseparator id="spell-language-separator"/>
|
|
|
|
<menuitem id="spell-add-dictionaries"
|
|
|
|
label="&spellAddDictionaries.label;"
|
2006-05-05 00:36:16 +04:00
|
|
|
accesskey="&spellAddDictionaries.accesskey;"
|
|
|
|
oncommand="gContextMenu.addDictionaries();"/>
|
2005-12-05 21:18:11 +03:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<menuseparator id="spell-separator"/>
|
2003-12-03 08:37:53 +03:00
|
|
|
<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();"/>
|
|
|
|
<menuseparator id="context-sep-open"/>
|
|
|
|
<menuitem id="context-bookmarklink"
|
|
|
|
label="&bookmarkLinkCmd.label;"
|
|
|
|
accesskey="&bookmarkLinkCmd.accesskey;"
|
2005-08-13 21:36:09 +04:00
|
|
|
oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL,
|
2003-12-03 08:37:53 +03:00
|
|
|
gContextMenu.linkText());"/>
|
|
|
|
<menuitem id="context-savelink"
|
|
|
|
label="&saveLinkCmd.label;"
|
|
|
|
accesskey="&saveLinkCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.saveLink();"/>
|
|
|
|
<menuitem id="context-sendlink"
|
|
|
|
label="&sendLinkCmd.label;"
|
|
|
|
accesskey="&sendLinkCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.sendLink();"/>
|
|
|
|
<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-viewimage"
|
|
|
|
label="&viewImageCmd.label;"
|
|
|
|
accesskey="&viewImageCmd.accesskey;"
|
2004-06-24 02:54:12 +04:00
|
|
|
oncommand="gContextMenu.viewImage(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
2005-04-22 00:53:03 +04:00
|
|
|
#ifdef CONTEXT_COPY_IMAGE_CONTENTS
|
2004-02-17 07:11:54 +03:00
|
|
|
<menuitem id="context-copyimage-contents"
|
|
|
|
label="©ImageContentsCmd.label;"
|
|
|
|
accesskey="©ImageContentsCmd.accesskey;"
|
|
|
|
command="cmd_copyImageContents"/>
|
|
|
|
#endif
|
2003-12-03 08:37:53 +03:00
|
|
|
<menuitem id="context-copyimage"
|
|
|
|
label="©ImageCmd.label;"
|
|
|
|
accesskey="©ImageCmd.accesskey;"
|
|
|
|
command="cmd_copyImageLocation"/>
|
|
|
|
<menuseparator id="context-sep-copyimage"/>
|
|
|
|
<menuitem id="context-saveimage"
|
|
|
|
label="&saveImageCmd.label;"
|
|
|
|
accesskey="&saveImageCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.saveImage();"/>
|
|
|
|
<menuitem id="context-sendimage"
|
|
|
|
label="&sendImageCmd.label;"
|
|
|
|
accesskey="&sendImageCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.sendImage();"/>
|
2005-06-23 06:25:06 +04:00
|
|
|
<menuitem id="context-setDesktopBackground"
|
|
|
|
label="&setDesktopBackgroundCmd.label;"
|
|
|
|
accesskey="&setDesktopBackgroundCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.setDesktopBackground();"/>
|
2003-12-03 08:37:53 +03:00
|
|
|
|
|
|
|
<!--XXXBlake XUL sucks! We need autocheck for menuitems. -->
|
|
|
|
<menuitem id="context-blockimage" class="menuitem-iconic"
|
2004-02-17 07:11:54 +03:00
|
|
|
accesskey="&blockImageCmd.accesskey;"
|
2003-12-03 08:37:53 +03:00
|
|
|
oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') != 'true');"/>
|
|
|
|
<menuitem id="context-back"
|
|
|
|
label="&backCmd.label;"
|
|
|
|
accesskey="&backCmd.accesskey;"
|
|
|
|
command="Browser:Back"/>
|
|
|
|
<menuitem id="context-forward"
|
|
|
|
label="&forwardCmd.label;"
|
|
|
|
accesskey="&forwardCmd.accesskey;"
|
|
|
|
command="Browser:Forward"/>
|
|
|
|
<menuitem id="context-reload"
|
|
|
|
label="&reloadCmd.label;"
|
|
|
|
accesskey="&reloadCmd.accesskey;"
|
2005-02-27 20:59:38 +03:00
|
|
|
command="Browser:Reload"/>
|
2003-12-03 08:37:53 +03:00
|
|
|
<menuitem id="context-stop"
|
|
|
|
label="&stopCmd.label;"
|
|
|
|
accesskey="&stopCmd.accesskey;"
|
|
|
|
command="Browser:Stop"/>
|
|
|
|
<menuseparator id="context-sep-stop"/>
|
|
|
|
<menuitem id="context-bookmarkpage"
|
|
|
|
label="&bookmarkPageCmd.label;"
|
|
|
|
accesskey="&bookmarkPageCmd.accesskey;"
|
2006-03-09 05:08:45 +03:00
|
|
|
#ifdef MOZ_PLACES
|
|
|
|
command="Browser:AddBookmarkAs"/>
|
|
|
|
#else
|
2003-12-03 08:37:53 +03:00
|
|
|
oncommand="addBookmarkAs(document.getElementById('content'));"/>
|
2006-03-09 05:08:45 +03:00
|
|
|
#endif
|
2003-12-03 08:37:53 +03:00
|
|
|
<menuitem id="context-savepage"
|
|
|
|
label="&savePageCmd.label;"
|
2006-05-16 00:07:25 +04:00
|
|
|
accesskey="&savePageCmd.accesskey2;"
|
2005-01-28 19:06:56 +03:00
|
|
|
oncommand="saveDocument(window.content.document);"/>
|
2003-12-03 08:37:53 +03:00
|
|
|
<menuitem id="context-sendpage"
|
|
|
|
label="&sendPageCmd.label;"
|
|
|
|
accesskey="&sendPageCmd.accesskey;"
|
|
|
|
command="Browser:SendLink"/>
|
|
|
|
<menuseparator id="context-sep-viewbgimage"/>
|
|
|
|
<menuitem id="context-viewbgimage"
|
|
|
|
label="&viewBGImageCmd.label;"
|
|
|
|
accesskey="&viewBGImageCmd.accesskey;"
|
2004-06-24 02:54:12 +04:00
|
|
|
oncommand="gContextMenu.viewBGImage(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
2003-12-03 08:37:53 +03:00
|
|
|
<menuitem id="context-undo"
|
|
|
|
label="&undoCmd.label;"
|
|
|
|
accesskey="&undoCmd.accesskey;"
|
|
|
|
command="cmd_undo"/>
|
|
|
|
<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"/>
|
2004-04-10 09:04:20 +04:00
|
|
|
<menuitem id="context-keywordfield"
|
|
|
|
label="&keywordfield.label;"
|
|
|
|
accesskey="&keywordfield.accesskey;"
|
|
|
|
oncommand="AddKeywordForSearchField();"/>
|
2003-12-03 08:37:53 +03:00
|
|
|
<menuitem id="context-searchselect"
|
|
|
|
accesskey="&search.accesskey;"
|
2006-03-17 10:16:00 +03:00
|
|
|
oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
|
2003-12-03 08:37:53 +03:00
|
|
|
<menuseparator id="frame-sep"/>
|
|
|
|
<menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<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();"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&reloadFrameCmd.label;"
|
|
|
|
accesskey="&reloadFrameCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.reloadFrame();"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&bookmarkFrameCmd.label;"
|
|
|
|
accesskey="&bookmarkFrameCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.addBookmarkForFrame();"/>
|
|
|
|
<menuitem label="&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;"
|
2005-01-28 19:06:56 +03:00
|
|
|
oncommand="BrowserViewSourceOfDocument(content.document);"/>
|
2003-12-03 08:37:53 +03:00
|
|
|
<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();"/>
|
2004-11-30 11:23:02 +03:00
|
|
|
<menuseparator hidden="true" id="context-sep-bidi"/>
|
|
|
|
<menuitem hidden="true" id="context-bidi-text-direction-toggle"
|
|
|
|
label="&bidiSwitchTextDirectionItem.label;"
|
|
|
|
accesskey="&bidiSwitchTextDirectionItem.accesskey;"
|
2005-01-26 04:40:30 +03:00
|
|
|
command="cmd_switchTextDirection"/>
|
2004-11-30 11:23:02 +03:00
|
|
|
<menuitem hidden="true" id="context-bidi-page-direction-toggle"
|
|
|
|
label="&bidiSwitchPageDirectionItem.label;"
|
|
|
|
accesskey="&bidiSwitchPageDirectionItem.accesskey;"
|
2005-08-09 19:51:13 +04:00
|
|
|
oncommand="SwitchDocumentDirection(window.content);"/>
|
2003-12-03 08:37:53 +03:00
|
|
|
</popup>
|