absearchdialog.xul

来自「现在很火的邮件客户端软件thunderbird的源码」· XUL 代码 · 共 228 行

XUL
228
字号
<?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"?><?xml-stylesheet href="chrome://messenger/skin/addressbook/abResultsPane.css" type="text/css"?><?xul-overlay href="chrome://messenger/content/searchTermOverlay.xul"?><?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?><!DOCTYPE window [<!ENTITY % abResultsPaneOverlayDTD SYSTEM "chrome://messenger/locale/addressbook/abResultsPaneOverlay.dtd">%abResultsPaneOverlayDTD;<!ENTITY % SearchDialogDTD SYSTEM "chrome://messenger/locale/SearchDialog.dtd">%SearchDialogDTD;]><window id="searchAddressBookWindow"        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:absearch"        title="&abSearchDialogTitle.label;"        style="width: 52em; height: 34em;"        persist="screenX screenY width height sizemode">  <stringbundleset id="stringbundleset">    <stringbundle id="bundle_addressBook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>    <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"/>  </stringbundleset>  <!-- 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/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/ABSearchDialog.js"/>  <script type="application/x-javascript" src="chrome://messenger/content/addressbook/abResultsPane.js"/>  <script type="application/x-javascript" src="chrome://messenger/content/addressbook/abCommon.js"/>  <broadcaster id="Communicator:WorkMode"/>  <keyset id="mailKeys">    <key key="&closeCmd.key;" modifiers="accel" oncommand="onSearchStop(); closeWindow(true);"/>    <key keycode="VK_ESCAPE" xulkey="false" oncommand="onSearchStop(); closeWindow(true);"/>  </keyset>  <dummy class="usesMailWidgets"/>        <vbox id="searchTerms" flex="3" persist="height">      <vbox>        <hbox align="center">          <label value="&abSearchHeading.label;" accesskey="&abSearchHeading.accesskey;" control="abPopup"/>          <menulist id="abPopup">            <menupopup id="abPopup-menupopup" ref="moz-abdirectory://"                       datasources="rdf:addressdirectory"                       sortActive="true"                       sortDirection="ascending"                       sortResource="http://home.netscape.com/NC-rdf#DirTreeNameSort">              <template>                <rule nc:IsMailList="false">                  <menuitem uri="..."                            oncommand="onChooseDirectory(event.target)"                            label="rdf:http://home.netscape.com/NC-rdf#DirName"                            value="rdf:http://home.netscape.com/NC-rdf#DirUri"/>                </rule>              </template>            </menupopup>          </menulist>          <spacer flex="10"/>          <button id="search-button" oncommand="onSearchButton(event);" default="true" />        </hbox>        <hbox align="center">          <spacer flex="1"/>          <button label="&resetButton.label;" oncommand="onAbSearchReset(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="searchResultListBox" flex="4" persist="height">      <vbox id="searchResultListBox" flex="1" >        <tree id="abResultsTree" flex="1" enableColumnDrag="true" class="plain"              context="threadPaneContext"              onclick="AbResultsPaneOnClick(event);"              onkeypress="AbResultsPaneKeyPress(event);"              onselect="this.view.selectionChanged();"              sortCol="GeneratedName"              persist="sortCol">          <treecols id="abResultsTreeCols">          <!-- these column ids must match up to the mork column names, except for GeneratedName, see nsIAddrDatabase.idl -->          <treecol id="GeneratedName" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection" flex="1"                    label="&GeneratedName.label;" primary="true"/>          <splitter class="tree-splitter"/>          <treecol id="PrimaryEmail" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"  flex="1" label="&PrimaryEmail.label;"/>          <splitter class="tree-splitter"/>          <treecol id="_AimScreenName" class="sortDirectionIndicator"                    hidden="true"                   persist="hidden ordinal width sortDirection"  flex="1" label="&ScreenName.label;"/>          <splitter class="tree-splitter"/>          <treecol id="Company" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection" flex="1" label="&Company.label;"/>          <splitter class="tree-splitter"/>          <treecol id="NickName" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"                    hidden="true"                   flex="1" label="&NickName.label;"/>          <splitter class="tree-splitter"/>          <treecol id="SecondEmail" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"                    hidden="true"                   flex="1" label="&SecondEmail.label;"/>          <splitter class="tree-splitter"/>          <treecol id="Department" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"                     hidden="true"                   flex="1" label="&Department.label;"/>          <splitter class="tree-splitter"/>          <treecol id="JobTitle" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"                    hidden="true"                   flex="1" label="&JobTitle.label;"/>          <splitter class="tree-splitter"/>          <treecol id="CellularNumber" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"                    hidden="true"                   flex="1" label="&CellularNumber.label;"/>          <splitter class="tree-splitter"/>          <treecol id="PagerNumber" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"                    hidden="true"                   flex="1" label="&PagerNumber.label;"/>          <splitter class="tree-splitter"/>          <treecol id="FaxNumber" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"                    hidden="true"                   flex="1" label="&FaxNumber.label;"/>          <splitter class="tree-splitter"/>          <treecol id="HomePhone" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"                    hidden="true"                   flex="1" label="&HomePhone.label;"/>          <splitter class="tree-splitter"/>          <treecol id="WorkPhone" class="sortDirectionIndicator"                    persist="hidden ordinal width sortDirection"                   flex="1" label="&WorkPhone.label;"/>          <!-- LOCALIZATION NOTE: _PhoneticName may be enabled for Japanese builds. -->          <!--            <treecol id="_PhoneticName" class="sortDirectionIndicator"                      persist="hidden ordinal width sortDirection"                      hidden="true"                     flex="1" label="&_PhoneticName.label;"/>            <splitter class="tree-splitter"/>           -->          </treecols>          <treechildren ondraggesture="nsDragAndDrop.startDrag(event, abResultsPaneObserver);"/>        </tree>      </vbox>      <hbox align="start">        <button label="&propertiesButton.label;" id="propertiesButton" oncommand="onProperties()" accesskey="&propertiesButton.accesskey;" disabled="true"/>        <button label="&composeButton.label;" id="composeButton" oncommand="onCompose()" accesskey="&composeButton.accesskey;" disabled="true"/>        <spacer flex="1" />      </hbox>          </vbox>  <statusbar class="chromeclass-status" id="status-bar">     <statusbarpanel id="statusText" crop="right" flex="1"/>       <statusbarpanel class="statusbarpanel-progress" id="statusbar-progresspanel">      <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>    </statusbarpanel>      </statusbar> </window>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?