forked from mirrors/gecko-dev
		
	
		
			
				
	
	
		
			337 lines
		
	
	
	
		
			16 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			337 lines
		
	
	
	
		
			16 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 | |
| # ***** 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.org Code.
 | |
| #
 | |
| # The Initial Developer of the Original Code is
 | |
| # Netscape Communications Corporation.
 | |
| # Portions created by the Initial Developer are Copyright (C) 2001
 | |
| # the Initial Developer. All Rights Reserved.
 | |
| #
 | |
| # Contributor(s):
 | |
| #   Ehsan Akhgari <ehsan.akhgari@gmail.com>
 | |
| #
 | |
| # 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.
 | |
| #
 | |
| # ***** END LICENSE BLOCK *****
 | |
| 
 | |
|       <menuitem id="spell-no-suggestions"
 | |
|                 disabled="true"
 | |
|                 label="&spellNoSuggestions.label;"/>
 | |
|       <menuitem id="spell-add-to-dictionary"
 | |
|                 label="&spellAddToDictionary.label;"
 | |
|                 accesskey="&spellAddToDictionary.accesskey;"
 | |
|                 oncommand="InlineSpellCheckerUI.addToDictionary();"/>
 | |
|       <menuseparator id="spell-suggestions-separator"/>
 | |
|       <menuitem id="context-openlinkincurrent"
 | |
|                 label="&openLinkCmdInCurrent.label;"
 | |
|                 accesskey="&openLinkCmdInCurrent.accesskey;"
 | |
|                 oncommand="gContextMenu.openLinkInCurrent();"/>
 | |
|       <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="&bookmarkThisLinkCmd.label;"
 | |
|                 accesskey="&bookmarkThisLinkCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.bookmarkLink();"/>
 | |
|       <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;"
 | |
|                 oncommand="goDoCommand('cmd_copyLink');"/>
 | |
|       <menuseparator id="context-sep-copylink"/>
 | |
|       <menuitem id="context-media-play"
 | |
|                 label="&mediaPlay.label;"
 | |
|                 accesskey="&mediaPlay.accesskey;"
 | |
|                 oncommand="gContextMenu.mediaCommand('play');"/>
 | |
|       <menuitem id="context-media-pause"
 | |
|                 label="&mediaPause.label;"
 | |
|                 accesskey="&mediaPause.accesskey;"
 | |
|                 oncommand="gContextMenu.mediaCommand('pause');"/>
 | |
|       <menuitem id="context-media-mute"
 | |
|                 label="&mediaMute.label;"
 | |
|                 accesskey="&mediaMute.accesskey;"
 | |
|                 oncommand="gContextMenu.mediaCommand('mute');"/>
 | |
|       <menuitem id="context-media-unmute"
 | |
|                 label="&mediaUnmute.label;"
 | |
|                 accesskey="&mediaUnmute.accesskey;"
 | |
|                 oncommand="gContextMenu.mediaCommand('unmute');"/>
 | |
|       <menuitem id="context-media-showcontrols"
 | |
|                 label="&mediaShowControls.label;"
 | |
|                 accesskey="&mediaShowControls.accesskey;"
 | |
|                 oncommand="gContextMenu.mediaCommand('showcontrols');"/>
 | |
|       <menuitem id="context-media-hidecontrols"
 | |
|                 label="&mediaHideControls.label;"
 | |
|                 accesskey="&mediaHideControls.accesskey;"
 | |
|                 oncommand="gContextMenu.mediaCommand('hidecontrols');"/>
 | |
|       <menuseparator id="context-media-sep-commands"/>
 | |
|       <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.viewMedia(event);"
 | |
|                 onclick="checkForMiddleClick(this, event);"/>
 | |
|       <menuitem id="context-viewvideo"
 | |
|                 label="&viewVideoCmd.label;"
 | |
|                 accesskey="&viewVideoCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.viewMedia(event);"
 | |
|                 onclick="checkForMiddleClick(this, event);"/>
 | |
| #ifdef CONTEXT_COPY_IMAGE_CONTENTS
 | |
|       <menuitem id="context-copyimage-contents"
 | |
|                 label="©ImageContentsCmd.label;"
 | |
|                 accesskey="©ImageContentsCmd.accesskey;"
 | |
|                 oncommand="goDoCommand('cmd_copyImageContents');"/>
 | |
| #endif
 | |
|       <menuitem id="context-copyimage"
 | |
|                 label="©ImageCmd.label;"
 | |
|                 accesskey="©ImageCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.copyMediaLocation();"/>
 | |
|       <menuitem id="context-copyvideourl"
 | |
|                 label="©VideoURLCmd.label;"
 | |
|                 accesskey="©VideoURLCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.copyMediaLocation();"/>
 | |
|       <menuitem id="context-copyaudiourl"
 | |
|                 label="©AudioURLCmd.label;"
 | |
|                 accesskey="©AudioURLCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.copyMediaLocation();"/>
 | |
|       <menuseparator id="context-sep-copyimage"/>
 | |
|       <menuitem id="context-saveimage"
 | |
|                 label="&saveImageCmd.label;"
 | |
|                 accesskey="&saveImageCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.saveMedia();"/>
 | |
|       <menuitem id="context-sendimage"  
 | |
|                 label="&sendImageCmd.label;" 
 | |
|                 accesskey="&sendImageCmd.accesskey;" 
 | |
|                 oncommand="gContextMenu.sendMedia();"/>
 | |
|       <menuitem id="context-setDesktopBackground"
 | |
|                 label="&setDesktopBackgroundCmd.label;"
 | |
|                 accesskey="&setDesktopBackgroundCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.setDesktopBackground();"/>
 | |
|       <menuitem id="context-blockimage"
 | |
|                 type="checkbox"
 | |
|                 accesskey="&blockImageCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') == 'true');"/>
 | |
|       <menuitem id="context-savevideo"
 | |
|                 label="&saveVideoCmd.label;"
 | |
|                 accesskey="&saveVideoCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.saveMedia();"/>
 | |
|       <menuitem id="context-saveaudio"
 | |
|                 label="&saveAudioCmd.label;"
 | |
|                 accesskey="&saveAudioCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.saveMedia();"/>
 | |
|       <menuitem id="context-sendvideo"
 | |
|                 label="&sendVideoCmd.label;"
 | |
|                 accesskey="&sendVideoCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.sendMedia();"/>
 | |
|       <menuitem id="context-sendaudio"
 | |
|                 label="&sendAudioCmd.label;"
 | |
|                 accesskey="&sendAudioCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.sendMedia();"/>
 | |
|       <menuitem id="context-back"
 | |
|                 label="&backCmd.label;"
 | |
|                 accesskey="&backCmd.accesskey;"
 | |
|                 command="Browser:BackOrBackDuplicate"
 | |
|                 onclick="checkForMiddleClick(this, event);"/>
 | |
|       <menuitem id="context-forward"
 | |
|                 label="&forwardCmd.label;"
 | |
|                 accesskey="&forwardCmd.accesskey;"
 | |
|                 command="Browser:ForwardOrForwardDuplicate"
 | |
|                 onclick="checkForMiddleClick(this, event);"/>
 | |
|       <menuitem id="context-reload"
 | |
|                 label="&reloadCmd.label;"
 | |
|                 accesskey="&reloadCmd.accesskey;"
 | |
|                 command="Browser:ReloadOrDuplicate"
 | |
|                 onclick="checkForMiddleClick(this, event);"/>
 | |
|       <menuitem id="context-stop"
 | |
|                 label="&stopCmd.label;"
 | |
|                 accesskey="&stopCmd.accesskey;"
 | |
|                 command="Browser:Stop"/>
 | |
|       <menuseparator id="context-sep-stop"/>
 | |
|       <menuitem id="context-bookmarkpage"
 | |
|                 label="&bookmarkPageCmd2.label;"
 | |
|                 accesskey="&bookmarkPageCmd2.accesskey;"
 | |
|                 oncommand="gContextMenu.bookmarkThisPage();"/>
 | |
|       <menuitem id="context-savepage"
 | |
|                 label="&savePageCmd.label;"
 | |
|                 accesskey="&savePageCmd.accesskey2;"
 | |
|                 oncommand="gContextMenu.savePageAs();"/>
 | |
|       <menuitem id="context-sendpage"  
 | |
|                 label="&sendPageCmd.label;" 
 | |
|                 accesskey="&sendPageCmd.accesskey;" 
 | |
|                 oncommand="gContextMenu.sendPage();"/>
 | |
|       <menuseparator id="context-sep-viewbgimage"/>  
 | |
|       <menuitem id="context-viewbgimage"
 | |
|                 label="&viewBGImageCmd.label;"
 | |
|                 accesskey="&viewBGImageCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.viewBGImage(event);"
 | |
|                 onclick="checkForMiddleClick(this, event);"/>
 | |
|       <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"/>
 | |
|       <menuitem id="context-keywordfield"
 | |
|                 label="&keywordfield.label;"
 | |
|                 accesskey="&keywordfield.accesskey;"
 | |
|                 oncommand="AddKeywordForSearchField();"/>
 | |
|       <menuitem id="context-searchselect"
 | |
|                 oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
 | |
|       <menuseparator id="frame-sep"/>
 | |
|       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
 | |
|         <menupopup>
 | |
|           <menuitem id="context-showonlythisframe"
 | |
|                     label="&showOnlyThisFrameCmd.label;"
 | |
|                     accesskey="&showOnlyThisFrameCmd.accesskey;"
 | |
|                     oncommand="gContextMenu.showOnlyThisFrame();"/>
 | |
|           <menuitem id="context-openframe"
 | |
|                     label="&openFrameCmd.label;"
 | |
|                     accesskey="&openFrameCmd.accesskey;"
 | |
|                     oncommand="gContextMenu.openFrame();"/>
 | |
|           <menuitem id="context-openframeintab"
 | |
|                     label="&openFrameCmdInTab.label;"
 | |
|                     accesskey="&openFrameCmdInTab.accesskey;"
 | |
|                     oncommand="gContextMenu.openFrameInTab();"/>
 | |
|           <menuseparator/>
 | |
|           <menuitem id="context-reloadframe"
 | |
|                     label="&reloadFrameCmd.label;"
 | |
|                     accesskey="&reloadFrameCmd.accesskey;"
 | |
|                     oncommand="gContextMenu.reloadFrame();"/>
 | |
|           <menuseparator/>
 | |
|           <menuitem id="context-bookmarkframe"
 | |
|                     label="&bookmarkThisFrameCmd.label;"
 | |
|                     accesskey="&bookmarkThisFrameCmd.accesskey;"
 | |
|                     oncommand="gContextMenu.addBookmarkForFrame();"/>
 | |
|           <menuitem id="context-saveframe"
 | |
|                     label="&saveFrameCmd.label;"
 | |
|                     accesskey="&saveFrameCmd.accesskey;"
 | |
|                     oncommand="gContextMenu.saveFrame();"/>
 | |
|           <menuseparator/>
 | |
|           <menuitem id="context-printframe"
 | |
|                     label="&printFrameCmd.label;"
 | |
|                     accesskey="&printFrameCmd.accesskey;"
 | |
|                     oncommand="gContextMenu.printFrame();"/>
 | |
|           <menuseparator/>
 | |
|           <menuitem id="context-viewframesource"
 | |
|                     label="&viewFrameSourceCmd.label;"
 | |
|                     accesskey="&viewFrameSourceCmd.accesskey;"
 | |
|                     oncommand="gContextMenu.viewFrameSource();"
 | |
|                     observes="isFrameImage"/>
 | |
|           <menuitem id="context-viewframeinfo"
 | |
|                     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');"
 | |
|                 observes="isImage"/>
 | |
|       <menuitem id="context-viewpartialsource-mathml"
 | |
|                 label="&viewPartialSourceForMathMLCmd.label;"
 | |
|                 accesskey="&viewPartialSourceCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.viewPartialSource('mathml');"
 | |
|                 observes="isImage"/>
 | |
|       <menuitem id="context-viewsource"
 | |
|                 label="&viewPageSourceCmd.label;"
 | |
|                 accesskey="&viewPageSourceCmd.accesskey;"
 | |
|                 oncommand="BrowserViewSourceOfDocument(gContextMenu.browser.contentDocument);"
 | |
|                 observes="isImage"/>
 | |
|       <menuitem id="context-viewinfo"
 | |
|                 label="&viewPageInfoCmd.label;"
 | |
|                 accesskey="&viewPageInfoCmd.accesskey;"
 | |
|                 oncommand="gContextMenu.viewInfo();"/>
 | |
|       <menuseparator id="spell-separator"/>
 | |
|       <menuitem id="spell-check-enabled"
 | |
|                 label="&spellCheckEnable.label;"
 | |
|                 type="checkbox"
 | |
|                 accesskey="&spellCheckEnable.accesskey;"
 | |
|                 oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
 | |
|       <menuitem id="spell-add-dictionaries-main"
 | |
|                 label="&spellAddDictionaries.label;"
 | |
|                 accesskey="&spellAddDictionaries.accesskey;"
 | |
|                 oncommand="gContextMenu.addDictionaries();"/>
 | |
|       <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;"
 | |
|                         accesskey="&spellAddDictionaries.accesskey;"
 | |
|                         oncommand="gContextMenu.addDictionaries();"/>
 | |
|           </menupopup>
 | |
|       </menu>
 | |
|       <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="gContextMenu.switchPageDirection();"/>
 | 
