summaryrefslogtreecommitdiffstats
path: root/comm/suite/mailnews/components/addrbook/content/prefs/pref-addressing.xul
blob: af4bed750b93eb4ff6232dafccba5427e3d8d28c (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
<?xml version="1.0"?>
<!-- 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://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>

<!DOCTYPE overlay SYSTEM "chrome://messenger/locale/addressbook/pref-addressing.dtd">

<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <prefpane id="addressing_pane" label="&pref.addressing.title;"
            script="chrome://messenger/content/addressbook/pref-addressing.js">

    <stringbundle id="bundle_addressBook"
                  src="chrome://messenger/locale/addressbook/addressBook.properties"/>

    <preferences id="addressing_preferences">
      <preference id="mail.collect_email_address_outgoing"
                  name="mail.collect_email_address_outgoing"
                  type="bool"/>
      <preference id="mail.collect_addressbook"
                  name="mail.collect_addressbook"
                  type="string"/>
      <preference id="mail.autoComplete.highlightNonMatches"
                  name="mail.autoComplete.highlightNonMatches"
                  type="bool"/>
      <preference id="mail.enable_autocomplete"
                  name="mail.enable_autocomplete"
                  type="bool"/>
      <preference id="ldap_2.autoComplete.useDirectory"
                  name="ldap_2.autoComplete.useDirectory"
                  onchange="enableAutocomplete();" type="bool"/>
      <preference id="ldap_2.autoComplete.directoryServer"
                  name="ldap_2.autoComplete.directoryServer"
                  type="string"/>
      <preference id="pref.ldap.disable_button.edit_directories"
                  name="pref.ldap.disable_button.edit_directories"
                  type="bool"/>
    </preferences>

    <groupbox>
      <caption label="&emailCollectiontitle.label;"/>
      <description>&emailCollectiontext.label;</description>
      <hbox align="center">
        <checkbox id="emailCollectionOutgoing"
                  label="&emailCollectionPicker.label;"
                  accesskey="&emailCollectionPicker.accesskey;"
                  preference="mail.collect_email_address_outgoing"/>
        <menulist id="localDirectoriesList" flex="1"
                  aria-labelledby="emailCollectionOutgoing"
                  preference="mail.collect_addressbook">
          <menupopup id="localDirectoriesPopup" class="addrbooksPopup"
                     localonly="true" writable="true"/>
        </menulist>
      </hbox>
    </groupbox>
    <groupbox id="addressAutocompletion">
      <caption label="&addressingTitle.label;"/>
      <hbox align="center">
        <checkbox id="highlightNonMatches" label="&highlightNonMatches.label;"
                  preference="mail.autoComplete.highlightNonMatches"
                  accesskey="&highlightNonMatches.accesskey;"/>
      </hbox>

      <separator class="thin"/>

      <description>&autocompleteText.label;</description>
      <hbox align="center">
        <checkbox id="addressingAutocomplete" label="&addressingEnable.label;"
                  preference="mail.enable_autocomplete"
                  accesskey="&addressingEnable.accesskey;"/>
      </hbox>
      <hbox align="center">
        <checkbox id="autocompleteLDAP" label="&directories.label;"
                  preference="ldap_2.autoComplete.useDirectory"
                  accesskey="&directories.accesskey;"/>
        <menulist id="directoriesList" flex="1"
                  aria-labelledby="autocompleteLDAP"
                  preference="ldap_2.autoComplete.directoryServer">
          <menupopup id="directoriesListPopup" class="addrbooksPopup"
                     none="&directoriesNone.label;"
                     remoteonly="true" value="dirPrefId"/>
        </menulist>
        <button id="editButton" label="&editDirectories.label;"
                oncommand="onEditDirectories();"
                accesskey="&editDirectories.accesskey;"
                preference="pref.ldap.disable_button.edit_directories"/>
      </hbox>
    </groupbox>
  </prefpane>
</overlay>