File: sendoptions.xul

package info (click to toggle)
thunderbird 1%3A52.9.1-1~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,709,148 kB
  • sloc: cpp: 5,081,792; ansic: 2,051,951; python: 458,733; java: 241,615; xml: 193,600; asm: 178,649; sh: 81,881; makefile: 24,702; perl: 16,874; objc: 4,389; yacc: 1,816; ada: 1,697; lex: 1,257; pascal: 1,251; cs: 879; exp: 499; php: 436; lisp: 258; awk: 152; sed: 51; ruby: 47; csh: 27
file content (110 lines) | stat: -rw-r--r-- 4,986 bytes parent folder | download | duplicates (4)
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
<?xml version="1.0"?>
# -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# 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/.

<?xml-stylesheet href="chrome://global/skin/"?>
#ifdef XP_MACOSX
<?xml-stylesheet href="chrome://messenger/skin/preferences/preferences.css"?>
#endif

<!DOCTYPE prefwindow [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
<!ENTITY % sendOptionsDTD SYSTEM "chrome://messenger/locale/preferences/sendoptions.dtd" >
%sendOptionsDTD;
]>

<prefwindow id="SendOptionsDialog" type="child"
            xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            dlgbuttons="accept,cancel"
            style="min-height: 33em;"
            title="&dialog.title;">

  <prefpane id="SendOptionsDialogPane" onpaneload="gSendOptionsDialog.init();">
    <script type="application/javascript" src="chrome://messenger/content/preferences/sendoptions.js"/>

    <stringbundle id="bundlePreferences" src="chrome://messenger/locale/preferences/preferences.properties"/>

    <preferences id="SendOptionsPreferences">
      <preference id="mailnews.sendformat.auto_downgrade" name="mailnews.sendformat.auto_downgrade" type="bool"/>
      <preference id="mail.default_html_action"      name="mail.default_html_action" type="int"/>
      <preference id="mailnews.html_domains"         name="mailnews.html_domains" type="string"/>
      <preference id="mailnews.plaintext_domains"    name="mailnews.plaintext_domains"    type="string"/>
    </preferences>

    <groupbox>
      <caption label="&sendMail.title;"/>

      <checkbox id="autoDowngrade"
                label="&autoDowngrade.label;"
                accesskey="&autoDowngrade.accesskey;"
                preference="mailnews.sendformat.auto_downgrade"/>

      <label control="mailDefaultHTMLAction" width="1">&sendMaildesc.label;</label>

      <hbox class="indent" id="thenBox">
        <menulist id="mailDefaultHTMLAction" preftype="int" preference="mail.default_html_action">
          <menupopup>
            <menuitem value="0" label="&askMe.label;" accesskey="&askMe.accesskey;"/>
            <menuitem value="1" label="&convertPlain.label;" accesskey="&convertPlain.accesskey;"/>
            <menuitem value="2" label="&sendHTML.label;" accesskey="&sendHTML.accesskey;"/>
            <menuitem value="3" label="&sendBoth.label;" accesskey="&sendBoth.accesskey;"/>
          </menupopup>
        </menulist>
      </hbox>

      <separator class="thin"/>

      <description control="mailDefaultHTMLAction">&override.label;</description>
    </groupbox>

    <separator class="thin"/>

    <tabbox>
      <tabs id="sendOptionsTabs">
        <tab label="&HTMLTab.label;" accesskey="&HTMLTab.accesskey;"/>
        <tab label="&PlainTextTab.label;" accesskey="&PlainTextTab.accesskey;"/>
      </tabs>

      <tabpanels id="sendOptionsTabsPanels" flex="1">

        <vbox index="HTML">
          <label control="html_domains" width="1">&domaindesc.label;</label>

          <hbox>
            <listbox id="html_domains" flex="1" seltype="multiple" rows="5"
                     class="uri-element"
                     preference="mailnews.html_domains"
                     onsynctopreference="return gSendOptionsDialog.saveDomainPref(true);"
                     onkeypress="if (event.keyCode == KeyEvent.DOM_VK_BACK_SPACE || event.keyCode == KeyEvent.DOM_VK_DELETE) gSendOptionsDialog.removeDomains(true);"/>
            <vbox>
              <button label="&AddHtmlDomain.label;" oncommand="gSendOptionsDialog.addDomain(true);" accesskey="&AddHtmlDomain.accesskey;"/>
              <button label="&DeleteHtmlDomain.label;" oncommand="gSendOptionsDialog.removeDomains(true);" accesskey="&DeleteHtmlDomain.accesskey;"/>
            </vbox>
          </hbox>
        </vbox>

        <vbox index="plainText">
          <label control="plaintext_domains" width="1">&domaindesc.label;</label>

          <hbox>
            <listbox id="plaintext_domains" flex="1" seltype="multiple" rows="5"
                     class="uri-element"
                     preference="mailnews.plaintext_domains"
                     onsynctopreference="return gSendOptionsDialog.saveDomainPref(false);"
                     onkeypress="if (event.keyCode == KeyEvent.DOM_VK_BACK_SPACE || event.keyCode == KeyEvent.DOM_VK_DELETE) gSendOptionsDialog.removeDomains(false);"/>
            <vbox>
              <button label="&AddPlainText.label;" oncommand="gSendOptionsDialog.addDomain(false);" accesskey="&AddPlainText.accesskey;"/>
              <button label="&DeletePlainText.label;" oncommand="gSendOptionsDialog.removeDomains(false);" accesskey="&DeletePlainText.accesskey;"/>
            </vbox>
          </hbox>
        </vbox>

      </tabpanels>
    </tabbox>

    <separator/>
  </prefpane>
</prefwindow>