home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / comm.jar / content / editor / EdSpellCheck.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-09-20  |  5.3 KB  |  124 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.    - The contents of this file are subject to the Netscape Public
  5.    - License Version 1.1 (the "License"); you may not use this file
  6.    - except in compliance with the License. You may obtain a copy of
  7.    - the License at http://www.mozilla.org/NPL/
  8.    -  
  9.    - Software distributed under the License is distributed on an "AS
  10.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    - implied. See the License for the specific language governing
  12.    - rights and limitations under the License.
  13.    -  
  14.    - The Original Code is Mozilla Communicator client code, released
  15.    - March 31, 1998.
  16.    - 
  17.    - The Initial Developer of the Original Code is Netscape
  18.    - Communications Corporation. Portions created by Netscape are
  19.    - Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20.    - Rights Reserved.
  21.    - 
  22.    - Contributor(s): 
  23.   -->
  24.  
  25. <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?> 
  26. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?> 
  27. <!DOCTYPE window SYSTEM "chrome://editor/locale/EditorSpellCheck.dtd">
  28.  
  29. <!-- dialog containing a control requiring initial setup -->
  30. <window class="dialog" title="&windowTitle.label;"
  31.     xmlns:html="http://www.w3.org/1999/xhtml"
  32.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  33.     onload = "Startup()"
  34.     onclose = "onClose()"
  35.     orient="vertical">
  36.  
  37.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  38.   <script type="application/x-javascript" src="chrome://communicator/content/utilityOverlay.js"/>
  39.   <script type="application/x-javascript" src="chrome://communicator/content/builtinURLs.js"/>
  40.   <script type="application/x-javascript" src="chrome://editor/content/EdSpellCheck.js"/>
  41.   <script type="application/x-javascript" src="chrome://global/content/strres.js" />
  42.  
  43.   <spring id="location" offsetY="50" persist="offsetX offsetY"/>
  44.   <keyset id="keys">
  45.     <key keycode="VK_ENTER"  oncommand="doDefault()"/>
  46.     <key keycode="VK_RETURN" oncommand="doDefault()"/>
  47.     <key keycode="VK_ESCAPE" oncommand="onClose()"/>
  48.   </keyset>
  49.   <broadcaster id="args" value=""/>
  50.  
  51.   <grid>
  52.     <columns>
  53.       <column class="spell-check"/>
  54.       <column class="spell-check"/>
  55.     </columns>
  56.     <rows>
  57.       <row valign="middle" autostretch="never">
  58.         <text class="label" id="MisspelledWordLabel" value="&misspelledWord.label;"/>
  59.         <text class="label bold" id="MisspelledWord" crop="right"/>
  60.         <spring/>
  61.       </row>
  62.       <row valign="middle" autostretch="never">
  63.         <text class="label" id="ReplaceWordLabel" value="&wordEditField.label;"/>
  64.         <hbox valign="middle" autostretch="never" flex="1">
  65.           <textbox id="ReplaceWordInput" oninput="ChangeReplaceWord()"/>
  66.           <button class="dialog" id="CheckWord" oncommand="CheckWord()" label="&checkwordButton.label;"/>
  67.         </hbox>
  68.       </row>
  69.     </rows>
  70.   </grid>
  71.   <text class="label" id="SuggestedListLabel" value="&suggestions.label;"/>
  72.   <grid>
  73.     <columns><column/><column/></columns>
  74.     <rows>
  75.       <row flex="1">
  76.         <!-- BUG! setting class="MinWidth20em" on tree doesn't work (width=0) -->
  77.         <tree rows="8" class="list" id="SuggestedList" onselect="SelectSuggestedWord()">
  78.           <treecolgroup>
  79.             <treecol flex="1"/>
  80.           </treecolgroup>
  81.         </tree>
  82.         <vbox>
  83.           <grid flex="1" autostretch="never">
  84.             <columns><column class="spell-check" flex="1"/><column class="spell-check" flex="1"/></columns>
  85.             <rows>
  86.               <row>
  87.                 <button class="dialog" id="Ignore"    oncommand="Ignore()" label="&ignoreButton.label;"/>
  88.                 <button class="dialog" id="IgnoreAll" oncommand="IgnoreAll()" label="&ignoreAllButton.label;"/>
  89.               </row>
  90.               <row>
  91.                 <button class="dialog" id="Replace" oncommand="Replace()" label="&changeButton.label;"/>
  92.                 <button class="dialog" id="ReplaceAll" oncommand="ReplaceAll()" label="&changeAllButton.label;"/>
  93.               </row>
  94.             </rows> 
  95.           </grid>
  96.           <spring flex="1"/>
  97.           <text class="label" value="&userDictionary.label;"/>
  98.           <hbox flex="1" autostretch="never">
  99.             <button class="dialog spell-check" id="AddToDictionary" oncommand="AddToDictionary()" label="&addToUserDictionaryButton.label;" />
  100.             <button class="dialog spell-check" id="EditDictionary"  oncommand="EditDictionary()" label="&editUserDictionaryButton.label;"   />
  101.           </hbox>
  102.         </vbox>
  103.       </row>
  104.       <row>
  105.         <text class="label" value ="&languagePopup.label;"/>
  106.         <spring/>
  107.       </row>
  108.       <row>
  109.         <menulist id="LanguageMenulist" class="small-margin" oncommand="SelectLanguage()">
  110.           <menupopup>
  111.             <menuitem value="more-cmd" label="&moreDictionaries.label;"/>
  112.             <menuseparator/>
  113.             <!-- dynamic content populated by JS -->
  114.           </menupopup>
  115.         </menulist>
  116.         <hbox flex="1">
  117.           <button class="dialog spell-check" id="Recheck" label="&recheckButton.label;" oncommand="Recheck()"/>
  118.           <button class="dialog spell-check" id="Close"   label="&closeButton.label;"   oncommand="onClose()"/>
  119.         </hbox>
  120.       </row>
  121.     </rows>
  122.   </grid>
  123. </window>
  124.