home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / mail.xpi / bin / chrome / messenger.jar / content / messenger / shareglue.js < prev    next >
Text File  |  2001-03-23  |  2KB  |  66 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.  * code in here is generic, shared utility code across all messenger
  23.  * components. There should be no command or widget specific code here
  24.  */
  25.  
  26. function NewBrowserWindow() {}
  27. function NewBlankPage() {} 
  28. function TemplatePage() {}
  29. function WizardPage() {}
  30. function CharacterSet(){}
  31.  
  32. function MessengerSetDefaultCharacterSet(aCharset)
  33. {
  34. //    dump(aCharset);dump("\n");
  35.   messenger.SetDocumentCharset(aCharset);
  36.   msgWindow.mailCharacterSet = aCharset;
  37.  
  38. // folder charset to be set by folder property not by charset menu
  39. //    var folderResource = GetSelectedFolderResource();
  40. //    SetFolderCharset(folderResource, aCharset);
  41. //    RefreshThreadPane();
  42.   // DO NOT try to reload the message here. we do this automatically now in
  43.   //  messenger.SetDocumentCharset. You'll just break things and reak havoc
  44.   // if you call MsgReload() here...
  45. }
  46.  
  47. function PrintPreview() {
  48.     dump("PrintPreview()\n");
  49.     try {
  50.         messenger.DoPrintPreview();
  51.     }
  52.     catch (ex) {
  53.         dump("failed to print preview\n");
  54.     }
  55. }
  56.  
  57. function Print() {
  58.     dump("Print()\n");
  59.     try {
  60.         messenger.DoPrint();
  61.     }
  62.     catch (ex) {
  63.         dump("failed to print\n");
  64.     }
  65. }
  66.