From 8fc33339c26dd44244b1a46a87b1f0f6ba09f477 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Wed, 14 Nov 2001 10:25:19 +0000 Subject: [PATCH] more work on #73868. converting ab from tree to outliner. NOT PART OF THE BUILD. --- .../resources/content/addressbook-panel.js | 9 ++++- .../addressbook/mac/abResultsPane.css | 35 +++++++++++++++++++ .../addressbook/win/abResultsPane.css | 35 +++++++++++++++++++ 3 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 themes/classic/messenger/addressbook/mac/abResultsPane.css create mode 100644 themes/classic/messenger/addressbook/win/abResultsPane.css diff --git a/mailnews/addrbook/resources/content/addressbook-panel.js b/mailnews/addrbook/resources/content/addressbook-panel.js index f49b1a97d56a..533413ac3bf1 100644 --- a/mailnews/addrbook/resources/content/addressbook-panel.js +++ b/mailnews/addrbook/resources/content/addressbook-panel.js @@ -21,8 +21,10 @@ * Seth Spitzer */ -function abPanelStartup() +function abPanelLoad() { + InitCommonJS(); + var selectedAB = "moz-abmdbdirectory://abook.mab"; // XXX duplicated code, see OnLoadMailList() @@ -49,6 +51,11 @@ function abPanelStartup() ChangeDirectoryByDOMNode(abPopup.selectedItem); } +function abPanelUnload() +{ + CloseAbView(); +} + function AbPanelNewCard() { var abList = document.getElementById('addressbookList'); diff --git a/themes/classic/messenger/addressbook/mac/abResultsPane.css b/themes/classic/messenger/addressbook/mac/abResultsPane.css new file mode 100644 index 000000000000..d33943f72278 --- /dev/null +++ b/themes/classic/messenger/addressbook/mac/abResultsPane.css @@ -0,0 +1,35 @@ +/* + * 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-2001 Netscape Communications Corporation. All + * Rights Reserved. + * + * Original Author: + * Seth Spitzer + */ + +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +outlinerbody:-moz-outliner-image(DisplayName) { + padding-right: 2px; + list-style-image: url("chrome://messenger/skin/abcard.gif"); +} + +outlinerbody:-moz-outliner-image(DisplayName, MailList) { + padding-right: 2px; + list-style-image: url("chrome://messenger/skin/addressbook/list.gif"); +} + diff --git a/themes/classic/messenger/addressbook/win/abResultsPane.css b/themes/classic/messenger/addressbook/win/abResultsPane.css new file mode 100644 index 000000000000..d33943f72278 --- /dev/null +++ b/themes/classic/messenger/addressbook/win/abResultsPane.css @@ -0,0 +1,35 @@ +/* + * 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-2001 Netscape Communications Corporation. All + * Rights Reserved. + * + * Original Author: + * Seth Spitzer + */ + +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +outlinerbody:-moz-outliner-image(DisplayName) { + padding-right: 2px; + list-style-image: url("chrome://messenger/skin/abcard.gif"); +} + +outlinerbody:-moz-outliner-image(DisplayName, MailList) { + padding-right: 2px; + list-style-image: url("chrome://messenger/skin/addressbook/list.gif"); +} +