<?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): 
  -->

<?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://editor/locale/EditorPersonalDictionary.dtd">

<xul:window class="dialog" title="&windowTitle.label;"
    xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    xmlns="http://www.w3.org/TR/REC-html40"
    onload = "Startup()"
    align="vertical">

  <!-- Methods common to all editor dialogs -->
  <script language="JavaScript" src="chrome://editor/content/EdDialogCommon.js">
  </script>
  <script language="JavaScript" src="chrome://editor/content/EdDictionary.js">
  </script>

  <xul:broadcaster id="args" value=""/>
  <table>
    <tr>
      <td colspan="2">
        &wordEditField.label;<br/>
      </td>
    </tr>
    <tr>
      <td>
        <input type="text" class="SpellCheckWord" id="WordInput" size="10"/>
      </td>
      <td>
        <xul:titledbutton class="push SizeToParent"  id="AddWord" onclick="AddWord()" value="&AddButton.label;"/>
      </td>
    </tr>
    <tr>
      <td colspan="2">
        &DictionaryList.label;
      </td>
    </tr>
    <tr>
      <td>
        <select class="SpellCheckList" id="DictionaryList" size="10">
        </select>
      </td>
      <td>
        <xul:titledbutton class="push SizeToParent"  id="ReplaceWord" onclick="ReplaceWord()" value="&ReplaceButton.label;"/>
        <br/>
        <xul:titledbutton class="push SizeToParent"  id="RemoveWord" onclick="RemoveWord()" value="&RemoveButton.label;"/>
        <br/>
        <!-- This simply closes the window -->
        <xul:titledbutton class="push CloseButton"  id="Close" onclick="onCancel()" value="&CloseButton.label;"/>
      </td>
    </tr>
  </table>
</xul:window>
