1999-06-08 04:59:02 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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 23:41:31 +04:00
|
|
|
function NewBrowserWindow() {}
|
|
|
|
function NewBlankPage() {}
|
|
|
|
function TemplatePage() {}
|
|
|
|
function WizardPage() {}
|
|
|
|
function PageSetup() {}
|
|
|
|
function PrintPreview() {}
|
|
|
|
function Print() {}
|
1999-06-08 04:26:29 +04:00
|
|
|
|
1999-06-08 04:59:02 +04:00
|
|
|
function OnLoadMessenger()
|
1999-06-08 04:26:29 +04:00
|
|
|
{
|
|
|
|
messenger.SetWindow(window);
|
1999-06-08 04:59:02 +04:00
|
|
|
window.frames["messagepane"].location =
|
|
|
|
"http://www.mozilla.org/mailnews/prefs-info.html";
|
1999-06-08 04:26:29 +04:00
|
|
|
}
|
|
|
|
|
1999-06-08 04:59:02 +04:00
|
|
|
function OnUnloadMessenger()
|
1999-06-08 04:26:29 +04:00
|
|
|
{
|
|
|
|
dump("\nOnUnload from XUL\nClean up ...\n");
|
|
|
|
messenger.OnUnload();
|
|
|
|
}
|
|
|
|
|
1999-06-08 04:59:02 +04:00
|
|
|
function CloseMessenger()
|
1999-06-08 04:26:29 +04:00
|
|
|
{
|
|
|
|
dump("\nClose from XUL\nDo something...\n");
|
|
|
|
messenger.Close();
|
|
|
|
}
|
|
|
|
|
1999-05-28 23:41:31 +04:00
|
|
|
function Exit()
|
|
|
|
{
|
|
|
|
dump("\nExit from XUL\n");
|
1999-06-08 04:26:29 +04:00
|
|
|
messenger.Exit();
|
1999-05-28 23:41:31 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
function CharacterSet(){}
|
1999-06-08 04:26:29 +04:00
|
|
|
|
1999-05-28 23:41:31 +04:00
|
|
|
function MessengerSetDefaultCharacterSet(aCharset)
|
|
|
|
{
|
|
|
|
dump(aCharset);dump("\n");
|
1999-06-08 04:26:29 +04:00
|
|
|
messenger.SetDocumentCharset(aCharset);
|
1999-06-04 02:56:45 +04:00
|
|
|
var folderResource = GetSelectedFolderResource();
|
|
|
|
SetFolderCharset(folderResource, aCharset);
|
1999-05-28 23:41:31 +04:00
|
|
|
MsgReload();
|
|
|
|
}
|
|
|
|
|
|
|
|
function NavigatorWindow()
|
|
|
|
{
|
|
|
|
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
|
|
|
|
if (!toolkitCore)
|
|
|
|
{
|
|
|
|
toolkitCore = new ToolkitCore();
|
|
|
|
if (toolkitCore)
|
|
|
|
{
|
|
|
|
toolkitCore.Init("ToolkitCore");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (toolkitCore)
|
|
|
|
{
|
|
|
|
toolkitCore.ShowWindow("chrome://navigator/content/",
|
|
|
|
window);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
function MessengerWindow() {}
|
|
|
|
function ComposerWindow() {}
|
|
|
|
function AIMService() {}
|
|
|
|
function AddBookmark() {}
|
|
|
|
function FileBookmark() {}
|
|
|
|
function EditBookmark() {}
|
|
|
|
function Newsgroups() {}
|
|
|
|
function AddressBook()
|
|
|
|
{
|
|
|
|
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
|
|
|
|
if (!toolkitCore)
|
|
|
|
{
|
|
|
|
toolkitCore = new ToolkitCore();
|
|
|
|
if (toolkitCore)
|
|
|
|
{
|
|
|
|
toolkitCore.Init("ToolkitCore");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (toolkitCore)
|
|
|
|
{
|
|
|
|
toolkitCore.ShowWindow("chrome://addressbook/content/",
|
|
|
|
window);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function History() {}
|
|
|
|
function SecurityInfo() {}
|
|
|
|
function MessengerCenter() {}
|
|
|
|
function JavaConsole() {}
|
|
|
|
function PageService() {}
|
|
|
|
function MailAccount() {}
|
|
|
|
function MaillingList() {}
|
|
|
|
function FolderPermission() {}
|
|
|
|
function ManageNewsgroup() {}
|
|
|
|
function WindowList() {}
|
|
|
|
function Help() {}
|
|
|
|
function About() {}
|