Files
Mozilla/mozilla/xpfe/components/bookmarks/resources/bookmarks.xul
slamm%netscape.com 7c34107f55 Clean up xul. Add column picker popup menu. Pick better column widths.
git-svn-id: svn://10.0.0.236/trunk@60389 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 01:21:37 +00:00

204 lines
9.4 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.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):
-->
<?xml-stylesheet href="chrome://bookmarks/skin/manage-bookmarks.css" type="text/css"?>
<?xml-stylesheet href="chrome://bookmarks/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://bookmarks/locale/bookmarks.dtd">
<window title="&bookmarksWindowTitle.label;" id="bookmark-window" onunload="doUnload()"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:web="http://home.netscape.com/WEB-rdf#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="630" height="400" x="20" y="20" persist="width height x y" align="vertical"
ondraggesture="return TopLevelDrag(event);"
windowtype="bookmarks:manager"
>
<html:script src="chrome://bookmarks/content/bookmarks.js"/>
<html:script src="chrome://bookmarks/content/bookmarksDD.js"/>
<html:script src="chrome://global/content/treePopups.js"/>
<menubar>
<menu value="&menu.file.label;">
<menupopup>
<menuitem value="&menuitem.newBookmark.label;" oncommand="return doContextCmd('http://home.netscape.com/NC-rdf#bookmarkcommand?newbookmark');" />
<menuitem value="&menuitem.newFolder.label;" oncommand="return doContextCmd('http://home.netscape.com/NC-rdf#bookmarkcommand?newfolder');"/>
<menuitem value="&menuitem.newSeparator.label;" oncommand="return doContextCmd('http://home.netscape.com/NC-rdf#bookmarkcommand?newseparator');"/>
<menuseparator/>
<menuitem value="&menuitem.close.label;"
oncommand="window.close()" />
</menupopup>
</menu>
<menu value="&menu.edit.label;">
<menupopup>
<menuitem value="&menuitem.undo.label;" disabled="true" />
<menuitem value="&menuitem.redo.label;" disabled="true" />
<menuseparator/>
<menuitem value="&menuitem.cut.label;" oncommand="return doCut()" />
<menuitem value="&menuitem.copy.label;" oncommand="return doCopy()" />
<menuitem value="&menuitem.paste.label;" oncommand="return doPaste()" />
<menuitem value="&menuitem.delete.label;" oncommand="return doDelete(true)" />
<menuitem value="&menuitem.selectAll.label;" oncommand="return doSelectAll()" />
<menuseparator/>
<menuitem value="&menuitem.find.label;" oncommand="return OpenSearch('find');"/>
<menuseparator/>
<menuitem value="&menuitem.properties.label;" oncommand="return BookmarkProperties();"/>
</menupopup>
</menu>
</menubar>
<popupset>
<popup id="contextual" oncreate="return fillContextMenu('contextual');" >
<menu />
</popup>
</popupset>
<tree id="bookmarksTree" ref="NC:BookmarksRoot" context="contextual"
datasources="rdf:bookmarks rdf:files rdf:localsearch rdf:internetsearch"
onkeyup="if (event.keyCode == 8) return doDelete(false);"
multiple="true"
ondragover="return DragOverTree(event);"
ondraggesture="return BeginDragTree(event);"
ondragdrop="return DropOnTree(event);"
style="height:0px" flex="2">
<template>
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
<treechildren>
<treeitem uri="rdf:*"
rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
loading="rdf:http://home.netscape.com/NC-rdf#loading">
<treerow>
<treecell><html:hr width="100%" align="center" size="1" /></treecell>
<treecell><html:hr width="100%" align="center" size="1" /></treecell>
<treecell><html:hr width="100%" align="center" size="1" /></treecell>
<treecell><html:hr width="100%" align="center" size="1" /></treecell>
<treecell><html:hr width="100%" align="center" size="1" /></treecell>
<treecell><html:hr width="100%" align="center" size="1" /></treecell>
<treecell><html:hr width="100%" align="center" size="1" /></treecell>
</treerow>
</treeitem>
</treechildren>
</rule>
<rule>
<treechildren>
<treeitem uri="rdf:*" persist="open"
web:status="rdf:http://home.netscape.com/WEB-rdf#status"
rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
loading="rdf:http://home.netscape.com/NC-rdf#loading">
<treerow>
<treecell indent="true"
value="rdf:http://home.netscape.com/NC-rdf#Name"
src="rdf:http://home.netscape.com/NC-rdf#Icon" />
<treecell
value="rdf:http://home.netscape.com/NC-rdf#URL"/>
<treecell
value="rdf:http://home.netscape.com/NC-rdf#ShortcutURL"/>
<treecell
value="rdf:http://home.netscape.com/NC-rdf#Description"/>
<treecell
value="rdf:http://home.netscape.com/WEB-rdf#LastVisitDate"/>
<treecell
value="rdf:http://home.netscape.com/NC-rdf#BookmarkAddDate"/>
<treecell
value="rdf:http://home.netscape.com/WEB-rdf#LastModifiedDate"/>
</treerow>
</treeitem>
</treechildren>
</rule>
</template>
<treecolgroup id="theColumns">
<treecol id="NameColumn" sortSeparators="true"
persist="hidden width" width="4*"
rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="URLColumn" sortSeparators="true"
persist="hidden width" width="4*"
rdf:resource="http://home.netscape.com/NC-rdf#URL"
rdf:resource2="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="ShortcutURLColumn" sortSeparators="true"
persist="hidden width" width="1*"
rdf:resource="http://home.netscape.com/NC-rdf#ShortcutURL"
rdf:resource2="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="DescriptionColumn" sortSeparators="true"
persist="hidden width" width="1*"
rdf:resource="http://home.netscape.com/NC-rdf#Description"
rdf:resource2="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="LastVisitColumn" sortSeparators="true"
persist="hidden width" width="1*"
rdf:resource="http://home.netscape.com/WEB-rdf#LastVisitDate"
rdf:resource2="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="AddedOnColumn" sortSeparators="true"
persist="hidden width" width="1*"
rdf:resource="http://home.netscape.com/NC-rdf#BookmarkAddDate"
rdf:resource2="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="LastModColumn" sortSeparators="true"
persist="hidden width" width="1*"
rdf:resource="http://home.netscape.com/WEB-rdf#LastModifiedDate"
rdf:resource2="http://home.netscape.com/NC-rdf#Name"/>
<treecol persist="width" fixed="true" width="14" id="PopupColumn"/>
</treecolgroup>
<treehead>
<treerow id="headRow">
<treecell value="&tree.header.name.label;" onclick="return doSort('NameColumn');" observes="NameColumn" />
<treecell value="&tree.header.url.label;" onclick="return doSort('URLColumn');" observes="URLColumn" />
<treecell value="&tree.header.shortcut.label;" onclick="return doSort('ShortcutURLColumn');" observes="ShortcutURLColumn" />
<treecell value="&tree.header.description.label;" onclick="return doSort('DescriptionColumn');" observes="DescriptionColumn" />
<treecell value="&tree.header.lastvisit.label;" onclick="return doSort('LastVisitColumn');" observes="LastVisitColumn" />
<treecell value="&tree.header.addedon.label;" onclick="return doSort('AddedOnColumn');" observes="AddedOnColumn" />
<treecell value="&tree.header.lastmod.label;" onclick="return doSort('LastModColumn');" observes="LastModColumn" />
<treecell allowevents="true" id="popupCell">
<menu>
<titledbutton src="chrome://global/skin/opentwisty.gif"/>
<menupopup popupanchor="bottomright"
popupalign="topright"
oncreate="BuildTreePopup(document.getElementById('theColumns'), document.getElementById('headRow'), this,
document.getElementById('popupCell'))"/>
</menu>
</treecell>
</treerow>
</treehead>
<treechildren onclick="return OpenURL(event, event.target.parentNode.parentNode, 'bookmarksTree');"/>
</tree>
<!--
pinkerton
This extra "status" bar is necessary because the bottom right corner of
the window on MacOS is taken up by the growBox. If this window had a
horizontal scrollbar, we'd be alright, but since it doesn't the bottom
arrow on the vertical scrollbar was being hidden by this growBox. To
combat this, we can just stick in a 16px high bar to bump up the bottom
of the tree so that the scrollbar is visible. Yes, I know this is not
necessary for win32 or gtk, but we can use this area for information
(maybe full URL of selected item or the like) in the future.
-->
<box id="status-bar" style="min-height:16px; max-height:16px;">
<titledbutton class="status-bar" align="left" value=""/>
</box>
</window>