<?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) 2000 Netscape Communications Corporation. All
   - Rights Reserved.
   - 
   - Contributor(s):
  -->

<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>

<!DOCTYPE window SYSTEM "chrome://editor/locale/editorOverlay.dtd">

<overlay id="ComposerContextMenuOverlay"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script language="JavaScript" src="chrome://navigator/content/nsContextMenu.js"/>
<script language="JavaScript" src="chrome://editor/content/EditorContextMenu.js"/>

<popupset id="editorContentContextSet">
 <popup id="editorContentContext"   
   oncreate="return fillContentContextMenu(this);" 
	 ondestroy="cleanupContextMenu(this); contextMenu.onDestroy(); contextMenu = null;">
		<menuitem id="menu_undo_cm" observes="cmd_undo"/>
		<menuitem id="menu_redo_cm" observes="cmd_redo"/>
		<menuseparator id="undoredo-separator"/>
		<menuitem id="menu_cut_cm" observes="cmd_cut"/>
		<menuitem id="menu_copy_cm" observes="cmd_copy"/>
		<menuitem id="menu_paste_cm" observes="cmd_paste"/>
		<menuitem id="menu_delete_cm" observes="cmd_delete"/>
		<menuseparator id="menu_edit-separator"/>
    <menuitem id="menu_selectAll_cm" observes="cmd_selectAll"/>
		<menuseparator id="menu_selectAll-separator"/>
    
    <menuitem id="menu_preview_cm" observes="cmd_preview" value="&previewCmd.label;"/>
    <menuitem id="removeLinksMenuitem_cm" value="&removeLinksCmd.label;" 
              accesskey="&formatremovelinks.accesskey;" oncommand="EditorRemoveLinks()"/>
		<menuseparator id="menu_link-separator"/>
 <!--  
    <menuitem id="menu_openURL_cm" value="open url in Composer"/>
    <menuitem id="menu_addBookmark_cm" value="add bookmark"/>
    <menuitem id="menu_copyURL_cm" value="copy link location"/>
		
		<menuitem id="menu_saveImageAs_cm" value="save image as"/>
		<menuitem id="menu_createLinkOnImage_cm" value="create link using image"/>
		<menuseparator id="menu_image-separator"/>
 -->
		
		<menu id="tableMenu_cm" value="&tableMenu.label;"/>
		<menuitem id="tableProperties_cm" value="&tableProperties.label;"/>
		<menuseparator id="tableMenu-separator"/>
		
		<menuitem id="objectProperties_cm" value="&properties.label;" observes="cmd_objectProperties"/>
 </popup>
</popupset>

</overlay>