<?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.
--> 

<!DOCTYPE window SYSTEM "chrome://messenger/locale/addressbook/abResultsTreeOverlay.dtd">


<overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
		 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

	<!-- FIX ME - remove document.commandDispatcher.updateCommands() when tree selection calls this automatically -->
	<tree id="resultsTree"
		  class="abResults" 
		  datasources="rdf:addressdirectory rdf:addresscard"
		  onselect="top.ResultsPaneSelectionChange(); document.commandDispatcher.updateCommands('tree-select');"
		  onblur="goOnEvent(this,'blur')"
		  onclick="clickResultsTree(event);"
		  containment="http://home.netscape.com/NC-rdf#CardChild"
		  allownegativeassertions="false"
          coalesceduplicatearcs="false"
          ondragover="return DragOverTree(event);"
          ondraggesture="return BeginDragResultTree(event);"
          ondragdrop="return DropOnResultTree(event);"
          multiple="true">

		<template>
			<rule>
				<treechildren flex="1">
					<treeitem uri="...">
						<treerow id="AbRows">
					    	<treecell class="cardicon" value="rdf:http://home.netscape.com/NC-rdf#Name"/>
					    	<treecell value="rdf:http://home.netscape.com/NC-rdf#PrimaryEmail"/>
					    	<treecell value="rdf:http://home.netscape.com/NC-rdf#WorkPhone"/>
					    	<treecell value="rdf:http://home.netscape.com/NC-rdf#Company"/>
						</treerow>
					</treeitem>
				</treechildren>
			</rule>
		</template>

		<treecolgroup id="theColumns">
			<treecol persist="hidden width"  flex="2" id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
			<treecol persist="hidden width" flex="3" id="EmailColumn" rdf:resource="http://home.netscape.com/NC-rdf#PrimaryEmail"/>
			<treecol persist="hidden width"  flex="2" id="WorkPhoneColumn" rdf:resource="http://home.netscape.com/NC-rdf#WorkPhone"/>
			<treecol persist="hidden width"  flex="2" id="OrganizationColumn" rdf:resource="http://home.netscape.com/NC-rdf#Company"/>
		</treecolgroup>
		
		<treehead>
			<treerow id="headRow">
				<treecell id="NameColumnHeader" value="&nameColumn.label;" class="sortDirectionIndicator treecell-header treecell-inset-header" onclick="return top.SortResultPane('NameColumn', 'http://home.netscape.com/NC-rdf#Name');"/>
				<treecell id="EmailColumnHeader" value="&emailColumn.label;" class="sortDirectionIndicator treecell-header treecell-inset-header" onclick="return top.SortResultPane('EmailColumn', 'http://home.netscape.com/NC-rdf#PrimaryEmail');"/>
				<treecell id="WorkPhoneColumnHeader" value="&workPhoneColumn.label;" class="sortDirectionIndicator treecell-header treecell-inset-header" onclick="return top.SortResultPane('WorkPhoneColumn', 'http://home.netscape.com/NC-rdf#WorkPhone');"/>
				<treecell id="OrganizationColumnHeader" value="&organizationColumn.label;" class="sortDirectionIndicator treecell-header treecell-inset-header" onclick="return top.SortResultPane('OrganizationColumn', 'http://home.netscape.com/NC-rdf#Company');"/>
			</treerow>
		</treehead>

	</tree>

</overlay>
