toolkit/components/help/content/help.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/help/content/help.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,274 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +<?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
    1.10 +
    1.11 +<?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
    1.12 +<!DOCTYPE window [
    1.13 +    <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
    1.14 +    %brandDTD;
    1.15 +    <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
    1.16 +    %helpDTD;
    1.17 +]>
    1.18 +
    1.19 +<window id="help"
    1.20 +        windowtype="mozilla:help"
    1.21 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.22 +        width="700"
    1.23 +        height="550"
    1.24 +#ifdef XP_WIN
    1.25 +#define HELP_ALWAYS_RAISED_TOGGLE
    1.26 +#endif
    1.27 +#ifdef HELP_ALWAYS_RAISED_TOGGLE
    1.28 +        persist="width height screenX screenY zlevel"
    1.29 +#else
    1.30 +        persist="width height screenX screenY"
    1.31 +#endif
    1.32 +        onload="init();"
    1.33 +        onunload="window.XULBrowserWindow.destroy();">
    1.34 +
    1.35 +  <script type="application/javascript" src="chrome://help/content/help.js"/>
    1.36 +  <script type="application/javascript" src="chrome://global/content/viewZoomOverlay.js"/>
    1.37 +  <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
    1.38 +
    1.39 +  <menupopup id="backMenu" position="after_start"
    1.40 +             onpopupshowing="return createBackMenu(event);"
    1.41 +             oncommand="gotoHistoryIndex(event);"/>
    1.42 +  <menupopup id="forwardMenu" position="after_start"
    1.43 +             onpopupshowing="return createForwardMenu(event);"
    1.44 +             oncommand="gotoHistoryIndex(event);"/>
    1.45 +  <popupset id="contentAreaContextSet"/>
    1.46 +
    1.47 +  <broadcasterset id="helpBroadcasters">
    1.48 +    <broadcaster id="canGoBack"    disabled="true"/>
    1.49 +    <broadcaster id="canGoForward" disabled="true"/>
    1.50 +  </broadcasterset>
    1.51 +  <commandset id="globalEditMenuItems"/>
    1.52 +  <commandset id="selectEditMenuItems">
    1.53 +    <command id="cmd_close" oncommand="close();"/>
    1.54 +    <command id="Help:Home" oncommand="goHome();"/>
    1.55 +    <command id="Help:Back" oncommand="goBack();"       observes="canGoBack"/>
    1.56 +    <command id="Help:Forward" oncommand="goForward();" observes="canGoForward"/>
    1.57 +    <command id="Help:ToggleSidebar" oncommand="toggleSidebar();"/>
    1.58 +    <command id="cmd_closeWindow" oncommand="close();"/>
    1.59 +    <command id="cmd_fullZoomReduce" oncommand="ZoomManager.reduce();"/>
    1.60 +    <command id="cmd_fullZoomEnlarge" oncommand="ZoomManager.enlarge();"/>
    1.61 +    <command id="cmd_fullZoomReset" oncommand="ZoomManager.reset();"/>
    1.62 +    <command id="cmd_find"
    1.63 +             oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
    1.64 +    <command id="cmd_findAgain"
    1.65 +             oncommand="document.getElementById('FindToolbar').onFindAgainCommand(false);"/>
    1.66 +    <command id="cmd_findPrevious"
    1.67 +             oncommand="document.getElementById('FindToolbar').onFindAgainCommand(true);"/>
    1.68 +    <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/>
    1.69 +    <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
    1.70 +  </commandset>
    1.71 +  <keyset id="keys">
    1.72 +    <key id="goHome"      keycode="VK_HOME"  command="Help:Home" modifiers="alt"/>
    1.73 +#ifdef XP_UNIX
    1.74 +    <key key="&goBackCmd.commandkey;" command="Help:Back" modifiers="accel"/>
    1.75 +    <key key="&goForwardCmd.commandkey;" command="Help:Forward" modifiers="accel"/>
    1.76 +#endif
    1.77 +#ifdef XP_MACOSX
    1.78 +    <key id="goBackKb"    keycode="VK_LEFT"  command="Help:Back" modifiers="accel"/>
    1.79 +    <key id="goForwardKb" keycode="VK_RIGHT" command="Help:Forward" modifiers="accel"/>
    1.80 +#else
    1.81 +    <key id="goBackKb"     keycode="VK_LEFT"  command="Help:Back" modifiers="alt"/>
    1.82 +    <key id="goForwardKb"  keycode="VK_RIGHT" command="Help:Forward" modifiers="alt"/>
    1.83 +    <key keycode="VK_BACK" command="Help:Back"/>
    1.84 +    <key keycode="VK_BACK" command="Help:Forward" modifiers="shift"/>
    1.85 +#endif
    1.86 +    <key id="printKb" key="&printCmd.commandkey;" oncommand="print();"
    1.87 +         modifiers="accel"/>  
    1.88 +    <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
    1.89 +    <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
    1.90 +    <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
    1.91 +    <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
    1.92 +    <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
    1.93 +    <key id="key_closeWindow" key="&closeWindow.commandkey;"
    1.94 +         command="cmd_closeWindow" modifiers="accel"/>
    1.95 +    <key id="key_closeSearchSidebar" keycode="VK_ESCAPE"
    1.96 +         oncommand="hideSearchSidebar(event)"/>
    1.97 +    <key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;"
    1.98 +         command="cmd_fullZoomEnlarge" modifiers="accel"/>
    1.99 +    <key id="key_fullZoomEnlarge2" key="&fullZoomEnlargeCmd.commandkey2;"
   1.100 +         command="cmd_fullZoomEnlarge" modifiers="accel"/>
   1.101 +    <key id="key_fullZoomEnlarge3" key="&fullZoomEnlargeCmd.commandkey3;"
   1.102 +         command="cmd_fullZoomEnlarge" modifiers="accel"/>
   1.103 +    <key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;"
   1.104 +         command="cmd_fullZoomReduce" modifiers="accel"/>
   1.105 +    <key id="key_fullZoomReduce2" key="&fullZoomReduceCmd.commandkey2;"
   1.106 +         command="cmd_fullZoomReduce" modifiers="accel"/>
   1.107 +    <key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;"
   1.108 +         command="cmd_fullZoomReset" modifiers="accel"/>
   1.109 +    <key id="key_fullZoomReset2" key="&fullZoomResetCmd.commandkey2;"
   1.110 +         command="cmd_fullZoomReset" modifiers="accel"/>
   1.111 +    <key id="key_focusSearch" key="&helpSearch.commandkey;"
   1.112 +         oncommand="focusSearch()" modifiers="accel"/>
   1.113 +
   1.114 +  </keyset>
   1.115 +  <stringbundle id="bundle_viewZoom"/>
   1.116 +  <stringbundle id="findBundle"
   1.117 +                src="chrome://global/locale/finddialog.properties"/>
   1.118 +  <stringbundle id="bundle_help"
   1.119 +                src="chrome://help/locale/help.properties"/>
   1.120 +
   1.121 +    <toolbox id="help-toolbox">
   1.122 +      <toolbar id="HelpToolbar" class="chromeclass-toolbar">
   1.123 +        <toolbarbutton id="help-back-button" type="menu-button"
   1.124 +                       label="&backButton.label;"
   1.125 +                       oncommand="if (event.target == this) goBack(); else gotoHistoryIndex(event);"
   1.126 +                       observes="canGoBack" context="backMenu"
   1.127 +                       tooltiptext="&backButton.tooltip;">
   1.128 +          <menupopup context="" onpopupshowing="createBackMenu(event);"/>
   1.129 +        </toolbarbutton>
   1.130 +        <toolbarbutton id="help-forward-button" type="menu-button"
   1.131 +                       oncommand="if (event.target == this) goForward(); else gotoHistoryIndex(event);"
   1.132 +                       tooltiptext="&forwardButton.tooltip;"
   1.133 +                       observes="canGoForward">
   1.134 +          <menupopup context="" onpopupshowing="createForwardMenu(event);"/>
   1.135 +        </toolbarbutton>
   1.136 +        <toolbarbutton id="help-home-button"
   1.137 +                       tooltiptext="&homeButton.tooltip;"
   1.138 +                       command="Help:Home"/>
   1.139 +        <toolbarseparator/>
   1.140 +        <toolbarbutton id="help-print-button"
   1.141 +                       label="&printButton.label;"
   1.142 +                       oncommand="print();"
   1.143 +                       tooltiptext="&printButton.tooltip;"/>
   1.144 +        <toolbarspring flex="1"/>
   1.145 +        <toolbaritem id="search-box"
   1.146 +                     align="center" pack="center">
   1.147 +          <textbox id="findText" type="search" placeholder="&search.emptytext;"
   1.148 +                   aria-controls="help-toc-panel"
   1.149 +                   oncommand="doFind();"/>
   1.150 +        </toolbaritem>
   1.151 +      </toolbar>
   1.152 +    </toolbox>
   1.153 +
   1.154 +    <hbox flex="1">
   1.155 +      <vbox id="help-sidebar" persist="width">
   1.156 +        <vbox flex="1" id="help-toc-sidebar">
   1.157 +          <sidebarheader align="center">
   1.158 +            <label id="help-toc-sidebar-header" flex="1" crop="end" value="&toctab.label;"
   1.159 +                   accesskey="&toctab.accesskey;" control="help-toc-panel"/>
   1.160 +          </sidebarheader>
   1.161 +          <tree id="help-toc-panel" class="focusring"
   1.162 +                flex="1" treelines="true" hidecolumnpicker="true"
   1.163 +                datasources="rdf:null"
   1.164 +                containment="http://home.netscape.com/NC-rdf#subheadings"
   1.165 +                ref="urn:root" flags="dont-build-content"
   1.166 +                onselect="onselect_loadURI(this)">
   1.167 +            <template>
   1.168 +              <rule>
   1.169 +                <conditions>
   1.170 +                  <content uri="?uri"/>
   1.171 +                  <triple subject="?uri"
   1.172 +                          predicate="http://home.netscape.com/NC-rdf#subheadings"
   1.173 +                          object="?subheadings"/>
   1.174 +                  <member container="?subheadings"
   1.175 +                          child="?subheading"/>
   1.176 +                  <triple subject="?subheading"
   1.177 +                          predicate="http://home.netscape.com/NC-rdf#name"
   1.178 +                          object="?name"/>
   1.179 +                </conditions>
   1.180 +                <action>
   1.181 +                  <treechildren>
   1.182 +                    <treeitem uri="?subheading">
   1.183 +                      <treerow>
   1.184 +                        <treecell label="?name"/>
   1.185 +                      </treerow>
   1.186 +                    </treeitem>
   1.187 +                  </treechildren>
   1.188 +                </action>
   1.189 +              </rule>
   1.190 +            </template>
   1.191 +            <treecols>
   1.192 +              <treecol id="NameColumn" flex="1" hideheader="true"
   1.193 +                       primary="true"/>
   1.194 +            </treecols>
   1.195 +          </tree>
   1.196 +        </vbox>
   1.197 +        <vbox id="help-search-sidebar" hidden="true" flex="1">
   1.198 +          <sidebarheader align="center">
   1.199 +            <label id="help-search-sidebar-header" flex="1" crop="end"
   1.200 +                   value="&searchHeader.label;"/>
   1.201 +          </sidebarheader>
   1.202 +          <tree id="help-search-tree" class="focusring"
   1.203 +                flex="1" hidecolumnpicker="true"
   1.204 +                datasources="rdf:null"
   1.205 +                containment="http://home.netscape.com/NC-rdf#child"
   1.206 +                ref="urn:root" flags="dont-build-content"
   1.207 +                onselect="onselect_loadURI(this)">
   1.208 +            <template>
   1.209 +              <rule>
   1.210 +                <conditions>
   1.211 +                  <content uri="?uri"/>
   1.212 +                  <member container="?uri"
   1.213 +                          child="?subheading"/>
   1.214 +                </conditions>
   1.215 +                <bindings>
   1.216 +                  <binding subject="?subheading"
   1.217 +                           predicate="http://home.netscape.com/NC-rdf#name"
   1.218 +                           object="?name"/>
   1.219 +                </bindings>
   1.220 +                <action>
   1.221 +                  <treechildren>
   1.222 +                    <treeitem uri="?subheading">
   1.223 +                      <treerow>
   1.224 +                        <treecell label="?name"/>
   1.225 +                      </treerow>
   1.226 +                    </treeitem>
   1.227 +                  </treechildren>
   1.228 +                </action>
   1.229 +              </rule>
   1.230 +            </template>
   1.231 +            <treecols>
   1.232 +            <treecol id="ResultsColumn" flex="1"
   1.233 +                     hideheader="true" primary="true"
   1.234 +                     sortActive="true" sortDirection="ascending"
   1.235 +                     sort="?name"/>
   1.236 +            </treecols>
   1.237 +          </tree>
   1.238 +        </vbox>
   1.239 +
   1.240 +        <!-- BEGIN hidden trees used for searching -->
   1.241 +        <!-- xxxmpc: we need a better solution for this -->
   1.242 +
   1.243 +        <vbox id="help-sidebar-hidden-trees" hidden="true">
   1.244 +          <tree id="help-glossary-panel"
   1.245 +                flex="1" hidecolumnpicker="true"
   1.246 +                datasources="rdf:null"
   1.247 +                containment="http://home.netscape.com/NC-rdf#subheadings"
   1.248 +                ref="urn:root" flags="dont-build-content"/>
   1.249 +          <tree id="help-index-panel"
   1.250 +                flex="1" datasources="rdf:null"
   1.251 +                hidecolumnpicker="true"
   1.252 +                containment="http://home.netscape.com/NC-rdf#subheadings"
   1.253 +                ref="urn:root"
   1.254 +                flags="dont-build-content dont-test-empty"/>
   1.255 +          <tree id="help-search-panel"
   1.256 +                flex="1" hidecolumnpicker="true"
   1.257 +                datasources="rdf:null"
   1.258 +                containment="http://home.netscape.com/NC-rdf#subheadings"
   1.259 +                ref="urn:root" flags="dont-build-content"/>
   1.260 +        </vbox>
   1.261 +
   1.262 +        <!-- END HIDDEN ITEMS -->
   1.263 +      </vbox>
   1.264 +
   1.265 +      <splitter id="help-sidebar-splitter" collapse="before"/>
   1.266 +
   1.267 +      <vbox id="appcontent" flex="3">
   1.268 +        <!-- type attribute is used by frame construction to locate
   1.269 +             iframes intended to hold (html) content -->
   1.270 +        <browser context="contentAreaContextMenu"
   1.271 +                 type="content-primary" id="help-content"
   1.272 +                 src="about:blank" flex="1"/>
   1.273 +        <findbar id="FindToolbar" browserid="help-content"/>
   1.274 +      </vbox>
   1.275 +    </hbox>
   1.276 +
   1.277 +</window>

mercurial