home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 July & August / PCWorld_2005-07-08_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / messenger.jar / content / messenger / mailTasksOverlay.xul < prev   
Extensible Markup Language  |  2005-02-26  |  3KB  |  81 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE overlay [
  4. <!ENTITY % mailTasksOverlayDTD SYSTEM "chrome://messenger/locale/mailTasksOverlay.dtd" >
  5. %mailTasksOverlayDTD;
  6. ]>
  7.  
  8. <overlay id="mailPrefsOverlay"
  9.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  10.  
  11.   <script type="application/x-javascript">
  12.   <![CDATA[
  13.     // uses "toOpenWindowByType" function provided by utilityOverlay.js
  14.     // which is included by most clients. 
  15.     function toMessengerWindow()
  16.       {
  17.         var pref = Components.classes["@mozilla.org/preferences-service;1"]
  18.                              .getService(Components.interfaces.nsIPrefBranch);
  19.         var windowDoc = "chrome://messenger/content/messenger.xul";
  20.         try
  21.           {
  22.             var layoutType = pref.getIntPref("mail.pane_config");
  23.             windowDoc = !layoutType ? "chrome://messenger/content/messenger.xul" : 
  24.                                           "chrome://messenger/content/mail3PaneWindowVertLayout.xul";
  25.           }
  26.         catch(ex)
  27.           {
  28.           }
  29.         toOpenWindowByType("mail:3pane", windowDoc);
  30.       }
  31.     
  32.     function toAddressBook() 
  33.       {
  34.         toOpenWindowByType("mail:addressbook", "chrome://messenger/content/addressbook/addressbook.xul");
  35.       }
  36.     
  37.     function toNewsgroups() 
  38.       {
  39.         dump ("Sorry, command not implemented.\n");
  40.       }
  41.  
  42.     function toImport()
  43.       {
  44.         window.openDialog("chrome://messenger/content/importDialog.xul","importDialog","chrome, modal, titlebar", {importType: "addressbook"});
  45.       }
  46.  
  47.   ]]>
  48.   </script>         
  49.  
  50.  
  51.   <keyset id="tasksKeys">
  52.     <key id="key_mail"  key="&messengerCmd.commandkey;" command="Tasks:Mail" modifiers="accel"/>
  53.     <key id="key_addressbook"  key="&addressBookCmd.commandkey;" command="Tasks:AddressBook" modifiers="accel"/>
  54.   </keyset>
  55.  
  56.  
  57.   <commandset id="tasksCommands">
  58.     <command id="Tasks:Mail" oncommand="toMessengerWindow();"/>
  59.     <command id="Tasks:AddressBook" oncommand="toAddressBook();"/>
  60.   </commandset>
  61.   
  62.     
  63.   <statusbarpanel id="component-bar">
  64.     <toolbarbutton class="taskbutton" id="mini-mail" oncommand="toMessengerWindow()" 
  65.             position="2" tooltiptext="&taskMessenger.tooltip;"/>
  66.     <toolbarbutton id="mini-comp" insertafter="mini-mail"/>
  67.     <toolbarbutton class="taskbutton" id="mini-addr" oncommand="toAddressBook();"
  68.             insertafter="mini-comp" tooltiptext="&taskAddressBook.tooltip;"/>
  69.   </statusbarpanel>
  70.   
  71.   <!-- MERC: SL 
  72.   <menupopup id="windowPopup">
  73.     <menuitem accesskey="&messengerCmd.accesskey;" label="&messengerCmd.label;"  key="key_mail" command="Tasks:Mail" id="tasksMenuMail" insertafter="tasksMenuNavigator" class="menuitem-iconic icon-mail16 menu-iconic"/>
  74.     <menuitem id="tasksMenuEditor" insertafter="tasksMenuMail"/>
  75.     <menuitem label="&addressBookCmd.label;" accesskey="&addressBookCmd.accesskey;" key="key_addressbook" command="Tasks:AddressBook" id="tasksMenuAddressBook" insertafter="tasksMenuEditor" class="menuitem-iconic icon-addressbook16 menu-iconic"/>
  76.   </menupopup>
  77.   -->
  78.   
  79. </overlay>         
  80.  
  81.