home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / messenger.jar / content / messenger / attach.js < prev    next >
Text File  |  2001-02-14  |  2KB  |  41 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  * 
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  * 
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  * 
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  */
  20.  
  21. /*
  22.  * Attachment Command-specific code. This stuff should be called by the widgets
  23.  */
  24.  
  25. var msgWindowContractID           = "@mozilla.org/messenger/msgwindow;1";
  26. var messenger = Components.classes['@mozilla.org/messenger;1'].createInstance();
  27. messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger);
  28. //Create message window object
  29. //var msgWindow = Components.classes[msgWindowContractID].createInstance();
  30. //msgWindow = msgWindow.QueryInterface(Components.interfaces.nsIMsgWindow);
  31.  
  32. function OpenAttachURL(url, displayName, messageUri)
  33. {
  34.   dump("\nOpenAttachURL from XUL\n");
  35.   dump(url);
  36.   dump("\n");
  37.   // messenger.SetWindow(window, msgWindow);
  38.   messenger.openAttachment(url, displayName, messageUri);
  39. }
  40.  
  41.