addressbook.xul
来自「现在很火的邮件客户端软件thunderbird的源码」· XUL 代码 · 共 794 行 · 第 1/3 页
XUL
794 行
<?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):# Seth Spitzer <sspitzer@netscape.com>## 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/addressbook/addressbook.css" type="text/css"?> <!DOCTYPE window [<!ENTITY % abMainWindowDTD SYSTEM "chrome://messenger/locale/addressbook/abMainWindow.dtd" >%abMainWindowDTD;<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >%brandDTD;]><window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:html="http://www.w3.org/1999/xhtml" id="addressbookWindow" height="450" width="750" title="&addressbookWindow.title;" windowtype="mail:addressbook" persist="width height screenX screenY sizemode" onload="OnLoadAddressBook()" onunload="OnUnloadAddressBook()"> <stringbundleset id="stringbundleset"> <stringbundle id="bundle_addressBook" src="chrome://messenger/locale/addressbook/addressBook.properties"/> <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/> <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/> </stringbundleset><script type="application/x-javascript" src="chrome://messenger/content/accountUtils.js"/><script type="application/x-javascript" src="chrome://messenger/content/widgetglue.js"/><script type="application/x-javascript" src="chrome://messenger/content/mailCore.js"/><script type="application/x-javascript" src="chrome://messenger/content/addressbook/addressbook.js"/><script type="application/x-javascript" src="chrome://messenger/content/addressbook/abCommon.js"/><script type="application/x-javascript" src="chrome://communicator/content/contentAreaClick.js"/><script type="application/x-javascript" src="chrome://communicator/content/printing.js"/><script type="application/x-javascript" src="chrome://messenger/content/msgPrintEngine.js"/><!-- move needed functions into a single js file --><script type="application/x-javascript" src="chrome://communicator/content/utilityOverlay.js"/><script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/><script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/><script type="application/x-javascript" src="chrome://messenger/content/addressbook/abDragDrop.js"/><script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/><script type="application/x-javascript" src="chrome://messenger/content/addressbook/abResultsPane.js"/><script type="application/x-javascript" src="chrome://messenger/content/addressbook/abCardViewOverlay.js"/><commandset id="addressBook"> <commandset id="CommandUpdate_AddressBook" commandupdater="true" events="focus,addrbook-select" oncommandupdate="CommandUpdate_AddressBook()"/> <commandset id="selectEditMenuItems" commandupdater="true" events="select" oncommandupdate="goUpdateSelectEditMenuItems()"/> <commandset id="undoEditMenuItems" commandupdater="true" events="undo" oncommandupdate="goUpdateUndoEditMenuItems()"/> <commandset id="globalEditMenuItems" commandupdater="true" events="focus" oncommandupdate="goUpdateGlobalEditMenuItems()"/> <command id="cmd_printcardpreview" oncommand="goDoCommand('cmd_printcardpreview');"/> <command id="cmd_printcard" oncommand="goDoCommand('cmd_printcard');"/> <command id="cmd_properties" oncommand="goDoCommand('button_edit');"/> <command id="cmd_undo" oncommand="goDoCommand('cmd_undo')" disabled="true"/> <command id="cmd_redo" oncommand="goDoCommand('cmd_redo')" disabled="true"/> <command id="cmd_cut" oncommand="goDoCommand('cmd_cut')" disabled="true"/> <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/> <command id="cmd_paste" oncommand="goDoCommand('cmd_paste')" disabled="true"/> <command id="cmd_delete" oncommand="goDoCommand('cmd_delete')" valueDefault="&deleteCmd.label;" disabled="true"/> <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')" disabled="true"/>#ifdef XP_MACOSX <!-- Mac Window menu --> <command id="minimizeWindow" label="&minimizeWindow.label;" oncommand="window.minimize();"/> <command id="zoomWindow" label="&zoomWindow.label;" oncommand="zoomWindow();"/> <command id="Tasks:Mail" oncommand="toMessengerWindow();"/>#endif</commandset><broadcasterset id="abBroadcasters"> <!-- Edit Menu --> <broadcaster id="cmd_delete" valueAddressBook="&deleteAbCmd.label;" valueCard="&deleteCardCmd.label;" valueCards="&deleteCardsCmd.label;"/> <broadcaster id="broadcaster-throbber" busy="false"/> <broadcaster id="button_delete" disabled="true"/> <broadcaster id="Communicator:WorkMode"/></broadcasterset><keyset id="tasksKeys"> <!-- File Menu -->#ifdef XP_MACOSX <key id="key_newMessage" key="&newMessageCmd.key;" modifiers="accel,shift" oncommand="AbNewMessage()"/>#else <key id="key_newMessage" key="&newMessageCmd.key;" modifiers="accel" oncommand="AbNewMessage()"/>#endif <key id="key_newCard" key="&newCard.key;" modifiers="accel" oncommand="AbNewCard('dirTree');"/> <key id="key_printCard" key="&printCardViewCmd.key;" command="cmd_printcard" modifiers="accel"/> <key id="key_close" key="&closeCmd.key;" modifiers="accel" oncommand="AbClose()"/> <key id="key_quit" key="&quitApplicationCmd.key;" modifiers="accel" oncommand="goQuitApplication()"/> <!-- Edit Menu --> <key id="key_undo" key="&undoCmd.key;" modifiers="accel"/> <key id="key_redo" key="&redoCmd.key;" modifiers="accel"/> <key id="key_cut" key="&cutCmd.key;" modifiers="accel"/> <key id="key_copy" key="©Cmd.key;" modifiers="accel"/> <key id="key_paste" key="&pasteCmd.key;" modifiers="accel"/>#ifdef XP_MACOSX <key id="key_delete" keycode="VK_BACK" command="cmd_delete"/> <key id="key_delete2" keycode="VK_DELETE" command="cmd_delete"/>#else <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>#endif <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>#ifdef MOZ_WIDGET_GTK2 <key id="key_searchAddresses" key="&searchAddressesCmd.key;" oncommand="onAdvancedAbSearch();" modifiers="shift"/>#else <key id="key_searchAddresses" key="&searchAddressesCmd.key;" oncommand="onAdvancedAbSearch();" modifiers="accel, shift"/>#endif <key id="key_properties" command="cmd_properties" key="&propertiesCmd.key;" modifiers="accel"/> <!-- Tab/F6 Keys --> <key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/> <key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control"/> <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/> <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control"/> <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="shift"/> <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);"/> <key key="&quickSearchCmd.key;" oncommand="QuickSearchFocus();" modifiers="accel"/> <key id="key_mail" key="&messengerCmd.commandkey;" oncommand="toMessengerWindow();" modifiers="accel"/>#ifdef XP_MACOSX <!-- Mac Window keys --> <key id="key_minimizeWindow" command="minimizeWindow" key="&minimizeWindow.key;" modifiers="accel"/> <key id="key_macHelp" key="&hintsAndTipsMac.commandkey;" oncommand="openRegionURL('mailnews.hints_and_tips.url');" modifiers="accel"/>#endif</keyset><popup id="dirTreeContext"> <menuitem id="dirTreeContext-properties" label="&editButton.label;" accesskey="&editButton.accesskey;" oncommand="goDoCommand('button_edit');"/> <menuseparator/> <menuitem id="dirTreeContext-newcard" label="&newcardButton.label;" accesskey="&newcardButton.accesskey;" oncommand="AbNewCard('dirTree')"/> <menuitem id="dirTreeContext-newlist" label="&newlistButton.label;" accesskey="&newlistButton.accesskey;" oncommand="AbNewList('dirTree')"/> <menuseparator/> <menuitem id="dirTreeContext-delete" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;" observes="button_delete" oncommand="goDoCommand('button_delete');"/></popup><popup id="abResultsTreeContext"> <menuitem id="abResultsTreeContext-properties" label="&editButton.label;" accesskey="&editButton.accesskey;" oncommand="goDoCommand('button_edit');"/> <menuseparator/> <menuitem id="abResultsTreeContext-newmessage" label="&newmsgButton.label;" accesskey="&newmsgButton.accesskey;" oncommand="AbNewMessage()"/> <menuitem id="abResultsTreeContext-newim" label="&newIM.label;" accesskey="&newIM.accesskey;" oncommand="AbIMSelected()"/> <menuseparator/> <menuitem id="abResultsTreeContext-delete" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;" oncommand="goDoCommand('button_delete');"/></popup><popup id="aTooltip" class="tooltip" onpopupshowing="return FillInTooltip(document.tooltipNode);" > <label id="TOOLTIP-tooltipText" class="tooltip-label" flex="1"/></popup><popup id="toolbar-context-menu"> <menuitem oncommand="CustomizeMailToolbar('ab-toolbox');" id="CustomizeMailToolbar" label="&customizeToolbar.label;" accesskey="&customizeToolbar.accesskey;"/></popup><toolbox id="ab-toolbox" class="toolbox-top" mode="full"> <toolbar type="menubar" id="addrbook-toolbar-menubar2" class="chromeclass-menubar" customizable="true"#ifdef XP_MACOSX defaultset="menubar-items"#else defaultset="menubar-items,spring,throbber-box"#endif context="toolbar-context-menu" mode="icons"> <toolbaritem id="menubar-items" align="center"> <menubar id="mail-menubar" style="border:0px;padding:0px;margin:0px;-moz-appearance:none"> <menu id="menu_File" label="&fileMenu.label;" accesskey="&fileMenu.accesskey;"> <menupopup id="menu_FilePopup" onpopupshowing="onFileMenuInit();"> <menu id="menu_New" label="&newMenu.label;" accesskey="&newMenu.accesskey;"> <menupopup id="menu_NewPopup"> <menuitem label="&newCard.label;" accesskey="&newCard.accesskey;" key="key_newCard" oncommand="AbNewCard('dirTree')"/> <menuitem label="&newListCmd.label;" accesskey="&newListCmd.accesskey;" oncommand="AbNewList('dirTree')"/> <menuitem label="&newAddressBookCmd.label;" accesskey="&newAddressBookCmd.accesskey;" oncommand="AbNewAddressBook()"/> <menuitem label="&newLDAPDirectoryCmd.label;" id="addLDAP" accesskey="&newLDAPDirectoryCmd.accesskey;" oncommand="AbNewLDAPDirectory()"/> <menuseparator/> <menuitem label="&newMessageCmd.label;" id="menu_newMessage" key="key_newMessage" accesskey="&newMessageCmd.accesskey;" oncommand="AbNewMessage()"/> </menupopup> </menu> <menuitem id="menu_close" label="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" oncommand="AbClose()"/> <menuseparator/> <menuitem id="printSetupMenuItem" label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" oncommand="NSPrintSetup()"/>#ifndef XP_MACOSX <menuitem id="printPreviewMenuItem" label="&printPreviewCardViewCmd.label;" accesskey="&printPreviewCardViewCmd.accesskey;" command="cmd_printcardpreview"/> <menuitem id="printPreviewAddressBook" label="&printPreviewAddressBook.label;" accesskey="&printPreviewAddressBook.accesskey;" oncommand="AbPrintPreviewAddressBook()"/>#endif <menuitem id="printMenuItem" label="&printCardViewCmd.label;" accesskey="&printCardViewCmd.accesskey;" key="key_printCard" command="cmd_printcard"/> <menuitem id="printAddressBook" label="&printAddressBook.label;" accesskey="&printAddressBook.accesskey;" oncommand="AbPrintAddressBook()"/> <menuseparator id="menu_FileQuitSeparator"/>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?