toolkit/components/help/content/help.xul

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:e233ddc8f5be
1 <?xml version="1.0" encoding="UTF-8"?>
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
6 <?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
7
8 <?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
9 <!DOCTYPE window [
10 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
11 %brandDTD;
12 <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
13 %helpDTD;
14 ]>
15
16 <window id="help"
17 windowtype="mozilla:help"
18 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
19 width="700"
20 height="550"
21 #ifdef XP_WIN
22 #define HELP_ALWAYS_RAISED_TOGGLE
23 #endif
24 #ifdef HELP_ALWAYS_RAISED_TOGGLE
25 persist="width height screenX screenY zlevel"
26 #else
27 persist="width height screenX screenY"
28 #endif
29 onload="init();"
30 onunload="window.XULBrowserWindow.destroy();">
31
32 <script type="application/javascript" src="chrome://help/content/help.js"/>
33 <script type="application/javascript" src="chrome://global/content/viewZoomOverlay.js"/>
34 <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
35
36 <menupopup id="backMenu" position="after_start"
37 onpopupshowing="return createBackMenu(event);"
38 oncommand="gotoHistoryIndex(event);"/>
39 <menupopup id="forwardMenu" position="after_start"
40 onpopupshowing="return createForwardMenu(event);"
41 oncommand="gotoHistoryIndex(event);"/>
42 <popupset id="contentAreaContextSet"/>
43
44 <broadcasterset id="helpBroadcasters">
45 <broadcaster id="canGoBack" disabled="true"/>
46 <broadcaster id="canGoForward" disabled="true"/>
47 </broadcasterset>
48 <commandset id="globalEditMenuItems"/>
49 <commandset id="selectEditMenuItems">
50 <command id="cmd_close" oncommand="close();"/>
51 <command id="Help:Home" oncommand="goHome();"/>
52 <command id="Help:Back" oncommand="goBack();" observes="canGoBack"/>
53 <command id="Help:Forward" oncommand="goForward();" observes="canGoForward"/>
54 <command id="Help:ToggleSidebar" oncommand="toggleSidebar();"/>
55 <command id="cmd_closeWindow" oncommand="close();"/>
56 <command id="cmd_fullZoomReduce" oncommand="ZoomManager.reduce();"/>
57 <command id="cmd_fullZoomEnlarge" oncommand="ZoomManager.enlarge();"/>
58 <command id="cmd_fullZoomReset" oncommand="ZoomManager.reset();"/>
59 <command id="cmd_find"
60 oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
61 <command id="cmd_findAgain"
62 oncommand="document.getElementById('FindToolbar').onFindAgainCommand(false);"/>
63 <command id="cmd_findPrevious"
64 oncommand="document.getElementById('FindToolbar').onFindAgainCommand(true);"/>
65 <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/>
66 <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
67 </commandset>
68 <keyset id="keys">
69 <key id="goHome" keycode="VK_HOME" command="Help:Home" modifiers="alt"/>
70 #ifdef XP_UNIX
71 <key key="&goBackCmd.commandkey;" command="Help:Back" modifiers="accel"/>
72 <key key="&goForwardCmd.commandkey;" command="Help:Forward" modifiers="accel"/>
73 #endif
74 #ifdef XP_MACOSX
75 <key id="goBackKb" keycode="VK_LEFT" command="Help:Back" modifiers="accel"/>
76 <key id="goForwardKb" keycode="VK_RIGHT" command="Help:Forward" modifiers="accel"/>
77 #else
78 <key id="goBackKb" keycode="VK_LEFT" command="Help:Back" modifiers="alt"/>
79 <key id="goForwardKb" keycode="VK_RIGHT" command="Help:Forward" modifiers="alt"/>
80 <key keycode="VK_BACK" command="Help:Back"/>
81 <key keycode="VK_BACK" command="Help:Forward" modifiers="shift"/>
82 #endif
83 <key id="printKb" key="&printCmd.commandkey;" oncommand="print();"
84 modifiers="accel"/>
85 <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
86 <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
87 <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
88 <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
89 <key keycode="&findAgainCmd.commandkey2;" command="cmd_findPrevious" modifiers="shift"/>
90 <key id="key_closeWindow" key="&closeWindow.commandkey;"
91 command="cmd_closeWindow" modifiers="accel"/>
92 <key id="key_closeSearchSidebar" keycode="VK_ESCAPE"
93 oncommand="hideSearchSidebar(event)"/>
94 <key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;"
95 command="cmd_fullZoomEnlarge" modifiers="accel"/>
96 <key id="key_fullZoomEnlarge2" key="&fullZoomEnlargeCmd.commandkey2;"
97 command="cmd_fullZoomEnlarge" modifiers="accel"/>
98 <key id="key_fullZoomEnlarge3" key="&fullZoomEnlargeCmd.commandkey3;"
99 command="cmd_fullZoomEnlarge" modifiers="accel"/>
100 <key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;"
101 command="cmd_fullZoomReduce" modifiers="accel"/>
102 <key id="key_fullZoomReduce2" key="&fullZoomReduceCmd.commandkey2;"
103 command="cmd_fullZoomReduce" modifiers="accel"/>
104 <key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;"
105 command="cmd_fullZoomReset" modifiers="accel"/>
106 <key id="key_fullZoomReset2" key="&fullZoomResetCmd.commandkey2;"
107 command="cmd_fullZoomReset" modifiers="accel"/>
108 <key id="key_focusSearch" key="&helpSearch.commandkey;"
109 oncommand="focusSearch()" modifiers="accel"/>
110
111 </keyset>
112 <stringbundle id="bundle_viewZoom"/>
113 <stringbundle id="findBundle"
114 src="chrome://global/locale/finddialog.properties"/>
115 <stringbundle id="bundle_help"
116 src="chrome://help/locale/help.properties"/>
117
118 <toolbox id="help-toolbox">
119 <toolbar id="HelpToolbar" class="chromeclass-toolbar">
120 <toolbarbutton id="help-back-button" type="menu-button"
121 label="&backButton.label;"
122 oncommand="if (event.target == this) goBack(); else gotoHistoryIndex(event);"
123 observes="canGoBack" context="backMenu"
124 tooltiptext="&backButton.tooltip;">
125 <menupopup context="" onpopupshowing="createBackMenu(event);"/>
126 </toolbarbutton>
127 <toolbarbutton id="help-forward-button" type="menu-button"
128 oncommand="if (event.target == this) goForward(); else gotoHistoryIndex(event);"
129 tooltiptext="&forwardButton.tooltip;"
130 observes="canGoForward">
131 <menupopup context="" onpopupshowing="createForwardMenu(event);"/>
132 </toolbarbutton>
133 <toolbarbutton id="help-home-button"
134 tooltiptext="&homeButton.tooltip;"
135 command="Help:Home"/>
136 <toolbarseparator/>
137 <toolbarbutton id="help-print-button"
138 label="&printButton.label;"
139 oncommand="print();"
140 tooltiptext="&printButton.tooltip;"/>
141 <toolbarspring flex="1"/>
142 <toolbaritem id="search-box"
143 align="center" pack="center">
144 <textbox id="findText" type="search" placeholder="&search.emptytext;"
145 aria-controls="help-toc-panel"
146 oncommand="doFind();"/>
147 </toolbaritem>
148 </toolbar>
149 </toolbox>
150
151 <hbox flex="1">
152 <vbox id="help-sidebar" persist="width">
153 <vbox flex="1" id="help-toc-sidebar">
154 <sidebarheader align="center">
155 <label id="help-toc-sidebar-header" flex="1" crop="end" value="&toctab.label;"
156 accesskey="&toctab.accesskey;" control="help-toc-panel"/>
157 </sidebarheader>
158 <tree id="help-toc-panel" class="focusring"
159 flex="1" treelines="true" hidecolumnpicker="true"
160 datasources="rdf:null"
161 containment="http://home.netscape.com/NC-rdf#subheadings"
162 ref="urn:root" flags="dont-build-content"
163 onselect="onselect_loadURI(this)">
164 <template>
165 <rule>
166 <conditions>
167 <content uri="?uri"/>
168 <triple subject="?uri"
169 predicate="http://home.netscape.com/NC-rdf#subheadings"
170 object="?subheadings"/>
171 <member container="?subheadings"
172 child="?subheading"/>
173 <triple subject="?subheading"
174 predicate="http://home.netscape.com/NC-rdf#name"
175 object="?name"/>
176 </conditions>
177 <action>
178 <treechildren>
179 <treeitem uri="?subheading">
180 <treerow>
181 <treecell label="?name"/>
182 </treerow>
183 </treeitem>
184 </treechildren>
185 </action>
186 </rule>
187 </template>
188 <treecols>
189 <treecol id="NameColumn" flex="1" hideheader="true"
190 primary="true"/>
191 </treecols>
192 </tree>
193 </vbox>
194 <vbox id="help-search-sidebar" hidden="true" flex="1">
195 <sidebarheader align="center">
196 <label id="help-search-sidebar-header" flex="1" crop="end"
197 value="&searchHeader.label;"/>
198 </sidebarheader>
199 <tree id="help-search-tree" class="focusring"
200 flex="1" hidecolumnpicker="true"
201 datasources="rdf:null"
202 containment="http://home.netscape.com/NC-rdf#child"
203 ref="urn:root" flags="dont-build-content"
204 onselect="onselect_loadURI(this)">
205 <template>
206 <rule>
207 <conditions>
208 <content uri="?uri"/>
209 <member container="?uri"
210 child="?subheading"/>
211 </conditions>
212 <bindings>
213 <binding subject="?subheading"
214 predicate="http://home.netscape.com/NC-rdf#name"
215 object="?name"/>
216 </bindings>
217 <action>
218 <treechildren>
219 <treeitem uri="?subheading">
220 <treerow>
221 <treecell label="?name"/>
222 </treerow>
223 </treeitem>
224 </treechildren>
225 </action>
226 </rule>
227 </template>
228 <treecols>
229 <treecol id="ResultsColumn" flex="1"
230 hideheader="true" primary="true"
231 sortActive="true" sortDirection="ascending"
232 sort="?name"/>
233 </treecols>
234 </tree>
235 </vbox>
236
237 <!-- BEGIN hidden trees used for searching -->
238 <!-- xxxmpc: we need a better solution for this -->
239
240 <vbox id="help-sidebar-hidden-trees" hidden="true">
241 <tree id="help-glossary-panel"
242 flex="1" hidecolumnpicker="true"
243 datasources="rdf:null"
244 containment="http://home.netscape.com/NC-rdf#subheadings"
245 ref="urn:root" flags="dont-build-content"/>
246 <tree id="help-index-panel"
247 flex="1" datasources="rdf:null"
248 hidecolumnpicker="true"
249 containment="http://home.netscape.com/NC-rdf#subheadings"
250 ref="urn:root"
251 flags="dont-build-content dont-test-empty"/>
252 <tree id="help-search-panel"
253 flex="1" hidecolumnpicker="true"
254 datasources="rdf:null"
255 containment="http://home.netscape.com/NC-rdf#subheadings"
256 ref="urn:root" flags="dont-build-content"/>
257 </vbox>
258
259 <!-- END HIDDEN ITEMS -->
260 </vbox>
261
262 <splitter id="help-sidebar-splitter" collapse="before"/>
263
264 <vbox id="appcontent" flex="3">
265 <!-- type attribute is used by frame construction to locate
266 iframes intended to hold (html) content -->
267 <browser context="contentAreaContextMenu"
268 type="content-primary" id="help-content"
269 src="about:blank" flex="1"/>
270 <findbar id="FindToolbar" browserid="help-content"/>
271 </vbox>
272 </hbox>
273
274 </window>

mercurial