<?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/editor.css" type="text/css"?>
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://editor/locale/EditorSpellCheck.dtd">

<!-- dialog containing a control requiring initial setup -->
<window class="dialog" title="&windowTitle.label;"
    xmlns:html="http://www.w3.org/1999/xhtml"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    onload = "Startup()"
    persist="screenX screenY"
    orient="vertical">

  <script language="JavaScript" src="chrome://editor/content/EdDialogCommon.js"/>
  <script language="JavaScript" src="chrome://editor/content/EdSpellCheck.js"/>
  <script language="Javascript" src="chrome://global/content/strres.js" />
  <!-- The argument to ShowWindowWithArgs (the editor appCore name) is placed here -->
  <broadcaster id="args" value=""/>
  <box>
    <!-- value is set in JS -->
    <text class="label" id="MisspelledWordLabel"/>
    <spring class="bigspacer"/>
    <text class="label bold" id="MisspelledWord"/>
  </box>
  <grid>
    <columns><column style="width: 15em" flex="1"/><column style="width: 15em" flex="1"/></columns>
    <rows>
      <row>
        <text class="label" id="ReplaceWordLabel" value="&wordEditField.label;"/>
        <spring/>
      </row>
      <row>
        <textfield id="ReplaceWord" onkeyup="ChangeReplaceWord()"/>
        <box flex="1">
          <button id="CheckWord" oncommand="CheckWord()" value="&checkwordButton.label;"/>
        </box>
      </row>
      <row>
        <text class="label" id="SuggestedListLabel" value="&suggestions.label;"/>
        <spring/>
      </row>
      <row>
        <!-- BUG! setting class="MinWidth20em" on tree doesn't work (width=0) -->
        <tree rows="8" class="list" id="SuggestedList" onselect="SelectSuggestedWord()" onclick="SelectSuggestedWord()">
          <treecolgroup><treecol flex="1"/></treecolgroup>
        </tree>
        <grid flex="1">
          <columns><column flex="1"/><column flex="1"/></columns>
          <rows>
            <row>
              <button class="dialog" id="Ignore" oncommand="Ignore()" value="&ignoreButton.label;"/>
              <button class="dialog" flex="1" id="IgnoreAll" oncommand="IgnoreAll()" value="&ignoreAllButton.label;"/>
            </row>
            <row>
              <button class="dialog" id="Replace" oncommand="Replace()" value="&changeButton.label;"/>
              <button class="dialog" id="ReplaceAll" oncommand="ReplaceAll()" value="&changeAllButton.label;"/>
            </row>
            <row>
              <text class="label" value="&userDictionary.label;"/>
              <spring/>
            </row>
            <row>
              <button class="dialog" id="AddToDictionary" oncommand="AddToDictionary()" value="&addToUserDictionaryButton.label;"/>
              <button class="dialog" id="EditDictionary"  oncommand="EditDictionary()" value="&editUserDictionaryButton.label;"/>
            </row>
          </rows> 
        </grid>
      </row>
      <row>
        <text class="label" value ="&languagePopup.label;"/>
        <spring/>
      </row>
      <row>
        <menulist id="LanguageMenulist" oncommand="SelectLanguage()" flex="1"/>
          <!-- contents are appended by JS -->
        <box flex="1">
          <button class="dialog" id="Recheck" flex="1" value="&recheckButton.label;" oncommand="Recheck()"/>
          <button class="dialog" id="Close" flex="1" value="&closeButton.label;" oncommand="Close()"/>
        </box>
      </row>
    </rows>
  </grid>
</window>
