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/
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.
14
- The Original Code is Mozilla Communicator client code, released
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
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 dialog SYSTEM "chrome://editor/locale/EditorSpellCheck.dtd">
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"
34
ondialogaccept="return doDefault();"
35
ondialogcancel="return CancelSpellCheck();">
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"/>
43
<broadcaster id="args" value=""/>
45
<stringbundle id="languageBundle" src="chrome://global/locale/languageNames.properties"/>
46
<stringbundle id="regionBundle" src="chrome://global/locale/regionNames.properties"/>
50
<column class="spell-check"/>
51
<column class="spell-check" flex="1"/>
52
<column class="spell-check"/>
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;"/>
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;"/>
71
<label id="SuggestedListLabel" value="&suggestions.label;"
72
control="SuggestedList"
73
accesskey="&suggestions.accessKey;"/>
75
<columns><column/><column/></columns>
78
<!-- BUG! setting class="MinWidth20em" on tree doesn't work (width=0) -->
79
<listbox rows="6" id="SuggestedList" onselect="SelectSuggestedWord()"
80
ondblclick="if (gAllowSelectWord) Replace(event.target.getAttribute('label'));"/>
83
<columns><column class="spell-check" flex="1"/><column class="spell-check" flex="1"/></columns>
86
<button id="Replace" label="&replaceButton.label;"
87
oncommand="Replace(gDialog.ReplaceWordInput.value);"
88
accesskey="&replaceButton.accessKey;"/>
89
<button id="Ignore" oncommand="Ignore();" label="&ignoreButton.label;"
90
accesskey="&ignoreButton.accessKey;"/>
93
<button id="ReplaceAll" oncommand="ReplaceAll();" label="&replaceAllButton.label;"
94
accesskey="&replaceAllButton.accessKey;"/>
95
<button id="IgnoreAll" oncommand="IgnoreAll();" label="&ignoreAllButton.label;"
96
accesskey="&ignoreAllButton.accessKey;"/>
101
<label value="&userDictionary.label;"/>
102
<hbox flex="1" align="start">
103
<button class="spell-check" id="AddToDictionary" oncommand="AddToDictionary()" label="&addToUserDictionaryButton.label;"
104
accesskey="&addToUserDictionaryButton.accessKey;"/>
105
<button class="spell-check" id="EditDictionary" oncommand="EditDictionary()" label="&editUserDictionaryButton.label;"
106
accesskey="&editUserDictionaryButton.accessKey;"/>
110
<label value ="&languagePopup.label;"
111
control="LanguageMenulist"
112
accesskey="&languagePopup.accessKey;"/>
114
<menulist id="LanguageMenulist" oncommand="SelectLanguage()">
116
<menuitem value="more-cmd" label="&moreDictionaries.label;"/>
118
<!-- dynamic content populated by JS -->
122
<button class="spell-check" dlgtype="cancel" id="Stop" label="&stopButton.label;" oncommand="CancelSpellCheck();"
123
accesskey="&stopButton.accessKey;"/>
125
<button class="spell-check" id="Close" label="&closeButton.label;" oncommand="onClose();"
126
accesskey="&closeButton.accessKey;"/>
127
<button class="spell-check" id="Send" label="&sendButton.label;" oncommand="onClose();"
128
accesskey="&sendButton.accessKey;" hidden="true"/>