home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / editor / EdSpellCheck.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  6KB  |  132 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. <dialog buttons="cancel" title="&windowTitle.label;"
  31.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  32.     persist="screenX screenY"
  33.     onload = "Startup()"
  34.     ondialogaccept="return doDefault();"
  35.     ondialogcancel="return CancelSpellCheck();">
  36.  
  37.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  38.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  39.   <script type="application/x-javascript" src="chrome://communicator/content/utilityOverlay.js"/>
  40.   <script type="application/x-javascript" src="chrome://communicator/content/builtinURLs.js"/>
  41.   <script type="application/x-javascript" src="chrome://editor/content/EdSpellCheck.js"/>
  42.  
  43.   <broadcaster id="args" value=""/>
  44.  
  45.   <stringbundle id="languageBundle" src="chrome://global/locale/languageNames.properties"/>
  46.   <stringbundle id="regionBundle" src="chrome://global/locale/regionNames.properties"/>
  47.  
  48.   <grid>
  49.     <columns>
  50.       <column class="spell-check"/>
  51.       <column class="spell-check" flex="1"/>
  52.       <column class="spell-check"/>
  53.     </columns>
  54.     <rows>
  55.       <row align="center">
  56.         <label id="MisspelledWordLabel" value="&misspelledWord.label;"/>
  57.         <label class="bold" id="MisspelledWord"/>
  58.         <button class="spell-check" label="&recheckButton.label;" oncommand="Recheck();"
  59.                 accesskey="&recheckButton.accessKey;"/>
  60.       </row>
  61.       <row align="center">
  62.         <label id="ReplaceWordLabel" value="&wordEditField.label;"
  63.                control="ReplaceWordInput"
  64.                accesskey="&wordEditField.accessKey;"/>
  65.         <textbox id="ReplaceWordInput" oninput="ChangeReplaceWord()" flex="1"/>
  66.         <button id="CheckWord" oncommand="CheckWord()" label="&checkwordButton.label;"
  67.                 accesskey="&checkwordButton.accessKey;"/>
  68.       </row>
  69.     </rows>
  70.   </grid>
  71.   <label id="SuggestedListLabel" value="&suggestions.label;"
  72.          control="SuggestedList"
  73.          accesskey="&suggestions.accessKey;"/>
  74.   <grid>
  75.     <columns><column/><column/></columns>
  76.     <rows>
  77.       <row flex="1">
  78.         <!-- BUG! setting class="MinWidth20em" on tree doesn't work (width=0) -->
  79.         <listbox  rows="6" id="SuggestedList" onselect="SelectSuggestedWord()" ondblclick="Replace();"/>
  80.         <vbox>
  81.           <grid flex="1">
  82.             <columns><column class="spell-check" flex="1"/><column class="spell-check" flex="1"/></columns>
  83.             <rows>
  84.               <row>
  85.                 <button id="Replace" oncommand="Replace();" label="&replaceButton.label;"
  86.                         accesskey="&replaceButton.accessKey;"/>
  87.                 <button id="Ignore"  oncommand="Ignore();" label="&ignoreButton.label;"
  88.                         accesskey="&ignoreButton.accessKey;"/>
  89.               </row>
  90.               <row>
  91.                 <button id="ReplaceAll" oncommand="ReplaceAll();" label="&replaceAllButton.label;"
  92.                         accesskey="&replaceAllButton.accessKey;"/>
  93.                 <button id="IgnoreAll"  oncommand="IgnoreAll();" label="&ignoreAllButton.label;"
  94.                         accesskey="&ignoreAllButton.accessKey;"/>
  95.               </row>
  96.             </rows> 
  97.           </grid>
  98.           <spacer flex="1"/>
  99.           <label value="&userDictionary.label;"/>
  100.           <hbox flex="1" align="start">
  101.             <button class="spell-check" id="AddToDictionary" oncommand="AddToDictionary()" label="&addToUserDictionaryButton.label;"
  102.                     accesskey="&addToUserDictionaryButton.accessKey;"/>
  103.             <button class="spell-check" id="EditDictionary"  oncommand="EditDictionary()" label="&editUserDictionaryButton.label;"
  104.                     accesskey="&editUserDictionaryButton.accessKey;"/>
  105.           </hbox>
  106.         </vbox>
  107.       </row>
  108.       <label value ="&languagePopup.label;"
  109.              control="LanguageMenulist"
  110.              accesskey="&languagePopup.accessKey;"/>
  111.       <row>
  112.         <menulist id="LanguageMenulist" oncommand="SelectLanguage()">
  113.           <menupopup>
  114.             <menuitem value="more-cmd" label="&moreDictionaries.label;"/>
  115.             <menuseparator/>
  116.             <!-- dynamic content populated by JS -->
  117.           </menupopup>
  118.         </menulist>
  119.         <hbox flex="1">
  120.           <button class="spell-check" dlgtype="cancel" id="Stop" label="&stopButton.label;" oncommand="CancelSpellCheck();"
  121.                   accesskey="&stopButton.accessKey;"/>
  122.           <spacer flex="1"/>
  123.           <button class="spell-check" id="Close" label="&closeButton.label;" oncommand="onClose();"
  124.                   accesskey="&closeButton.accessKey;"/>
  125.           <button class="spell-check" id="Send" label="&sendButton.label;" oncommand="onClose();"
  126.                   accesskey="&sendButton.accessKey;" hidden="true"/>
  127.         </hbox>
  128.       </row>
  129.     </rows>
  130.   </grid>
  131. </dialog>
  132.