mailnews/addrbook/prefs/resources/content/pref-addressing.xul
author hg@mozilla.org
Tue, 22 Jul 2008 14:21:15 +0200
changeset 0 e4f4569d451a5e0d12a6aa33ebd916f979dd8faa
child 296 9c411f661785160e87c1df366afc1fa7ccd4dc31
permissions -rw-r--r--
bug 437643 - Build Thunderbird and SeaMonkey from comm-central, initial import of code from CVS tag HG_COMM_INITIAL_IMPORT at 2008-07-22 05:18:47 PST, imported and tagged cvs.mozilla.org modules: mozilla/directory/xpcom/ mozilla/mailnews/ mozilla/mail/ mozilla/suite/ mozilla/other-licenses/branding/thunderbird/

<?xml version="1.0"?>

<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>

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

<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      xmlns:nc="http://home.netscape.com/NC-rdf#"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      onload="onLoad();"
      headertitle="&pref.addressing.title;">

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

  <script type="application/x-javascript" src="chrome://messenger/content/addressbook/pref-directory.js"/>
  <script type="application/x-javascript">
  <![CDATA[
    var _elementIDs = ["emailCollectionOutgoing",
                       "highlightNonMatches",
                       "addressingAutocomplete",
                       "autocompleteLDAP",
                       "localDirectoriesList",
                       "directoriesList"];

  function onLoad()
  {
    createDirectoriesList();
    parent.initPanel('chrome://messenger/content/addressbook/pref-addressing.xul');   
  }

  function Startup() 
  {
    enableAutocomplete();
  }
  ]]>
  </script>  

  <groupbox>
    <caption label="&emailCollectiontitle.label;"/>
  <description>&emailCollectiontext.label;</description>
    <hbox align="center">
      <checkbox id="emailCollectionOutgoing" 
        label="&emailCollectionPicker.label;"
        accesskey="&emailCollectionPicker.accesskey;"
        prefstring="mail.collect_email_address_outgoing"/>
   <menulist id="localDirectoriesList" flex="1"
             aria-labelledby="emailCollectionOutgoing"
             preftype="string" 
             prefstring="mail.collect_addressbook">
     <menupopup id="abPopup-menupopup" ref="moz-abdirectory://" 
                 datasources="rdf:addressdirectory"
                 sortActive="true"
                 sortDirection="ascending"
                 sortResource="http://home.netscape.com/NC-rdf#DirTreeNameSort">
        <template>
        <rule nc:IsWriteable="false"/>
        <rule nc:IsMailList="false">
          <menuitem uri="..."
                    label="rdf:http://home.netscape.com/NC-rdf#DirName"
                    value="rdf:http://home.netscape.com/NC-rdf#DirUri"/>
        </rule>
        </template>
      </menupopup>
    </menulist>
    </hbox>
  </groupbox>
	
    <groupbox id="addressAutocompletion">
      <caption label="&addressingTitle.label;"/>
    <hbox align="center">
      <checkbox id="highlightNonMatches" label="&highlightNonMatches.label;"
                prefstring="mail.autoComplete.highlightNonMatches"
                accesskey="&highlightNonMatches.accesskey;"/>
    </hbox>

    <separator class="thin"/>

      <description>&autocompleteText.label;</description>
      <hbox align="center">
        <checkbox id="addressingAutocomplete" label="&addressingEnable.label;"
                  prefstring="mail.enable_autocomplete"
                  accesskey="&addressingEnable.accesskey;"/>
      </hbox>
      <hbox align="center">
        <checkbox id="autocompleteLDAP" label="&directories.label;" 
                  prefstring="ldap_2.autoComplete.useDirectory" 
                  oncommand="enableAutocomplete();"
                  accesskey="&directories.accesskey;"/>
       <menulist id="directoriesList" flex="1"
                 aria-labelledby="autocompleteLDAP"
                 preftype="string" 
                 prefstring="ldap_2.autoComplete.directoryServer">
          <menupopup id="directoriesListPopup" 
            onpopupshowing="createDirectoriesList();">
          </menupopup>
       </menulist>
       <button id="editButton" label="&editDirectories.label;" 
               prefstring="pref.ldap.disable_button.edit_directories" 
               oncommand="onEditDirectories();"
               accesskey="&editDirectories.accesskey;"/>
     </hbox>
<!--
     <description>&matchText.label;</description>
     <hbox align="center">
       <checkbox id="autocompleteSkipDirectory"
                 label="&skipDirectory.label;" 
                 prefstring="ldap_2.autoComplete.skipDirectoryIfLocalMatchFound"/>    
     </hbox>
-->
   </groupbox>
</page>