[extra] Import Firefox 3.0 beta 5 tarball
[mozilla-extra.git] / extensions / help / resources / content / help.xul
blobe368510e0d8e246d55b4cf66f3d488d71e382423
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://communicator/skin/help.css" type="text/css"?>
3 <?xml-stylesheet href="chrome://navigator/skin" type="text/css"?>
4 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
5 <?xml-stylesheet href="chrome://help/content/platformClasses.css" type="text/css"?>
7 <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
8 <?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
9 <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
10 <?xul-overlay href="chrome://navigator/content/platformNavigationBindings.xul"?>
11 <?xul-overlay href="chrome://communicator/content/viewZoomOverlay.xul"?>
13 <!DOCTYPE window SYSTEM "chrome://help/locale/help.dtd">
15 <window id="help"
16 windowtype="mozilla:help"
17 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
18 width="480"
19 height="360"
20 persist="width height screenX screenY zlevel"
21 onload="init();"
22 onunload="window.XULBrowserWindow.destroy();">
24 <script type="application/x-javascript" src="chrome://help/content/help.js"/>
25 <script type="application/x-javascript" src="chrome://navigator/content/sessionHistoryUI.js"/>
26 <script type="application/x-javascript" src="chrome://communicator/content/findUtils.js"/>
28 <menupopup id="backMenu" position="after_start"
29 onpopupshowing="return createBackMenu(event);" oncommand="gotoHistoryIndex(event);"/>
30 <menupopup id="forwardMenu" position="after_start"
31 onpopupshowing="return createForwardMenu(event);" oncommand="gotoHistoryIndex(event);"/>
32 <popupset id="helpContextSet"/>
33 <broadcasterset id="helpBroadcasters">
34 <broadcaster id="canGoBack" disabled="true"/>
35 <broadcaster id="canGoForward" disabled="true"/>
36 </broadcasterset>
37 <commandset id="globalEditMenuItems"/>
38 <commandset id="selectEditMenuItems">
39 <command id="cmd_undo"/>
40 <command id="cmd_redo"/>
41 <command id="cmd_cut"/>
42 <command id="cmd_copy"/>
43 <command id="cmd_paste"/>
44 <command id="cmd_delete"/>
45 <command id="cmd_selectAll"/>
46 <command id="cmd_close" oncommand="close();"/>
47 <command id="Browser:Home" oncommand="goHome();"/>
48 <command id="Browser:Back" oncommand="goBack();" observes="canGoBack"/>
49 <command id="Browser:Forward" oncommand="goForward();" observes="canGoForward"/>
50 <command id="cmd_copyLink"/>
51 </commandset>
52 <commandset id="clipboardEditMenuItems"/>
53 <commandset id="viewZoomCommands"/>
54 <keyset id="keys">
55 <key id="key_close"/>
56 <key id="printKb" key="&printCmd.commandkey;" oncommand="print();" modifiers="accel"/>
57 <keyset id="viewZoomKeys"/>
58 <keyset id="navigationKeys">
59 <!-- The stop keybindings are navigator-only -->
60 <key id="key_stop" disabled="true"/>
61 <key id="key_stop2" disabled="true"/>
62 </keyset>
63 <key id="key_find"
64 key="&findOnCmd.commandkey;" oncommand="find(false, false);" modifiers="accel"/>
65 <key id="key_findAgain"
66 key="&findAgainCmd.commandkey;" oncommand="find(true, false);" modifiers="accel"/>
67 <key id="key_findPrev"
68 key="&findPrevCmd.commandkey;" oncommand="find(true, true);" modifiers="accel, shift"/>
69 <key id="key_findAgain2" keycode="&findAgainCmd.commandkey2;" oncommand="find(true, false);"/>
70 <key id="key_findPrev2" keycode="&findPrevCmd.commandkey2;" oncommand="find(true, true);" modifiers="shift"/>
71 <key id="key_viewNextHelpPanel" keycode="VK_TAB" oncommand="showRelativePanel(true);" modifiers="control"/>
72 <key id="key_viewPrevHelpPanel" keycode="VK_TAB" oncommand="showRelativePanel(false);" modifiers="control,shift"/>
73 </keyset>
74 <stringbundle id="bundle_viewZoom"/>
75 <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
77 <vbox flex="1">
79 <!-- button bar -->
80 <toolbox id="help-toolbox" class="toolbox-top" deferattached="true">
81 <toolbar id="helpToolbar" class="toolbar-primary chromeclass-toolbar"
82 grippytooltiptext="&toolbar.tooltip;" persist="collapsed">
84 <toolbarbutton id="helpBackButton" type="menu-button" class="toolbarbutton-1"
85 label="&backButton.label;"
86 oncommand="if (event.target==this) goBack(); else gotoHistoryIndex(event);"
87 observes="canGoBack" context="backMenu"
88 tooltiptext="&backButton.tooltip;">
89 <menupopup context="" onpopupshowing="createBackMenu(event);"/>
90 </toolbarbutton>
91 <toolbarbutton id="helpForwardButton" type="menu-button" class="toolbarbutton-1"
92 label="&forwardButton.label;"
93 tooltiptext="&forwardButton.tooltip;"
94 oncommand="if (event.target==this) goForward(); else gotoHistoryIndex(event);"
95 observes="canGoForward" context="forwardMenu">
96 <menupopup context="" onpopupshowing="createForwardMenu(event);"/>
97 </toolbarbutton>
98 <toolbarbutton id="helpHomeButton" class="toolbarbutton-1"
99 label="&homeButton.label;" oncommand="goHome();"
100 tooltiptext="&homeButton.tooltip;"/>
102 <spacer flex="1"/>
104 <toolbarbutton id="helpPrintButton" class="toolbarbutton-1"
105 label="&printButton.label;" oncommand="print();"
106 tooltiptext="&printButton.tooltip;"/>
108 <hbox id="throbber-box" align="center">
109 <button id="navigator-throbber" oncommand="goHome();" tooltiptext="&helpThrobber.tooltip;"/>
110 </hbox>
111 </toolbar>
112 </toolbox>
114 <!-- the two help panes (sidebar & content) -->
115 <hbox flex="1">
116 <vbox id="helpsidebar-box" persist="width">
118 <!-- glossary panel -->
119 <toolbarbutton id="help-glossary-btn" class="box-texttab"
120 label="&glossarytab.label;" oncommand="showPanel('help-glossary')"
121 accesskey="&glossarytab.accesskey;"/>
122 <tree id="help-glossary-panel" class="focusring"
123 flex="1" hidecolumnpicker="true" hidden="true"
124 datasources="rdf:null" ref="urn:root"
125 containment="http://home.netscape.com/NC-rdf#subheadings"
126 flags="dont-build-content"
127 onselect="onselect_loadURI(this);">
128 <template>
129 <rule>
130 <conditions>
131 <content uri="?uri"/>
132 <triple subject="?uri"
133 predicate="http://home.netscape.com/NC-rdf#subheadings"
134 object="?subheadings"/>
135 <member container="?subheadings" child="?subheading"/>
136 </conditions>
137 <bindings>
138 <binding subject="?subheading"
139 predicate="http://home.netscape.com/NC-rdf#name"
140 object="?name"/>
141 </bindings>
143 <action>
144 <treechildren>
145 <treeitem uri="?subheading">
146 <treerow>
147 <treecell label="?name"/>
148 </treerow>
149 </treeitem>
150 </treechildren>
151 </action>
152 </rule>
153 </template>
154 <treecols>
155 <treecol id="GlossaryNameColumn" flex="1"
156 hideheader="true"/>
157 </treecols>
158 </tree>
160 <!-- index panel -->
161 <toolbarbutton id="help-index-btn" class="box-texttab"
162 label="&indextab.label;" oncommand="showPanel('help-index');displayIndex();"
163 accesskey="&indextab.accesskey;"/>
165 <tree id="help-index-panel" class="focusring"
166 flex="1" hidecolumnpicker="true" hidden="true"
167 datasources="rdf:null" ref="urn:root"
168 containment="http://home.netscape.com/NC-rdf#subheadings"
169 flags="dont-build-content dont-test-empty"
170 onselect="onselect_loadURI(this);">
171 <template>
172 <rule>
173 <conditions>
174 <content uri="?uri"/>
175 <triple subject="?uri"
176 predicate="http://home.netscape.com/NC-rdf#subheadings"
177 object="?subheadings"/>
178 <member container="?subheadings" child="?subheading"/>
179 </conditions>
180 <bindings>
181 <binding subject="?subheading"
182 predicate="http://home.netscape.com/NC-rdf#name"
183 object="?name"/>
184 </bindings>
186 <action>
187 <treechildren>
188 <treeitem uri="?subheading">
189 <treerow>
190 <treecell label="?name"/>
191 </treerow>
192 </treeitem>
193 </treechildren>
194 </action>
195 </rule>
196 </template>
197 <treecols>
198 <treecol id="IndexNameColumn" flex="1"
199 hideheader="true"
200 primary="true"
201 sortActive="true"
202 sortDirection="ascending"
203 sort="?name"/>
204 </treecols>
205 </tree>
207 <!-- search panel -->
208 <toolbarbutton id="help-search-btn" class="box-texttab"
209 label="&searchtab.label;" oncommand="showPanel('help-search')"
210 accesskey="&searchtab.accesskey;"/>
212 <vbox id="help-search-panel" hidden="true" flex="1">
213 <textbox id="findText" type="timed" timeout="500"
214 oncommand="doFind();"/>
215 <tree id="help-search-tree" class="focusring"
216 flex="1" hidecolumnpicker="true"
217 datasources="rdf:null" ref="urn:root"
218 containment="http://home.netscape.com/NC-rdf#child"
219 flags="dont-build-content"
220 onselect="onselect_loadURI(this);">
221 <template>
222 <rule>
223 <conditions>
224 <content uri="?uri"/>
225 <member container="?uri" child="?subheading"/>
226 </conditions>
228 <bindings>
229 <binding subject="?subheading"
230 predicate="http://home.netscape.com/NC-rdf#name"
231 object="?name"/>
232 </bindings>
234 <action>
235 <treechildren>
236 <treeitem uri="?subheading">
237 <treerow>
238 <treecell label="?name"/>
239 </treerow>
240 </treeitem>
241 </treechildren>
242 </action>
243 </rule>
244 </template>
246 <treecols>
247 <treecol id="ResultsColumn" flex="1"
248 hideheader="true"
249 sortActive="true"
250 sortDirection="ascending"
251 sort="?name"/>
252 </treecols>
253 </tree>
254 </vbox>
256 <!-- table of contents panel -->
257 <toolbarbutton id="help-toc-btn" class="box-texttab"
258 label="&toctab.label;" oncommand="showPanel('help-toc')"
259 accesskey="&toctab.accesskey;"/>
260 <tree id="help-toc-panel" class="focusring"
261 flex="1" hidecolumnpicker="true"
262 datasources="rdf:null" ref="urn:root"
263 containment="http://home.netscape.com/NC-rdf#subheadings"
264 flags="dont-build-content"
265 onselect="onselect_loadURI(this);">
266 <template>
267 <rule>
268 <conditions>
269 <content uri="?uri"/>
270 <triple subject="?uri"
271 predicate="http://home.netscape.com/NC-rdf#subheadings"
272 object="?subheadings"/>
273 <member container="?subheadings" child="?subheading"/>
274 </conditions>
276 <bindings>
277 <binding subject="?subheading"
278 predicate="http://home.netscape.com/NC-rdf#name"
279 object="?name"/>
280 </bindings>
282 <action>
283 <treechildren>
284 <treeitem uri="?subheading">
285 <treerow>
286 <treecell label="?name"/>
287 </treerow>
288 </treeitem>
289 </treechildren>
290 </action>
291 </rule>
292 </template>
293 <treecols>
294 <treecol id="NameColumn" flex="1"
295 hideheader="true" primary="true"/>
296 </treecols>
297 </tree>
301 </vbox>
303 <splitter id="helpsidebar-splitter"
304 collapse="before"
305 persist="state hidden"
306 state="open">
307 <grippy/>
308 </splitter>
310 <!-- this stuff lifted from navigator.xul -->
311 <vbox id="appcontent" flex="3">
312 <!-- this box is temporary, pending XBLified <browser> -->
313 <hbox id="browser" flex="1">
314 <!-- type attribute is used by frame construction to locate iframes
315 intended to hold (html) content -->
316 <browser context="helpContextMenu" type="content-primary" id="help-content"
317 src="about:blank" flex="1" onclick="return contentClick(event);"/>
318 <browser type="content" id="help-external" collapsed="true"/>
319 </hbox>
320 </vbox>
321 </hbox>
322 </vbox>
323 <!-- Make sure the down-scroll arrow is visible on Mac (bug 56488) -->
324 <statusbar id="statusbarDummy" class="mac"/>
325 </window>