home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / messenger.jar / content / messenger / mailOverlay.xul < prev    next >
Extensible Markup Language  |  2005-09-26  |  2KB  |  53 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- platform specific commands -->
  4. <?xul-overlay href="chrome://navigator/content/platformMailOverlay.xul"?>
  5.  
  6. <!DOCTYPE overlay SYSTEM "chrome://messenger/locale/mailOverlay.dtd">
  7. <overlay id="mailOverlay.xul"
  8.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  9.  
  10.   <script type="application/x-javascript">
  11.   <![CDATA[
  12.     function openNewCardDialog()
  13.       {
  14.         window.openDialog("chrome://messenger/content/addressbook/abNewCardDialog.xul",
  15.                           "",
  16.                           "chrome,resizable=no,titlebar,modal");
  17.       }
  18.  
  19.     function goOpenNewMessage()
  20.       {
  21.         // if there is a MsgNewMessage function in scope
  22.         // and we should use it, so that we choose the proper
  23.         // identity, based on the selected message or folder
  24.         // if not, bring up the compose window to the default identity
  25.         if ("MsgNewMessage" in window)
  26.         {
  27.           MsgNewMessage(null);
  28.           return;
  29.         }
  30.  
  31.         var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService();
  32.         msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService);
  33.         msgComposeService.OpenComposeWindow(null, null,
  34.                                             Components.interfaces.nsIMsgCompType.New,
  35.                                             Components.interfaces.nsIMsgCompFormat.Default,
  36.                                             null, null);
  37.       }
  38.  
  39.   ]]>
  40.   </script>
  41.          
  42.   <!-- generic commands -->  
  43.   <commandset id="tasksCommands">
  44.     <command id="cmd_newMessage" oncommand="goOpenNewMessage();"/>
  45.     <command id="cmd_newCard" oncommand="openNewCardDialog()"/>
  46.   </commandset>
  47.   <menuitem id="menu_newCard" label="&newCardCmd.label;" accesskey="&newCardCmd.accesskey;" command="cmd_newCard"/>
  48.   <menuitem id="menu_newMessage" label="&newMessageCmd.label;" accesskey="&newMessageCmd.accesskey;" key="key_newMessage" command="cmd_newMessage"/>
  49.   <keyset id="tasksKeys">
  50.     <key id="key_newMessage"   key="&newMessageCmd.key;" command="cmd_newMessage" modifiers="accel"/>
  51.   </keyset>
  52. </overlay>
  53.