blob: d8dff29ee6e9a7719c8f09dd8b85c2c1f620334f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
|
<?xml version="1.0"?>
<!-- -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderPane.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger-newsblog/skin/feed-subscriptions.css" type="text/css"?>
<!DOCTYPE window [
<!ENTITY % feedDTD SYSTEM "chrome://messenger-newsblog/locale/feed-subscriptions.dtd">
%feedDTD;
<!ENTITY % certDTD SYSTEM "chrome://pippki/locale/certManager.dtd">
%certDTD;
]>
<window id="subscriptionsDialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
flex="1"
title="&feedSubscriptions.label;"
windowtype="Mail:News-BlogSubscriptions"
persist="width height screenX screenY sizemode"
onload="FeedSubscriptions.onLoad();"
onclose="return FeedSubscriptions.onClose();"
onkeypress="FeedSubscriptions.onKeyPress(event);"
onmousedown="FeedSubscriptions.onMouseDown(event);">
<script type="application/javascript"
src="chrome://messenger/content/specialTabs.js"/>
<script type="application/javascript"
src="chrome://messenger-newsblog/content/feed-subscriptions.js"/>
<keyset id="extensionsKeys">
<key id="key_close"
key="&cmd.close.commandKey;"
modifiers="accel"
oncommand="window.close();"/>
<key id="key_close2"
keycode="VK_ESCAPE"
oncommand="window.close();"/>
</keyset>
<stringbundle id="bundle_newsblog"
src="chrome://messenger-newsblog/locale/newsblog.properties"/>
<stringbundle id="bundle_brand"
src="chrome://branding/locale/brand.properties"/>
<vbox flex="1" id="contentPane">
<hbox align="right">
<label id="learnMore"
class="text-link"
crop="end"
value="&learnMore.label;"
href="https://support.mozilla.org/kb/how-subscribe-news-feeds-and-blogs"/>
</hbox>
<tree id="rssSubscriptionsList"
treelines="true"
flex="1"
hidecolumnpicker="true"
onselect="FeedSubscriptions.onSelect();"
seltype="single">
<treecols>
<treecol id="folderNameCol"
flex="2"
primary="true"
hideheader="true"/>
</treecols>
<treechildren id="subscriptionChildren"
ondragstart="FeedSubscriptions.onDragStart(event);"
ondragover="FeedSubscriptions.onDragOver(event);"/>
</tree>
<hbox id="rssFeedInfoBox">
<vbox flex="1">
<grid flex="1">
<columns>
<column/>
<column flex="1"/>
</columns>
<rows>
<row>
<hbox align="right" valign="middle">
<label id="nameLabel"
accesskey="&feedTitle.accesskey;"
control="nameValue"
value="&feedTitle.label;"/>
</hbox>
<textbox id="nameValue"
clickSelectsAll="true"/>
</row>
<row>
<hbox align="right" valign="middle">
<label id="locationLabel"
accesskey="&feedLocation.accesskey;"
control="locationValue"
value="&feedLocation.label;"/>
</hbox>
<hbox>
<textbox id="locationValue"
flex="1"
class="uri-element"
placeholder="&feedLocation.placeholder;"
clickSelectsAll="true"
onfocus="FeedSubscriptions.setSummaryFocus();"
onblur="FeedSubscriptions.setSummaryFocus();"/>
<hbox align="center">
<label id="locationValidate"
collapsed="true"
class="text-link"
crop="end"
value="&locationValidate.label;"
onclick="FeedSubscriptions.checkValidation(event);"/>
</hbox>
</hbox>
</row>
<row>
<hbox align="right" valign="middle">
<label id="feedFolderLabel"
value="&feedFolder.label;"
accesskey="&feedFolder.accesskey;"
control="selectFolder"/>
</hbox>
<hbox>
<menulist id="selectFolder"
flex="1"
class="folderMenuItem"
hidden="true">
<menupopup id="selectFolderPopup"
class="menulist-menupopup"
type="folder"
mode="feeds"
showFileHereLabel="true"
showAccountsFileHere="true"
oncommand="FeedSubscriptions.setNewFolder(event)"/>
</menulist>
<textbox id="selectFolderValue"
flex="1"
readonly="true"
onkeypress="FeedSubscriptions.onClickSelectFolderValue(event)"
onclick="FeedSubscriptions.onClickSelectFolderValue(event)"/>
</hbox>
</row>
</rows>
</grid>
<checkbox id="quickMode"
accesskey="&quickMode.accesskey;"
label="&quickMode.label;"
oncommand="FeedSubscriptions.setSummary(this.checked)"/>
<checkbox id="autotagEnable"
accesskey="&autotagEnable.accesskey;"
label="&autotagEnable.label;"
oncommand="FeedSubscriptions.setCategoryPrefs(this)"/>
<hbox>
<checkbox id="autotagUsePrefix"
class="indent"
accesskey="&autotagUsePrefix.accesskey;"
label="&autotagUsePrefix.label;"
oncommand="FeedSubscriptions.setCategoryPrefs(this)"/>
<textbox id="autotagPrefix"
placeholder="&autoTagPrefix.placeholder;"
clickSelectsAll="true"/>
</hbox>
<separator class="thin"/>
</vbox>
</hbox>
<hbox id="statusContainerBox"
align="center"
valign="middle">
<vbox flex="1">
<description id="statusText"/>
</vbox>
<spacer flex="1"/>
<label id="validationText"
collapsed="true"
class="text-link"
crop="end"
value="&validateText.label;"
onclick="FeedSubscriptions.checkValidation(event);"/>
<button id="addCertException"
collapsed="true"
label="&certmgr.addException.label;"
accesskey="&certmgr.addException.accesskey;"
oncommand="FeedSubscriptions.addCertExceptionDialog();"/>
<progressmeter id="progressMeter"
collapsed="true"
mode="determined"
value="0"/>
</hbox>
<hbox align="end">
<hbox class="actionButtons" flex="1">
<button id="addFeed"
label="&button.addFeed.label;"
accesskey="&button.addFeed.accesskey;"
oncommand="FeedSubscriptions.addFeed();"/>
<button id="editFeed"
disabled="true"
label="&button.updateFeed.label;"
accesskey="&button.updateFeed.accesskey;"
oncommand="FeedSubscriptions.editFeed();"/>
<button id="removeFeed"
disabled="true"
label="&button.removeFeed.label;"
accesskey="&button.removeFeed.accesskey;"
oncommand="FeedSubscriptions.removeFeed(true);"/>
<button id="importOPML"
label="&button.importOPML.label;"
accesskey="&button.importOPML.accesskey;"
oncommand="FeedSubscriptions.importOPML();"/>
<button id="exportOPML"
label="&button.exportOPML.label;"
accesskey="&button.exportOPML.accesskey;"
tooltiptext="&button.exportOPML.tooltip;"
oncommand="FeedSubscriptions.exportOPML(event);"/>
<spacer flex="1"/>
<button id="close"
label="&button.close.label;"
icon="close"
oncommand="if (FeedSubscriptions.onClose()) window.close();"/>
</hbox>
</hbox>
</vbox>
</window>
|