2008-09-03 17:35:06 +04:00
|
|
|
<?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) 2000
|
|
|
|
- the Initial Developer. All Rights Reserved.
|
|
|
|
-
|
|
|
|
- Contributor(s):
|
|
|
|
- Daniel Glazman (glazman@netscape.com)
|
|
|
|
- Charles Manske (cmanske@netscape.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://editor/locale/editorOverlay.dtd">
|
|
|
|
|
|
|
|
<overlay id="ComposerContextMenuOverlay"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
|
|
|
<script type="application/x-javascript" src="chrome://editor/content/EditorContextMenu.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://editor/content/StructBarContextMenu.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
|
|
|
|
|
|
|
|
<popupset id="editorContentContextSet">
|
|
|
|
<popup id="editorContentContext"
|
|
|
|
onpopupshowing="EditorFillContextMenu(event, this);">
|
|
|
|
<menuitem id="spellCheckNoSuggestions" label="&spellCheckNoSuggestions.label;" disabled="true"/>
|
|
|
|
<menuseparator id="spellCheckAddSep"/>
|
|
|
|
<menuitem id="spellCheckAddToDictionary"
|
|
|
|
label="&spellCheckAddToDictionary.label;"
|
|
|
|
accesskey="&spellCheckAddToDictionary.accesskey;"
|
|
|
|
oncommand="InlineSpellCheckerUI.addToDictionary();"/>
|
|
|
|
<menuitem id="spellCheckIgnoreWord"
|
|
|
|
label="&spellCheckIgnoreWord.label;"
|
|
|
|
accesskey="&spellCheckIgnoreWord.accesskey;"
|
|
|
|
oncommand="InlineSpellCheckerUI.ignoreWord();"/>
|
|
|
|
<menuseparator id="spellCheckSuggestionsSeparator"/>
|
|
|
|
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem id="menu_undo_cm"
|
|
|
|
label="&undoCmd.label;"
|
|
|
|
accesskey="&undoCmd.accesskey;"
|
|
|
|
command="cmd_undo"/>
|
|
|
|
<menuitem id="menu_redo_cm"
|
|
|
|
label="&redoCmd.label;"
|
|
|
|
accesskey="&redoCmd.accesskey;"
|
|
|
|
command="cmd_redo"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
<menuseparator id="undoredo-separator"/>
|
|
|
|
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem id="menu_cut_cm"
|
|
|
|
label="&cutCmd.label;"
|
|
|
|
accesskey="&cutCmd.accesskey;"
|
|
|
|
command="cmd_cut"/>
|
|
|
|
<menuitem id="menu_copy_cm"
|
|
|
|
label="©Cmd.label;"
|
|
|
|
accesskey="©Cmd.accesskey;"
|
|
|
|
command="cmd_copy"/>
|
|
|
|
<menuitem id="menu_paste_cm"
|
|
|
|
label="&pasteCmd.label;"
|
|
|
|
accesskey="&pasteCmd.accesskey;"
|
|
|
|
command="cmd_paste"/>
|
|
|
|
<menuitem id="menu_pasteNoFormatting_cm"
|
|
|
|
command="cmd_pasteNoFormatting"/>
|
|
|
|
<menuitem id="menu_delete_cm"
|
|
|
|
label="&deleteCmd.label;"
|
|
|
|
accesskey="&deleteCmd.accesskey;"
|
|
|
|
command="cmd_delete"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
<menuseparator id="edit-separator"/>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem id="menu_selectAll_cm"
|
|
|
|
label="&selectAllCmd.label;"
|
|
|
|
accesskey="&selectAllCmd.accesskey;"
|
|
|
|
command="cmd_selectAll"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
<menuseparator id="selectAll-separator"/>
|
|
|
|
|
|
|
|
<!-- label and accesskey set at runtime from strings -->
|
|
|
|
<menuitem id="removeStylesMenuitem_cm"
|
2008-10-07 00:45:44 +04:00
|
|
|
observes="cmd_removeStyles"/>
|
|
|
|
<menuitem id="createLink_cm"
|
|
|
|
label="&createLinkCmd.label;"
|
|
|
|
accesskey="&createLinkCmd.accesskey;"
|
|
|
|
command="cmd_link"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
<!-- label and accesskey set at runtime from strings -->
|
|
|
|
<menuitem id="removeLinksMenuitem_cm" observes="cmd_removeLinks"/>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem id="removeNamedAnchorsMenuitem_cm"
|
|
|
|
label="&formatRemoveNamedAnchors.label;"
|
|
|
|
accesskey="&formatRemoveNamedAnchors.accesskey;"
|
|
|
|
observes="cmd_removeNamedAnchors"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
<menuseparator id="styles-separator"/>
|
|
|
|
|
|
|
|
<!-- label and accesskey are set in InitObjectProperties -->
|
|
|
|
<menuitem id="objectProperties_cm" observes="cmd_objectProperties"/>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem id="editLink_cm"
|
|
|
|
label="&editLinkCmd.label;"
|
|
|
|
accesskey="&editLinkCmd.accesskey;"
|
|
|
|
command="cmd_editLink"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
<menuseparator id="property-separator"/>
|
|
|
|
|
|
|
|
<!-- Can't get submenus to load from a shared overlay -->
|
2008-10-07 00:45:44 +04:00
|
|
|
<menu id="tableInsertMenu_cm" label="&tableInsertMenu2.label;" accesskey="&tableInsertMenu2.accesskey;">
|
2008-09-03 17:35:06 +04:00
|
|
|
<menupopup>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem label="&insertTableCmd.label;"
|
|
|
|
accesskey="&insertTableCmd.accesskey;"
|
|
|
|
observes="cmd_InsertTable"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&tableRowAbove.label;"
|
|
|
|
accesskey="&tableRowAbove.accesskey;"
|
|
|
|
observes="cmd_InsertRowAbove"/>
|
|
|
|
<menuitem label="&tableRowBelow.label;"
|
|
|
|
accesskey="&tableRowBelow.accesskey;"
|
|
|
|
observes="cmd_InsertRowBelow"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&tableColumnBefore.label;"
|
|
|
|
accesskey="&tableColumnBefore.accesskey;"
|
|
|
|
observes="cmd_InsertColumnBefore"/>
|
|
|
|
<menuitem label="&tableColumnAfter.label;"
|
|
|
|
accesskey="&tableColumnAfter.accesskey;"
|
|
|
|
observes="cmd_InsertColumnAfter"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&tableCellBefore.label;"
|
|
|
|
accesskey="&tableCellBefore.accesskey;"
|
|
|
|
observes="cmd_InsertCellBefore"/>
|
|
|
|
<menuitem label="&tableCellAfter.label;"
|
|
|
|
accesskey="&tableCellAfter.accesskey;"
|
|
|
|
observes="cmd_InsertCellAfter"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menu id="tableSelectMenu_cm" label="&tableSelectMenu2.label;" accesskey="&tableSelectMenu2.accesskey;">
|
2008-09-03 17:35:06 +04:00
|
|
|
<menupopup>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem id="menu_SelectTable_cm"
|
|
|
|
label="&tableTable.label;"
|
|
|
|
accesskey="&tableTable.accesskey;"
|
|
|
|
observes="cmd_SelectTable"/>
|
|
|
|
<menuitem id="menu_SelectRow_cm"
|
|
|
|
label="&tableRow.label;"
|
|
|
|
accesskey="&tableRow.accesskey;"
|
|
|
|
observes="cmd_SelectRow"/>
|
|
|
|
<menuitem id="menu_SelectColumn_cm"
|
|
|
|
label="&tableColumn.label;"
|
|
|
|
accesskey="&tableColumn.accesskey;"
|
|
|
|
observes="cmd_SelectColumn"/>
|
|
|
|
<menuitem id="menu_SelectCell_cm"
|
|
|
|
label="&tableCell.label;"
|
|
|
|
accesskey="&tableCell.accesskey;"
|
|
|
|
observes="cmd_SelectCell"/>
|
|
|
|
<menuitem id="menu_SelectAllCells_cm"
|
|
|
|
label="&tableAllCells.label;"
|
|
|
|
accesskey="&tableAllCells.accesskey;"
|
|
|
|
observes="cmd_SelectAllCells"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menu id="tableDeleteMenu_cm" label="&tableDeleteMenu2.label;" accesskey="&tableDeleteMenu2.accesskey;">
|
2008-09-03 17:35:06 +04:00
|
|
|
<menupopup>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem id="menu_DeleteTable_cm"
|
|
|
|
label="&tableTable.label;"
|
|
|
|
accesskey="&tableTable.accesskey;"
|
|
|
|
observes="cmd_DeleteTable"/>
|
|
|
|
<menuitem id="menu_DeleteRow_cm"
|
|
|
|
label="&tableRows.label;"
|
|
|
|
accesskey="&tableRow.accesskey;"
|
|
|
|
observes="cmd_DeleteRow"/>
|
|
|
|
<menuitem id="menu_DeleteColumn_cm"
|
|
|
|
label="&tableColumns.label;"
|
|
|
|
accesskey="&tableColumn.accesskey;"
|
|
|
|
observes="cmd_DeleteColumn"/>
|
|
|
|
<menuitem id="menu_DeleteCell_cm"
|
|
|
|
label="&tableCells.label;"
|
|
|
|
accesskey="&tableCell.accesskey;"
|
|
|
|
observes="cmd_DeleteCell"/>
|
|
|
|
<menuitem id="menu_DeleteCellContents_cm"
|
|
|
|
label="&tableCellContents.label;"
|
|
|
|
accesskey="&tableCellContents.accesskey;"
|
|
|
|
observes="cmd_DeleteCellContents"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<!-- menu label is set in InitTableMenu -->
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem id="joinTableCells_cm"
|
|
|
|
label="&tableJoinCells.label;"
|
|
|
|
accesskey="&tableJoinCells.accesskey;"
|
|
|
|
observes="cmd_JoinTableCells"/>
|
|
|
|
<menuitem id="splitTableCell_cm"
|
|
|
|
label="&tableSplitCell.label;"
|
|
|
|
accesskey="&tableSplitCell.accesskey;"
|
|
|
|
observes="cmd_SplitTableCell"/>
|
|
|
|
<menuitem id="tableOrCellColor_cm"
|
|
|
|
label="&tableOrCellColor.label;"
|
|
|
|
accesskey="&tableOrCellColor.accesskey;"
|
|
|
|
observes="cmd_TableOrCellColor"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
</popup>
|
|
|
|
|
|
|
|
<popup id="editorSourceContext">
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem label="&undoCmd.label;"
|
|
|
|
accesskey="&undoCmd.accesskey;"
|
|
|
|
command="cmd_undo"/>
|
|
|
|
<menuitem label="&redoCmd.label;"
|
|
|
|
accesskey="&redoCmd.accesskey;"
|
|
|
|
command="cmd_redo"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
<menuseparator/>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem label="&cutCmd.label;"
|
|
|
|
accesskey="&cutCmd.accesskey;"
|
|
|
|
command="cmd_cut"/>
|
|
|
|
<menuitem label="©Cmd.label;"
|
|
|
|
accesskey="©Cmd.accesskey;"
|
|
|
|
command="cmd_copy"/>
|
|
|
|
<menuitem label="&pasteCmd.label;"
|
|
|
|
accesskey="&pasteCmd.accesskey;"
|
|
|
|
command="cmd_paste"/>
|
|
|
|
<menuitem label="&deleteCmd.label;"
|
|
|
|
accesskey="&deleteCmd.accesskey;"
|
|
|
|
command="cmd_delete"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
<menuseparator/>
|
2008-10-07 00:45:44 +04:00
|
|
|
<menuitem label="&selectAllCmd.label;"
|
|
|
|
accesskey="&selectAllCmd.accesskey;"
|
|
|
|
command="cmd_selectAll"/>
|
2008-09-03 17:35:06 +04:00
|
|
|
</popup>
|
|
|
|
|
|
|
|
<popup id="structToolbarContext">
|
|
|
|
<menuitem id="structSelect" label="&structSelect.label;"
|
|
|
|
accesskey="&structSelect.accesskey;"
|
|
|
|
oncommand="StructSelectTag()"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="structRemoveTag" label="&structRemoveTag.label;"
|
|
|
|
accesskey="&structRemoveTag.accesskey;"
|
|
|
|
oncommand="StructRemoveTag()"/>
|
|
|
|
<menuitem id="structChangeTag" label="&structChangeTag.label;"
|
|
|
|
accesskey="&structChangeTag.accesskey;"
|
|
|
|
oncommand="StructChangeTag()"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="advancedPropsTag" label="&advancedPropertiesCmd.label;"
|
2008-10-07 00:45:44 +04:00
|
|
|
accesskey="&advancedPropertiesCmd.accesskey;"
|
2008-09-03 17:35:06 +04:00
|
|
|
oncommand="OpenAdvancedProperties()"/>
|
|
|
|
</popup>
|
|
|
|
|
|
|
|
</popupset>
|
|
|
|
|
|
|
|
</overlay>
|