mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
155 lines
7.6 KiB
XML
155 lines
7.6 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 <blakeross@telocity.com>
|
|
Alec Flett <alecf@netscape.com>
|
|
-->
|
|
|
|
<!DOCTYPE window [
|
|
<!ENTITY % historyDTD SYSTEM "chrome://communicator/locale/history/historyTreeOverlay.dtd" >
|
|
%historyDTD;
|
|
<!ENTITY % contentAreaCommandsDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
|
|
%contentAreaCommandsDTD;
|
|
]>
|
|
<?xml-stylesheet href="chrome://global/skin/outliner.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://communicator/skin/bookmarks/bookmarks.css" type="text/css"?>
|
|
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
|
|
|
|
<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/nsOutlinerController.js"/>
|
|
<script type="application/x-javascript" src="chrome://global/content/nsOutlinerSorting.js"/>
|
|
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
|
|
<script type="application/x-javascript" src="chrome://communicator/content/history/history.js"/>
|
|
<script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksOverlay.js"/>
|
|
|
|
<popupset id="historyContextMenu">
|
|
<command id="cmd_selectAll"/>
|
|
<command id="cmd_cut"/>
|
|
<command id="cmd_copy"/>
|
|
<command id="cmd_delete"/>
|
|
<command id="cmd_selectAll"/>
|
|
<popup id="historyMenu" onpopupshowing="return updateItems();">
|
|
<menuitem id="miOpen" label="&openLinkInWindowCmd.label;" accesskey="&openLinkInWindowCmd.accesskey;" default="true"
|
|
oncommand="OpenURL(false);"/>
|
|
<menuitem id="miOpenInNewWindow" label="&openLinkCmd.label;" accesskey="&openLinkCmd.accesskey;"
|
|
oncommand="OpenURL(true);"/>
|
|
<menuseparator/>
|
|
<menuitem id="miAddBookmark" label="&bookmarkLinkCmd.label;" accesskey="&bookmarkLinkCmd.accesskey;" oncommand="historyAddBookmarks();"/>
|
|
<menuitem id="miCopyLinkLocation" label="©LinkCmd.label;" accesskey="©LinkCmd.accesskey;"
|
|
command="cmd_copy"/>
|
|
<menuseparator/>
|
|
<menuitem id="miDelete" label="&deleteCmd.label;" accesskey="&deleteCmd.accesskey;"
|
|
command="cmd_delete"/>
|
|
<menuitem id="miSelectAll" label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"
|
|
command="cmd_selectAll"/>
|
|
</popup>
|
|
<data id="multipleBookmarks" label="&addToBookmarksCmd.label;" accesskey="&addToBookmarksCmd.accesskey;"/>
|
|
<data id="oneBookmark" label="&bookmarkLinkCmd.label;" accesskey="&bookmarkLinkCmd.accesskey;"/>
|
|
</popupset>
|
|
<outliner id="historyOutliner" flex="1" enableColumnDrag="true"
|
|
onkeypress="if (event.keyCode == 13) OpenURL(event.ctrlKey || event.metaKey);">
|
|
|
|
<outlinerbody id="historyOutlinerBody" flex="1" datasources="rdf:history"
|
|
ref="NC:HistoryByDate" multiple="true" context="historyMenu"
|
|
onselect="this.parentNode.outlinerBoxObject.view.selectionChanged();
|
|
historyOnSelect();"
|
|
ondraggesture="nsDragAndDrop.startDrag(event, historyDNDObserver);"
|
|
ondblclick="if (event.button == 0) OpenURL(event.ctrlKey || event.metaKey);">
|
|
|
|
<template>
|
|
<rule>
|
|
<outlinerrow uri="rdf:*" rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
|
|
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#Name"
|
|
ref="Name"/>
|
|
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#URL"
|
|
ref="URL"/>
|
|
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#Date"
|
|
ref="Date"/>
|
|
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#FirstVisitDate"
|
|
ref="FirstVisitDate"/>
|
|
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#Hostname"
|
|
ref="Hostname"/>
|
|
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#Referrer"
|
|
ref="Referrer"/>
|
|
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#VisitCount"
|
|
ref="VisitCount"/>
|
|
</outlinerrow>
|
|
</rule>
|
|
</template>
|
|
</outlinerbody>
|
|
|
|
<outlinercol flex="4" id="Name" persist="hidden width sortActive sortDirection ordinal"
|
|
label="&tree.header.name.label;" primary="true"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#Name"
|
|
class="sortDirectionIndicator"/>
|
|
|
|
<splitter class="tree-splitter" id="pre-URL-splitter"/>
|
|
|
|
<outlinercol flex="4" id="URL"
|
|
persist="hidden width sortActive sortDirection ordinal"
|
|
label="&tree.header.url.label;" class="sortDirectionIndicator"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#URL"/>
|
|
|
|
<splitter class="tree-splitter" id="pre-Date-splitter"/>
|
|
|
|
<outlinercol flex="1" id="Date" sortActive="true" sortDirection="descending"
|
|
persist="hidden width sortActive sortDirection ordinal"
|
|
label="&tree.header.date.label;" class="sortDirectionIndicator"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#Date"/>
|
|
|
|
<splitter class="tree-splitter" id="pre-FirstVisitDate-splitter"/>
|
|
|
|
<outlinercol flex="1" id="FirstVisitDate"
|
|
hidden="true" persist="hidden width sortActive sortDirection ordinal"
|
|
label="&tree.header.firstvisitdate.label;" class="sortDirectionIndicator"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#FirstVisitDate"/>
|
|
|
|
<splitter class="tree-splitter" id="pre-Hostname-splitter"/>
|
|
|
|
<outlinercol flex="1" id="Hostname" hidden="true"
|
|
persist="hidden width sortActive sortDirection ordinal"
|
|
label="&tree.header.hostname.label;" class="sortDirectionIndicator"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#Hostname"/>
|
|
|
|
<splitter class="tree-splitter" id="pre-Referrer-splitter"/>
|
|
|
|
<outlinercol flex="1" id="Referrer" hidden="true"
|
|
persist="hidden width sortActive sortDirection ordinal"
|
|
label="&tree.header.referrer.label;" class="sortDirectionIndicator"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#Referrer"/>
|
|
|
|
<splitter class="tree-splitter" id="pre-VisitCount-splitter"/>
|
|
|
|
<outlinercol flex="1" id="VisitCount"
|
|
hidden="true" persist="hidden width sortActive sortDirection ordinal"
|
|
label="&tree.header.visitcount.label;" class="sortDirectionIndicator"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#VisitCount"/>
|
|
|
|
</outliner>
|
|
</overlay>
|