gecko-dev/mailnews/base/resources/content/folderPane.xul

97 lines
3.4 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderPane.css" type="text/css"?>
<!--
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 Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
-->
<!DOCTYPE window
[
<!ENTITY nameColumn.label "Name">
<!ENTITY unreadColumn.label "Unread">
<!ENTITY totalColumn.label "Total">
<!ENTITY accounts.label "Accounts">
<!ENTITY accounts.img "chrome://messenger/skin/localMailHost.gif">
]>
<window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:div flex="100%">
<tree style="height: 100%" rdf:datasources="rdf:mailnewsfolders rdf:msgaccountmanager" id="folderTree" rdf:ignore="http://home.netscape.com/NC-rdf#MessageChild" onclick="return top.ChangeFolderByDOMNode(event.target.parentNode.parentNode)">
<template>
<rule>
<treechildren>
<treeitem uri="..."
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState">
<treerow >
<treecell treeallowevents="true">
<titledbutton class="twisty" onclick="return top.ToggleTwisty(event.target.parentNode.parentNode.parentNode)" />
</treecell>
<treecell>
<treeindentation />
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#Name" align="left" class="folderIcon"/>
</treecell>
<treecell>
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#TotalUnreadMessages" align="right" style="list-style-image: none;" />
</treecell>
<treecell>
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#TotalMessages" align="right" style="list-style-image: none;" />
</treecell>
</treerow>
</treeitem>
</treechildren>
</rule>
</template>
<treecol style="width:20px"/>
<treecol style="width:65%" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
<treecol style="width:15%" rdf:resource="http://home.netscape.com/NC-rdf#TotalUnreadMessages"/>
<treecol style="width:15%" rdf:resource="http://home.netscape.com/NC-rdf#TotalMessages"/>
<treehead>
<treerow>
<treecell></treecell>
<treecell>&nameColumn.label;</treecell>
<treecell>&unreadColumn.label;</treecell>
<treecell>&totalColumn.label;</treecell>
</treerow>
</treehead>
<treechildren rdf:containment="http://home.netscape.com/NC-rdf#child" open="true">
<treeitem ref="msgaccounts:/" open="true">
<treerow>
<treecell/>
<treecell>
<treeindentation/>
<html:img hspace="2" style="vertical-align: bottom" src="&accounts.img;"/>&accounts.label;
</treecell>
<treecell/>
<treecell/>
</treerow>
</treeitem>
</treechildren>
</tree>
</html:div>
</window>