home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / messenger.jar / content / messenger / addressbook / addressbook.xul < prev    next >
Extensible Markup Language  |  2001-02-14  |  11KB  |  262 lines

  1. <?xml version="1.0"?> 
  2. <!--
  3. The contents of this file are subject to the Netscape Public
  4. License Version 1.1 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of
  6. the License at http://www.mozilla.org/NPL/
  7.  
  8. Software distributed under the License is distributed on an "AS
  9. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10. implied. See the License for the specific language governing
  11. rights and limitations under the License.
  12.  
  13. The Original Code is Mozilla Communicator client code, released
  14. March 31, 1998.
  15.  
  16. The Initial Developer of the Original Code is Netscape
  17. Communications Corporation. Portions created by Netscape are
  18.  Copyright (C) 1998-1999 Netscape Communications Corporation. All
  19. Rights Reserved.
  20. --> 
  21. <?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?> 
  22. <?xml-stylesheet href="chrome://messenger/skin/addressbook/addressbook.css" type="text/css"?> 
  23.  
  24. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  25. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  26. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  27. <?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
  28. <?xul-overlay href="chrome://messenger/content/addressbook/abDirTreeOverlay.xul"?>
  29. <?xul-overlay href="chrome://messenger/content/addressbook/abResultsTreeOverlay.xul"?>
  30. <?xul-overlay href="chrome://messenger/content/addressbook/abCardViewOverlay.xul"?>
  31. <?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
  32.  
  33. <!DOCTYPE window SYSTEM "chrome://messenger/locale/addressbook/abMainWindow.dtd">
  34.  
  35. <window xmlns:html="http://www.w3.org/1999/xhtml"
  36.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  37.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  38.         id="addressbookWindow"
  39.         height="450"
  40.         width="750"
  41.         align="vertical"
  42.         title="&addressbookWindow.title;"
  43.         windowtype="mail:addressbook"
  44.         persist="width height screenX screenY"
  45.         onload="OnLoadAddressBook()">
  46.  
  47. <script language="JavaScript" src="chrome://messenger/content/accountUtils.js"/>
  48. <script language="JavaScript" src="chrome://messenger/content/widgetglue.js"/>
  49. <script language="JavaScript" src="chrome://messenger/content/addressbook/addressbook.js"/>
  50. <script language="JavaScript" src="chrome://messenger/content/addressbook/abCommon.js"/>
  51. <script language="JavaScript" src="chrome://messenger/content/addressbook/abDragDrop.js"/>
  52. <script language="JavaScript" src="chrome://messenger/content/msgPrintEngine.js"/>
  53.  
  54. <commands id="commands">
  55.     <commandset id="CommandUpdate_AddressBook"
  56.                 commandupdater="true"
  57.                 events="focus,tree-select"
  58.                 oncommandupdate="CommandUpdate_AddressBook()"/>
  59.     
  60.     <commandset id="globalEditMenuItems"/>
  61. </commands>
  62.  
  63. <broadcasterset id="broadcasterset">
  64.     <!-- File Menu -->
  65.     <broadcaster id="cmd_newNavigator"/>
  66.     <broadcaster id="cmd_newEditor"/>
  67.     <broadcaster id="cmd_PrintCard" oncommand="AbPrintCard()"/>
  68.      <broadcaster id="cmd_close" oncommand="AbClose()"/>
  69.      <broadcaster id="cmd_quit"/>
  70.     <!-- Edit Menu -->
  71.     <broadcaster id="cmd_delete"
  72.                  valueAddressBook="&deleteAbCmd.label;"
  73.                  valueCard="&deleteCardCmd.label;"
  74.                  valueCards="&deleteCardsCmd.label;"/>
  75.     <broadcaster id='button_delete'/>
  76.     <broadcaster id='cmd_selectAll'/>
  77.     <broadcaster id="cmd_preferences"/>
  78.  
  79.   <broadcaster id="broadcaster-throbber" busy="false"/>
  80. </broadcasterset>
  81.  
  82. <keyset id="keyset">
  83.     <!-- File Menu -->
  84.     <key id="key_newNavigator"/>
  85.     <key id="key_PrintCard"  key="&printCardViewCmd.key;" observes="cmd_PrintCard"  modifiers="accel"/>
  86.     <key id="key_close"/>
  87.     <key id="key_quit"/>
  88.     <!-- Edit Menu -->
  89.     <key id="key_delete"/>
  90.     <key id="key_selectAll"/>
  91. </keyset>
  92.  
  93. <popupset id="aTooltipSet"/>
  94.  
  95. <toolbox class="toolbox-top">
  96.     <menubar>
  97.         <menu id="menu_File">
  98.             <menupopup id="menu_FilePopup">
  99.                 <menuitem value="&newCard.label;" accesskey="&newCard.accesskey;" oncommand="AbNewCard()"/>
  100.                 <menu id="menu_New">
  101.                     <menupopup id="menu_NewPopup">
  102.                         <menuitem value="&newListCmd.label;" accesskey="&newListCmd.accesskey;" oncommand="AbNewList()"/>
  103.                         <menuitem value="&newAddressBookCmd.label;" accesskey="&newAddressBookCmd.accesskey;" oncommand="AbNewAddressBook()"/>
  104.                         <menuseparator/>
  105.                         <menuitem id="menu_newNavigator"/>
  106.                       <menuitem id="menu_newEditor"/>
  107.                     </menupopup>
  108.                 </menu>
  109.                 <menuseparator/>
  110.                 <menuitem id="menu_close"/>
  111.                 <menuseparator/>
  112.                 <menuitem value="&importCmd.label;" accesskey="&importCmd.accesskey;" oncommand="toImport()"/>
  113.                 <menuseparator/>
  114.                 <menuitem value="&printCardViewCmd.label;" accesskey="&printCardViewCmd.accesskey;" key="key_PrintCard" observes="cmd_PrintCard"/>
  115.                 <menuseparator/>
  116.             </menupopup>
  117.         </menu>
  118.         
  119.         <menu id="menu_Edit">
  120.           <menupopup>
  121.             <menuitem id="menu_delete"/>
  122.             <menuseparator/>
  123.             <menuitem id="menu_selectAll"/>
  124.             <menuseparator/>
  125.             <menuitem value="&editCardCmd.label;"
  126.                       accesskey="&editCardCmd.accesskey;"
  127.                       oncommand="AbEditCard();"/>
  128.             <menuseparator/>
  129.             <menuitem id="menu_preferences" oncommand="goPreferences('addressbook.xul', 'chrome://messenger/content/addressbook/pref-addressing.xul')"/>
  130.           </menupopup>
  131.         </menu>
  132.         
  133.         <menu id="menu_View">
  134.             <menupopup id="menu_View_Popup">
  135.                 <menu id="menu_Toolbars">
  136.                     <menupopup>
  137.                         <menuitem id="menu_showAbToolbar"
  138.                                   value="&showAbToolbarCmd.label;"
  139.                                   accesskey="&showAbToolbarCmd.accesskey;"
  140.                                   oncommand="goToggleToolbar('abToolbar', 'menu_showAbToolbar')"
  141.                                   checked="true" type="checkbox"/>
  142.                         <menuitem id="menu_showTaskbar" type="checkbox"/>
  143.                     </menupopup>
  144.                 </menu>
  145.                 <menuseparator/>
  146.                 <menu value="&menu_ShowNameAs.label;" accesskey="&menu_ShowNameAs.accesskey;">
  147.                     <menupopup>
  148.                         <menuitem type="radio" name="shownameas"
  149.                                   id="firstLastCmd"
  150.                                   value="&firstLastCmd.label;"
  151.                                   accesskey="&firstLastCmd.accesskey;"
  152.                                   oncommand="SetNameColumn('firstLastCmd')"/>
  153.                         <menuitem type="radio" name="shownameas"
  154.                                   id="lastFirstCmd"
  155.                                   value="&lastFirstCmd.label;"
  156.                                   accesskey="&lastFirstCmd.accesskey;"
  157.                                   oncommand="SetNameColumn('lastFirstCmd')"/>
  158.                         <menuitem type="radio" name="shownameas"
  159.                                   id="displayNameCmd"
  160.                                   value="&displayNameCmd.label;"
  161.                                   accesskey="&displayNameCmd.accesskey;"
  162.                                   oncommand="SetNameColumn('displayNameCmd')"/>
  163.                     </menupopup>
  164.                 </menu>
  165.                 <menu value="&sortMenu.label;" accesskey="&sortMenu.accesskey;">
  166.                     <menupopup>
  167.                         <menuitem value="&sortByNameCmd.label;"
  168.                                   id="cmd_SortByName"
  169.                                   disabled="true"
  170.                                   accesskey="&SortByName.accesskey;"
  171.                                   oncommand="top.SortResultPane('NameColumn', 'http://home.netscape.com/NC-rdf#DisplayName')" name="sortas" type="radio" checked="true"/>
  172.                         <menuitem value="&sortByEmailCmd.label;"
  173.                                   id="cmd_SortByEmail"
  174.                                   disabled="true"
  175.                                   accesskey="&SortByEmail.accesskey;"
  176.                                   oncommand="top.SortResultPane('EmailColumn', 'http://home.netscape.com/NC-rdf#PrimaryEmail')" name="sortas" type="radio"/>
  177.                         <menuitem value="&sortByWorkPhoneCmd.label;"
  178.                                   id="cmd_SortByWorkPhone"
  179.                                   disabled="true"
  180.                                   accesskey="&SortByWorkPhone.accesskey;"
  181.                                   oncommand="top.SortResultPane('WorkPhoneColumn', 'http://home.netscape.com/NC-rdf#WorkPhone')" name="sortas" type="radio"/>
  182.                         <menuitem value="&sortByOrganizationCmd.label;"
  183.                                   id="cmd_SortByOrganization"
  184.                                   disabled="true"
  185.                                   accesskey="&SortByOrganization.accesskey;"
  186.                                   oncommand="top.SortResultPane('OrganizationColumn', 'http://home.netscape.com/NC-rdf#Company')" name="sortas" type="radio"/>
  187.                     </menupopup>
  188.                 </menu>
  189.             </menupopup>
  190.         </menu>
  191.         
  192.         <menu id="tasksMenu"/>
  193.         <menu id="menu_Help"/>
  194.         <spring flex="100%"/>
  195.     </menubar>
  196.     
  197.     <!-- toolbar -->
  198.         <toolbar class="toolbar-primary" id="abToolbar" persist="collapsed">
  199.             <box id="toolbar_button_box">
  200.                 <button class="button-toolbar-2 top" orient="vertical" id="button-newcard" value="&newcardButton.label;" tooltip="aTooltip" tooltiptext="&newcardButton.tooltip;" onclick="AbNewCard()"/>
  201.                 <button class="button-toolbar-2 top" orient="vertical" id="button-newlist" value="&newlistButton.label;" tooltip="aTooltip" tooltiptext="&newlistButton.tooltip;" onclick="AbNewList()"/>
  202.                 <toolbarseparator class="toolbarseparator-primary"/>
  203.                 <button class="button-toolbar-2 top" orient="vertical" id="button-editcard" value="&editButton.label;" tooltip="aTooltip" tooltiptext="&editButton.tooltip;" onclick="AbEditCard()"/>
  204.                 <button class="button-toolbar-2 top" orient="vertical" id="button-newmessage" value="&newmsgButton.label;" tooltip="aTooltip" tooltiptext="&newmsgButton.tooltip;" onclick="AbNewMessage()"/>
  205.                 <button class="button-toolbar-2 top" orient="vertical" id="button-delete" disabled="true" observes="button_delete" value="&deleteButton.label;" tooltip="aTooltip" tooltiptext="&deleteButton.tooltip;" onclick="goDoCommand('button_delete')"/>
  206.  
  207.                 <box orient="vertical" flex="100%">
  208.                     <spring flex="1"/> 
  209.                     <!--html id="searchlabel">&showNames.label;</html>
  210.                     <textfield id="searchtext" type="text" align="bottom"/> 
  211.                     <spring flex="1"/--> 
  212.                 </box>
  213.  
  214.                 <!--button id="button_stop" class="other28" align="top" value="&stopButton.label;" tooltip="aTooltip" tooltiptext="&stopButton.tooltip;" disabled="true" oncommand="AbStop()"/>
  215.                 <button id="button_search" class="other28" align="top" value="&searchButton.label;" disabled="true" tooltip="aTooltip" tooltiptext="&searchButton.tooltip;" oncommand="AbSearch()"/-->
  216.             </box>
  217.  
  218.       <button class="plain" id="navigator-throbber" oncommand='goClickThrobber("addressbook.throbber.url")'>
  219.         <observes element="broadcaster_throbber" attribute="busy"/>
  220.       </button>
  221.         </toolbar>
  222.     </toolbox>
  223.  
  224.     <!-- The main address book three pane -->
  225.     <box orient="horizontal" flex="100%" style="min-width:150px">
  226.         <!-- sidebar with dir tree -->
  227.         <box id="sidebar-box">
  228.                 <sidebarheader type="box" class="sidebarheader-main" value="&addressbook-sidebar-header.label;"/>
  229.             
  230.             <tree id="dirTree" flex="1000"/>
  231.         </box>
  232.         <splitter id="sidebar-splitter" collapse="before" persist="state"/>
  233.         
  234.         <box orient="vertical" flex="100%" style="min-width:100px">
  235.  
  236.             <!-- results tree -->
  237.             <box id="results_box" flex="1" orient="vertical">
  238.                 <tree id="resultsTree" flex="1" style="height:0px"/>
  239.             </box>
  240.             
  241.             <splitter id="results-splitter" collapse="after" persist="state"
  242.               orient="vertical" autostretch="never">
  243.         <grippy/>
  244.       </splitter>
  245.             
  246.             <!-- card view -->
  247.       <box id="CardViewOuterBox" flex="1">
  248.               <box id="CardViewBox" style="height:170px; min-height:1px; min-width:1px"/>
  249.       </box>
  250.         
  251.       <box id="status-bar">
  252.           <text id="statusText" class="status-bar" align="left" flex="100%" value="&statusText.label;"/>
  253.       </box>        
  254.  
  255.         </box>
  256.         
  257.     </box>
  258.     
  259.     <box id="taskbar" class="toolbox-bottom"/>
  260.  
  261. </window>
  262.