mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
9c896ab736
was not persisting across sessions. I added a new attribute to outliner "statedatasource" that you can set to use for state, otherwise, if you are "trusted" it will use the localstore. if not trusted, it will use an in memory datasource, which will not persist across sessions. r/sr=bienvenu for the mailnews part, r/sr=waterson for the content part.
141 lines
6.0 KiB
XML
141 lines
6.0 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<?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.
|
|
|
|
Contributor(s):
|
|
Jan Varga <varga@utcru.sk>
|
|
Håkan Waara <hwaara@chello.se>
|
|
-->
|
|
<!DOCTYPE window SYSTEM "chrome://messenger/locale/folderpane.dtd">
|
|
|
|
<overlay
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<outliner id="folderOutliner"
|
|
flex="1"
|
|
seltype="single">
|
|
<outlinerbody flex="1"
|
|
datasources="rdf:null"
|
|
statedatasource="rdf:mailnewsfolders"
|
|
ondraggesture="return BeginDragFolderOutliner(event);"
|
|
onselect="FolderPaneSelectionChange();">
|
|
<template>
|
|
<rule>
|
|
<conditions>
|
|
<outlinerrow uri="?container"/>
|
|
<member container="?container" child="?member" />
|
|
</conditions>
|
|
|
|
<bindings>
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#FolderTreeName"
|
|
object="?folderTreeName" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#FolderTreeName?sort=true"
|
|
object="?folderTreeNameSort" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#FolderTreeSimpleName"
|
|
object="?folderTreeSimpleName" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#FolderTreeSimpleName?sort=true"
|
|
object="?folderTreeSimpleNameSort" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#SpecialFolder"
|
|
object="?specialFolder" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#BiffState"
|
|
object="?biffState" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#IsServer"
|
|
object="?isServer" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#NewMessages"
|
|
object="?newMessages" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#HasUnreadMessages"
|
|
object="?hasUnreadMessages" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#IsSecure"
|
|
object="?isSecure" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#ServerType"
|
|
object="?serverType" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#NoSelect"
|
|
object="?noSelect" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#TotalUnreadMessages"
|
|
object="?unreadCount" />
|
|
<binding subject="?member"
|
|
predicate="http://home.netscape.com/NC-rdf#TotalMessages"
|
|
object="?totalCount" />
|
|
</bindings>
|
|
|
|
<action>
|
|
<outlinerrow uri="?member">
|
|
<outlinercell id="folderNameCell"
|
|
ref="folderNameCol"
|
|
label="?folderTreeName"
|
|
properties="specialFolder-?specialFolder
|
|
biffState-?biffState
|
|
isServer-?isServer
|
|
newMessages-?newMessages
|
|
hasUnreadMessages-?hasUnreadMessages
|
|
isSecure-?isSecure
|
|
serverType-?serverType
|
|
noSelect-?noSelect"/>
|
|
<outlinercell ref="folderUnreadCol"
|
|
label="?unreadCount"
|
|
properties="hasUnreadMessages-?hasUnreadMessages"/>
|
|
<outlinercell ref="folderTotalCol"
|
|
label="?totalCount"
|
|
properties="hasUnreadMessages-?hasUnreadMessages"/>
|
|
</outlinerrow>
|
|
</action>
|
|
</rule>
|
|
</template>
|
|
</outlinerbody>
|
|
<outlinercol id="folderNameCol"
|
|
flex="5"
|
|
label="&nameColumn.label;"
|
|
class="outlinercol-header outlinercol-inset-header"
|
|
persist="width"
|
|
ignoreincolumnpicker="true"
|
|
primary="true"
|
|
sort="?folderTreeNameSort"/>
|
|
<splitter class="tree-splitter"/>
|
|
<outlinercol id="folderUnreadCol"
|
|
class="outlinercol-header outlinercol-inset-header"
|
|
persist="hidden width"
|
|
flex="1"
|
|
label="&unreadColumn.label;"/>
|
|
<splitter class="tree-splitter"/>
|
|
<outlinercol id="folderTotalCol"
|
|
class="outlinercol-header outlinercol-inset-header"
|
|
persist="hidden width"
|
|
flex="1"
|
|
label="&totalColumn.label;"/>
|
|
</outliner>
|
|
</overlay>
|