gecko-dev/suite/common/related/related-panel.xul

99 lines
3.0 KiB
XML

<?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/samples/xul.css" type="text/css"?>
<?xml-stylesheet href="resource:/res/rdf/sidebar.css" type="text/css"?>
<?xml-stylesheet href="resource:/res/samples/related-panel.css" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY tree.header.name.label "Name">
<!ENTITY tree.header.url.label "URL">
]>
<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"
align="vertical">
<html:script src="related-panel.js" />
<!--
Note that the empty "datasources='rdf:null'" will ensure that a composite
datasource is created and a content model builder is installed, even
though there is no datasource from which to build content yet.
-->
<tree id="Tree"
flex="100%" style="height: 100%"
datasources="rdf:null"
ondblclick="return OnDblClick(event.target.parentNode.parentNode);">
<template>
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator"
rootcontainment="treechildren"
subcontainment="treechildren">
<treeitem uri="...">
<treerow>
<treecell>
<html:hr width="75%" align="center" size="1" />
</treecell>
</treerow>
</treeitem>
</rule>
<rule rootcontainment="treechildren" subcontainment="treechildren">
<treeitem uri="...">
<treerow>
<treecell>
<treeindentation />
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#Name" align="right" />
</treecell>
</treerow>
</treeitem>
</rule>
</template>
<treecol rdf:resource="http://home.netscape.com/NC-rdf#Name" />
<treehead>
<treerow>
<treecell>&tree.header.name.label;</treecell>
</treerow>
</treehead>
<treechildren>
<treeitem id="NC:RelatedLinks">
<treerow>
<treecell><treeindentation/><titledbutton />Related Links</treecell>
</treerow>
</treeitem>
<treeitem id="NC:SiteMapRoot">
<treerow>
<treecell><treeindentation/><titledbutton />Site Map</treecell>
</treerow>
</treeitem>
</treechildren>
</tree>
</window>