summaryrefslogtreecommitdiffstats
path: root/comm/mailnews/search/content/FilterEditor.xhtml
blob: 00188392bc8a0895d79a91c005f30e7b5ecf09f5 (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
<?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://messenger/skin/messenger.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderPane.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/icons.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/contextMenu.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"?>
<?xml-stylesheet href="chrome://messenger/skin/filterDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/filterEditor.css" type="text/css"?>

<!DOCTYPE html [
  <!ENTITY % filterEditorDTD SYSTEM "chrome://messenger/locale/FilterEditor.dtd">
  %filterEditorDTD;
  <!ENTITY % searchTermDTD SYSTEM "chrome://messenger/locale/searchTermOverlay.dtd">
  %searchTermDTD;
]>
<html id="FilterEditor" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      xmlns:html="http://www.w3.org/1999/xhtml"
      windowtype="mailnews:filtereditor"
      lightweightthemes="true"
      style="min-width: 900px; min-height: 600px;"
      scrolling="false">
<head>
  <title>&window.title;</title>
  <script defer="defer" src="chrome://messenger/content/globalOverlay.js"></script>
  <script defer="defer" src="chrome://global/content/editMenuOverlay.js"></script>
  <script defer="defer" src="chrome://messenger/content/searchWidgets.js"></script>
  <script defer="defer" src="chrome://messenger/content/mailWindowOverlay.js"></script>
  <script defer="defer" src="chrome://messenger/content/mailCommands.js"></script>
  <script defer="defer" src="chrome://messenger/content/searchTerm.js"></script>
  <script defer="defer" src="chrome://messenger/content/dateFormat.js"></script>
  <script defer="defer" src="chrome://messenger/content/dialogShadowDom.js"></script>
  <script defer="defer" src="chrome://messenger/content/FilterEditor.js"></script>
</head>
<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<dialog buttons="accept,cancel">
  <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  <stringbundle id="bundle_filter" src="chrome://messenger/locale/filter.properties"/>

  <commandset>
    <command id="cmd_updateFilterType" oncommand="updateFilterType();"/>
    <command id="cmd_updateClassificationMenu" oncommand="gFilterTypeSelector.updateClassificationMenu();"/>
  </commandset>

  <html:div id="filterNameBox" class="input-container">
    <label id="filterNameLabel"
           value="&filterName.label;"
           accesskey="&filterName.accesskey;"
           control="filterName"/>
    <html:input id="filterName"
                type="text"
                class="input-inline"
                aria-labelledby="filterNameLabel"/>
  </html:div>

  <html:fieldset id="applyFiltersSettings">
    <html:legend>&contextDesc.label;</html:legend>
    <vbox>
      <hbox flex="1" align="center">
        <checkbox id="runManual"
                  label="&contextManual.label;"
                  accesskey="&contextManual.accesskey;"
                  command="cmd_updateFilterType"/>
      </hbox>
      <hbox flex="1" align="center">
        <checkbox id="runIncoming"
                  label="&contextIncomingMail.label;"
                  accesskey="&contextIncomingMail.accesskey;"
                  command="cmd_updateClassificationMenu"/>
        <menulist id="pluginsRunOrder"
                  command="cmd_updateFilterType">
          <menupopup>
            <menuitem id="runBeforePlugins"
                      label="&contextBeforeCls.label;"/>
            <menuitem id="runAfterPlugins"
                      label="&contextAfterCls.label;"/>
          </menupopup>
        </menulist>
      </hbox>
      <hbox flex="1" align="center">
        <checkbox id="runArchive"
                  label="&contextArchive.label;"
                  accesskey="&contextArchive.accesskey;"
                  command="cmd_updateFilterType"/>
      </hbox>
      <hbox flex="1" align="center">
        <checkbox id="runOutgoing"
                  label="&contextOutgoing.label;"
                  accesskey="&contextOutgoing.accesskey;"
                  command="cmd_updateFilterType"/>
      </hbox>
      <hbox flex="1" align="center">
        <checkbox id="runPeriodic"
                  accesskey="&contextPeriodic.accesskey;"
                  command="cmd_updateFilterType"/>
        <label id="periodLength"/>
      </hbox>
    </vbox>
  </html:fieldset>


  <vbox id="searchTermListBox">
#include searchTerm.inc.xhtml

  <splitter id="gray_horizontal_splitter" persist="state" orient="vertical"/>

  <vbox id="filterActionsBox">
    <label value="&filterActionDesc.label;"
           accesskey="&filterActionDesc.accesskey;"
           control="filterActionList"/>
    <richlistbox id="filterActionList"
                 flex="1"
                 style="min-height: 100px;"
                 onfocus="setLastActionFocus();"
                 focusedAction="0">
    </richlistbox>
  </vbox>

  <vbox id="statusbar" style="visibility: hidden;">
    <hbox align="center">
      <label>
        &filterActionOrderWarning.label;
      </label>
      <label id="seeExecutionOrder" class="text-link"
             onclick="showActionsOrder();">&filterActionOrder.label;</label>
    </hbox>
  </vbox>
</dialog>
</html:body>
</html>