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.

Mercurial (341e6b4a9882)

VCS Links

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 56 57 58 59 60 61
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->


<!-- retrieve generic commands -->
<?xul-overlay href="chrome://messenger/content/mailOverlay.xul"?>

<!DOCTYPE overlay SYSTEM "chrome://messenger/locale/mailEditorOverlay.dtd" >

<overlay id="mailEditorOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script type="application/javascript">
  <![CDATA[

    function openComposeWindow(pageUrl, pageTitle)
    {
      var params = Components.classes["@mozilla.org/messengercompose/composeparams;1"].createInstance(Components.interfaces.nsIMsgComposeParams);
      if (params)
      {
        params.composeFields = Components.classes['@mozilla.org/messengercompose/composefields;1'].createInstance(Components.interfaces.nsIMsgCompFields);
        if (params.composeFields)
        {
          params.composeFields.body = pageUrl;
          params.composeFields.subject = pageTitle;
          var attachmentData = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment);
          if (attachmentData)
          {
            attachmentData.url = pageUrl;
            params.composeFields.addAttachment(attachmentData);
          }
          params.bodyIsLink = true;

          var composeService = Components.classes["@mozilla.org/messengercompose;1"].getService(Components.interfaces.nsIMsgComposeService);
          if (composeService)
            composeService.OpenComposeWindowWithParams(null, params);
        }
      }
    }

  ]]>
  </script>

  <!-- editor specific UI items -->
  <menupopup id="menu_NewPopup">
    <!-- Command nodes and implemention are in mailOverlay.xul -->
    <menuitem id="menu_newMessage" insertafter="menu_newPrivateWindow"/>
    <menuitem id="menu_newCard" insertafter="menu_newPrivateWindow"/>
  </menupopup>

  <menupopup id="menu_FilePopup">
    <!-- The command node cmd_editSendPage is in editor.xul.
         Implementation is in ComposerCommands.js
    -->
    <menuitem id="menu_sendPage" label="&sendPage.label;" accesskey="&sendPage.accesskey;" observes="cmd_editSendPage" insertafter="previewInBrowser"/>
  </menupopup>

</overlay>