diff options
Diffstat (limited to 'comm/mail/components/im/content/chat-menu.inc.xhtml')
-rw-r--r-- | comm/mail/components/im/content/chat-menu.inc.xhtml | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/comm/mail/components/im/content/chat-menu.inc.xhtml b/comm/mail/components/im/content/chat-menu.inc.xhtml new file mode 100644 index 0000000000..8ded5e0edb --- /dev/null +++ b/comm/mail/components/im/content/chat-menu.inc.xhtml @@ -0,0 +1,109 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + + <tooltip is="chat-tooltip" id="imTooltip"/> + + <menupopup id="buddyListContextMenu" + onpopupshowing="if (event.target != this) { return true; } gBuddyListContextMenu = new buddyListContextMenu(this); return gBuddyListContextMenu.shouldDisplay;" + onpopuphiding="if (event.target == this) { gBuddyListContextMenu = null; }"> + <menuitem id="context-openconversation" + label="&openConversationCmd.label;" + accesskey="&openConversationCmd.accesskey;" + oncommand="gBuddyListContextMenu.openConversation();"/> + <menuitem id="context-close-conversation" + label="&closeConversationCmd.label;" + accesskey="&closeConversationCmd.accesskey;" + oncommand="gBuddyListContextMenu.closeConversation();"/> + <menuitem id="context-verifyBuddy" + data-l10n-id="chat-verify-identity" + oncommand="gBuddyListContextMenu.verifyIdentity();"/> + <menuseparator id="context-edit-buddy-separator"/> + <menuitem id="context-alias" + label="&aliasCmd.label;" + accesskey="&aliasCmd.accesskey;" + oncommand="gBuddyListContextMenu.alias();"/> + <menuitem id="context-delete" + data-l10n-id="text-action-delete" + oncommand="gBuddyListContextMenu.delete();"/> + </menupopup> + + <menupopup id="chatConversationContextMenu" + onpopupshowing="if (event.target != this) { return true; } gChatContextMenu = new imContextMenu(this); return gChatContextMenu.shouldDisplay;" + onpopuphiding="if (event.target == this && gChatContextMenu) { gChatContextMenu.cleanup(); gChatContextMenu = null; }"> + <menuitem id="context-openlink" + label="&openLinkCmd.label;" + accesskey="&openLinkCmd.accesskey;" + oncommand="gChatContextMenu.openLink();"/> + <menuitem id="context-copyemail" + label="©EmailCmd.label;" + accesskey="©EmailCmd.accesskey;" + oncommand="gChatContextMenu.copyEmail();"/> + <menuitem id="context-copylink" + label="©LinkCmd.label;" + accesskey="©LinkCmd.accesskey;" + oncommand="goDoCommand('cmd_copyLink');"/> + <menuseparator id="context-sep-copylink"/> + + <menuitem id="context-copy" + data-l10n-id="text-action-copy" + command="cmd_copy"/> + <menuitem id="context-selectall" + data-l10n-id="text-action-select-all" + command="cmd_selectAll"/> + <menuseparator id="context-sep-messageactions"/> + </menupopup> + + <menupopup id="chat-toolbar-context-menu"> + <menuitem id="CustomizeChatToolbar" + oncommand="CustomizeMailToolbar('chat-view-toolbox', 'CustomizeChatToolbar')" + label="&customizeToolbar.label;" + accesskey="&customizeToolbar.accesskey;"/> + </menupopup> + + <menupopup id="chatContextMenu" + onpopupshowing="if (event.target != this) { return true; } openChatContextMenu(this);" + onpopuphiding="if (event.target == this) { clearChatContextMenu(this); }"> + + <!-- Spellchecking menu items --> + <menuitem id="spellCheckNoSuggestions" + data-l10n-id="text-action-spell-no-suggestions" + disabled="true"/> + <menuseparator id="spellCheckAddSep" /> + <menuitem id="spellCheckAddToDictionary" + data-l10n-id="text-action-spell-add-to-dictionary" + oncommand="gChatSpellChecker.addToDictionary();"/> + <menuseparator id="spellCheckSuggestionsSeparator"/> + + <menuitem data-l10n-id="text-action-undo" command="cmd_undo"/> + <menuitem data-l10n-id="text-action-cut" command="cmd_cut"/> + <menuitem data-l10n-id="text-action-copy" command="cmd_copy"/> + <menuitem data-l10n-id="text-action-paste" command="cmd_paste"/> + <menuseparator/> + <menuitem data-l10n-id="text-action-select-all" command="cmd_selectAll"/> + + <!-- Spellchecking general menu items (enable, add dictionaries...) --> + <menuseparator id="spellCheckSeparator"/> + <menuitem id="spellCheckEnable" + data-l10n-id="text-action-spell-check-toggle" + type="checkbox" + oncommand="enableInlineSpellCheck(!gChatSpellChecker.enabled);"/> + <menu id="spellCheckDictionaries" + data-l10n-id="text-action-spell-dictionaries"> + <menupopup id="spellCheckDictionariesMenu"> + <menuseparator id="spellCheckLanguageSeparator"/> + <menuitem id="spellCheckAddDictionaries" + label="&spellAddDictionaries.label;" + accesskey="&spellAddDictionaries.accesskey;" + oncommand="openDictionaryList();"/> + </menupopup> + </menu> + + </menupopup> + + <menupopup id="participantListContextMenu" + onpopupshowing="return showParticipantMenu(this);"> + <menuitem id="context-verifyParticipant" + data-l10n-id="chat-verify-identity" + oncommand="verifyChatParticipant();"/> + </menupopup> |