home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / messenger.jar / content / messenger / shareglue.js < prev    next >
Text File  |  2001-02-14  |  2KB  |  68 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.  
  31.  
  32.  
  33. function CharacterSet(){}
  34.  
  35. function MessengerSetDefaultCharacterSet(aCharset)
  36. {
  37.     dump(aCharset);dump("\n");
  38.     messenger.SetDocumentCharset(aCharset);
  39.  
  40. // folder charset to be set by folder property not by charset menu
  41. //    var folderResource = GetSelectedFolderResource();
  42. //    SetFolderCharset(folderResource, aCharset);
  43. //    RefreshThreadTreeView();
  44.   // DO NOT try to reload the message here. we do this automatically now in
  45.   //  messenger.SetDocumentCharset. You'll just break things and reak havoc
  46.   // if you call MsgReload() here...
  47. }
  48.  
  49. function PrintPreview() {
  50.     dump("PrintPreview()\n");
  51.     try {
  52.         messenger.DoPrintPreview();
  53.     }
  54.     catch (ex) {
  55.         dump("failed to print preview\n");
  56.     }
  57. }
  58.  
  59. function Print() {
  60.     dump("Print()\n");
  61.     try {
  62.         messenger.DoPrint();
  63.     }
  64.     catch (ex) {
  65.         dump("failed to print\n");
  66.     }
  67. }
  68.