<?xml version="1.0"?> 
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://addressbook/skin/" type="text/css"?> 

<!--
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
[

	<!ENTITY selectAddressWindow.title "Select Addresses">

<!-- Buttons -->
	<!ENTITY toButton.label		"To:"> 
	<!ENTITY ccButton.label		"Cc:"> 
	<!ENTITY bccButton.label	"Bcc:"> 
	<!ENTITY stopButton.label	".Stop"> 
	<!ENTITY searchButton.label	".Search..."> 
	<!ENTITY newButton.label	".New..."> 
	<!ENTITY editButton.label	".Edit..."> 
	<!ENTITY viewButton.label	".View"> 
	<!ENTITY removeButton.label	".Remove"> 
	<!ENTITY okButton.label		".OK"> 
	<!ENTITY cancelButton.label	".Cancel"> 
	<!ENTITY helpButton.label	".Help"> 

<!-- Directory Pane -->
	<!ENTITY directoryColumn.label   "Directory"> 

<!-- menu items:  the . means that the menu item isn't implemented yet -->
<!-- File menu items -->

<!-- Toolbar items -->  
	<!ENTITY search.label "Show names containing:">  
]> 

<window xmlns:html="http://www.w3.org/TR/REC-html40"
		xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
		xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&selectAddressWindow.title;"
        style="width:100%; height:100%">

<html:script language="JavaScript" src="chrome://addressbook/content/addressbook.js"/>


<box align="vertical" style="width:100%; height:100%">
	<!-- Thin box across top, show names containing & stop, search buttons -->
	<box align="horizontal" style="width:100%; padding: 0.5em; padding-top: 0px;">
		<html:div style="vertical-align: middle;">
			<html:label for="searchtext" tabindex="0">&search.label;</html:label>
			<html:input type="text" id="searchtext" flex="100%"/>
		</html:div>
		
		<spring style="width: 1em;"/>
		
		<titledbutton id="stop" value="&stopButton.label;" class="push" onclick="SelectAddressStopButton()"/>	
		<spring style="width:10px"/>
		<titledbutton id="search" value="&searchButton.label;" class="push" onclick="SelectAddressSearchButton()"/>	
	</box>

	<!-- Main box, 3 pane and majority of buttons -->
	<box align="horizontal" flex="100%">
		<!-- 3 Pane box -->
		<box align="horizontal" flex="100%" style="border:thin solid">
			
			<!-- Directory List box -->
			<box align="vertical" style="width:190px; background-color:white">
				<tree id="dirTree" class="abDirectory" flex="100%"
						rdf:datasources="rdf:addressdirectory"
						onclick="return saChangeDirectoryByDOMNode(event.target.parentNode)">
					<treecol style="width:100%" rdf:resource="http://home.netscape.com/NC-rdf#DirName" />
					<treehead>
						<treeitem>
							<treecell>&directoryColumn.label;</treecell>
						</treeitem>
					</treehead>

					<treebody rdf:containment="http://home.netscape.com/NC-rdf#child" rdf:ignore="http://home.netscape.com/NC-rdf#CardChild">
						<treeitem id="abdirectory:/" open="true">
							<treecell/>
						</treeitem>
					</treebody>
				</tree>
			</box>
			
			<!-- Fake gripper box -->
			<box align="vertical" style="width:6px; background-color:#9999CC; border-left:thin solid; border-right:thin solid"/>

			<!-- Box that holds results pane, (to,cc,bcc buttons), and address bucket -->
			<box align="vertical" flex="100%">
				<!-- Box that holds results pane and (to,cc,bcc buttons) -->
				<box align="vertical" flex="50%">
					<!-- Results pane -->
					<html:iframe flex="100%" style="border:none; border-bottom:thin solid"
								 name="browser.selAddrResultPane"
								 src="chrome://addressbook/content/resultPane.xul"/>
					
					<!-- Box that holds (to,cc,bcc buttons) -->
					<box align="horizontal" style="padding: .3em">
						<spring flex="50%"/>
						<titledbutton id="toButton" value="&toButton.label;" class="push" onclick="SelectAddressToButton()"/>	
						<spring style="width:10px"/>
						<titledbutton id="ccButton" value="&ccButton.label;" class="push" onclick="SelectAddressCcButton()"/>	
						<spring style="width:10px"/>
						<titledbutton id="bccButton" value="&bccButton.label;" class="push" onclick="SelectAddressBccButton()"/>	
						<spring flex="50%"/>
					</box>
				</box>
				
				<!-- Address bucket -->
				<box align="vertical" flex="50%">
					<!-- Fake gripper box -->
					<box align="vertical" style="height:6px; background-color:#9999CC; border-top:thin solid; border-bottom:thin solid"/>
				
					<!-- The bucket -->
					<html:iframe flex="100%" style="border:none; border-bottom:thin solid"
								 name="browser.addressbucket"
								 src="chrome://addressbook/content/addressbucket.xul"/>
				</box>
			</box>
		</box>
		
		<!-- Box with buttons on right edge of window -->
		<box align="vertical" style="padding: .5em; padding-right: 0px">
			<box align="vertical" flex="50%">
				<spring style="height:10px"/>
				<titledbutton id="new" value="&newButton.label;" class="push" onclick="SelectAddressNewButton()"/>	
				<spring style="height:10px"/>
				<titledbutton id="edit" value="&editButton.label;" class="push" onclick="SelectAddressEditButton()"/>	
				<spring style="height:10px"/>
				<titledbutton id="view" value="&viewButton.label;" class="push" onclick="SelectAddressViewButton()"/>
				<spring flex="100%"/>
			</box>
			<box align="vertical" flex="50%">
				<spring flex="50%"/>
				<titledbutton id="remove" value="&removeButton.label;" class="push" onclick="RemoveSelectedFromBucket()"/>	
				<spring flex="50%"/>
			</box>
		</box>
	</box>

	<!-- Bottom 3/4 inch box, OK, Cancel, Help buttons -->
	<box align="horizontal" style="margin-top: 0.5em">
		<spring flex="100%"/>
		<titledbutton id="ok" value="&okButton.label;" class="push" onclick="SelectAddressOKButton()"/>	
		<spring style="width:10px"/>
		<titledbutton id="cancel" value="&cancelButton.label;" class="push" onclick="SelectAddressCancelButton()"/>	
		<spring style="width:10px"/>
		<titledbutton id="help" value="&helpButton.label;" class="push" onclick="SelectAddressHelpButton()"/>	
		<spring style="width:10px"/>
	</box>

</box>
</window>

