From 94e72f3ad840c4bb7c885e8d8c1157f5b64a34be Mon Sep 17 00:00:00 2001 From: "nhotta%netscape.com" Date: Mon, 17 May 1999 18:58:35 +0000 Subject: [PATCH] Synchronized charset menu with navigator. --- mailnews/ui/messenger/resources/mailshell.xul | 99 +++++++++++++++++-- mailnews/ui/messenger/resources/shareglue.js | 91 ----------------- 2 files changed, 91 insertions(+), 99 deletions(-) diff --git a/mailnews/ui/messenger/resources/mailshell.xul b/mailnews/ui/messenger/resources/mailshell.xul index 7d43661c662..ad7ff72ffcc 100644 --- a/mailnews/ui/messenger/resources/mailshell.xul +++ b/mailnews/ui/messenger/resources/mailshell.xul @@ -100,10 +100,48 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -325,10 +363,55 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mailnews/ui/messenger/resources/shareglue.js b/mailnews/ui/messenger/resources/shareglue.js index 928c6158b68..e69de29bb2d 100644 --- a/mailnews/ui/messenger/resources/shareglue.js +++ b/mailnews/ui/messenger/resources/shareglue.js @@ -1,91 +0,0 @@ -function NewBrowserWindow() {} -function NewBlankPage() {} -function TemplatePage() {} -function WizardPage() {} -function PageSetup() {} -function PrintPreview() {} -function Print() {} -function Close() {} -function Exit() -{ - dump("\nExit from XUL\n"); - var appCore = FindMsgAppCore(); - if (appCore != null) { - dump("\nAppcore isn't null in Exit\n"); - appCore.SetWindow(window); - appCore.exit(); - } -} - -function CharacterSet(){} -function SetDocumentCharacterSet(aCharset) -{ - var appCore = FindMsgAppCore(); - if (appCore != null) { - dump(aCharset);dump("\n"); - appCore.SetDocumentCharset(aCharset); - MsgReload(); - } else { - dump("MsgAppCore has not been created!\n"); - } -} - -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() {}