summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/preferences/compose.inc.xhtml
blob: 3ba7063084c0ab81e749f9205646ee3950adddf6 (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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
# 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/.
  <script src="chrome://messenger/content/preferences/compose.js"/>
  <script src="chrome://global/content/contentAreaUtils.js"/>
  <script src="chrome://messenger/content/preferences/downloads.js"/>
  <script src="chrome://communicator/content/utilityOverlay.js"/>

  <stringbundle id="bundle_addressBook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>
  <html:template id="paneCompose">
    <hbox id="compositionMainCategory"
          class="subcategory"
          data-category="paneCompose">
      <html:h1 data-l10n-id="composition-category-header"/>
    </hbox>

    <html:div data-category="paneCompose">
    <html:fieldset data-category="paneCompose">
      <separator class="thin"/>
      <hbox align="center">
        <label data-l10n-id="forward-label" control="forwardMessageMode"/>
        <hbox>
          <menulist id="forwardMessageMode" preference="mail.forward_message_mode">
            <menupopup>
              <menuitem value="2" data-l10n-id="inline-label"/>
              <menuitem value="0" data-l10n-id="as-attachment-label"/>
            </menupopup>
          </menulist>
        </hbox>
        <separator orient="vertical" class="thin"/>
        <checkbox id="addExtension" preference="mail.forward_add_extension"
                  data-l10n-id="extension-label"/>
      </hbox>

      <separator class="thin"/>

      <hbox align="center" pack="start">
        <checkbox id="autoSave" preference="mail.compose.autosave"
                  data-l10n-id="auto-save-label"/>
        <html:input id="autoSaveInterval" type="number" class="size2"
                    min="1" max="35790"
                    preference="mail.compose.autosaveinterval"
                    aria-labelledby="autoSave autoSaveInterval autoSaveEnd"/>
        <label id="autoSaveEnd" data-l10n-id="auto-save-end"/>
      </hbox>
      <hbox>
        <checkbox id="mailWarnOnSendAccelKey"
                  data-l10n-id="warn-on-send-accel-key"
                  preference="mail.warn_on_send_accel_key"/>
        <spacer flex="1"/>
      </hbox>
      <hbox>
        <checkbox id="addLinkPreviews"
                  data-l10n-id="add-link-previews"
                  preference="mail.compose.add_link_preview"/>
        <spacer flex="1"/>
      </hbox>
    </html:fieldset>
    </html:div>

    <html:div data-category="paneCompose">
    <html:fieldset data-category="paneCompose">
      <html:legend data-l10n-id="composition-spelling-title"></html:legend>
      <hbox>
        <checkbox id="spellCheckBeforeSend"
                  data-l10n-id="spellcheck-label"
                  preference="mail.SpellCheckBeforeSend"/>
        <spacer flex="1"/>
      </hbox>
      <hbox>
        <checkbox id="inlineSpellCheck"
                  data-l10n-id="spellcheck-inline-label"
                  preference="mail.spellcheck.inline"/>
        <spacer flex="1"/>
      </hbox>

      <separator class="thin"/>

      <vbox flex="1">
        <label data-l10n-id="language-popup-label" control="dictionaryList"/>

        <html:ul id="dictionaryList" class="indent">
          <html:template id="dictionaryListItem">
            <html:li>
              <html:label>
                <html:input type="checkbox" />
                <html:span class="checkbox-label"></html:span>
              </html:label>
            </html:li>
          </html:template>
        </html:ul>

        <label id="downloadDictionaries" class="text-link"
               onclick="if (event.button == 0) { openDictionaryList('tab'); }"
               data-l10n-id="download-dictionaries-link"/>

        <spacer flex="1"/>
      </vbox>
    </html:fieldset>
    </html:div>

    <html:div data-category="paneCompose">
    <html:fieldset data-category="paneCompose">
      <html:legend data-l10n-id="compose-html-style-title"></html:legend>
      <hbox>
        <vbox flex="1">
          <hbox align="center">
            <label control="FontSelect" data-l10n-id="font-label"/>
            <hbox flex="1">
              <menulist id="FontSelect" preference="msgcompose.font_face"
                        sizetopopup="pref" crop="center" flex="1">
                <menupopup>
                  <menuitem value="" label="&fontVarWidth.label;"/>
                  <menuitem value="monospace" label="&fontFixedWidth.label;"/>
                  <menuseparator/>
                  <menuitem value="Helvetica, Arial, sans-serif" label="&fontHelvetica.label;"/>
                  <menuitem value="Times New Roman, Times, serif" label="&fontTimes.label;"/>
                  <menuitem value="Courier New, Courier, monospace" label="&fontCourier.label;"/>
                  <menuseparator/>
                </menupopup>
              </menulist>
            </hbox>

            <label control="fontSizeSelect" data-l10n-id="font-size-label"/>
            <hbox>
              <menulist id="fontSizeSelect" preference="msgcompose.font_size" value="3">
                <menupopup>
                  <menuitem value="1" label="&size-tinyCmd.label;"/>
                  <menuitem value="2" label="&size-smallCmd.label;"/>
                  <menuitem value="3" label="&size-mediumCmd.label;"/>
                  <menuitem value="4" label="&size-largeCmd.label;"/>
                  <menuitem value="5" label="&size-extraLargeCmd.label;"/>
                  <menuitem value="6" label="&size-hugeCmd.label;"/>
                </menupopup>
              </menulist>
            </hbox>
          </hbox>

          <separator class="thin"/>

          <hbox align="center">
            <checkbox id="useReaderDefaults"
                      data-l10n-id="default-colors-label"
                      preference="msgcompose.default_colors"/>
          </hbox>
          <hbox align="center" class="indent">
            <label id="textColorLabel"
                   control="textColorButton"
                   data-l10n-id="font-color-label"/>
            <html:input type="color" id="textColorButton" preference="msgcompose.text_color"/>
            <separator orient="vertical" class="thin"/>
            <label id="backgroundColorLabel"
                   control="backgroundColorButton"
                   data-l10n-id="bg-color-label"/>
            <html:input type="color" id="backgroundColorButton" preference="msgcompose.background_color"/>
          </hbox>
        </vbox>
        <vbox>
          <spacer flex="1"/>
          <button is="highlightable-button"
                  data-l10n-id="restore-html-label"
                  oncommand="gComposePane.restoreHTMLDefaults();"/>
        </vbox>
      </hbox>

      <separator class="thin"/>

      <hbox align="center">
        <checkbox id="defaultToParagraph"
                  data-l10n-id="default-format-label"
                  preference="mail.compose.default_to_paragraph"/>
      </hbox>
    </html:fieldset>
    </html:div>

    <html:div data-category="paneCompose">
    <html:fieldset data-category="paneCompose">
      <html:legend data-l10n-id="compose-send-format-title"></html:legend>
      <radiogroup class="indent"
                  preference="mail.default_send_format">
        <radio value="0"
               aria-describedby="composeSendAutomaticDescription"
               data-l10n-id="compose-send-automatic-option" />
        <description id="composeSendAutomaticDescription"
                     class="indent tip-caption"
                     data-l10n-id="compose-send-automatic-description" />
        <radio value="3"
               aria-describedby="composeSendBothDescription"
               data-l10n-id="compose-send-both-option" />
        <description id="composeSendBothDescription"
                     class="indent tip-caption"
                     data-l10n-id="compose-send-both-description" />
        <radio value="2"
               aria-describedby="composeSendHTMLDescription"
               data-l10n-id="compose-send-html-option" />
        <description id="composeSendHTMLDescription"
                     class="indent tip-caption"
                     data-l10n-id="compose-send-html-description" />
        <radio value="1"
               aria-describedby="composeSendPlainDescription"
               data-l10n-id="compose-send-plain-option" />
        <description id="composeSendPlainDescription"
                     class="indent tip-caption"
                     data-l10n-id="compose-send-plain-description" />
      </radiogroup>
    </html:fieldset>
    </html:div>

    <hbox id="compositionAddressingCategory"
          class="subcategory"
          data-category="paneCompose">
      <html:h1 data-l10n-id="composition-addressing-header"/>
    </hbox>

    <html:div data-category="paneCompose">
    <html:fieldset data-category="paneCompose">
      <!-- Address Autocomplete -->
      <separator class="thin"/>

      <description data-l10n-id="autocomplete-description"/>

      <hbox align="center">
        <checkbox id="addressingAutocomplete" data-l10n-id="ab-label"
                  preference="mail.enable_autocomplete"/>
      </hbox>

      <hbox align="center">
        <checkbox id="autocompleteLDAP" data-l10n-id="directories-label"
                  preference="ldap_2.autoComplete.useDirectory"/>
        <hbox flex="1">
          <menulist is="menulist-addrbooks" id="directoriesList"
                    aria-labelledby="autocompleteLDAP"
                    preference="ldap_2.autoComplete.directoryServer"
                    data-l10n-id="directories-none-label"
                    data-l10n-attrs="none"
                    remoteonly="true"
                    flex="1"/>
        </hbox>
        <button is="highlightable-button" id="editButton"
                data-l10n-id="edit-directories-label"
                oncommand="gComposePane.editDirectories();"
                preference="pref.ldap.disable_button.edit_directories"/>
      </hbox>

      <separator class="thin"/>

      <hbox align="center" pack="start">
        <checkbox id="emailCollectionOutgoing" data-l10n-id="email-picker-label"
                  preference="mail.collect_email_address_outgoing"/>
        <hbox flex="1">
          <menulist is="menulist-addrbooks" id="localDirectoriesList"
                    aria-labelledby="emailCollectionOutgoing"
                    preference="mail.collect_addressbook"
                    localonly="true"
                    writable="true"
                    flex="1"/>
        </hbox>
      </hbox>

      <hbox align="center" pack="start">
        <label data-l10n-id="default-directory-label"
               control="defaultStartupDirList"/>
        <hbox flex="1">
          <menulist is="menulist-addrbooks" id="defaultStartupDirList"
                    oncommand="gComposePane.setDefaultStartupDir(this.value);"
                    data-l10n-id="default-last-label"
                    data-l10n-attrs="none"
                    alladdressbooks="true"
                    mailinglists="true"
                    flex="1"/>
        </hbox>
      </hbox>
    </html:fieldset>
    </html:div>

    <hbox id="compositionAttachmentsCategory"
          class="subcategory"
          data-category="paneCompose">
      <html:h1 data-l10n-id="composition-attachments-header"/>
    </hbox>

    <html:div data-category="paneCompose">
    <html:fieldset data-category="paneCompose">
      <hbox align="center">
        <checkbox id="attachment_reminder_label"
                  data-l10n-id="attachment-label"
                  preference="mail.compose.attachment_reminder"/>
        <spacer flex="1"/>
        <hbox>
          <button is="highlightable-button" id="attachment_reminder_button"
                  data-l10n-id="attachment-options-label"
                  oncommand="gComposePane.attachmentReminderOptionsDialog();"
                  search-l10n-ids="
                    attachment-reminder-window.title,
                    attachment-reminder-label,
                    keyword-new-button.label,
                    keyword-edit-button.label,
                    keyword-remove-button.label,
                    new-keyword-title,
                    new-keyword-label,
                    edit-keyword-title,
                    edit-keyword-label"/>
        </hbox>
      </hbox>
      <vbox id="cloudFileBox">
        <hbox id="cloudFileToggleAndThreshold" align="center">
          <checkbox id="enableThreshold"
                    data-l10n-id="enable-cloud-share"
                    preference="mail.compose.big_attachments.notify"/>
          <html:input id="cloudFileThreshold" type="number" min="0" class="size3"
                      preference="mail.compose.big_attachments.threshold_kb"/>
          <label control="cloudFileThreshold" data-l10n-id="cloud-share-size"/>
        </hbox>
        <hbox style="height: 480px; flex: 1 auto;">
          <vbox id="provider-listing">
            <richlistbox id="cloudFileView" orient="vertical"
                         seltype="single"
                         onoverflow="gCloudFile.onListOverflow();"
                         onselect="gCloudFile.onSelectionChanged(event);">
            </richlistbox>
            <vbox id="addCloudFileAccountButtons">
            </vbox>
            <hbox>
              <menulist id="addCloudFileAccount"
                        hidden="true"
                        data-l10n-id="add-cloud-account"
                        data-l10n-attrs="defaultlabel"
                        oncommand="gCloudFile.addCloudFileAccount(this.value);">
                <menupopup id="addCloudFileAccountListItems"/>
              </menulist>
            </hbox>
            <button is="highlightable-button" id="removeCloudFileAccount"
                    disabled="true"
                    data-l10n-id="remove-cloud-account"
                    oncommand="gCloudFile.removeCloudFileAccount();"/>
            <label is="text-link"
                   id="moreProvidersLink"
                   href="https://addons.thunderbird.net/thunderbird/tag/filelink"
                   data-l10n-id="find-cloud-providers"/>
          </vbox>
          <separator class="thin" orient="vertical"/>
          <vbox flex="1">
            <vbox id="cloudFileDefaultPanel" flex="1">
              <description data-l10n-id="cloud-account-description"/>
            </vbox>
            <vbox id="cloudFileSettingsWrapper" flex="1">
            </vbox>
          </vbox>
        </hbox>
      </vbox>
    </html:fieldset>
    </html:div>

  </html:template>