summaryrefslogtreecommitdiffstats
path: root/comm/mail/base/content/SearchDialog.xhtml
blob: 6d6ff82713f68e1ffdbb46645551148d03d87e90 (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
<?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/.

#filter substitution
#define SEARCH_WINDOW
<?xml-stylesheet href="chrome://messenger/skin/searchDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderPane.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/tagColors.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/colors.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"?>

<!DOCTYPE html [
  <!ENTITY % messengerDTD SYSTEM "chrome://messenger/locale/messenger.dtd" >
  %messengerDTD;
  <!ENTITY % SearchDialogDTD SYSTEM "chrome://messenger/locale/SearchDialog.dtd">
  %SearchDialogDTD;
  <!ENTITY % searchTermDTD SYSTEM "chrome://messenger/locale/searchTermOverlay.dtd">
  %searchTermDTD;
]>
<html id="searchMailWindow" 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:search"
      scrolling="false"
      style="min-width:52em; min-height:34em;"
      lightweightthemes="true"
      persist="screenX screenY width height sizemode">
<head>
  <title>&searchDialogTitle.label;</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/mailWindow.js"></script>
  <script defer="defer" src="chrome://messenger/content/folderDisplay.js"></script>
  <script defer="defer" src="chrome://messenger/content/threadPane.js"></script>
  <script defer="defer" src="chrome://communicator/content/utilityOverlay.js"></script>
  <script defer="defer" src="chrome://messenger-newsblog/content/newsblogOverlay.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/messenger.js"></script>
  <script defer="defer" src="chrome://messenger/content/SearchDialog.js"></script>
</head>
<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>

  <commands id="commands">
    <commandset id="mailSearchItems"
                commandupdater="true"
                events="mail-search"
                oncommandupdate="goUpdateSearchItems(this)">
      <command id="cmd_open" oncommand="goDoCommand('cmd_open')" disabled="true"/>
      <command id="button_delete" oncommand="goDoCommand('button_delete')" disabled="true"/>
      <command id="open_in_folder_button" oncommand="goDoCommand('open_in_folder_button')" disabled="true"/>
      <command id="saveas_vf_button" oncommand="goDoCommand('saveas_vf_button')" disabled="false"/>
      <command id="file_message_button" oncommand="MoveMessageInSearch(event.target._folder);" disabled="true"/>
      <command id="cmd_delete" oncommand="goDoCommand('cmd_delete')" disabled="true"/>
      <command id="cmd_shiftDelete" oncommand="goDoCommand('cmd_shiftDelete');"/>
    </commandset>
  </commands>

  <keyset id="mailKeys">
    <key key="&closeCmd.key;" modifiers="accel" oncommand="window.close();"/>
    <key keycode="VK_ESCAPE" oncommand="window.close();"/>
#ifdef XP_MACOSX
      <key id="key_delete" keycode="VK_BACK"     command="cmd_delete"/>
      <key id="key_delete2" keycode="VK_DELETE"  command="cmd_delete"/>
      <key id="cmd_shiftDelete" keycode="VK_BACK"
           oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
      <key id="cmd_shiftDelete2" keycode="VK_DELETE"
           oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
#else
      <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
      <key id="cmd_shiftDelete" keycode="VK_DELETE"
           oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
#endif
  </keyset>

    <vbox id="searchTerms" class="themeable-brighttext" persist="height">
      <vbox>
        <hbox align="center">
          <label value="&searchHeading.label;" accesskey="&searchHeading.accesskey;"
                 control="searchableFolders"/>
          <menulist id="searchableFolders" class="folderMenuItem"
                    displayformat="verbose">
            <menupopup is="folder-menupopup" class="menulist-menupopup"
                       mode="search" showAccountsFileHere="true" showFileHereLabel="true"
                       oncommand="updateSearchFolderPicker(event.target._folder);"/>
          </menulist>
          <spacer style="flex: 10 10;"/>
          <button id="search-button" oncommand="onSearchButton(event);" default="true"/>
        </hbox>

        <hbox align="center">
          <checkbox id="checkSearchSubFolders"
                    label="&searchSubfolders.label;"
                    accesskey="&searchSubfolders.accesskey;"
                    checked="true"
                    persist="checked"/>
          <spacer style="flex: 10 10;"/>
          <button label="&resetButton.label;" oncommand="onResetSearch(event);" accesskey="&resetButton.accesskey;"/>
        </hbox>
        <hbox align="center">
          <checkbox id="checkSearchOnline"
                    label="&searchOnServer.label;"
                    accesskey="&searchOnServer.accesskey;"
                    oncommand="updateSearchLocalSystem();"
                    persist="checked"/>
        </hbox>
      </vbox>

      <hbox style="flex: 1 1 0; min-height: 0;">
        <vbox id="searchTermListBox" flex="1">
#include ../../../mailnews/search/content/searchTerm.inc.xhtml
      </hbox>
    </vbox>

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

    <vbox id="searchResults" persist="height">
      <vbox id="searchResultListBox" flex="1">
#include threadTree.inc.xhtml
      </vbox>
      <hbox align="start">
        <button label="&openButton.label;" id="openButton" command="cmd_open" accesskey="&openButton.accesskey;"/>
        <button id="fileMessageButton" type="menu" label="&moveButton.label;"
                accesskey="&moveButton.accesskey;"
                command="file_message_button">
          <menupopup is="folder-menupopup" showFileHereLabel="true" mode="filing"/>
        </button>

      <button label="&deleteButton.label;" id="deleteButton" command="button_delete" accesskey="&deleteButton.accesskey;"/>
      <button label="&openInFolder.label;" id="openInFolderButton" command="open_in_folder_button" accesskey="&openInFolder.accesskey;" />
      <button label="&saveAsVFButton.label;" id="saveAsVFButton" command="saveas_vf_button" accesskey="&saveAsVFButton.accesskey;" />
      <spacer flex="1" />
    </hbox>
  </vbox>

  <hbox id="status-bar" class="statusbar chromeclass-status" role="status">
    <label id="statusText" class="statusbarpanel" crop="end" flex="1"/>
    <hbox id="statusbar-progresspanel" class="statusbarpanel statusbarpanel-progress" collapsed="true">
      <html:progress class="progressmeter-statusbar" id="statusbar-icon" value="0" max="100"/>
    </hbox>
  </hbox>
</html:body>
</html>