1999-06-08 00:59:02 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
1999-06-08 02:17:35 +00:00
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code is Mozilla Communicator client code, released
|
|
|
|
* March 31, 1998.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
1999-06-08 00:59:02 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* code in here is generic, shared utility code across all messenger
|
|
|
|
* components. There should be no command or widget specific code here
|
|
|
|
*/
|
|
|
|
|
1999-05-28 19:41:31 +00:00
|
|
|
function NewBrowserWindow() {}
|
|
|
|
function NewBlankPage() {}
|
|
|
|
function TemplatePage() {}
|
|
|
|
function WizardPage() {}
|
|
|
|
function CharacterSet(){}
|
1999-06-08 00:26:29 +00:00
|
|
|
|
1999-05-28 19:41:31 +00:00
|
|
|
function MessengerSetDefaultCharacterSet(aCharset)
|
|
|
|
{
|
2001-01-29 20:00:46 +00:00
|
|
|
// dump(aCharset);dump("\n");
|
|
|
|
messenger.SetDocumentCharset(aCharset);
|
|
|
|
msgWindow.mailCharacterSet = aCharset;
|
2000-07-06 23:26:49 +00:00
|
|
|
|
|
|
|
// folder charset to be set by folder property not by charset menu
|
|
|
|
// var folderResource = GetSelectedFolderResource();
|
|
|
|
// SetFolderCharset(folderResource, aCharset);
|
2001-03-24 01:12:33 +00:00
|
|
|
// RefreshThreadPane();
|
2000-05-16 00:21:02 +00:00
|
|
|
// DO NOT try to reload the message here. we do this automatically now in
|
|
|
|
// messenger.SetDocumentCharset. You'll just break things and reak havoc
|
|
|
|
// if you call MsgReload() here...
|
1999-05-28 19:41:31 +00:00
|
|
|
}
|
|
|
|
|
2000-02-15 23:05:06 +00:00
|
|
|
function PrintPreview() {
|
|
|
|
dump("PrintPreview()\n");
|
1999-08-06 07:42:27 +00:00
|
|
|
try {
|
2000-02-15 23:05:06 +00:00
|
|
|
messenger.DoPrintPreview();
|
1999-08-06 07:42:27 +00:00
|
|
|
}
|
|
|
|
catch (ex) {
|
2000-02-15 23:05:06 +00:00
|
|
|
dump("failed to print preview\n");
|
1999-08-06 07:42:27 +00:00
|
|
|
}
|
1999-08-05 19:47:58 +00:00
|
|
|
}
|
2000-02-15 23:05:06 +00:00
|
|
|
|
|
|
|
function Print() {
|
|
|
|
dump("Print()\n");
|
1999-08-06 07:42:27 +00:00
|
|
|
try {
|
2000-02-15 23:05:06 +00:00
|
|
|
messenger.DoPrint();
|
1999-08-06 07:42:27 +00:00
|
|
|
}
|
|
|
|
catch (ex) {
|
2000-02-15 23:05:06 +00:00
|
|
|
dump("failed to print\n");
|
1999-08-06 07:42:27 +00:00
|
|
|
}
|
1999-08-05 19:47:58 +00:00
|
|
|
}
|