mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
removing unused files, not part of build. bug 238841 r=bsmedberg
This commit is contained in:
parent
4a31bf60b4
commit
aa41d561d7
@ -1,70 +0,0 @@
|
|||||||
// -*- Mode: Java -*-
|
|
||||||
|
|
||||||
var sidebar_name = ''; // Name for preferences (e.g. 'sidebar.<name>.foo')
|
|
||||||
var sidebar_uri = ''; // Content to load in sidebar frame
|
|
||||||
var sidebar_width = 0; // Desired width of sidebar
|
|
||||||
var sidebar_pref = ''; // Base for preferences (e.g. 'sidebar.browser')
|
|
||||||
var is_sidebar_open = false;
|
|
||||||
var prefs = null; // Handle to preference interface
|
|
||||||
|
|
||||||
function init_sidebar(name, uri, width) {
|
|
||||||
sidebar_name = name;
|
|
||||||
sidebar_uri = uri;
|
|
||||||
sidebar_width = width;
|
|
||||||
sidebar_pref = 'sidebar.' + name;
|
|
||||||
|
|
||||||
// Open/close sidebar based on saved pref.
|
|
||||||
// This may be replaced by another system by hyatt.
|
|
||||||
prefs = Components.classes["@mozilla.org/preferences-service;1"]
|
|
||||||
.getService(Components.interfaces.nsIPrefBranch);
|
|
||||||
if (prefs) {
|
|
||||||
// The sidebar is closed by default, so open it only if the
|
|
||||||
// preference is set to true.
|
|
||||||
try {
|
|
||||||
if (prefs.getBoolPref(sidebar_pref + '.open')) {
|
|
||||||
toggle_open_close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (ex) {
|
|
||||||
dump("failed to get sidebar_pref\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function toggle_open_close() {
|
|
||||||
|
|
||||||
var sidebar = document.getElementById('sidebarframe');
|
|
||||||
var grippy = document.getElementById('grippy');
|
|
||||||
|
|
||||||
if (is_sidebar_open)
|
|
||||||
{
|
|
||||||
// Close it
|
|
||||||
sidebar.setAttribute('style','visibility: hidden; width: 1px');
|
|
||||||
sidebar.setAttribute('src','about:blank');
|
|
||||||
|
|
||||||
grippy.setAttribute('open','');
|
|
||||||
|
|
||||||
is_sidebar_open = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
dump("Open it\n");
|
|
||||||
|
|
||||||
sidebar.setAttribute('style', 'visibility: visible;width:' + sidebar_width + 'px');
|
|
||||||
sidebar.setAttribute('src', sidebar_uri);
|
|
||||||
|
|
||||||
grippy.setAttribute('open','true');
|
|
||||||
|
|
||||||
is_sidebar_open = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
// Save new open/close state in prefs
|
|
||||||
if (prefs) {
|
|
||||||
prefs.setBoolPref(sidebar_pref + '.open', is_sidebar_open);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (ex) {
|
|
||||||
dump("failed to set the sidebar pref\n");
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,75 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The contents of this file are subject to the Mozilla 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/MPL/
|
|
||||||
|
|
||||||
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.org code.
|
|
||||||
|
|
||||||
The Initial Developer of the Original Code is Netscape
|
|
||||||
Communications Corporation. Portions created by Netscape are
|
|
||||||
Copyright (C) 2000 Netscape Communications Corporation. All
|
|
||||||
Rights Reserved.
|
|
||||||
|
|
||||||
Contributor(s):
|
|
||||||
Ben Goodger <ben@netscape.com> (Original Author)
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:nc="http://home.netscape.com/NC-rdf#">
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:back">
|
|
||||||
<nc:Name>Back</nc:Name>
|
|
||||||
<nc:Type>back-button</nc:Type>
|
|
||||||
<nc:Class>button-toolbar-1</nc:Class>
|
|
||||||
<nc:Element>button</nc:Element>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:forward">
|
|
||||||
<nc:Name>Forward</nc:Name>
|
|
||||||
<nc:Type>forward-button</nc:Type>
|
|
||||||
<nc:Class>button-toolbar-1</nc:Class>
|
|
||||||
<nc:Element>button</nc:Element>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:reload">
|
|
||||||
<nc:Name>Reload</nc:Name>
|
|
||||||
<nc:Type>reload-button</nc:Type>
|
|
||||||
<nc:Class>button-toolbar-1</nc:Class>
|
|
||||||
<nc:Element>button</nc:Element>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:stop">
|
|
||||||
<nc:Name>Stop</nc:Name>
|
|
||||||
<nc:Type>stop-button</nc:Type>
|
|
||||||
<nc:Class>button-toolbar-1</nc:Class>
|
|
||||||
<nc:Element>button</nc:Element>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:urlbar">
|
|
||||||
<nc:Name>Location Field</nc:Name>
|
|
||||||
<nc:Type>location-field</nc:Type>
|
|
||||||
<nc:Class>location-field</nc:Class>
|
|
||||||
<nc:Element>box</nc:Element>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:throbber">
|
|
||||||
<nc:Name>Throbber</nc:Name>
|
|
||||||
<nc:Type>throbber-button</nc:Type>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:home">
|
|
||||||
<nc:Name>Home</nc:Name>
|
|
||||||
<nc:Type>home-button</nc:Type>
|
|
||||||
<nc:Class>button-toolbar bookmarkitem</nc:Class>
|
|
||||||
</Description>
|
|
||||||
</RDF>
|
|
||||||
|
|
@ -1,129 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<!--
|
|
||||||
The contents of this file are subject to the Mozilla 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/MPL/
|
|
||||||
|
|
||||||
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.org code.
|
|
||||||
|
|
||||||
The Initial Developer of the Original Code is Netscape
|
|
||||||
Communications Corporation. Portions created by Netscape are
|
|
||||||
Copyright (C) 2000 Netscape Communications Corporation. All
|
|
||||||
Rights Reserved.
|
|
||||||
|
|
||||||
Contributor(s):
|
|
||||||
Ben Goodger <ben@netscape.com> (Original Author)
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:nc="http://home.netscape.com/NC-rdf#">
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:toolbars:root">
|
|
||||||
<nc:child>
|
|
||||||
<Seq>
|
|
||||||
<li resource="urn:mozilla:navigator:toolbar:1"/>
|
|
||||||
<li resource="urn:mozilla:navigator:toolbar:2"/>
|
|
||||||
<li resource="urn:mozilla:navigator:toolbar:3"/>
|
|
||||||
<li resource="urn:mozilla:navigator:toolbar:4"/>
|
|
||||||
<li resource="urn:mozilla:navigator:toolbar:5"/>
|
|
||||||
</Seq>
|
|
||||||
</nc:child>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:toolbar:1">
|
|
||||||
<nc:Element>toolbar</nc:Element>
|
|
||||||
<nc:Name>Navigation Toolbar</nc:Name>
|
|
||||||
<nc:Class>toolbar-primary</nc:Class>
|
|
||||||
<nc:child>
|
|
||||||
<Seq>
|
|
||||||
<li resource="urn:mozilla:navigator:commands:back"/>
|
|
||||||
<li resource="urn:mozilla:navigator:commands:forward"/>
|
|
||||||
<li resource="urn:mozilla:navigator:commands:reload"/>
|
|
||||||
<li resource="urn:mozilla:navigator:commands:stop"/>
|
|
||||||
<li resource="urn:mozilla:navigator:commands:throbber"/>
|
|
||||||
</Seq>
|
|
||||||
</nc:child>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:toolbar:2">
|
|
||||||
<nc:Element>toolbar</nc:Element>
|
|
||||||
<nc:Name>Personal Toolbar</nc:Name>
|
|
||||||
<nc:child>
|
|
||||||
<Seq>
|
|
||||||
<li resource="urn:mozilla:navigator:commands:home"/>
|
|
||||||
</Seq>
|
|
||||||
</nc:child>
|
|
||||||
<nc:child resource="NC:PersonalToolbarFolder"/>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:toolbar:3">
|
|
||||||
<nc:Element>toolbar</nc:Element>
|
|
||||||
<nc:Name>Installed Skins</nc:Name>
|
|
||||||
<nc:child resource="urn:mozilla:skin:root"/>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:toolbar:4">
|
|
||||||
<nc:Element>toolbar</nc:Element>
|
|
||||||
<nc:Name>Sidebar Panels</nc:Name>
|
|
||||||
<nc:child>
|
|
||||||
<Description about="urn:sidebar:current-panel-list"/>
|
|
||||||
</nc:child>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:toolbar:5">
|
|
||||||
<nc:Element>toolbar</nc:Element>
|
|
||||||
<nc:Name>Windows Toolbar</nc:Name>
|
|
||||||
<nc:child resource="NC:WindowMediatorRoot"/>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:back">
|
|
||||||
<nc:Name>Back</nc:Name>
|
|
||||||
<nc:Type>back-button</nc:Type>
|
|
||||||
<nc:Icon>chrome://navigator/skin/back.gif</nc:Icon>
|
|
||||||
<nc:Class>button-toolbar-1</nc:Class>
|
|
||||||
<nc:Element>button</nc:Element>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:forward">
|
|
||||||
<nc:Name>Forward</nc:Name>
|
|
||||||
<nc:Type>forward-button</nc:Type>
|
|
||||||
<nc:Icon>chrome://navigator/skin/forward.gif</nc:Icon>
|
|
||||||
<nc:Class>button-toolbar-1</nc:Class>
|
|
||||||
<nc:Element>button</nc:Element>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:reload">
|
|
||||||
<nc:Name>Reload</nc:Name>
|
|
||||||
<nc:Type>reload-button</nc:Type>
|
|
||||||
<nc:Icon>chrome://navigator/skin/reload.gif</nc:Icon>
|
|
||||||
<nc:Class>button-toolbar-1</nc:Class>
|
|
||||||
<nc:Element>button</nc:Element>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:stop">
|
|
||||||
<nc:Name>Stop</nc:Name>
|
|
||||||
<nc:Type>stop-button</nc:Type>
|
|
||||||
<nc:Icon>chrome://navigator/skin/stop.gif</nc:Icon>
|
|
||||||
<nc:Class>button-toolbar-1</nc:Class>
|
|
||||||
<nc:Element>button</nc:Element>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:throbber">
|
|
||||||
<nc:Name>Throbber</nc:Name>
|
|
||||||
<nc:Type>throbber-button</nc:Type>
|
|
||||||
<nc:Icon>chrome://global/skin/animthrob_single.gif</nc:Icon>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<Description about="urn:mozilla:navigator:commands:home">
|
|
||||||
<nc:Name>Home</nc:Name>
|
|
||||||
<nc:Type>home-button</nc:Type>
|
|
||||||
<nc:Class>button-toolbar bookmarkitem</nc:Class>
|
|
||||||
</Description>
|
|
||||||
</RDF>
|
|
@ -1,298 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
|
||||||
<?xul-overlay href="chrome://communicator/content/contentAreaContextOverlay.xul"?>
|
|
||||||
<?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
|
|
||||||
|
|
||||||
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
|
|
||||||
<?xml-stylesheet href="chrome://communicator/skin/bookmarks/bookmarks.css" type="text/css"?>
|
|
||||||
|
|
||||||
<window id="toolbarTest"
|
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
||||||
xmlns:nc="http://home.netscape.com/NC-rdf#"
|
|
||||||
orient="vertical" onload="resetToolbars();">
|
|
||||||
|
|
||||||
<script>
|
|
||||||
<![CDATA[
|
|
||||||
var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);
|
|
||||||
var rdfc = Components.classes["@mozilla.org/rdf/container;1"].getService(Components.interfaces.nsIRDFContainer);
|
|
||||||
|
|
||||||
function recurse()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function resetToolbars()
|
|
||||||
{
|
|
||||||
var toolbox = document.getElementById("main-toolbox");
|
|
||||||
var bmds = rdfs.GetDataSource("rdf:bookmarks");
|
|
||||||
toolbox.database.AddDataSource(bmds);
|
|
||||||
bmds = rdfs.GetDataSource("rdf:chrome");
|
|
||||||
toolbox.database.AddDataSource(bmds);
|
|
||||||
bmds = rdfs.GetDataSource("rdf:window-mediator");
|
|
||||||
toolbox.database.AddDataSource(bmds);
|
|
||||||
|
|
||||||
var sidebarDS = rdfs.GetDataSource(get_sidebar_datasource_uri());
|
|
||||||
toolbox.database.AddDataSource(sidebarDS);
|
|
||||||
|
|
||||||
// poke around
|
|
||||||
var db = toolbox.database;
|
|
||||||
var panelsres = rdfs.GetResource("urn:sidebar:current-panel-list", true);
|
|
||||||
var panellist = rdfs.GetResource("http://home.netscape.com/NC-rdf#panel-list", true);
|
|
||||||
var foopy = db.GetTarget(panelsres, panellist, true);
|
|
||||||
rdfc.Init(db, foopy);
|
|
||||||
var elts = rdfc.GetElements();
|
|
||||||
var titletgt = rdfs.GetResource("http://home.netscape.com/NC-rdf#title", true);
|
|
||||||
while(elts.hasMoreElements()) {
|
|
||||||
var currElt = elts.getNext().QueryInterface(Components.interfaces.nsIRDFResource);
|
|
||||||
var title = db.GetTarget(currElt, titletgt, true).QueryInterface(Components.interfaces.nsIRDFLiteral);
|
|
||||||
dump("*** curr title = " + title.Value + "\n");
|
|
||||||
}
|
|
||||||
toolbox.builder.rebuild();
|
|
||||||
}
|
|
||||||
|
|
||||||
function exploreDS()
|
|
||||||
{
|
|
||||||
var tree = document.getElementById("dispTree");
|
|
||||||
var bmds = rdfs.GetDataSource("rdf:bookmarks");
|
|
||||||
tree.database.AddDataSource(bmds);
|
|
||||||
bmds = rdfs.GetDataSource("rdf:history");
|
|
||||||
tree.database.AddDataSource(bmds);
|
|
||||||
tree.builder.rebuild();
|
|
||||||
}
|
|
||||||
|
|
||||||
function initPopup ()
|
|
||||||
{
|
|
||||||
var element = document.popupNode;
|
|
||||||
var panelSrc = document.getElementById("panelsrc");
|
|
||||||
var src = element.getAttribute("content");
|
|
||||||
var popup = document.getElementById("panelpopup");
|
|
||||||
if (src != panelSrc.getAttribute("src")) {
|
|
||||||
panelSrc.setAttribute("src", src);
|
|
||||||
popup.setAttribute("title", element.value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
]]>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<popupset>
|
|
||||||
<popup type="floater" id="panelpopup" onpopupshowing="initPopup();"
|
|
||||||
menugenerated="true" popupanchor="bottomleft" popupalign="topleft">
|
|
||||||
<vbox flex="1">
|
|
||||||
<menuitem label="Add Current Page" class="menuitem-floater"/>
|
|
||||||
<menuitem label="Manage Bookmarks..." class="menuitem-floater"/>
|
|
||||||
<iframe flex="1" id="panelsrc" style="min-width: 1px; min-height: 1px;"/>
|
|
||||||
</vbox>
|
|
||||||
</popup>
|
|
||||||
<!--
|
|
||||||
<popup id="panelpopup" onpopupshowing="initPopup();" orient="vertical"
|
|
||||||
class="popup-resizable"
|
|
||||||
style="min-width: 100px; max-width: 300px;">
|
|
||||||
<vbox class="floater-box">
|
|
||||||
<hbox class="floater-box-top">
|
|
||||||
<titlebar flex="1"/>
|
|
||||||
</hbox>
|
|
||||||
<hbox class="floater-box-center" flex="1">
|
|
||||||
<hbox class="floater-children" flex="1">
|
|
||||||
<iframe flex="1" id="panelsrc" style="width: 170px; height: 200px;"/>
|
|
||||||
</hbox>
|
|
||||||
</hbox>
|
|
||||||
<hbox class="floater-box-bottom">
|
|
||||||
<resizer direction="bottom" flex="1"/>
|
|
||||||
<resizer direction="bottomright"/>
|
|
||||||
</hbox>
|
|
||||||
</vbox>
|
|
||||||
</popup>
|
|
||||||
-->
|
|
||||||
</popupset>
|
|
||||||
|
|
||||||
<toolbox id="main-toolbox"
|
|
||||||
datasources="chrome://navigator/content/toolbarTest.rdf rdf:bookmarks"
|
|
||||||
ref="urn:mozilla:navigator:toolbars:root">
|
|
||||||
<template>
|
|
||||||
|
|
||||||
<!-- toolbar -->
|
|
||||||
<rule>
|
|
||||||
<conditions>
|
|
||||||
<content uri="?uri"/>
|
|
||||||
<triple subject="?uri"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#child"
|
|
||||||
object="?items"/>
|
|
||||||
<member container="?items" child="?item"/>
|
|
||||||
<triple subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Element"
|
|
||||||
object="toolbar"/>
|
|
||||||
</conditions>
|
|
||||||
<bindings>
|
|
||||||
<binding subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Class"
|
|
||||||
object="?item-class"/>
|
|
||||||
<binding subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Name"
|
|
||||||
object="?item-name"/>
|
|
||||||
</bindings>
|
|
||||||
<action>
|
|
||||||
<toolbar uri="?item" class="?item-class"
|
|
||||||
grippytooltiptext="?item-name"/>
|
|
||||||
</action>
|
|
||||||
</rule>
|
|
||||||
|
|
||||||
<!-- bookmark separators -->
|
|
||||||
<rule>
|
|
||||||
<conditions>
|
|
||||||
<content uri="?uri"/>
|
|
||||||
<triple subject="?uri"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#child"
|
|
||||||
object="?items"/>
|
|
||||||
<member container="?items" child="?item"/>
|
|
||||||
<triple subject="?item"
|
|
||||||
predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
|
|
||||||
object="http://home.netscape.com/NC-rdf#BookmarkSeparator"/>
|
|
||||||
</conditions>
|
|
||||||
<action>
|
|
||||||
<toolbarseparator uri="?item"/>
|
|
||||||
</action>
|
|
||||||
</rule>
|
|
||||||
|
|
||||||
<!-- installed themes -->
|
|
||||||
<rule>
|
|
||||||
<conditions>
|
|
||||||
<content uri="?uri"/>
|
|
||||||
<triple subject="?uri"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#child"
|
|
||||||
object="?items"/>
|
|
||||||
<member container="?items" child="?item"/>
|
|
||||||
<triple subject="?item"
|
|
||||||
predicate="http://www.mozilla.org/rdf/chrome#displayName"
|
|
||||||
object="?item-name"/>
|
|
||||||
</conditions>
|
|
||||||
<bindings>
|
|
||||||
<binding subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Class"
|
|
||||||
object="?item-class"/>
|
|
||||||
<binding subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Icon"
|
|
||||||
object="?item-icon"/>
|
|
||||||
<binding subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Type"
|
|
||||||
object="?item-type"/>
|
|
||||||
</bindings>
|
|
||||||
<action>
|
|
||||||
<button uri="?items" class="?item-class button-toolbar bookmarkitem" label="?uri"
|
|
||||||
tooltiptext="?item-name"
|
|
||||||
src="?item-icon" type="?item-icon" crop="right"/>
|
|
||||||
</action>
|
|
||||||
</rule>
|
|
||||||
|
|
||||||
<!-- sidebar panels -->
|
|
||||||
<rule>
|
|
||||||
<conditions>
|
|
||||||
<content uri="?uri"/>
|
|
||||||
<triple subject="?uri"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#child"
|
|
||||||
object="?item"/>
|
|
||||||
<triple subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#panel-list"
|
|
||||||
object="?panel-list"/>
|
|
||||||
<member container="?panel-list" child="?panel"/>
|
|
||||||
<triple subject="?panel"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#title"
|
|
||||||
object="?title"/>
|
|
||||||
<triple subject="?panel"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#content"
|
|
||||||
object="?content"/>
|
|
||||||
</conditions>
|
|
||||||
<action>
|
|
||||||
<button uri="?panel" class="button-toolbar bookmarkitem"
|
|
||||||
label="?title" content="?content"
|
|
||||||
popup="panelpopup"/>
|
|
||||||
</action>
|
|
||||||
</rule>
|
|
||||||
|
|
||||||
<!-- everything else -->
|
|
||||||
<rule>
|
|
||||||
<conditions>
|
|
||||||
<content uri="?uri"/>
|
|
||||||
<triple subject="?uri"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#child"
|
|
||||||
object="?items"/>
|
|
||||||
<member container="?items" child="?item"/>
|
|
||||||
</conditions>
|
|
||||||
<bindings>
|
|
||||||
<binding subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Name"
|
|
||||||
object="?item-name"/>
|
|
||||||
<binding subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Class"
|
|
||||||
object="?item-class"/>
|
|
||||||
<binding subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Icon"
|
|
||||||
object="?item-icon"/>
|
|
||||||
<binding subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Type"
|
|
||||||
object="?item-type"/>
|
|
||||||
</bindings>
|
|
||||||
<action>
|
|
||||||
<button uri="?items" class="?item-class button-toolbar bookmarkitem" label="?item-name"
|
|
||||||
src="?item-icon" type="?item-icon" crop="right"/>
|
|
||||||
</action>
|
|
||||||
</rule>
|
|
||||||
</template>
|
|
||||||
</toolbox>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<tree id="dispTree" datasources="rdf:bookmarks chrome://navigator/content/toolbarTest.rdf"
|
|
||||||
ref="urn:mozilla:navigator:toolbars:root"
|
|
||||||
style="height: 0px; width: 0px;" flex="1">
|
|
||||||
|
|
||||||
<treehead>
|
|
||||||
<treerow>
|
|
||||||
<treecell class="treecell-header" label="Item Name"/>
|
|
||||||
<treecell class="treecell-header" label="Item URI"/>
|
|
||||||
</treerow>
|
|
||||||
</treehead>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<rule>
|
|
||||||
<conditions>
|
|
||||||
<content uri="?uri"/>
|
|
||||||
<triple subject="?uri"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#child"
|
|
||||||
object="?items"/>
|
|
||||||
<member container="?items" child="?item"/>
|
|
||||||
<triple subject="?item"
|
|
||||||
predicate="http://home.netscape.com/NC-rdf#Name"
|
|
||||||
object="?name"/>
|
|
||||||
</conditions>
|
|
||||||
<action>
|
|
||||||
<treechildren>
|
|
||||||
<treeitem uri="?item">
|
|
||||||
<treerow>
|
|
||||||
<treecell class="treecell-indent bookmarkitem" label="?name"/>
|
|
||||||
<treecell label="?item"/>
|
|
||||||
</treerow>
|
|
||||||
</treeitem>
|
|
||||||
</treechildren>
|
|
||||||
</action>
|
|
||||||
</rule>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<treecols>
|
|
||||||
<treecol/>
|
|
||||||
<splitter class="tree-splitter"/>
|
|
||||||
<treecol flex="1"/>
|
|
||||||
</treecols>
|
|
||||||
|
|
||||||
<treechildren flex="1"/>
|
|
||||||
</tree>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<hbox flex="1">
|
|
||||||
<vbox id="sidebar-box" class="chromeclass-extrachrome"/>
|
|
||||||
<splitter id="sidebar-splitter" class="chromeclass-extrachrome" />
|
|
||||||
<hbox flex="1"/>
|
|
||||||
</hbox>
|
|
||||||
|
|
||||||
</window>
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user