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

142 lines
5.7 KiB
Plaintext
Raw Normal View History

<?xml version="1.0"?>
<!--
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.
-->
<?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/subscribe.css" type="text/css"?>
<?xul-overlay href="chrome://messenger/content/mailWindowOverlay.xul"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://messenger/locale/subscribe.dtd">
2000-04-30 09:39:15 +00:00
<window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:NC="http://home.netscape.com/NC-rdf#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
orient="vertical"
class="dialog"
2000-04-30 09:39:15 +00:00
onload="SubscribeOnLoad()">
2000-04-30 09:39:15 +00:00
<script language="JavaScript" src="chrome://global/content/strres.js"/>
<script language="JavaScript" src="chrome://messenger/content/mailCommands.js"/>
<script language="JavaScript" src="chrome://messenger/content/mailWindow.js"/>
2000-04-30 09:39:15 +00:00
<script language="JavaScript" src="chrome://messenger/content/subscribe.js"/>
<keyset id="keyset"/>
<grid flex="1" style="width: 40em; height: 25em;">
<columns>
<column flex="1"/>
<column/>
</columns>
<rows>
<row>
<grid flex="1">
<columns>
<column/>
<column flex="1"/>
</columns>
<rows>
<row>
2000-05-12 06:43:11 +00:00
<text class="label" value="&server.label;" for="serverMenu"/>
<menulist oncommand="onServerClick(event);" id="serverMenu"
rdf:datasources="rdf:msgaccountmanager rdf:mailnewsfolders"
rdf:ignore="http://home.netscape.com/NC-rdf#MessageChild"
rdf:containment="http://home.netscape.com/NC-rdf#child"
ref="msgaccounts:/" flex="1">
<template>
<rule NC:CanSubscribe="true">
<menupopup>
<menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
</menupopup>
</rule>
</template>
</menulist>
</row>
<row>
2000-05-12 06:43:11 +00:00
<text class="label" id="foldertextlabel" value="..." for="namefield"/>
<textfield id="namefield" flex="1" oninput="trackGroupInTree();"/>
</row>
</rows>
</grid>
<spring/>
</row>
<row>
<separator class="thin"/>
<spring/>
</row>
<row flex="1">
<tree class="inset" flex="1"
id="subscribetree"
datasources="rdf:subscribe"
onclick="SubscribeOnClick(event);">
<template>
<rule>
2000-06-17 03:26:47 +00:00
<treechildren flex="1">
<treeitem uri="..." name="rdf:http://home.netscape.com/NC-rdf#Name" Subscribed="rdf:http://home.netscape.com/NC-rdf#Subscribed">
<treerow>
<treecell indent="true" class="treecell-indent" value="rdf:http://home.netscape.com/NC-rdf#LeafName"/>
2000-09-07 08:17:32 +00:00
<treecell class="treecell-image subscribedcol" allowevents="true" onclick="return top.ReverseStateFromNode(event.originalTarget.parentNode.parentNode.parentNode)" value="rdf:http://home.netscape.com/NC-rdf#Subscribed"/>
<treecell value="rdf:http://home.netscape.com/NC-rdf#TotalMessages"/>
</treerow>
</treeitem>
</treechildren>
</rule>
</template>
<treecolgroup id="theSubscribeColumns">
2000-06-17 03:26:47 +00:00
<treecol flex="7*" id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
<splitter class="tree-splitter"/>
2000-06-17 03:26:47 +00:00
<treecol flex="1*" id="SubscribedColumn" rdf:resource="http://home.netscape.com/NC-rdf#Subscribed"/>
<splitter class="tree-splitter"/>
2000-06-17 03:26:47 +00:00
<treecol flex="1*" id="TotalMessagesColumn" rdf:resource="http://home.netscape.com/NC-rdf#TotalMessages"/>
</treecolgroup>
<treehead>
<treerow id="headRow">
<treecell class="treecell-header outset" id="foldersheaderlabel" value="..." />
<treecell class="treecell-header outset" value="&subscribedHeader.label;"/>
<treecell class="treecell-header outset" value="&messagesHeader.label;"/>
</treerow>
</treehead>
</tree>
<box orient="vertical">
<button id="subscribe" class="dialog" value="&subscribeButton.label;" oncommand="SetSubscribeState(true)"/>
<button id="unsubscribe" class="dialog" value="&unsubscribeButton.label;" oncommand="SetSubscribeState(false)"/>
<button id="refresh" class="dialog" value="&refreshButton.label;" oncommand="RefreshList()"/>
<spring flex="1"/>
</box>
</row>
</rows>
</grid>
<separator/>
<box autostretch="never">
<statusbarpanel id="offline-status"/>
<progressmeter id="statusbar-icon" value="0"/>
<statusbarpanel id="statusText" value="" crop="right" flex="1"/>
<spring flex="1"/>
</box>
<box id="okCancelButtons"/>
</window>