3
* ***** BEGIN LICENSE BLOCK *****
4
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
6
* The contents of this file are subject to the Mozilla Public
7
* License Version 1.1 (the "MPL"); you may not use this file
8
* except in compliance with the MPL. You may obtain a copy of
9
* the MPL at http://www.mozilla.org/MPL/
11
* Software distributed under the MPL is distributed on an "AS
12
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
13
* implied. See the MPL for the specific language governing
14
* rights and limitations under the MPL.
16
* The Original Code is Enigmail.
18
* The Initial Developer of the Original Code is Ramalingam Saravanan.
19
* Portions created by Ramalingam Saravanan <svn@xmlterm.org> are
20
* Copyright (C) 2001 Ramalingam Saravanan. All Rights Reserved.
23
* Patrick Brunschwig <patrick@mozilla-enigmail.org>
25
* Alternatively, the contents of this file may be used under the terms of
26
* either the GNU General Public License Version 2 or later (the "GPL"), or
27
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28
* in which case the provisions of the GPL or the LGPL are applicable instead
29
* of those above. If you wish to allow use of your version of this file only
30
* under the terms of either the GPL or the LGPL, and not to allow others to
31
* use your version of this file under the terms of the MPL, indicate your
32
* decision by deleting the provisions above and replace them with the notice
33
* and other provisions required by the GPL or the LGPL. If you do not delete
34
* the provisions above, a recipient may use your version of this file under
35
* the terms of any one of the MPL, the GPL or the LGPL.
36
* ***** END LICENSE BLOCK ***** *
40
This is the overlay that adds a menu and PGP buttons to the
41
messenger compose window
44
<?xml-stylesheet href="chrome://enigmail/skin/enigmail.css"
48
<!ENTITY % enigmailDTD SYSTEM "chrome://enigmail/locale/enigmail.dtd" >
50
<!ENTITY % messengercomposeDTD SYSTEM "chrome://messenger/locale/messengercompose/messengercompose.dtd" >
54
<overlay id="enigMsgComposeOverlay"
55
xmlns:html="http://www.w3.org/1999/xhtml"
56
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
58
<script type="application/x-javascript" src="chrome://enigmail/content/enigmailMsgComposeHelper.js"/>
59
<script type="application/x-javascript" src="chrome://enigmail/content/enigmailMsgComposeOverlay.js"/>
61
<commandset id="msgComposeCommandUpdate"
64
oncommandupdate="Enigmail.msg.focusChange()"/>
66
<popupset id="aTooltipSet"/>
68
<keyset id="tasksKeys">
69
<key id="key_enigSign" key="&enigmail.signedsend.key;"
70
oncommand="Enigmail.msg.setSendMode('toggle-sign')" modifiers="accel, shift"/>
71
<key id="key_enigEncrypt" key="&enigmail.encryptedsend.key;"
72
oncommand="Enigmail.msg.setSendMode('toggle-encrypt')" modifiers="accel, shift"/>
75
<!-- menu for all apps -->
77
<menubar id="mail-menubar">
79
<menu id="menu_Enigmail"
80
label="&enigmail.openpgp.label;"
81
accesskey="&enigmail.composemenu.accesskey;"
82
insertbefore="tasksMenu">
84
<menupopup id="menu_EnigmailPopup"
85
onpopupshowing="EnigmailFuncs.collapseAdvanced(this, 'hidden', Enigmail.msg.setMenuSettings(''))">
87
<menuitem id="enigmail_signed_send"
89
label="&enigmail.signedsend.label;"
90
accesskey="&enigmail.signedsend.accesskey;"
92
oncommand="Enigmail.msg.doPgpButton('toggle-sign');" />
94
<menuitem id="enigmail_encrypted_send"
96
label="&enigmail.encryptedsend.label;"
97
accesskey="&enigmail.encryptedsend.accesskey;"
99
oncommand="Enigmail.msg.doPgpButton('toggle-encrypt');" />
103
<menuitem id="enigmail_sendPGPMime"
106
label="&enigmail.sendPGPMime.label;"
107
accesskey="&enigmail.sendPGPMime.accesskey;"
108
oncommand="Enigmail.msg.doPgpButton('togglePGPMime');" />
110
<menuitem id="enigmail_disable_rules"
113
label="&enigmail.disableRules.label;"
114
accesskey="&enigmail.disableRules.accesskey;"
115
key="key_enigDisableRules"
116
oncommand="Enigmail.msg.doPgpButton('toggleRules');" />
120
<menu id="enigmail_compose_options_menu"
121
label="&enigmail.composeOptionsMenu.label;"
123
accesskey="&enigmail.composeOptionsMenu.accesskey;">
127
<menuitem id="enigmail_accountSettings"
128
label="&enigmail.pgpAccountSettings.label;"
129
accesskey="&enigmail.pgpAccountSettings.accesskey;"
130
oncommand="Enigmail.msg.goAccountManager();" />
134
<menuitem id="enigmail_defaultSendOpts"
135
label="&enigmail.sendOptionsMenu.label;"
136
accesskey="&enigmail.sendOptionsMenu.accesskey;"
137
oncommand="EnigmailFuncs.openPrefWindow(window, true, 'thunderbird', 'sendTab');" />
139
<menuitem id="enigmail_defaultKeySelOpts"
140
label="&enigmail.defaultKeySelOpts.label;"
141
accesskey="&enigmail.defaultKeySelOpts.accesskey;"
142
oncommand="EnigmailFuncs.openPrefWindow(window, true, 'thunderbird', 'keySelTab');" />
147
<menuitem id="enigmail_keymgmt"
148
label="&enigmail.keyManWindow.label;"
149
accesskey="&enigmail.keyManWindow.accesskey;"
150
oncommand="EnigmailFuncs.openKeyManager(window);" />
152
<menuitem id="enigmail_RulesEditor"
153
label="&enigmail.editRules.label;"
154
accesskey="&enigmail.editRules.accesskey;"
156
oncommand="EnigmailFuncs.openRulesEditor();"/>
161
<menuitem id="enigmail_undo_encryption"
162
label="&enigmail.undoencryption.label;"
163
accesskey="&enigmail.undoencryption.accesskey;"
164
oncommand="Enigmail.msg.undoEncryption();" />
166
<menuitem id="enigmail_insert_own_key"
167
label="&enigmail.attachmykey.label;"
168
accesskey="&enigmail.attachmykey.accesskey;"
171
oncommand="Enigmail.msg.toggleAttachOwnKey();" />
173
<menuitem id="enigmail_insert_key"
174
label="&enigmail.attachkey.label;"
175
accesskey="&enigmail.attachkey.accesskey;"
177
oncommand="Enigmail.msg.attachKey();" />
179
<menuitem id="enigmail_clearPassphrase"
180
label="&enigmail.clearPassphrase.label;"
181
accesskey="&enigmail.clearPassphrase.accesskey;"
183
oncommand="EnigmailCommon.clearPassphrase(window);" />
187
<menuitem id="enigmail_help"
188
label="&enigmail.help.label;"
189
accesskey="&enigmail.help.accesskey;"
190
oncommand="EnigmailFuncs.openHelpWindow('compose');" />
197
<!-- Enigmail toolbar button -->
198
<toolbarpalette id="MsgComposeToolbarPalette">
199
<!-- for compatibility reasons (themes) the button name is unchanged and doesn't match the action(s) -->
200
<toolbarbutton class="toolbarbutton-1"
201
id="button-enigmail-send"
203
label="&enigmail.securitybutton.label;"
204
buttontype="thunderbird"
205
tooltip="aTooltipSet"
206
tooltiptext="&enigmail.securitybutton.tip;"
207
oncommand="Enigmail.msg.doPgpButton();">
209
<menupopup onpopupshowing="Enigmail.msg.setMenuSettings('3')">
210
<menuitem id="enigmail_signed_send3"
212
label="&enigmail.signedsend.label;"
213
accesskey="&enigmail.signedsend.accesskey;"
215
oncommand="Enigmail.msg.nextCommand('toggle-sign');" />
217
<menuitem id="enigmail_encrypted_send3"
219
label="&enigmail.encryptedsend.label;"
220
accesskey="&enigmail.encryptedsend.accesskey;"
221
key="key_enigEncrypt"
222
oncommand="Enigmail.msg.nextCommand('toggle-encrypt');" />
226
<menuitem id="enigmail_sendPGPMime3"
229
label="&enigmail.sendPGPMime.label;"
230
accesskey="&enigmail.sendPGPMime.accesskey;"
231
oncommand="Enigmail.msg.nextCommand('togglePGPMime');" />
233
<menuitem id="enigmail_disable_rules3"
235
label="&enigmail.disableRules.label;"
236
accesskey="&enigmail.disableRules.accesskey;"
237
key="key_enigDisableRules"
238
oncommand="Enigmail.msg.nextCommand('toggleRules');" />
243
<!-- Thunderbird & Spicebird -->
244
<toolbar id="composeToolbar2"
245
defaultset="button-send,separator,button-address,spellingButton,button-attach,button-enigmail-send,button-security,button-save">
248
<!-- Seamonkey 2.x -->
249
<toolbar id="composeToolbar"
250
defaultset="button-send,separator,button-address,button-attach,spellingButton,button-enigmail-send,button-security,separator,button-save,spring,throbber-box">
253
<statusbar id="status-bar">
254
<hbox id="enigmail-status-bar"
255
insertafter="totalMessageCount">
256
<statusbarpanel id="enigmail-signed-status"
257
class="statusbarpanel-iconic"
258
collapsed="true" onclick="Enigmail.msg.handleClick(event,'toggle-sign');"/>
259
<statusbarpanel id="enigmail-encrypted-status"
260
class="statusbarpanel-iconic"
261
collapsed="true" onclick="Enigmail.msg.handleClick(event, 'toggle-encrypt');"/>