<?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/dialogs.css" type="text/css"?> 

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

<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % importDTD SYSTEM "chrome://messenger/locale/importDialog.dtd" >
%importDTD;
]>

<window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="OnLoadImportDialog()" class="color-dialog"
        orient="vertical" style="width: 40em;"
        title="&importDialog.windowTitle;">

  <stringbundle id="bundle_importMsgs" src="chrome://messenger/locale/importMsgs.properties"/>
  <script type="application/x-javascript" src="chrome://messenger/content/importDialog.js"/>

  <keyset id="dialogKeys"/>
  
  <hbox class="box-header" id="header"
       title="&importTitle.label;"
       description="&importDesc.label;"/>

  <deck id="stateDeck" index="0">
    <vbox class="wizard-box">
      <html>&importDescription.label;</html>
      <html>&importDescription2.label;</html>
      <separator/>
      <html>&select.label;</html>
      <separator class="thin"/>
      <radiogroup id="importFields" orient="vertical" class="indent" autostretch="never">
        <radio group="importFields" value="addressbook" id="addressbookRadio" label="&importDialog.addressbookTitle;"/>
        <radio group="importFields" value="mail" id="mailRadio" label="&importDialog.mailTitle;"/>
        <radio group="importFields" value="settings" id="settingsRadio" label="&importDialog.settingsTitle;"/>
      </radiogroup>
    </vbox>
    <vbox class="wizard-box">
      <html>&selectDescription.label;</html>
      <tree class="inset" id="moduleList" flex="3" onselect="ImportSelectionChanged(); enableAdvance();" 
            style="height: 0px;">
        <treecolgroup>
          <treecol flex="1"/>
        </treecolgroup>
        <treechildren id="bucketBody" flex="1"/>
      </tree>
      <html id="description" class="box-padded" flex="1"/>
    </vbox>
    <vbox class="wizard-box">
      <spring flex="1"/>
      <groupbox orient="vertical">
        <label id="progressTitle" value="&title.label;"/>
        <text class="label indent" id="progressStatus" value="&processing.label;"/>
        <vbox class="box-padded">
          <progressmeter id="progressMeter" mode="normal" value="5"/>
        </vbox>
      </groupbox>
    </vbox>
    <vbox class="wizard-box">
      <html id="status"/>
      <hbox style="overflow: auto" class="inset color-window" flex="1">
        <html id="results" flex="1"/>
      </hbox>
    </vbox>
    <vbox class="wizard-box">
      <html>&FieldDiscInputText1.label;</html>
      <html>&FieldDiscInputText2.label;</html>
      <separator/>
      <separator class="thin"/>
      <radiogroup id="homeorwork" orient="vertical" class="indent" autostretch="never">
        <radio group="homeorwork" value="Home" id="homeRadio" label="&importDialog.homeTitle;"/>
        <radio group="homeorwork" value="Work" id="workRadio" label="&importDialog.workTitle;"/>
      </radiogroup>
         <separator/>
         <separator/>
         <html>&FieldDiscWarning.label;</html>
         <text id="warning" flex="1"/>
    </vbox>
  </deck>

  <separator/>
  
  <separator class="groove"/>
  
  <hbox class="box-padded">
    <spring flex="1"/>
    <button id="back" label="&back.label;" disabled="true"
            oncommand="back();"/>
    <button id="forward" label="&forward.label;" nextval="&forward.label;" finishedval="&finish.label;" 
            oncommand="next();"/>
    <separator orient="vertical"/>
    <button id="cancel" label="&cancel.label;"
            oncommand="close();"/>
  </hbox>
  

</window>
