toolkit/components/help/content/help.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial