~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to mailnews/extensions/enigmail/ui/content/enigmailMsgComposeOverlay.xul

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!--
 
3
 * ***** BEGIN LICENSE BLOCK *****
 
4
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
5
 *
 
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/
 
10
 *
 
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.
 
15
 *
 
16
 * The Original Code is Enigmail.
 
17
 *
 
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.
 
21
 *
 
22
 * Contributor(s):
 
23
 * Patrick Brunschwig <patrick@mozilla-enigmail.org>
 
24
 *
 
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 ***** *
 
37
-->
 
38
 
 
39
<!--
 
40
  This is the overlay that adds a menu and PGP buttons to the
 
41
  messenger compose window
 
42
-->
 
43
 
 
44
<?xml-stylesheet href="chrome://enigmail/skin/enigmail.css"
 
45
                 type="text/css"?>
 
46
 
 
47
<!DOCTYPE window [
 
48
<!ENTITY % enigmailDTD SYSTEM "chrome://enigmail/locale/enigmail.dtd" >
 
49
%enigmailDTD;
 
50
<!ENTITY % messengercomposeDTD SYSTEM "chrome://messenger/locale/messengercompose/messengercompose.dtd" >
 
51
%messengercomposeDTD;
 
52
]>
 
53
 
 
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">
 
57
 
 
58
  <script type="application/x-javascript" src="chrome://enigmail/content/enigmailMsgComposeHelper.js"/>
 
59
  <script type="application/x-javascript" src="chrome://enigmail/content/enigmailMsgComposeOverlay.js"/>
 
60
 
 
61
 <commandset id="msgComposeCommandUpdate"
 
62
              commandupdater="true"
 
63
              events="focus"
 
64
              oncommandupdate="Enigmail.msg.focusChange()"/>
 
65
 
 
66
  <popupset id="aTooltipSet"/>
 
67
 
 
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"/>
 
73
  </keyset>
 
74
 
 
75
<!-- menu for all apps -->
 
76
 
 
77
  <menubar id="mail-menubar">
 
78
 
 
79
      <menu id="menu_Enigmail"
 
80
            label="&enigmail.openpgp.label;"
 
81
            accesskey="&enigmail.composemenu.accesskey;"
 
82
            insertbefore="tasksMenu">
 
83
 
 
84
        <menupopup id="menu_EnigmailPopup"
 
85
                   onpopupshowing="EnigmailFuncs.collapseAdvanced(this, 'hidden', Enigmail.msg.setMenuSettings(''))">
 
86
 
 
87
          <menuitem id="enigmail_signed_send"
 
88
              type="checkbox"
 
89
              label="&enigmail.signedsend.label;"
 
90
              accesskey="&enigmail.signedsend.accesskey;"
 
91
              key="key_enigSign"
 
92
              oncommand="Enigmail.msg.doPgpButton('toggle-sign');" />
 
93
 
 
94
          <menuitem id="enigmail_encrypted_send"
 
95
              type="checkbox"
 
96
              label="&enigmail.encryptedsend.label;"
 
97
              accesskey="&enigmail.encryptedsend.accesskey;"
 
98
              key="key_enigEncrypt"
 
99
              oncommand="Enigmail.msg.doPgpButton('toggle-encrypt');" />
 
100
 
 
101
          <menuseparator/>
 
102
 
 
103
          <menuitem id="enigmail_sendPGPMime"
 
104
              type="checkbox"
 
105
              checked="false"
 
106
              label="&enigmail.sendPGPMime.label;"
 
107
              accesskey="&enigmail.sendPGPMime.accesskey;"
 
108
              oncommand="Enigmail.msg.doPgpButton('togglePGPMime');" />
 
109
 
 
110
          <menuitem id="enigmail_disable_rules"
 
111
              type="checkbox"
 
112
              advanced="true"
 
113
              label="&enigmail.disableRules.label;"
 
114
              accesskey="&enigmail.disableRules.accesskey;"
 
115
              key="key_enigDisableRules"
 
116
              oncommand="Enigmail.msg.doPgpButton('toggleRules');" />
 
117
 
 
118
          <menuseparator/>
 
119
 
 
120
          <menu id="enigmail_compose_options_menu"
 
121
                label="&enigmail.composeOptionsMenu.label;"
 
122
                advanced="true"
 
123
                accesskey="&enigmail.composeOptionsMenu.accesskey;">
 
124
 
 
125
            <menupopup>
 
126
 
 
127
              <menuitem id="enigmail_accountSettings"
 
128
                label="&enigmail.pgpAccountSettings.label;"
 
129
                accesskey="&enigmail.pgpAccountSettings.accesskey;"
 
130
                oncommand="Enigmail.msg.goAccountManager();" />
 
131
 
 
132
              <menuseparator/>
 
133
 
 
134
              <menuitem id="enigmail_defaultSendOpts"
 
135
                label="&enigmail.sendOptionsMenu.label;"
 
136
                accesskey="&enigmail.sendOptionsMenu.accesskey;"
 
137
                oncommand="EnigmailFuncs.openPrefWindow(window, true, 'thunderbird', 'sendTab');" />
 
138
 
 
139
              <menuitem id="enigmail_defaultKeySelOpts"
 
140
                label="&enigmail.defaultKeySelOpts.label;"
 
141
                accesskey="&enigmail.defaultKeySelOpts.accesskey;"
 
142
                oncommand="EnigmailFuncs.openPrefWindow(window, true, 'thunderbird', 'keySelTab');" />
 
143
 
 
144
            </menupopup>
 
145
          </menu>
 
146
 
 
147
        <menuitem id="enigmail_keymgmt"
 
148
             label="&enigmail.keyManWindow.label;"
 
149
             accesskey="&enigmail.keyManWindow.accesskey;"
 
150
             oncommand="EnigmailFuncs.openKeyManager(window);" />
 
151
 
 
152
          <menuitem id="enigmail_RulesEditor"
 
153
              label="&enigmail.editRules.label;"
 
154
              accesskey="&enigmail.editRules.accesskey;"
 
155
              advanced="true"
 
156
              oncommand="EnigmailFuncs.openRulesEditor();"/>
 
157
 
 
158
          <menuseparator
 
159
              advanced="true"/>
 
160
 
 
161
          <menuitem id="enigmail_undo_encryption"
 
162
              label="&enigmail.undoencryption.label;"
 
163
              accesskey="&enigmail.undoencryption.accesskey;"
 
164
              oncommand="Enigmail.msg.undoEncryption();" />
 
165
 
 
166
          <menuitem id="enigmail_insert_own_key"
 
167
              label="&enigmail.attachmykey.label;"
 
168
              accesskey="&enigmail.attachmykey.accesskey;"
 
169
              type="checkbox"
 
170
              checked="false"
 
171
              oncommand="Enigmail.msg.toggleAttachOwnKey();" />
 
172
 
 
173
          <menuitem id="enigmail_insert_key"
 
174
              label="&enigmail.attachkey.label;"
 
175
              accesskey="&enigmail.attachkey.accesskey;"
 
176
              advanced="true"
 
177
              oncommand="Enigmail.msg.attachKey();" />
 
178
 
 
179
          <menuitem id="enigmail_clearPassphrase"
 
180
              label="&enigmail.clearPassphrase.label;"
 
181
              accesskey="&enigmail.clearPassphrase.accesskey;"
 
182
              advanced="true"
 
183
              oncommand="EnigmailCommon.clearPassphrase(window);" />
 
184
 
 
185
          <menuseparator/>
 
186
 
 
187
          <menuitem id="enigmail_help"
 
188
              label="&enigmail.help.label;"
 
189
              accesskey="&enigmail.help.accesskey;"
 
190
              oncommand="EnigmailFuncs.openHelpWindow('compose');" />
 
191
 
 
192
        </menupopup>
 
193
      </menu>
 
194
 
 
195
  </menubar>
 
196
 
 
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"
 
202
            type="menu-button"
 
203
            label="&enigmail.securitybutton.label;"
 
204
            buttontype="thunderbird"
 
205
            tooltip="aTooltipSet"
 
206
            tooltiptext="&enigmail.securitybutton.tip;"
 
207
            oncommand="Enigmail.msg.doPgpButton();">
 
208
 
 
209
        <menupopup onpopupshowing="Enigmail.msg.setMenuSettings('3')">
 
210
          <menuitem id="enigmail_signed_send3"
 
211
              type="checkbox"
 
212
              label="&enigmail.signedsend.label;"
 
213
              accesskey="&enigmail.signedsend.accesskey;"
 
214
              key="key_enigSign"
 
215
              oncommand="Enigmail.msg.nextCommand('toggle-sign');" />
 
216
 
 
217
          <menuitem id="enigmail_encrypted_send3"
 
218
              type="checkbox"
 
219
              label="&enigmail.encryptedsend.label;"
 
220
              accesskey="&enigmail.encryptedsend.accesskey;"
 
221
              key="key_enigEncrypt"
 
222
              oncommand="Enigmail.msg.nextCommand('toggle-encrypt');" />
 
223
 
 
224
          <menuseparator/>
 
225
 
 
226
          <menuitem id="enigmail_sendPGPMime3"
 
227
              type="checkbox"
 
228
              checked="false"
 
229
              label="&enigmail.sendPGPMime.label;"
 
230
              accesskey="&enigmail.sendPGPMime.accesskey;"
 
231
              oncommand="Enigmail.msg.nextCommand('togglePGPMime');" />
 
232
 
 
233
          <menuitem id="enigmail_disable_rules3"
 
234
              type="checkbox"
 
235
              label="&enigmail.disableRules.label;"
 
236
              accesskey="&enigmail.disableRules.accesskey;"
 
237
              key="key_enigDisableRules"
 
238
              oncommand="Enigmail.msg.nextCommand('toggleRules');" />
 
239
        </menupopup>
 
240
    </toolbarbutton>
 
241
  </toolbarpalette>
 
242
 
 
243
  <!-- Thunderbird & Spicebird -->
 
244
  <toolbar id="composeToolbar2"
 
245
           defaultset="button-send,separator,button-address,spellingButton,button-attach,button-enigmail-send,button-security,button-save">
 
246
  </toolbar>
 
247
 
 
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">
 
251
  </toolbar>
 
252
 
 
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');"/>
 
262
    </hbox>
 
263
  </statusbar>
 
264
 
 
265
</overlay>