summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/compose/content/dialogs/EdSpellCheck.xhtml
blob: fcff0e17036dbc9c4da345553d87c4d86a43ad30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<?xml version="1.0"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/input-fields.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/shared/grid-layout.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/variables.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/colors.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/themeableDialog.css" type="text/css"?>

<!DOCTYPE window SYSTEM "chrome://messenger/locale/messengercompose/EditorSpellCheck.dtd">

<!-- dialog containing a control requiring initial setup -->
<window
  id="spellCheckDlg"
  title="&windowTitle.label;"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  persist="screenX screenY"
  lightweightthemes="true"
  onload="Startup()"
>
  <dialog buttons="cancel">
    <script src="chrome://messenger/content/globalOverlay.js" />
    <script src="chrome://global/content/editMenuOverlay.js" />
    <script src="chrome://messenger/content/messengercompose/editorUtilities.js" />
    <script src="chrome://messenger/content/messengercompose/EdDialogCommon.js" />
    <script src="chrome://communicator/content/utilityOverlay.js" />
    <script src="chrome://messenger/content/messengercompose/EdSpellCheck.js" />
    <script src="chrome://global/content/contentAreaUtils.js" />
    <script src="chrome://messenger/content/dialogShadowDom.js" />

    <stringbundle
      id="languageBundle"
      src="chrome://global/locale/languageNames.properties"
    />
    <stringbundle
      id="regionBundle"
      src="chrome://global/locale/regionNames.properties"
    />

    <html:div class="grid-three-column-auto-x-auto">
      <html:div class="flex-items-center">
        <label id="MisspelledWordLabel" value="&misspelledWord.label;" />
      </html:div>
      <html:div class="flex-items-center">
        <label id="MisspelledWord" class="bold" crop="end" />
      </html:div>
      <html:div class="flex-items-center">
        <button
          class="spell-check"
          label="&recheckButton2.label;"
          oncommand="Recheck();"
          accesskey="&recheckButton2.accessKey;"
        />
      </html:div>
      <html:div class="flex-items-center">
        <label
          id="ReplaceWordLabel"
          value="&wordEditField.label;"
          control="ReplaceWordInput"
          accesskey="&wordEditField.accessKey;"
        />
      </html:div>
      <html:div>
        <hbox flex="1" class="input-container">
          <html:input
            id="ReplaceWordInput"
            type="text"
            class="input-inline"
            onchange="ChangeReplaceWord()"
            aria-labelledby="ReplaceWordLabel"
          />
        </hbox>
      </html:div>
      <html:div class="flex-items-center">
        <button
          id="CheckWord"
          class="spell-check"
          oncommand="CheckWord()"
          label="&checkwordButton.label;"
          accesskey="&checkwordButton.accessKey;"
        />
      </html:div>
    </html:div>
    <label
      id="SuggestedListLabel"
      value="&suggestions.label;"
      control="SuggestedList"
      accesskey="&suggestions.accessKey;"
    />
    <hbox flex="1" class="display-flex">
      <html:div class="grid-two-column-x-auto flex-1">
        <html:div class="display-flex">
          <richlistbox
            id="SuggestedList"
            class="display-flex flex-1"
            onselect="SelectSuggestedWord()"
            ondblclick="if (gAllowSelectWord) { Replace(event.target.value); }"
          />
        </html:div>
        <html:div>
          <vbox>
            <html:div class="grid-two-column-equalsize">
              <button
                id="Replace"
                class="spell-check"
                label="&replaceButton.label;"
                oncommand="Replace(gDialog.ReplaceWordInput.value);"
                accesskey="&replaceButton.accessKey;"
              />
              <button
                id="Ignore"
                class="spell-check"
                oncommand="Ignore();"
                label="&ignoreButton.label;"
                accesskey="&ignoreButton.accessKey;"
              />
              <button
                id="ReplaceAll"
                class="spell-check"
                oncommand="ReplaceAll();"
                label="&replaceAllButton.label;"
                accesskey="&replaceAllButton.accessKey;"
              />
              <button
                id="IgnoreAll"
                class="spell-check"
                oncommand="IgnoreAll();"
                label="&ignoreAllButton.label;"
                accesskey="&ignoreAllButton.accessKey;"
              />
            </html:div>
            <separator />
            <label value="&userDictionary.label;" />
            <hbox align="start">
              <button
                id="AddToDictionary"
                class="spell-check"
                oncommand="AddToDictionary()"
                label="&addToUserDictionaryButton.label;"
                accesskey="&addToUserDictionaryButton.accessKey;"
              />
              <button
                id="EditDictionary"
                class="spell-check"
                oncommand="EditDictionary()"
                label="&editUserDictionaryButton.label;"
                accesskey="&editUserDictionaryButton.accessKey;"
              />
            </hbox>
          </vbox>
        </html:div>
        <html:div class="grid-item-span-row">
          <label
            value="&languagePopup.label;"
            control="LanguageMenulist"
            accesskey="&languagePopup.accessKey;"
          />
        </html:div>
        <html:div>
          <html:ul id="dictionary-list"> </html:ul>
          <html:template id="language-item"
            ><html:li>
              <html:label
                ><html:input type="checkbox"></html:input>
                <html:span class="checkbox-label"></html:span
              ></html:label> </html:li
          ></html:template>
          <html:a onclick="openDictionaryList()" href=""
            >&moreDictionaries.label;</html:a
          >
        </html:div>
        <html:div>
          <hbox class="display-flex">
            <button
              id="Stop"
              class="spell-check"
              dlgtype="cancel"
              label="&stopButton.label;"
              oncommand="CancelSpellCheck();"
              accesskey="&stopButton.accessKey;"
            />
            <spacer class="flex-1" />
            <button
              id="Close"
              class="spell-check"
              label="&closeButton.label;"
              oncommand="onClose();"
              accesskey="&closeButton.accessKey;"
            />
            <button
              id="Send"
              class="spell-check"
              label="&sendButton.label;"
              oncommand="onClose();"
              accesskey="&sendButton.accessKey;"
              hidden="true"
            />
          </hbox>
        </html:div>
      </html:div>
    </hbox>
  </dialog>
</window>