summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/im/content/chat-menu.inc.xhtml
blob: 8ded5e0edb495428fcd35c6455aa5f4d3eec83dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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 &amp;&amp; gChatContextMenu) { gChatContextMenu.cleanup(); gChatContextMenu = null; }">
    <menuitem id="context-openlink"
              label="&openLinkCmd.label;"
              accesskey="&openLinkCmd.accesskey;"
              oncommand="gChatContextMenu.openLink();"/>
    <menuitem id="context-copyemail"
              label="&copyEmailCmd.label;"
              accesskey="&copyEmailCmd.accesskey;"
              oncommand="gChatContextMenu.copyEmail();"/>
    <menuitem id="context-copylink"
              label="&copyLinkCmd.label;"
              accesskey="&copyLinkCmd.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>