~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/editor/ui/dialogs/content/EdSpellCheck.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 dialog 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()"
 
80
                  ondblclick="if (gAllowSelectWord) Replace(event.target.getAttribute('label'));"/>
 
81
        <vbox>
 
82
          <grid flex="1">
 
83
            <columns><column class="spell-check" flex="1"/><column class="spell-check" flex="1"/></columns>
 
84
            <rows>
 
85
              <row>
 
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;"/>
 
91
              </row>
 
92
              <row>
 
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;"/>
 
97
              </row>
 
98
            </rows> 
 
99
          </grid>
 
100
          <spacer flex="1"/>
 
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;"/>
 
107
          </hbox>
 
108
        </vbox>
 
109
      </row>
 
110
      <label value ="&languagePopup.label;"
 
111
             control="LanguageMenulist"
 
112
             accesskey="&languagePopup.accessKey;"/>
 
113
      <row>
 
114
        <menulist id="LanguageMenulist" oncommand="SelectLanguage()">
 
115
          <menupopup>
 
116
            <menuitem value="more-cmd" label="&moreDictionaries.label;"/>
 
117
            <menuseparator/>
 
118
            <!-- dynamic content populated by JS -->
 
119
          </menupopup>
 
120
        </menulist>
 
121
        <hbox flex="1">
 
122
          <button class="spell-check" dlgtype="cancel" id="Stop" label="&stopButton.label;" oncommand="CancelSpellCheck();"
 
123
                  accesskey="&stopButton.accessKey;"/>
 
124
          <spacer flex="1"/>
 
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"/>
 
129
        </hbox>
 
130
      </row>
 
131
    </rows>
 
132
  </grid>
 
133
</dialog>