DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
<?xml version="1.0"?>

<!DOCTYPE overlay SYSTEM "chrome://messenger/locale/mailOverlay.dtd">
<overlay id="mailOverlay.xul"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script type="application/x-javascript">
  <![CDATA[
    function openNewCardDialog()
      {
        window.openDialog("chrome://messenger/content/addressbook/abNewCardDialog.xul",
                          "",
                          "chrome,resizable=no,titlebar,modal");
      }

    function goOpenNewMessage()
      {
        // if there is a MsgNewMessage function in scope
        // and we should use it, so that we choose the proper
        // identity, based on the selected message or folder
        // if not, bring up the compose window to the default identity
        if ("MsgNewMessage" in window)
        {
          MsgNewMessage(null);
          return;
        }

        var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService();
        msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService);
        msgComposeService.OpenComposeWindow(null, null,
                                            Components.interfaces.nsIMsgCompType.New,
                                            Components.interfaces.nsIMsgCompFormat.Default,
                                            null, null);
      }

  ]]>
  </script>
         
  <!-- generic commands -->  
  <commandset id="tasksCommands">
    <command id="cmd_newMessage" oncommand="goOpenNewMessage();"/>
    <command id="cmd_newCard" oncommand="openNewCardDialog()"/>
  </commandset>
  <menuitem id="menu_newCard" label="&newCardCmd.label;" accesskey="&newCardCmd.accesskey;" command="cmd_newCard"/>
  <menuitem id="menu_newMessage" label="&newMessageCmd.label;" accesskey="&newMessageCmd.accesskey;" key="key_newMessage" command="cmd_newMessage"/>
  <keyset id="tasksKeys">
#ifdef XP_MACOSX
  <key id="key_newMessage" key="&newMessageCmd.key;" command="cmd_newMessage" modifiers="accel,shift"/>
  <key id="key_newMessage2" key="&newMessageCmd2.key;" command="cmd_newMessage" modifiers="accel"/>
#else
  <key id="key_newMessage"  key="&newMessageCmd.key;" command="cmd_newMessage" modifiers="accel"/>
  <key id="key_newMessage2" key="&newMessageCmd2.key;" command="cmd_newMessage" modifiers="accel"/>
#endif
  </keyset>
</overlay>