gecko-dev/xpfe/components/history/resources/historyTreeOverlay.xul

163 lines
6.7 KiB
XML

<?xml version="1.0"?>
<!--
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.org code.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
Ben Goodger <ben@netscape.com>
Blake Ross <BlakeR1234@aol.com>
Alec Flett <alecf@netscape.com>
-->
<!DOCTYPE overlay SYSTEM "chrome://communicator/locale/history/historyTreeOverlay.dtd" >
<overlay id="historyTreeOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:web="http://home.netscape.com/WEB-rdf#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsTreeController.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsTreeUtils.js"/>
<script type="application/x-javascript" src="chrome://global/content/treePopups.js"/>
<tree id="historyTree" ref="NC:HistoryByDate" context="contextual"
datasources="rdf:history"
flex="1"
multiple="true"
onselect="historyOnSelect(event)"
ondraggesture="nsDragAndDrop.startDrag(event, historyDNDObserver);">
<treecolgroup id="theColumns">
<treecol flex="4" id="Name"
sortSeparators="true" persist="hidden width sortActive sortDirection"
resource="http://home.netscape.com/NC-rdf#Name"/>
<splitter class="tree-splitter" id="pre-URL-splitter"/>
<treecol flex="4" id="URL"
sortSeparators="true" persist="hidden width sortActive sortDirection"
resource="http://home.netscape.com/NC-rdf#URL"
resource2="http://home.netscape.com/NC-rdf#Name"/>
<splitter class="tree-splitter" id="pre-Date-splitter"/>
<treecol flex="1" id="Date" sortActive="true" sortDirection="descending"
sortSeparators="true" persist="hidden width sortActive sortDirection"
resource="http://home.netscape.com/NC-rdf#Date"
resource2="http://home.netscape.com/NC-rdf#Name"/>
<splitter class="tree-splitter" id="pre-FirstVisitDate-splitter"/>
<treecol flex="1" id="FirstVisitDate"
hidden="true"
sortSeparators="true" persist="hidden width sortActive sortDirection"
resource="http://home.netscape.com/NC-rdf#FirstVisitDate"
resource2="http://home.netscape.com/NC-rdf#Name"/>
<splitter class="tree-splitter" id="pre-Hostname-splitter"/>
<treecol flex="1" id="Hostname" hidden="true"
sortSeparators="true" persist="hidden width sortActive sortDirection"
resource="http://home.netscape.com/NC-rdf#Hostname"
resource2="http://home.netscape.com/NC-rdf#Name"/>
<splitter class="tree-splitter" id="pre-Referrer-splitter"/>
<treecol flex="1" id="Referrer" hidden="true"
sortSeparators="true" persist="hidden width sortActive sortDirection"
resource="http://home.netscape.com/NC-rdf#Referrer"
resource2="http://home.netscape.com/NC-rdf#Name"/>
<splitter class="tree-splitter" id="pre-VisitCount-splitter"/>
<treecol flex="1" id="VisitCount"
hidden="true"
sortSeparators="true" persist="hidden width sortActive sortDirection"
resource="http://home.netscape.com/NC-rdf#VisitCount"
resource2="http://home.netscape.com/NC-rdf#Name"/>
<splitter class="tree-splitter" id="pre-Popup-splitter"/>
<treecol persist="width" fixed="true" width="14" id="PopupColumn"/>
</treecolgroup>
<treehead>
<treerow id="headRow" onclick="return TriStateColumnSort(event.target.id)">
<treecell class="treecell-header sortDirectionIndicator"
label="&tree.header.name.label;"
observes="Name" />
<treecell class="treecell-header sortDirectionIndicator"
label="&tree.header.url.label;"
observes="URL" />
<treecell class="treecell-header sortDirectionIndicator"
label="&tree.header.date.label;"
observes="Date"/>
<treecell class="treecell-header sortDirectionIndicator"
label="&tree.header.firstvisitdate.label;"
observes="FirstVisitDate"/>
<treecell class="treecell-header sortDirectionIndicator"
label="&tree.header.hostname.label;"
observes="Hostname"/>
<treecell class="treecell-header sortDirectionIndicator"
label="&tree.header.referrer.label;"
observes="Referrer"/>
<treecell class="treecell-header sortDirectionIndicator"
label="&tree.header.visitcount.label;"
observes="VisitCount"/>
<treecell class="treecell-header" allowevents="true" id="popupCell">
<menu>
<image class="treecell-popup-icon"/>
<menupopup popupanchor="bottomright"
popupalign="topright"
oncreate="BuildTreePopup(document.getElementById('theColumns'), document.getElementById('headRow'), this,
document.getElementById('popupCell'))"/>
</menu>
</treecell>
</treerow>
</treehead>
<template>
<rule>
<treechildren>
<treeitem uri="rdf:*" class="bookmark-item"
rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
<treerow>
<treecell label="rdf:http://home.netscape.com/NC-rdf#Name"
class="treecell-indent treecell-bookmark"/>
<treecell label="rdf:http://home.netscape.com/NC-rdf#URL" />
<treecell label="rdf:http://home.netscape.com/NC-rdf#Date" />
<treecell label="rdf:http://home.netscape.com/NC-rdf#FirstVisitDate" />
<treecell label="rdf:http://home.netscape.com/NC-rdf#Hostname" />
<treecell label="rdf:http://home.netscape.com/NC-rdf#Referrer" />
<treecell label="rdf:http://home.netscape.com/NC-rdf#VisitCount" />
</treerow>
</treeitem>
</treechildren>
</rule>
</template>
<treechildren flex="1" id="treechildren-bookmarks"
onclick="return OpenURL(event, event.target.parentNode.parentNode,
'historyTree');"/>
</tree>
</overlay>