Initial revision. Not yet in the build.

git-svn-id: svn://10.0.0.236/trunk@34741 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com 1999-06-11 02:50:47 +00:00
parent 0cfef23aaa
commit 7b94de64b6
25 changed files with 3156 additions and 0 deletions

View File

@ -0,0 +1,79 @@
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--
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.
-->
<?xml-stylesheet href="resource:/res/rdf/sidebar.css" type="text/css"?>
<xul:window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script src="bookmarks.js"/>
<tree id="bookmarksTree"
datasources="rdf:bookmarks rdf:files rdf:ftp rdf:find"
ondblclick="return OpenURL(event,event.target.parentNode);">
<template>
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator"
rootcontainment="treebody" subcontainment="treechildren">
<treeitem uri="...">
<treecell>
<html:hr width="75%" align="center" size="1" />
</treecell>
</treeitem>
</rule>
<rule rootcontainment="treebody" subcontainment="treechildren">
<treeitem uri="...">
<treecell>
<treeindentation />
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#Name"
align="right" />
</treecell>
<treecell>
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#URL"
align="right" style="list-style-image: none;" />
</treecell>
</treeitem>
</rule>
</template>
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="URLColumn" rdf:resource="http://home.netscape.com/NC-rdf#URL"/>
<treehead>
<treeitem>
<treecell onclick="return doSort('NameColumn');">
<observes element="NameColumn" attribute="sortActive"/>
<observes element="NameColumn" attribute="sortDirection"/>
Name</treecell>
<treecell onclick="return doSort('URLColumn');">
<observes element="URLColumn" attribute="sortActive"/>
<observes element="URLColumn" attribute="sortDirection"/>
URL</treecell>
</treeitem>
</treehead>
<treebody id="NC:BookmarksRoot">
</treebody>
</tree>
</xul:window>

View File

@ -0,0 +1,118 @@
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--
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.
-->
<?xml-stylesheet href="bookmarks.css" type="text/css"?>
<xul:window
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.w3.org/TR/REC-html40"
title="Bookmark Properties">
<xul:data>
<xul:broadcaster id="properties_node"/>
<xul:broadcaster id="dialog.start" ready="false"/>
<xul:observes element="dialog.start" attribute="ready" onchange="onLoad()"/>
</xul:data>
<script>
var node;
var form_ids;
var bm_attrs;
function onLoad() {
node = new Object;
node = document.getElementById("properties_node");
form_ids = new Array("name", "url", "shortcut", "description");
bm_attrs = new Array("Name", "url", "ShortcutURL", "Description");
var element;
var value;
for (var ii=0; ii != form_ids.length; ii++) {
element = document.getElementById(form_ids[ii]);
value = node.getAttribute(bm_attrs[ii]);
element.setAttribute("value", value);
}
}
function commit() {
var element;
var value;
for (var ii=0; ii != form_ids.length; ii++) {
element = document.getElementById(form_ids[ii]);
node.setAttribute(bm_attrs[ii], element.value);
}
closeDialog();
}
function cancel() {
closeDialog();
}
function closeDialog() {
// XXX This needs to be replaced with window.close()!
var toolkitCore = XPAppCoresManager.Find("toolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("toolkitCore");
}
}
if (toolkitCore) {
toolkitCore.CloseWindow(window);
}
}
</script>
<table><tr><td>
<table>
<tr>
<td align="right">
Name:
</td><td>
<input type="text" id="name" size="60"/>
</td>
</tr><tr>
<td align="right">
Location:
</td><td>
<input type="text" id="url" size="60"/>
</td>
</tr><tr>
<td align="right">
Shortcut:
</td><td>
<input type="text" id="shortcut" size="60"/>
</td>
</tr><tr valign="top">
<td align="right">
Description:
</td><td>
<textarea id="description" rows="7" cols="60" wrap="hard">
</textarea>
</td>
</tr>
</table>
</td></tr><tr><td>
<table width="100%"><tr align="center"><td>
<input type="button" value="Ok" onclick="return commit();"/>
</td><td>
<input type="button" value="Cancel" onclick="return cancel();"/>
</td></tr></table>
</td></tr></table>
</xul:window>

View File

@ -0,0 +1,126 @@
window {
display: block;
background-color: #FFFFFF;
}
menubar {
display: none;
}
tree {
display: table;
background-color: #FFFFFF;
border: none;
border-spacing: 0px;
width: 100%;
}
treecol {
display: table-column;
width: 200px;
}
treeitem {
display: table-row;
}
treehead {
display: table-header-group;
}
treebody {
display: table-row-group;
}
treecell {
display: table-cell;
font-family: Verdana, Sans-Serif;
font-size: 8pt;
}
treecell[selectedcell] {
background-color: yellow;
}
treecell[sortActive="true"][sortDirection="ascending"] {
background-color: green;
}
treecell[sortActive="true"][sortDirection="descending"] {
background-color: red;
}
treecol[sortActive="true"] {
background-color: lightgreen;
}
treehead treeitem treecell {
background-color: #c0c0c0;
border: outset 1px;
border-color: white #707070 #707070 white;
padding-left: 4px;
}
treecell[selectedcell] {
background-color: yellow;
}
treeitem[container="true"][open="true"][loading="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/loading.gif") ! important ;
}
treeitem[type="http://home.netscape.com/NC-rdf#Folder"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/bookmark-folder-closed.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#Folder"][open="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/bookmark-folder-open.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#Folder"][id="NC:PersonalToolbarFolder"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/personal-folder-closed.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#Folder"][id="NC:PersonalToolbarFolder"][open="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/personal-folder-open.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#BookmarkSeparator"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/bookmark-item.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#IEFavorite"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/IEFavorite.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#Bookmark"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/bookmark-item.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#FileSystemObject"][container="true"][open="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/folder-open.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#FileSystemObject"][container="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/folder-closed.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#FileSystemObject"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/article.gif");
}
treeitem[container="true"][open="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/folder-open.gif");
}
treeitem[container="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/folder-closed.gif");
}
treeitem > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/document.gif");
}
titledbutton#bookmarks {
list-style-image:url("resource:/res/rdf/bookmark-item.gif");
}

View File

@ -0,0 +1,131 @@
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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.
*/
/*
Script for the bookmarks properties window
*/
function BookmarksNewWindow()
{
// XXX This needs to be "window.open()", I think...
var toolkitCore = XPAppCoresManager.Find("toolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("toolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("resource://res/rdf/bookmarks.xul",window);
}
}
function BookmarkProperties()
{
var tree = document.getElementById('bookmarksTree');
var select_list = tree.getElementsByAttribute("selected", "true");
if (select_list.length >= 1) {
dump("Bookmark Properties: Have selection\n");
var propsCore = XPAppCoresManager.Find(select_list[0].id);
if (!propsCore) {
dump("Bookmark Properties: no existing appcore\n");
var propsCore = new DOMPropsCore();
if (propsCore) {
dump("Bookmark Properties: initing new appcore\n");
propsCore.Init(select_list[0].id);
} else {
dump("Bookmark Properties: failed to create new appcore\n");
}
}
if (propsCore) {
dump("Bookmark Properties: opening new window\n");
propsCore.showProperties("resource://res/rdf/bm-props.xul",
window, select_list[0]);
return true;
}
} else {
dump("nothing selected!\n");
}
return false;
}
function OpenURL(event,node)
{
if (node.getAttribute('container') == "true") {
return false;
}
url = node.getAttribute('id');
// Ignore "NC:" urls.
if (url.substring(0, 3) == "NC:") {
return false;
}
/*window.open(url,'bookmarks');*/
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow(url,window);
}
dump("OpenURL(" + url + ")\n");
return true;
}
function doSort(sortColName)
{
var node = document.getElementById(sortColName);
// determine column resource to sort on
var sortResource = node.getAttribute('resource');
if (!node) return(false);
var sortDirection="ascending";
var isSortActive = node.getAttribute('sortActive');
if (isSortActive == "true") {
var currentDirection = node.getAttribute('sortDirection');
if (currentDirection == "ascending")
sortDirection = "descending";
else if (currentDirection == "descending")
sortDirection = "natural";
else
sortDirection = "ascending";
}
// get RDF Core service
var rdfCore = XPAppCoresManager.Find("RDFCore");
if (!rdfCore) {
rdfCore = new RDFCore();
if (!rdfCore) {
return(false);
}
rdfCore.Init("RDFCore");
// XPAppCoresManager.Add(rdfCore);
}
// sort!!!
rdfCore.doSort(node, sortResource, sortDirection);
return(false);
}

View File

@ -0,0 +1,29 @@
#!gmake
#
# 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.
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = public src resources
include $(topsrcdir)/config/config.mk
include $(topsrcdir)/config/rules.mk

View File

@ -0,0 +1,22 @@
#!nmake
#
# 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.
DEPTH=..\..\..
DIRS=public src resources
include <$(DEPTH)\config\rules.mak>

View File

@ -0,0 +1 @@
nsIBookmarksService.idl

View File

@ -0,0 +1,32 @@
#!gmake
#
# 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.
DEPTH=../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE=bookmarks
XPIDLSRCS = nsIBookmarksService.idl \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
include $(topsrcdir)/config/rules.mk

View File

@ -0,0 +1,27 @@
#!nmake
#
# 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.
DEPTH=..\..\..\..
MODULE=bookmarks
XPIDLSRCS = \
.\nsIBookmarksService.idl \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@ -0,0 +1,46 @@
/* -*- 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.
*/
/*
The Browser Bookmarks service
*/
#include "nsISupports.idl"
[scriptable, uuid(a82e9300-e4af-11d2-8fdf-0008c70adc7b)]
interface nsIBookmarksService : nsISupports
{
void AddBookmark(in string aURI, in wstring aTitle);
string FindShortcut(in wstring aName);
};
%{C++
// {E638D760-8687-11d2-B530-000000000000}
#define NS_BOOKMARKS_SERVICE_CID \
{ 0xe638d760, 0x8687, 0x11d2, { 0xb5, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
#define NS_BOOKMARKS_SERVICE_PROGID \
"component://netscape/browser/bookmarks"
#define NS_BOOKMARKS_DATASOURCE_PROGID \
"component://netscape/rdf/datasource?name=bookmarks"
%}

View File

@ -0,0 +1,10 @@
bm-panel.xul
bm-props.xul
bookmark-folder-closed.gif
bookmark-folder-open.gif
bookmark-item.gif
bookmarks.css
bookmarks.html
bookmarks.js
bookmarks.xul

View File

@ -0,0 +1,42 @@
#!gmake
#
# 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.
DEPTH=../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk
FILES = \
bm-panel.xul \
bm-props.xul \
bookmark-folder-closed.gif \
bookmark-folder-open.gif \
bookmark-item.gif \
bookmarks.css \
bookmarks.html \
bookmarks.js \
bookmarks.xul \
$(NULL)
FILES := $(addprefix $(srcdir)/, $(FILES))
install::
$(INSTALL) $(FILES) $(DIST)/bin/res/rdf

View File

@ -0,0 +1,79 @@
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--
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.
-->
<?xml-stylesheet href="resource:/res/rdf/sidebar.css" type="text/css"?>
<xul:window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script src="bookmarks.js"/>
<tree id="bookmarksTree"
datasources="rdf:bookmarks rdf:files rdf:ftp rdf:find"
ondblclick="return OpenURL(event,event.target.parentNode);">
<template>
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator"
rootcontainment="treebody" subcontainment="treechildren">
<treeitem uri="...">
<treecell>
<html:hr width="75%" align="center" size="1" />
</treecell>
</treeitem>
</rule>
<rule rootcontainment="treebody" subcontainment="treechildren">
<treeitem uri="...">
<treecell>
<treeindentation />
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#Name"
align="right" />
</treecell>
<treecell>
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#URL"
align="right" style="list-style-image: none;" />
</treecell>
</treeitem>
</rule>
</template>
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="URLColumn" rdf:resource="http://home.netscape.com/NC-rdf#URL"/>
<treehead>
<treeitem>
<treecell onclick="return doSort('NameColumn');">
<observes element="NameColumn" attribute="sortActive"/>
<observes element="NameColumn" attribute="sortDirection"/>
Name</treecell>
<treecell onclick="return doSort('URLColumn');">
<observes element="URLColumn" attribute="sortActive"/>
<observes element="URLColumn" attribute="sortDirection"/>
URL</treecell>
</treeitem>
</treehead>
<treebody id="NC:BookmarksRoot">
</treebody>
</tree>
</xul:window>

View File

@ -0,0 +1,118 @@
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--
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.
-->
<?xml-stylesheet href="bookmarks.css" type="text/css"?>
<xul:window
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.w3.org/TR/REC-html40"
title="Bookmark Properties">
<xul:data>
<xul:broadcaster id="properties_node"/>
<xul:broadcaster id="dialog.start" ready="false"/>
<xul:observes element="dialog.start" attribute="ready" onchange="onLoad()"/>
</xul:data>
<script>
var node;
var form_ids;
var bm_attrs;
function onLoad() {
node = new Object;
node = document.getElementById("properties_node");
form_ids = new Array("name", "url", "shortcut", "description");
bm_attrs = new Array("Name", "url", "ShortcutURL", "Description");
var element;
var value;
for (var ii=0; ii != form_ids.length; ii++) {
element = document.getElementById(form_ids[ii]);
value = node.getAttribute(bm_attrs[ii]);
element.setAttribute("value", value);
}
}
function commit() {
var element;
var value;
for (var ii=0; ii != form_ids.length; ii++) {
element = document.getElementById(form_ids[ii]);
node.setAttribute(bm_attrs[ii], element.value);
}
closeDialog();
}
function cancel() {
closeDialog();
}
function closeDialog() {
// XXX This needs to be replaced with window.close()!
var toolkitCore = XPAppCoresManager.Find("toolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("toolkitCore");
}
}
if (toolkitCore) {
toolkitCore.CloseWindow(window);
}
}
</script>
<table><tr><td>
<table>
<tr>
<td align="right">
Name:
</td><td>
<input type="text" id="name" size="60"/>
</td>
</tr><tr>
<td align="right">
Location:
</td><td>
<input type="text" id="url" size="60"/>
</td>
</tr><tr>
<td align="right">
Shortcut:
</td><td>
<input type="text" id="shortcut" size="60"/>
</td>
</tr><tr valign="top">
<td align="right">
Description:
</td><td>
<textarea id="description" rows="7" cols="60" wrap="hard">
</textarea>
</td>
</tr>
</table>
</td></tr><tr><td>
<table width="100%"><tr align="center"><td>
<input type="button" value="Ok" onclick="return commit();"/>
</td><td>
<input type="button" value="Cancel" onclick="return cancel();"/>
</td></tr></table>
</td></tr></table>
</xul:window>

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

View File

@ -0,0 +1,126 @@
window {
display: block;
background-color: #FFFFFF;
}
menubar {
display: none;
}
tree {
display: table;
background-color: #FFFFFF;
border: none;
border-spacing: 0px;
width: 100%;
}
treecol {
display: table-column;
width: 200px;
}
treeitem {
display: table-row;
}
treehead {
display: table-header-group;
}
treebody {
display: table-row-group;
}
treecell {
display: table-cell;
font-family: Verdana, Sans-Serif;
font-size: 8pt;
}
treecell[selectedcell] {
background-color: yellow;
}
treecell[sortActive="true"][sortDirection="ascending"] {
background-color: green;
}
treecell[sortActive="true"][sortDirection="descending"] {
background-color: red;
}
treecol[sortActive="true"] {
background-color: lightgreen;
}
treehead treeitem treecell {
background-color: #c0c0c0;
border: outset 1px;
border-color: white #707070 #707070 white;
padding-left: 4px;
}
treecell[selectedcell] {
background-color: yellow;
}
treeitem[container="true"][open="true"][loading="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/loading.gif") ! important ;
}
treeitem[type="http://home.netscape.com/NC-rdf#Folder"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/bookmark-folder-closed.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#Folder"][open="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/bookmark-folder-open.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#Folder"][id="NC:PersonalToolbarFolder"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/personal-folder-closed.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#Folder"][id="NC:PersonalToolbarFolder"][open="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/personal-folder-open.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#BookmarkSeparator"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/bookmark-item.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#IEFavorite"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/IEFavorite.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#Bookmark"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/bookmark-item.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#FileSystemObject"][container="true"][open="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/folder-open.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#FileSystemObject"][container="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/folder-closed.gif");
}
treeitem[type="http://home.netscape.com/NC-rdf#FileSystemObject"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/article.gif");
}
treeitem[container="true"][open="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/folder-open.gif");
}
treeitem[container="true"] > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/folder-closed.gif");
}
treeitem > treecell > titledbutton {
list-style-image: url("resource:/res/rdf/document.gif");
}
titledbutton#bookmarks {
list-style-image:url("resource:/res/rdf/bookmark-item.gif");
}

View File

@ -0,0 +1,151 @@
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
Do Not Edit! -->
<TITLE>Bookmarks for temp</TITLE>
<H1>Bookmarks for temp</H1>
<DL><p>
<DT><H3 ADD_DATE="916354466">Sample FTP URLs</H3>
<DL><p>
<DT><A HREF="ftp://ftp.netscape.com/" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">FTP: Netscape</A>
<DT><A HREF="ftp://xpnav.mcom.com/" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">FTP: XPNav</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">Sample SmartFind queries</H3>
<DL><p>
<DT><A HREF="find:datasource=rdf:bookmarks&match=http://home.netscape.com/NC-rdf#Name&method=contains&text=Netscape" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">Find: Bookmark Names containing 'Netscape'</A>
<DT><A HREF="find:datasource=rdf:bookmarks&match=http://home.netscape.com/NC-rdf#Name&method=startswith&text=A" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">Find: Bookmark Names starting with 'A'</A>
<DT><A HREF="find:datasource=rdf:bookmarks&match=http://home.netscape.com/NC-rdf#Name&method=endswith&text=.com" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">Find: Bookmark Names ending with '.com'</A>
<DT><A HREF="find:datasource=rdf:bookmarks&match=http://home.netscape.com/NC-rdf#Name&method=contains&text=Mac" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">Find: Bookmark Names containing 'Mac'</A>
<DT><A HREF="find:datasource=rdf:bookmarks&match=http://home.netscape.com/NC-rdf#URL&method=contains&text=mac" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">Find: Bookmark URLs containing 'mac'</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">Personal Toolbar Folder</H3>
<DL><p>
<DT><A HREF="http://www.mozilla.org" ADD_DATE="916354467" LAST_VISIT="0" LAST_MODIFIED="0">Mozilla.org</A>
<DT><A HREF="http://cvs-mirror.mozilla.org/webtools/tinderbox/showbuilds.cgi?tree=SeaMonkey" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Tinderbox</A>
<DT><A HREF="http://cvs-mirror.mozilla.org/webtools/bonsai/" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Bonsai</A>
<DT><A HREF="http://bugzilla.mozilla.org" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Bugzilla</A>
<DT><H3 ADD_DATE="916354466">Channels</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelautos.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Autos</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelbusiness.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Business</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelcomputingandinternet.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Computing and Internet</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchanneleducation.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Education</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelentertainment.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Entertainment</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelgames.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Games</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelhealth.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Health</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelkidsandfamily.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Kids and Family</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannellifestyles.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Lifestyles</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannellocal.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Local</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelnetscape.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Netscape</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelnews.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">News</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelpersonalfinance.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Personal Finance</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelrealestate.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Real Estate</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelshopping.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Shopping</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchannelsports.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Sports</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ptchanneltravel.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Travel</A>
</DL><p>
</DL><p>
<HR>
<DT><H3 ADD_DATE="916354466">Search</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/altavista.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Alta Vista</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/excite.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Excite</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/goto.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">GoTo.com</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/infoseek.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Infoseek</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/looksmart.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">LookSmart</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/lycos.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Lycos</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/netscapesearch.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Netscape Search</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">Business and Finance</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/careercenter.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Career Center</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/cbsmarketwatch.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">CBS.MarketWatch</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/datekonline.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Datek Online</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/dbusiness.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">dbusiness.com</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/gartnergroup.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Gartner Group, Inc.</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/nextcard.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">NextCard Internet Visa</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/personalfinance.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Personal Finance</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/smallbusinesssource.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Small Business Source</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/virtualoffice.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Virtual Office by Netopia</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">Computers and Internet</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/gartneratvantage.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">@vantage</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/computingchannel.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Computing Channel</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/netscapechannel.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Netscape Channel</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/onsalecomputer.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">ONSALE Computer Auctions</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/openstudio.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Open Studio</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/professionalconnections.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Professional Connections</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/smartupdate.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">SmartUpdate</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/toshiba.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Toshiba</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">Directories</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/gtesuperpages.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">GTE SuperPages</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/memberdirectory.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Member Directory</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/yellowpages.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Netcenter Yellow Pages</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/people.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">People</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/thomasregister.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Thomas Register</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/webdirectory.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Web Directory</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/yellowpagesathand.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">YellowPages AtHand</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">Entertainment and Lifestyle</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/entertainmentchannel.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Entertainment Channel</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/games.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Games</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/health.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Health</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/kidsandfamily.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Kids and Family</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/lifestylechannel.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Lifestyle Channel</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/theglobe.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">theglobe.com community</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/tvguide.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">TV Guide</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/women.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Women.com</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">News and Sports</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/abcnews.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">ABCNEWS.com</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/businessjournal.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Business Journal</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/cbssportsline.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">CBS SportsLine</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/inboxdirect.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">In-Box Direct</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/newschannel.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">News Channel</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/sportschannel.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Sports Channel</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">Shopping and Classifieds</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/amazon.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Amazon.com</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/audiobookclub.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Audio Book Club</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/dealdeal.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">DealDeal.com Auctions</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/freeride.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">FreeRide</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/ftdflowers.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">FTD Flowers</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/musicboulevard.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Music Boulevard</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/netmarket.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">netMarket</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/realestate.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Real Estate</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/rentnet.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Rent.Net</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/softwaredepot.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Software Depot</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">Travel and Leisure</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/leisureplanet.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Leisure Planet</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/local.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Local</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/renaissancecruises.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Renaissance Cruises</A>
<DT><A HREF="http://home.netscape.com/bookmark/4_06/travelocity.html" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Travelocity</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">Macintosh Resources</H3>
<DL><p>
<DT><A HREF="http://www.macosrumors.com/" SHORTCUTURL="rumors" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Mac OS Rumors</A>
<DT><A HREF="http://www.macsurfer.com" SHORTCUTURL="surfer" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">MacSurfer</A>
<DT><A HREF="http://www.macintouch.com/" SHORTCUTURL="macintouch" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Macintouch</A>
<DT><A HREF="http://macweek.zdnet.com/" SHORTCUTURL="macweek" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">MacWEEK</A>
<DT><A HREF="http://www.ogrady.com/" SHORTCUTURL="ogrady" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">O'Grady's Mac PowerPage</A>
</DL><p>
<DT><H3 ADD_DATE="916354466">AAA URLs with no redirection</H3>
<DL><p>
<DT><A HREF="http://home.netscape.com/" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Netscape</A>
<DT><A HREF="http://www.yahoo.com/" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">Yahoo</A>
<DT><A HREF="http://www.aol.com/" ADD_DATE="916354466" LAST_VISIT="0" LAST_MODIFIED="0">AOL</A>
</DL><p>
<HR>
<DT><H3 ADD_DATE="916354466">Personal Bookmarks</H3>
<DL><p>
</DL><p>
</DL><p>

View File

@ -0,0 +1,131 @@
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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.
*/
/*
Script for the bookmarks properties window
*/
function BookmarksNewWindow()
{
// XXX This needs to be "window.open()", I think...
var toolkitCore = XPAppCoresManager.Find("toolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("toolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("resource://res/rdf/bookmarks.xul",window);
}
}
function BookmarkProperties()
{
var tree = document.getElementById('bookmarksTree');
var select_list = tree.getElementsByAttribute("selected", "true");
if (select_list.length >= 1) {
dump("Bookmark Properties: Have selection\n");
var propsCore = XPAppCoresManager.Find(select_list[0].id);
if (!propsCore) {
dump("Bookmark Properties: no existing appcore\n");
var propsCore = new DOMPropsCore();
if (propsCore) {
dump("Bookmark Properties: initing new appcore\n");
propsCore.Init(select_list[0].id);
} else {
dump("Bookmark Properties: failed to create new appcore\n");
}
}
if (propsCore) {
dump("Bookmark Properties: opening new window\n");
propsCore.showProperties("resource://res/rdf/bm-props.xul",
window, select_list[0]);
return true;
}
} else {
dump("nothing selected!\n");
}
return false;
}
function OpenURL(event,node)
{
if (node.getAttribute('container') == "true") {
return false;
}
url = node.getAttribute('id');
// Ignore "NC:" urls.
if (url.substring(0, 3) == "NC:") {
return false;
}
/*window.open(url,'bookmarks');*/
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow(url,window);
}
dump("OpenURL(" + url + ")\n");
return true;
}
function doSort(sortColName)
{
var node = document.getElementById(sortColName);
// determine column resource to sort on
var sortResource = node.getAttribute('resource');
if (!node) return(false);
var sortDirection="ascending";
var isSortActive = node.getAttribute('sortActive');
if (isSortActive == "true") {
var currentDirection = node.getAttribute('sortDirection');
if (currentDirection == "ascending")
sortDirection = "descending";
else if (currentDirection == "descending")
sortDirection = "natural";
else
sortDirection = "ascending";
}
// get RDF Core service
var rdfCore = XPAppCoresManager.Find("RDFCore");
if (!rdfCore) {
rdfCore = new RDFCore();
if (!rdfCore) {
return(false);
}
rdfCore.Init("RDFCore");
// XPAppCoresManager.Add(rdfCore);
}
// sort!!!
rdfCore.doSort(node, sortResource, sortDirection);
return(false);
}

View File

@ -0,0 +1,137 @@
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--
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.
-->
<?xml-stylesheet href="bookmarks.css" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY menu.file.label "File">
<!ENTITY menuitem.newWindow.label "New Window">
<!ENTITY menuitem.newBookmark.label "New Bookmark...">
<!ENTITY menuitem.newFolder.label "New Folder...">
<!ENTITY menuitem.newSeparator.label "New Separator">
<!ENTITY menuitem.close.label "Close">
<!ENTITY menu.edit.label "Edit">
<!ENTITY menuitem.undo.label "Undo">
<!ENTITY menuitem.redo.label "Redo">
<!ENTITY menuitem.cut.label "Cut">
<!ENTITY menuitem.copy.label "Copy">
<!ENTITY menuitem.paste.label "Paste">
<!ENTITY menuitem.delete.label "Delete">
<!ENTITY menuitem.selectAll.label "Select All">
<!ENTITY menuitem.find.label "Find in Bookmarks...">
<!ENTITY menuitem.findAgain.label "Find Again">
<!ENTITY menuitem.properties.label "Bookmark Properties...">
<!ENTITY tree.header.name.label "Name">
<!ENTITY tree.header.url.label "URL">
<!ENTITY tree.header.shortcut.label "Shortcut URL">
<!ENTITY bookmarksWindowTitle.label "Bookmarks">
]>
<xul:window title="&bookmarksWindowTitle.label;"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script src="bookmarks.js"/>
<menubar>
<menu name="&menu.file.label;">
<menuitem name="&menuitem.newWindow.label;"
onclick="BookmarksNewWindow();"/>
<menuitem name="x&menuitem.newBookmark.label;"/>
<menuitem name="x&menuitem.newFolder.label;"/>
<menuitem name="x&menuitem.newSeparator.label;"/>
<separator/>
<menuitem name="x&menuitem.close.label;"/>
</menu>
<menu name="&menu.edit.label;">
<menuitem name="x&menuitem.undo.label;"/>
<menuitem name="x&menuitem.redo.label;"/>
<separator/>
<menuitem name="x&menuitem.cut.label;"/>
<menuitem name="x&menuitem.copy.label;"/>
<menuitem name="x&menuitem.paste.label;"/>
<menuitem name="x&menuitem.delete.label;"/>
<menuitem name="x&menuitem.selectAll.label;"/>
<separator/>
<menuitem name="x&menuitem.find.label;"/>
<menuitem name="x&menuitem.findAgain.label;"/>
<separator/>
<menuitem name="&menuitem.properties.label;"
onclick="return BookmarkProperties();"/>
</menu>
</menubar>
<tree id="bookmarksTree"
datasources="rdf:bookmarks rdf:files rdf:ftp rdf:find"
ondblclick="return OpenURL(event,event.target.parentNode);"
flex="100%">
<template>
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator" rootcontainment="treebody" subcontainment="treechildren">
<treeitem uri="...">
<treecell>
<html:hr width="75%" align="center" size="1" />
</treecell>
</treeitem>
</rule>
<rule rootcontainment="treebody" subcontainment="treechildren">
<treeitem uri="...">
<treecell>
<treeindentation />
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#Name" align="right" />
</treecell>
<treecell>
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#URL" align="right" style="list-style-image: none;" />
</treecell>
<treecell>
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#ShortcutURL" align="right" style="list-style-image: none;" />
</treecell>
</treeitem>
</rule>
</template>
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="URLColumn" rdf:resource="http://home.netscape.com/NC-rdf#URL"/>
<treecol id="ShortcutURLColumn" rdf:resource="http://home.netscape.com/NC-rdf#ShortcutURL"/>
<treehead>
<treeitem>
<treecell onclick="return doSort('NameColumn');">
<xul:observes element="NameColumn" attribute="sortActive"/>
<xul:observes element="NameColumn" attribute="sortDirection"/>
&tree.header.name.label;</treecell>
<treecell onclick="return doSort('URLColumn');">
<xul:observes element="URLColumn" attribute="sortActive"/>
<xul:observes element="URLColumn" attribute="sortDirection"/>
&tree.header.url.label;</treecell>
<treecell onclick="return doSort('ShortcutURLColumn');">
<xul:observes element="ShortcutURLColumn" attribute="sortActive"/>
<xul:observes element="ShortcutURLColumn" attribute="sortDirection"/>
&tree.header.shortcut.label;</treecell>
</treeitem>
</treehead>
<treebody id="NC:BookmarksRoot" />
</tree>
</xul:window>

View File

@ -0,0 +1,39 @@
#!nmake
#
# 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.
DEPTH=..\..\..\..
FILES=\
bm-panel.xul \
bm-props.xul \
bookmark-folder-closed.gif \
bookmark-folder-open.gif \
bookmark-item.gif \
bookmarks.css \
bookmarks.html \
bookmarks.js \
bookmarks.xul \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(FILES:/=\)
!@$(MAKE_INSTALL) $** $(DIST)\bin\res\rdf
clobber:: $(FILES:/=\)
!$(RM) $(DIST)\bin\res\samples\$**

View File

@ -0,0 +1,45 @@
#!gmake
#
# 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.
DEPTH=../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE=bookmarks
LIBRARY_NAME=bookmarks
IS_COMPONENT=1
CPPSRCS=\
nsBookmarksService.cpp \
$(NULL)
EXTRA_DSO_LDOPTS = \
$(MKSHLIB_FORCE_ALL) \
$(SHARED_LIBRARY_LIBS) \
$(MKSHLIB_UNFORCE_ALL) \
-L$(DIST)/bin \
-L$(DIST)/lib \
-lxpcom \
$(NSPR_LIBS) \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@ -0,0 +1,49 @@
#!nmake
#
# 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.
DEPTH=..\..\..\..
MODULE=bookmarks
CPPSRCS= \
nsBookmarksService.obj \
$(NULL)
CPP_OBJS= \
.\$(OBJDIR)\nsBookmarksService.obj \
$(NULL)
MAKE_OBJ_TYPE=DLL
DLLNAME = bookmarks
DLL=.\$(OBJDIR)\$(DLLNAME).dll
LCFLAGS = \
$(LCFLAGS) \
$(DEFINES) \
$(NULL)
# These are the libraries we need to link with to create the DLL
LLIBS= \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\plc3.lib \
$(LIBNSPR) \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) $(DLL) $(DIST)\bin\components

File diff suppressed because it is too large Load Diff