зеркало из https://github.com/mozilla/pjs.git
287 строки
16 KiB
XML
287 строки
16 KiB
XML
<?xml version="1.0"?>
|
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
#
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
# http://www.mozilla.org/MPL/
|
|
#
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
# for the specific language governing rights and limitations under the
|
|
# License.
|
|
#
|
|
# The Original Code is Mozilla Communicator client code, released
|
|
# March 31, 1998.
|
|
#
|
|
# The Initial Developer of the Original Code is
|
|
# Netscape Communications Corporation.
|
|
# Portions created by the Initial Developer are Copyright (C) 1998-1999
|
|
# the Initial Developer. All Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
#
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
# the provisions above, a recipient may use your version of this file under
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
#
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
<?xml-stylesheet href="chrome://messenger/skin/searchDialog.css" type="text/css"?>
|
|
|
|
<?xul-overlay href="chrome://messenger/content/searchTermOverlay.xul"?>
|
|
<?xul-overlay href="chrome://messenger/content/msgFolderPickerOverlay.xul"?>
|
|
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
|
|
|
|
<!DOCTYPE window SYSTEM "chrome://messenger/locale/SearchDialog.dtd" >
|
|
|
|
<window id="searchMailWindow"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
xmlns:nc="http://home.netscape.com/NC-rdf#"
|
|
onload="searchOnLoad();"
|
|
onunload="searchOnUnload();"
|
|
onclose="onSearchStop();"
|
|
windowtype="mailnews:search"
|
|
title="&searchDialogTitle.label;"
|
|
style="width: 52em; height: 34em;"
|
|
persist="screenX screenY width height sizemode">
|
|
|
|
<stringbundle id="bundle_search" src="chrome://messenger/locale/search.properties"/>
|
|
<stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
|
|
<stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
|
|
<!-- XXX: only mailWidgets.xml requires strres.js (<script> isn't valid in XBL yet - see hyatt)-->
|
|
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
|
<script type="application/x-javascript" src="chrome://messenger/content/mailWindow.js"/>
|
|
<script type="application/x-javascript" src="chrome://messenger/content/threadPane.js"/>
|
|
<script type="application/x-javascript" src="chrome://messenger/content/msgMail3PaneWindow.js"/>
|
|
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
|
|
<script type="application/x-javascript" src="chrome://messenger/content/mailCommands.js"/>
|
|
<script type="application/x-javascript" src="chrome://messenger/content/mailWindowOverlay.js"/>
|
|
<script type="application/x-javascript" src="chrome://messenger/content/commandglue.js"/>
|
|
<script type="application/x-javascript" src="chrome://messenger/content/SearchDialog.js"/>
|
|
<script type="application/x-javascript" src="chrome://messenger/content/messengerdnd.js"/>
|
|
|
|
<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="goto_folder_button" oncommand="goDoCommand('goto_folder_button')" disabled="true"/>
|
|
<command id="saveas_vf_button" oncommand="goDoCommand('saveas_vf_button')" disabled="false"/>
|
|
<command id="file_message_button"/>
|
|
<command id="cmd_delete"/>
|
|
<command id="cmd_shiftDelete" oncommand="goDoCommand('cmd_shiftDelete');"/>
|
|
</commandset>
|
|
</commands>
|
|
|
|
<keyset id="mailKeys">
|
|
<key id="key_delete" oncommand="goDoCommand('cmd_delete');"/>
|
|
<key key="&closeCmd.key;" modifiers="accel" oncommand="onSearchStop(); closeWindow(true);"/>
|
|
<key keycode="VK_ESCAPE" xulkey="false" oncommand="onSearchStop(); closeWindow(true);"/>
|
|
#ifdef XP_MACOSX
|
|
<key id="key_delete2" oncommand="goDoCommand('cmd_delete');"/>
|
|
<key id="cmd_shiftDelete" keycode="VK_BACK" xulkey="false" oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
|
|
<key id="cmd_shiftDelete2" keycode="VK_DELETE" xulkey="false" oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
|
|
#else
|
|
<key id="cmd_shiftDelete" keycode="VK_DELETE" xulkey="false" oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
|
|
#endif
|
|
</keyset>
|
|
|
|
<broadcasterset id="mailBroadcasters">
|
|
<broadcaster id="Communicator:WorkMode"/>
|
|
</broadcasterset>
|
|
|
|
<dummy class="usesMailWidgets"/>
|
|
|
|
<vbox id="searchTerms" flex="3" persist="height">
|
|
<vbox>
|
|
<hbox align="center">
|
|
<label value="&searchHeading.label;" accesskey="&searchHeading.accesskey;"
|
|
control="searchableFolders"/>
|
|
<menulist id="searchableFolders" flex="2">
|
|
<menupopup class="searchPopup" oncommand="updateSearchFolderPicker(this.getAttribute('uri'));"/>
|
|
</menulist>
|
|
<spacer flex="10"/>
|
|
<button id="search-button" oncommand="onSearchButton(event);" default="true"/>
|
|
|
|
</hbox>
|
|
|
|
<hbox align="center">
|
|
<checkbox id="checkSearchSubFolders" label="&searchSubfolders.label;" checked="true" accesskey="&searchSubfolders.accesskey;"/>
|
|
<spacer flex="10"/>
|
|
<button label="&resetButton.label;" oncommand="onResetSearch(event);" accesskey="&resetButton.accesskey;"/>
|
|
</hbox>
|
|
</vbox>
|
|
|
|
<hbox flex="1">
|
|
<vbox id="searchTermListBox" flex="1"/>
|
|
</hbox>
|
|
</vbox>
|
|
|
|
<splitter id="gray_horizontal_splitter" collapse="after" persist="state"/>
|
|
|
|
<vbox id="searchResults" flex="4" persist="height">
|
|
<vbox id="searchResultListBox" flex="1">
|
|
<tree id="threadTree" persist="lastfoldersent" flex="1" enableColumnDrag="true" _selectDelay="500" class="plain focusring" lastfoldersent="false"
|
|
disableKeyNavigation="true"
|
|
context="threadPaneContext"
|
|
onkeypress="ThreadPaneKeyPress(event);"
|
|
onselect="ThreadPaneSelectionChanged();">
|
|
<treecols id="threadCols" pickertooltiptext="&columnChooser.tooltip;">
|
|
<treecol id="threadCol" persist="hidden ordinal" fixed="true" cycler="true"
|
|
class="treecol-image threadColumnHeader" currentView="unthreaded"
|
|
label="&threadColumn.label;" tooltiptext="&threadColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="subjectCol" persist="hidden ordinal width" flex="7" ignoreincolumnpicker="true"
|
|
label="&subjectColumn.label;" tooltiptext="&subjectColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="junkStatusCol" persist="hidden ordinal width" fixed="true" cycler="true"
|
|
class="treecol-image junkStatusHeader"
|
|
label="&junkStatusColumn.label;" tooltiptext="&junkStatusColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="senderCol" persist="hidden swappedhidden ordinal width" flex="4"
|
|
hidden="false" swappedhidden="true"
|
|
label="&fromColumn.label;" tooltiptext="&fromColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="recipientCol" persist="hidden swappedhidden ordinal width" flex="4"
|
|
hidden="true" swappedhidden="false"
|
|
label="&recipientColumn.label;" tooltiptext="&recipientColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="unreadButtonColHeader" persist="hidden ordinal" fixed="true" cycler="true"
|
|
class="treecol-image readColumnHeader"
|
|
label="&readColumn.label;" tooltiptext="&readColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="dateCol" persist="hidden ordinal width" flex="2"
|
|
label="&dateColumn.label;" tooltiptext="&dateColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="statusCol" persist="hidden ordinal width" flex="1" hidden="true"
|
|
label="&statusColumn.label;" tooltiptext="&statusColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="sizeCol" persist="hidden ordinal width" flex="1" hidden="true"
|
|
label="&sizeColumn.label;" tooltiptext="&sizeColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="flaggedCol" persist="hidden ordinal" fixed="true" cycler="true" hidden="true"
|
|
class="treecol-image flagColumnHeader"
|
|
label="&starredColumn.label;" tooltiptext="&starredColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="tagsCol" persist="hidden ordinal width" flex="1" hidden="true"
|
|
label="&tagsColumn.label;" tooltiptext="&tagsColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="priorityCol" persist="hidden ordinal width" flex="1"
|
|
label="&priorityColumn.label;" tooltiptext="&priorityColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="unreadCol" persist="hidden ordinal width" flex="1" hidden="true"
|
|
label="&unreadColumn.label;" tooltiptext="&unreadColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="totalCol" persist="hidden ordinal width" flex="1" hidden="true"
|
|
label="&totalColumn.label;" tooltiptext="&totalColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="locationCol" persist="width" flex="1" hidden="true" ignoreincolumnpicker="true"
|
|
label="&locationColumn.label;" tooltiptext="&locationColumn.tooltip;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<treecol id="idCol" persist="hidden ordinal width" flex="1" hidden="true"
|
|
label="&idColumn.label;" tooltiptext="&idColumn.tooltip;"/>
|
|
</treecols>
|
|
<treechildren ondraggesture="BeginDragThreadPane(event);"/>
|
|
</tree>
|
|
</vbox>
|
|
<hbox align="start">
|
|
<button label="&openButton.label;" id="openButton" command="cmd_open" accesskey="&openButton.accesskey;"/>
|
|
<button id="fileMessageButton" type="menu" label="&fileButton.label;"
|
|
accesskey="&fileButton.accesskey;"
|
|
observes="file_message_button"
|
|
oncommand="MoveMessageInSearch(event.target)"
|
|
sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
|
|
sortDirection="ascending"
|
|
datasources="rdf:msgaccountmanager rdf:mailnewsfolders"
|
|
ref="msgaccounts:/">
|
|
<menupopup/>
|
|
<template>
|
|
<rule nc:NoSelect="true" iscontainer="true" isempty="false">
|
|
<menupopup>
|
|
<menu uri="..." class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
|
|
<menupopup>
|
|
<menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" disabled="true"/>
|
|
<menuseparator/>
|
|
</menupopup>
|
|
</menu>
|
|
</menupopup>
|
|
</rule>
|
|
<rule nc:NoSelect="true">
|
|
<menupopup>
|
|
<menuitem uri="..." class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
|
|
</menupopup>
|
|
</rule>
|
|
<rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
|
|
<menupopup>
|
|
<menu uri="..." class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
|
|
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
|
|
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
|
|
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
|
|
IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
|
|
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
|
|
<menupopup>
|
|
<menuitem file-uri="..." label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" />
|
|
<menuseparator/>
|
|
</menupopup>
|
|
</menu>
|
|
</menupopup>
|
|
</rule>
|
|
<rule nc:CanFileMessagesOnServer="false">
|
|
<!-- don't show servers (nntp & any others) which does not allow message filing -->
|
|
<!-- File, Move & Copy menus -->
|
|
</rule>
|
|
<rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
|
|
<!-- note, there is no "file here" -->
|
|
<menupopup>
|
|
<menu uri="..." class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
|
|
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
|
|
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
|
|
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
|
|
IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
|
|
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
|
|
<menupopup/>
|
|
</menu>
|
|
</menupopup>
|
|
</rule>
|
|
<rule nc:CanFileMessages="true">
|
|
<menupopup>
|
|
<menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
|
|
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
|
|
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
|
|
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
|
|
IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
|
|
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
|
|
</menupopup>
|
|
</rule>
|
|
</template>
|
|
</button>
|
|
|
|
<button label="&deleteButton.label;" id="deleteButton" command="button_delete" accesskey="&deleteButton.accesskey;"/>
|
|
<button label="&goToFolderButton.label;" id="goToFolderButton" command="goto_folder_button" accesskey="&goToFolderButton.accesskey;" />
|
|
<button label="&saveAsVFButton.label;" id="saveAsVFButton" command="saveas_vf_button" accesskey="&saveAsVFButton.accesskey;" />
|
|
<spacer flex="1" />
|
|
</hbox>
|
|
</vbox>
|
|
|
|
<statusbar class="chromeclass-status" id="status-bar">
|
|
<statusbarpanel id="statusText" crop="right" flex="1"/>
|
|
<statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
|
|
<progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
|
|
</statusbarpanel>
|
|
</statusbar>
|
|
|
|
</window>
|