This commit is contained in:
slamm%netscape.com 1999-02-26 19:58:17 +00:00
Родитель fa71722cc2
Коммит 35bcbaf305
2 изменённых файлов: 130 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,34 @@
window {
display: block;
}
tree {
display: table;
background-color: #FFFFFF;
border: none;
border-spacing: 0px;
border-collapse: collapse;
}
treeitem {
display: table-row;
}
treehead {
display: table-header-group;
}
treebody {
display: table-row-group;
}
treecell {
display: table-cell;
}
treehead treeitem treecell {
background-color: #c0c0c0;
border: thin black solid;
}

Просмотреть файл

@ -0,0 +1,96 @@
<?xml version="1.0"?>
<?xml-stylesheet href="bookmarks.css" type="text/css"?>
<xul:window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script>
function BookmarksNewWindow()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("resource:/res/rdf/bookmarks.xul",
window);
}
}
</html:script>
<menubar>
<menu name="File">
<menuitem name="New Window" onClick="BookmarksNewWindow();"/>
<menuitem name="New Bookmarks..."/>
<menuitem name="New Folder..."/>
<menuitem name="New Separator"/>
<separator/>
<menuitem name="Close"/>
</menu>
<menu name="Edit">
<menuitem name="Undo"/>
<menuitem name="Redo"/>
<separator/>
<menuitem name="Cut"/>
<menuitem name="Copy"/>
<menuitem name="Paste"/>
<menuitem name="Delete"/>
<menuitem name="Select All"/>
<separator/>
<menuitem name="Find in Bookmarks..."/>
<menuitem name="Find Again"/>
</menu>
</menubar>
<tree datasources="rdf:bookmarks">
<treecol rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
<treecol rdf:resource="http://home.netscape.com/NC-rdf#URL"/>
<treecol rdf:resource="http://home.netscape.com/WEB-rdf#LastModifiedDate"/>
<treehead>
<treeitem>
<treecell>Name</treecell>
<treecell>URL</treecell>
<treecell>Last Modified</treecell>
</treeitem>
</treehead>
<treebody>
<treeitem open="true">
<treechildren>
<treeitem>
<treecell>
<treeindentation/>Hard-<html:i>coded</html:i> <html:b>Item</html:b>
</treecell>
<treecell>http://blah.blah.com</treecell>
<treechildren>
<treeitem>
<treecell><treeindentation/>
<html:img src="http://www.mozilla.org/images/logo-star.gif"/>
<html:i>Another</html:i> hard-coded <html:font color="green">item</html:font>
</treecell>
<treecell>http://moreblah.blah.com</treecell>
</treeitem>
</treechildren>
</treeitem>
</treechildren>
</treeitem>
<treeitem id="NC:BookmarksRoot">
<treecell>Bookmarks</treecell>
<treecell></treecell>
<treecell></treecell>
</treeitem>
</treebody>
</tree>
</window>