home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / mail.xpi / bin / chrome / messenger.jar / content / messenger / SearchDialog.xul < prev    next >
Extensible Markup Language  |  2001-09-18  |  9KB  |  186 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <!--
  5. The contents of this file are subject to the Netscape Public
  6. License Version 1.1 (the "License"); you may not use this file
  7. except in compliance with the License. You may obtain a copy of
  8. the License at http://www.mozilla.org/NPL/
  9.  
  10. Software distributed under the License is distributed on an "AS
  11. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  12. implied. See the License for the specific language governing
  13. rights and limitations under the License.
  14.  
  15. The Original Code is Mozilla Communicator client code, released
  16. March 31, 1998.
  17.  
  18. The Initial Developer of the Original Code is Netscape
  19. Communications Corporation. Portions created by Netscape are
  20.  Copyright (C) 1998-1999 Netscape Communications Corporation. All
  21. Rights Reserved.
  22. -->
  23. <?xml-stylesheet href="chrome://messenger/skin/searchDialog.css" type="text/css"?>
  24.  
  25. <?xul-overlay href="chrome://messenger/content/threadPane.xul"?>
  26. <?xul-overlay href="chrome://messenger/content/searchTermOverlay.xul"?>
  27. <?xul-overlay href="chrome://messenger/content/msgFolderPickerOverlay.xul"?>
  28. <?xul-overlay href="chrome://messenger/content/mailWindowOverlay.xul"?>
  29. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  30. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  31.  
  32. <!DOCTYPE window SYSTEM "chrome://messenger/locale/SearchDialog.dtd" >
  33.  
  34. <window xmlns:html="http://www.w3.org/1999/xhtml"
  35.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  36.     xmlns:nc="http://home.netscape.com/NC-rdf#"
  37.     onload="searchOnLoad();"
  38.     onunload="searchOnUnload();"
  39.     onclose="onSearchStop();"
  40.     windowtype="mailnews:search"
  41.     title="&searchDialogTitle.label;"
  42.     width="640" height="470"
  43.     persist="screenX screenY width height"
  44.     class="color-dialog"
  45.     orient="vertical">
  46.  
  47.   <stringbundle id="bundle_search" src="chrome://messenger/locale/search.properties"/>
  48.   <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  49.   <stringbundle id="bundle_brand" src="chrome://global/locale/brand.properties"/>
  50.   <!-- XXX: only mailWidgets.xml requires strres.js (<script> isn't valid in XBL yet - see hyatt)-->
  51.   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  52.   <script src="chrome://messenger/content/mailWindow.js"/>
  53.   <script src="chrome://messenger/content/threadPane.js"/>
  54.   <script src="chrome://messenger/content/msgMail3PaneWindow.js"/>
  55.   <script src="chrome://global/content/globalOverlay.js"/>
  56.   <script src="chrome://messenger/content/mailCommands.js"/>
  57.   <script src="chrome://messenger/content/mailWindowOverlay.js"/>
  58.   <script src="chrome://messenger/content/commandglue.js"/>
  59.   <script src="chrome://messenger/content/SearchDialog.js"/>
  60.  
  61.   <commands id="commands">
  62.     <commandset id="mailSearchItems"
  63.                 commandupdater="true"
  64.                 events="mail-search"
  65.                 oncommandupdate="goUpdateSearchItems(this)">
  66.       <command id="cmd_open" oncommand="goDoCommand('cmd_open')" disabled="true"/>
  67.       <command id="button_delete" oncommand="goDoCommand('button_delete')" disabled="true"/>
  68.       <command id="file_message_button"/>
  69.     </commandset>
  70.   </commands>
  71.  
  72.   <dummy class="usesMailWidgets"/>
  73.   <vbox flex="1">
  74.     
  75.     <groupbox orient="vertical" flex="1">
  76.       <label value="&conditions.label;"/>
  77.       <hbox autostretch="never">
  78.         <text class="label" value="&searchHeading.label;"/>
  79.         <menulist id="searchableFolders" flex="2"/>
  80.         <spring flex="1"/>
  81.           <checkbox id="checkSearchSubFolders" label="&searchSubfolders.label;" checked="true"/>
  82.       </hbox>
  83.       <separator/>
  84.       <text class="label" value="&conditionDesc.label;"/>
  85.  
  86.       <hbox flex="1">
  87.         <vbox id="searchTermListBox" flex="1"/>
  88.         <vbox>
  89.            <spring flex="1"/>
  90.            <button label="&searchButton.label;" id="search-button" oncommand="onSearchButton(event);" default="true"/>
  91.            <button label="&resetButton.label;" oncommand="onReset(event);"/>
  92.            <spring flex="1"/>
  93.          </vbox>
  94.       </hbox>
  95.     </groupbox>
  96.     
  97.     <splitter id="gray_horizontal_splitter" collapse="after" persist="state"/>
  98.     
  99.     <groupbox orient="horizontal" flex="1">
  100.        <label value="&results.label;"/>
  101.        <vbox id="searchTermListBox" flex="1">
  102.             <outliner id="threadOutliner" flex="1" context="threadPaneContext"/>
  103.             <statusbar id="status-bar" class="chromeclass-status"/>
  104.  
  105.        </vbox>
  106.        <vbox>
  107.             <spring flex="1" />
  108.             <button label="&openButton.label;" id="openButton" command="cmd_open" />
  109.             <menubutton id="fileMessageButton" label="&fileButton.label;"
  110.                         observes="file_message_button"
  111.                         oncommand="MoveMessageInSearch(event.target)" 
  112.                         sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  113.                         sortDirection="ascending"
  114.                         datasources="rdf:msgaccountmanager rdf:mailnewsfolders"
  115.                         ref="msgaccounts:/">
  116.         <menupopup/>
  117.         <template> 
  118.         <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  119.           <menupopup>
  120.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  121.               <menupopup>
  122.                 <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" disabled="true"/>
  123.                 <menuseparator/>
  124.               </menupopup>
  125.             </menu>
  126.           </menupopup>
  127.         </rule> 
  128.         <rule nc:NoSelect="true">
  129.           <menupopup>
  130.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  131.           </menupopup>
  132.         </rule>
  133.           <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  134.             <menupopup>
  135.               <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  136.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  137.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  138.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  139.                IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  140.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  141.                 <menupopup>
  142.                   <menuitem file-uri="..." label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" />
  143.                   <menuseparator/>
  144.                 </menupopup>
  145.               </menu>
  146.             </menupopup>
  147.           </rule>
  148.           <rule nc:CanFileMessagesOnServer="false">
  149.             <!-- don't show servers (nntp & any others) which does not allow message filing -->
  150.             <!-- File, Move & Copy menus -->
  151.           </rule>
  152.           <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  153.           <!-- note, there is no "file here" -->
  154.             <menupopup>
  155.               <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  156.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  157.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  158.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  159.                IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  160.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  161.                 <menupopup/>
  162.               </menu>
  163.             </menupopup>
  164.           </rule>
  165.           <rule nc:CanFileMessages="true">
  166.             <menupopup>
  167.               <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  168.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  169.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  170.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  171.                IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  172.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  173.             </menupopup>
  174.           </rule>
  175.         </template>
  176.             </menubutton>
  177.  
  178.             <button label="&deleteButton.label;" id="deleteButton" command="button_delete"/>
  179.             <spring flex="1" />
  180.        </vbox>      
  181.     </groupbox>
  182.   </vbox>
  183.   <statusbar id="status-bar"/>
  184.   
  185. </window>
  186.