gecko-dev/xpfe/components/bookmarks/resources/bookmarks.xul

138 lines
6.7 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="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="500" height="400" x="20" y="20" persist="width height x y" align="vertical">
<html:script src="chrome://bookmarks/content/bookmarks.js"/>
<menubar>
<menu value="&menu.file.label;">
<menupopup>
<menuitem value="&menuitem.newWindow.label;"
oncommand="window.open('chrome://bookmarks/content/',
'ManageBookmarks',
'chrome,menubar,resizable');" />
<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>
<html:div style="width: 100px; height: 100px;" flex="1">
<tree id="bookmarksTree" ref="NC:BookmarksRoot" context="contextual"
datasources="rdf:bookmarks rdf:files rdf:ftp rdf:localsearch rdf:internetsearch"
ondblclick="return OpenURL(event, event.target.parentNode.parentNode, 'bookmarksTree');"
style="width:100%;height:100%">
<template>
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
<treechildren>
<treeitem uri="..." 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="75%" align="center" size="1" />
</treecell>
</treerow>
</treeitem>
</treechildren>
</rule>
<rule>
<treechildren>
<treeitem uri="..." 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"/>
<treecell value="rdf:http://home.netscape.com/NC-rdf#URL"/>
<!-- Comment out extra columns for beta
<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>
<treecol persist="width" id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
<treecol persist="width" id="URLColumn" rdf:resource="http://home.netscape.com/NC-rdf#URL"/>
<!-- Comment out extra columns for beta
<treecol persist="width" id="ShortcutURLColumn" rdf:resource="http://home.netscape.com/NC-rdf#ShortcutURL"/>
<treecol persist="width" id="DescriptionColumn" rdf:resource="http://home.netscape.com/NC-rdf#Description"/>
<treecol persist="width" id="LastVisitColumn" rdf:resource="http://home.netscape.com/WEB-rdf#LastVisitDate"/>
<treecol persist="width" id="AddedOnColumn" rdf:resource="http://home.netscape.com/NC-rdf#BookmarkAddDate"/>
<treecol persist="width" id="LastModColumn" rdf:resource="http://home.netscape.com/WEB-rdf#LastModifiedDate"/>
-->
<treehead>
<treerow>
<treecell value="&tree.header.name.label;" onclick="return doSort('NameColumn');" observes="NameColumn" />
<treecell value="&tree.header.url.label;" onclick="return doSort('URLColumn');" observes="URLColumn" />
<!-- Comment out extra columns for beta
<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" />
-->
</treerow>
</treehead>
</tree>
</html:div>
</window>