<?xml version="1.0"?>

<!--
   The contents of this file are subject to the Netscape Public
   License Version 1.1 (the "License"); you may not use this file
   except in compliance with the License. You may obtain a copy of
   the License at http://www.mozilla.org/NPL/
    
   Software distributed under the License is distributed on an "AS
   IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
   implied. See the License for the specific language governing
   rights and limitations under the License.
    
   The Original Code is Mozilla Communicator client code, released
   March 31, 1998.
   
   The Initial Developer of the Original Code is Netscape
   Communications Corporation. Portions created by Netscape are
   Copyright (C) 1998-1999 Netscape Communications Corporation. All
   Rights Reserved.
   
   Contributor(s): 
  -->


<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/preftree.dtd" >

<overlay id="prefTreeOverlay"
  xmlns:html="http://www.w3.org/TR/REC-html40"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<tree id="prefsTree" 
      onselect="if( hPrefWindow ) hPrefWindow.switchPage();">

  <treehead name="tree">
    <treerow>
      <treecell class="treecell-header outset" url="__header" value="&categoryHeader;"/>
    </treerow>
  </treehead>

  <treechildren id="panelChildren">

    
    <treeitem container="true" open="true" id="appearance">
      <treerow>   
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-appearance.xul" value="&appear.label;"/> 
      </treerow>
      <treechildren>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-fonts.xul" value="&fonts.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-colors.xul" value="&colors.label;"/> 
          </treerow>
        </treeitem>
		    <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-themes.xul" value="&themes.label;"/> 
          </treerow>
        </treeitem>
      </treechildren>
    </treeitem>

    <!-- XXX remove this when overlays.rdf works for navigator -->
    <treeitem container="true" open="true" id="navigator">
      <treerow>
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-navigator.xul" value="&navigator.label;"/> 
      </treerow>
      <treechildren>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-languages2.xul" value="&languages.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-applications.xul" value="&applications.label;"/> 
          </treerow>  
        </treeitem> 
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-smart_browsing.xul" value="&smartBrowse.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-search.xul" value="&search.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-policies.xul" value="&policies.label;"/>
          </treerow>
        </treeitem>
      </treechildren>
    </treeitem>
    <!-- XXX -->

    <!-- XXX remove once mailnews overlays.rdf works properly -->
    <treeitem container="true" open="true" id="mailnews">
      <treerow>       
        <treecell class="treecell-indent" url="chrome://messenger/content/pref-mailnews.xul" value="&mail.label;"/> 
      </treerow>
      <treechildren id="messengerChildren">
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://messenger/content/pref-viewing_messages.xul" value="&viewingMessages.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://messenger/content/messengercompose/pref-composing_messages.xul" value="&composingMessages.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://messenger/content/messengercompose/pref-formatting.xul" value="&format.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://messenger/content/addressbook/pref-addressing.xul" value="&address.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://messenger/content/pref-receipts.xul" value="&return.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://messenger/content/pref-diskspace.xul" value="&disk.label;"/> 
          </treerow>
        </treeitem>
      </treechildren>
    </treeitem>
    <!-- XXX -->
 
    <!-- XXX remove once overlays.rdf works properly for editor -->
    <treeitem container="true" open="true" id="editor">
      <treerow>       
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-composer.xul" value="&compose.label;"/> 
      </treerow>
      <treechildren>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-editing.xul" value="&editing.label;"/> 
          </treerow>
        </treeitem>
        <!--     
        <treeitem>
		      <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-publish.xul" value="&publish.label;"/> 
		      </treerow>
	      </treeitem>  
        -->
      </treechildren>
    </treeitem>
    <!-- XXX -->
    
    <treeitem open="true" id="smartupdate">
      <treerow>
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-smartupdate.xul" value="&smart.label;"/> 
      </treerow>
    </treeitem>

    <!-- 
    <treeitem open="true" id="offline">
      <treerow>       
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-offline.xul" value="&offline.label;"/> 
      </treerow>
      <treechildren>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-download.xul" value="&down.label;"/> 
          </treerow>
        </treeitem>
      </treechildren>
    </treeitem>  
    -->
    
    <treeitem container="true" open="true" id="advancedItem">
      <treerow>
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-advanced.xul" value="&advance.label;"/> 
      </treerow>
      <treechildren id="advancedChildren">
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-cookies.xul"
                      value="&cookies.label;" valueWithImages="&cookies.labelWithImages;"
                      id="cookiesCell"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-wallet.xul" value="&wallet.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-cache.xul" value="&cache.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-proxies.xul" value="&proxies.label;"/> 
          </treerow>
        </treeitem>
        <treeitem id="mousewheelItem">
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-mousewheel.xul" value="&mousewheel.label;"/>
          </treerow>
        </treeitem>
        <treeitem id="winhooks">
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-winhooks.xul" value="&winhooks.label;"/>
          </treerow>
        </treeitem>

      </treechildren>
    </treeitem>

    <treeitem open="true">
      <treerow>       
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-debug.xul" value="&debug.label;"/> 
      </treerow>
    </treeitem>
  </treechildren>

</tree>

</overlay>
