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

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

<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>


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


<window xmlns:html="http://www.w3.org/1999/xhtml"
		xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
		xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&fieldMapExport.title;"
		class="dialog"
        style="padding:0px"
        onload="OnLoadFieldMapExport()"
        align="vertical">

<html:script src="chrome://global/content/strres.js"/>
<html:script src="chrome://messenger/content/fieldMapExport.js"/>
<!--html:script language="JavaScript" src="resource:/res/samples/DumpDOM.js"/-->

	<keyset id="keyset"/>

	<box align="horizontal">
	
		<spring style="width:3em"/>
		
		<!-- field list -->
		<box align="vertical">
			<spring style="height:1em"/>
			<html:div id="fieldLabel">Ye old fields</html:div>
			<spring style="height:.5em"/>
				
			<box align="vertical" style="border: 1px inset white">
				<html:div style="width:10em; height:200px" flex="1">
					<tree id="fieldList" style="width:100%; height:100%" onselect="FieldSelectionChanged()">
                                                <treecolgroup>
						  <treecol flex="1"/>
                                                </treecolgroup>
						<treechildren id="fieldBody" flex="1"/>
					</tree>
				</html:div>
			</box>
						
			<spring style="height:1.5em"/>
			
		</box>
		
		<spring style="width: 1em"/>

		<box align="vertical" style="height:270px">
			<spring flex="50%"/>
			<titledbutton class="dialog push" onclick="OnAddExport()" value="&fieldMapExport.add;"/>
			<titledbutton class="dialog push" onclick="OnAddAllExport()" value="&fieldMapExport.addAll;"/>
			<spring flex="50%"/>
		</box>

		<spring style="width:1em"/>

		<!-- export list -->
		<box align="vertical">
			<spring style="height:1em"/>
			<html:div id="exportLabel">Export fields</html:div>
			<spring style="height:.5em"/>
				
			<box align="vertical" style="border: 1px inset white">
				<html:div style="width:10em; height:200px" flex="1">
					<tree	id="exportList" style="width:100%; height:100%" 
							onselect="ExportSelectionChanged()"
							onkeyup="if (event.keyCode == 8) return( DeleteExportItems());"
							ondragover="return DragOverTree(event);"
							ondraggesture="return BeginDrag( event, true);"
							ondragdrop="return DropOnTree( event);">
						<treecol style="width:100%"/>
						<treechildren id="exportBody"/>
					</tree>
				</html:div>
			</box>
						
			<spring style="height:1.5em"/>
			
		</box>
	
		<spring style="width:3em"/>

	</box>

	<!-- OK & Cancel buttons -->
	<box id="okCancelButtons"/>

</window>
