summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/compose/content/dialogs/EdReplace.xhtml
blob: 62ce5a67e2fde0cf9b615bdab51515d15b1ff6c9 (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
<?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/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/input-fields.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/themeableDialog.css" type="text/css"?>

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

<window
  id="replaceDlg"
  title="&replaceDialog.title;"
  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="onLoad()"
>
  <dialog buttons="cancel">
    <!-- Methods common to all editor dialogs -->
    <script src="chrome://messenger/content/messengercompose/editorUtilities.js" />
    <script src="chrome://messenger/content/messengercompose/EdDialogCommon.js" />
    <script src="chrome://messenger/content/messengercompose/EdReplace.js" />
    <script src="chrome://messenger/content/dialogShadowDom.js" />

    <stringbundle
      id="findBundle"
      src="chrome://global/locale/finddialog.properties"
    />

    <hbox>
      <vbox>
        <spacer class="spacer" />
        <html:div class="grid-two-column">
          <html:div class="flex-items-center">
            <label
              value="&findField.label;"
              accesskey="&findField.accesskey;"
              control="dialog.findInput"
            />
          </html:div>
          <html:div>
            <html:input
              id="dialog.findInput"
              class="input-inline"
              oninput="doEnabling();"
            />
          </html:div>
          <html:div class="flex-items-center">
            <label
              value="&replaceField.label;"
              accesskey="&replaceField.accesskey;"
              control="dialog.replaceInput"
            />
          </html:div>
          <html:div>
            <html:input
              id="dialog.replaceInput"
              class="input-inline"
              oninput="doEnabling();"
            />
          </html:div>
          <html:div class="grid-item-col2">
            <vbox align="start">
              <checkbox
                id="dialog.caseSensitive"
                label="&caseSensitiveCheckbox.label;"
                accesskey="&caseSensitiveCheckbox.accesskey;"
              />
              <checkbox
                id="dialog.wrap"
                label="&wrapCheckbox.label;"
                accesskey="&wrapCheckbox.accesskey;"
              />
              <checkbox
                id="dialog.searchBackwards"
                label="&backwardsCheckbox.label;"
                accesskey="&backwardsCheckbox.accesskey;"
              />
            </vbox>
          </html:div>
        </html:div>
      </vbox>
      <spacer class="spacer" />
      <vbox>
        <button
          id="findNext"
          label="&findNextButton.label;"
          accesskey="&findNextButton.accesskey;"
          oncommand="onFindNext();"
          default="true"
        />
        <button
          id="replace"
          label="&replaceButton.label;"
          accesskey="&replaceButton.accesskey;"
          oncommand="onReplace();"
        />
        <button
          id="replaceAndFind"
          label="&replaceAndFindButton.label;"
          accesskey="&replaceAndFindButton.accesskey;"
          oncommand="onReplace(); onFindNext();"
        />
        <button
          id="replaceAll"
          label="&replaceAllButton.label;"
          accesskey="&replaceAllButton.accesskey;"
          oncommand="onReplaceAll();"
        />
        <button
          dlgtype="cancel"
          label="&closeButton.label;"
          accesskey="&closeButton.accesskey;"
        />
      </vbox>
    </hbox>
  </dialog>
</window>