RetroZilla/extensions/help/resources/content/help.xul
2015-10-20 23:03:22 -04:00

327 lines
13 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://communicator/skin/help.css" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://help/content/platformClasses.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://navigator/content/platformNavigationBindings.xul"?>
<?xul-overlay href="chrome://communicator/content/viewZoomOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://help/locale/help.dtd">
<window id="help"
windowtype="mozilla:help"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="480"
height="360"
persist="width height screenX screenY zlevel"
onload="init();"
onunload="window.XULBrowserWindow.destroy();">
<script type="application/x-javascript" src="chrome://help/content/help.js"/>
<script type="application/x-javascript" src="chrome://navigator/content/sessionHistoryUI.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/findUtils.js"/>
<menupopup id="backMenu" position="after_start"
onpopupshowing="return createBackMenu(event);" oncommand="gotoHistoryIndex(event);"/>
<menupopup id="forwardMenu" position="after_start"
onpopupshowing="return createForwardMenu(event);" oncommand="gotoHistoryIndex(event);"/>
<popupset id="helpContextSet"/>
<broadcasterset id="helpBroadcasters">
<broadcaster id="canGoBack" disabled="true"/>
<broadcaster id="canGoForward" disabled="true"/>
</broadcasterset>
<commandset id="globalEditMenuItems"/>
<commandset id="selectEditMenuItems">
<command id="cmd_undo"/>
<command id="cmd_redo"/>
<command id="cmd_cut"/>
<command id="cmd_copy"/>
<command id="cmd_paste"/>
<command id="cmd_delete"/>
<command id="cmd_selectAll"/>
<command id="cmd_close" oncommand="close();"/>
<command id="Browser:Home" oncommand="goHome();"/>
<command id="Browser:Back" oncommand="goBack();" observes="canGoBack"/>
<command id="Browser:Forward" oncommand="goForward();" observes="canGoForward"/>
<command id="cmd_copyLink"/>
</commandset>
<commandset id="clipboardEditMenuItems"/>
<commandset id="viewZoomCommands"/>
<keyset id="keys">
<key id="key_close"/>
<key id="printKb" key="&printCmd.commandkey;" oncommand="print();" modifiers="accel"/>
<keyset id="viewZoomKeys"/>
<keyset id="navigationKeys">
<!-- The stop keybindings are navigator-only -->
<key id="key_stop" disabled="true"/>
<key id="key_stop2" disabled="true"/>
</keyset>
<key id="key_find"
key="&findOnCmd.commandkey;" oncommand="find(false, false);" modifiers="accel"/>
<key id="key_findAgain"
key="&findAgainCmd.commandkey;" oncommand="find(true, false);" modifiers="accel"/>
<key id="key_findPrev"
key="&findPrevCmd.commandkey;" oncommand="find(true, true);" modifiers="accel, shift"/>
<key id="key_findAgain2" keycode="&findAgainCmd.commandkey2;" oncommand="find(true, false);"/>
<key id="key_findPrev2" keycode="&findPrevCmd.commandkey2;" oncommand="find(true, true);" modifiers="shift"/>
<key id="key_viewNextHelpPanel" keycode="VK_TAB" oncommand="showRelativePanel(true);" modifiers="control"/>
<key id="key_viewPrevHelpPanel" keycode="VK_TAB" oncommand="showRelativePanel(false);" modifiers="control,shift"/>
</keyset>
<stringbundle id="bundle_viewZoom"/>
<stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
<vbox flex="1">
<!-- button bar -->
<toolbox id="help-toolbox" class="toolbox-top" deferattached="true">
<toolbar id="helpToolbar" class="toolbar-primary chromeclass-toolbar"
grippytooltiptext="&toolbar.tooltip;"
tbalign="stretch" persist="collapsed">
<toolbarbutton id="helpBackButton" type="menu-button" class="toolbarbutton-1"
label="&backButton.label;"
oncommand="if (event.target==this) goBack(); else gotoHistoryIndex(event);"
observes="canGoBack" context="backMenu"
tooltiptext="&backButton.tooltip;">
<menupopup context="" onpopupshowing="createBackMenu(event);"/>
</toolbarbutton>
<toolbarbutton id="helpForwardButton" type="menu-button" class="toolbarbutton-1"
label="&forwardButton.label;"
tooltiptext="&forwardButton.tooltip;"
oncommand="if (event.target==this) goForward(); else gotoHistoryIndex(event);"
observes="canGoForward" context="forwardMenu">
<menupopup context="" onpopupshowing="createForwardMenu(event);"/>
</toolbarbutton>
<toolbarbutton id="helpHomeButton" class="toolbarbutton-1"
label="&homeButton.label;" oncommand="goHome();"
tooltiptext="&homeButton.tooltip;"/>
<spacer flex="1"/>
<toolbarbutton id="helpPrintButton" class="toolbarbutton-1"
label="&printButton.label;" oncommand="print();"
tooltiptext="&printButton.tooltip;"/>
<hbox id="throbber-box" align="center">
<button id="navigator-throbber" oncommand="goHome();" tooltiptext="&helpThrobber.tooltip;"/>
</hbox>
</toolbar>
</toolbox>
<!-- the two help panes (sidebar & content) -->
<hbox flex="1">
<vbox id="helpsidebar-box" persist="width">
<!-- glossary panel -->
<toolbarbutton id="help-glossary-btn" class="box-texttab"
label="&glossarytab.label;" oncommand="showPanel('help-glossary')"
accesskey="&glossarytab.accesskey;"/>
<tree id="help-glossary-panel" class="focusring"
flex="1" hidecolumnpicker="true" hidden="true"
datasources="rdf:null" ref="urn:root"
containment="http://home.netscape.com/NC-rdf#subheadings"
flags="dont-build-content"
onselect="onselect_loadURI(this);">
<template>
<rule>
<conditions>
<content uri="?uri"/>
<triple subject="?uri"
predicate="http://home.netscape.com/NC-rdf#subheadings"
object="?subheadings"/>
<member container="?subheadings" child="?subheading"/>
</conditions>
<bindings>
<binding subject="?subheading"
predicate="http://home.netscape.com/NC-rdf#name"
object="?name"/>
</bindings>
<action>
<treechildren>
<treeitem uri="?subheading">
<treerow>
<treecell label="?name"/>
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
<treecols>
<treecol id="GlossaryNameColumn" flex="1"
hideheader="true"/>
</treecols>
</tree>
<!-- index panel -->
<toolbarbutton id="help-index-btn" class="box-texttab"
label="&indextab.label;" oncommand="showPanel('help-index');displayIndex();"
accesskey="&indextab.accesskey;"/>
<tree id="help-index-panel" class="focusring"
flex="1" hidecolumnpicker="true" hidden="true"
datasources="rdf:null" ref="urn:root"
containment="http://home.netscape.com/NC-rdf#subheadings"
flags="dont-build-content dont-test-empty"
onselect="onselect_loadURI(this);">
<template>
<rule>
<conditions>
<content uri="?uri"/>
<triple subject="?uri"
predicate="http://home.netscape.com/NC-rdf#subheadings"
object="?subheadings"/>
<member container="?subheadings" child="?subheading"/>
</conditions>
<bindings>
<binding subject="?subheading"
predicate="http://home.netscape.com/NC-rdf#name"
object="?name"/>
</bindings>
<action>
<treechildren>
<treeitem uri="?subheading">
<treerow>
<treecell label="?name"/>
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
<treecols>
<treecol id="IndexNameColumn" flex="1"
hideheader="true"
primary="true"
sortActive="true"
sortDirection="ascending"
sort="?name"/>
</treecols>
</tree>
<!-- search panel -->
<toolbarbutton id="help-search-btn" class="box-texttab"
label="&searchtab.label;" oncommand="showPanel('help-search')"
accesskey="&searchtab.accesskey;"/>
<vbox id="help-search-panel" hidden="true" flex="1">
<textbox id="findText" type="timed" timeout="500"
oncommand="doFind();"/>
<tree id="help-search-tree" class="focusring"
flex="1" hidecolumnpicker="true"
datasources="rdf:null" ref="urn:root"
containment="http://home.netscape.com/NC-rdf#child"
flags="dont-build-content"
onselect="onselect_loadURI(this);">
<template>
<rule>
<conditions>
<content uri="?uri"/>
<member container="?uri" child="?subheading"/>
</conditions>
<bindings>
<binding subject="?subheading"
predicate="http://home.netscape.com/NC-rdf#name"
object="?name"/>
</bindings>
<action>
<treechildren>
<treeitem uri="?subheading">
<treerow>
<treecell label="?name"/>
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
<treecols>
<treecol id="ResultsColumn" flex="1"
hideheader="true"
sortActive="true"
sortDirection="ascending"
sort="?name"/>
</treecols>
</tree>
</vbox>
<!-- table of contents panel -->
<toolbarbutton id="help-toc-btn" class="box-texttab"
label="&toctab.label;" oncommand="showPanel('help-toc')"
accesskey="&toctab.accesskey;"/>
<tree id="help-toc-panel" class="focusring"
flex="1" hidecolumnpicker="true"
datasources="rdf:null" ref="urn:root"
containment="http://home.netscape.com/NC-rdf#subheadings"
flags="dont-build-content"
onselect="onselect_loadURI(this);">
<template>
<rule>
<conditions>
<content uri="?uri"/>
<triple subject="?uri"
predicate="http://home.netscape.com/NC-rdf#subheadings"
object="?subheadings"/>
<member container="?subheadings" child="?subheading"/>
</conditions>
<bindings>
<binding subject="?subheading"
predicate="http://home.netscape.com/NC-rdf#name"
object="?name"/>
</bindings>
<action>
<treechildren>
<treeitem uri="?subheading">
<treerow>
<treecell label="?name"/>
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
<treecols>
<treecol id="NameColumn" flex="1"
hideheader="true" primary="true"/>
</treecols>
</tree>
</vbox>
<splitter id="helpsidebar-splitter"
collapse="before"
persist="state hidden"
state="open">
<grippy/>
</splitter>
<!-- this stuff lifted from navigator.xul -->
<vbox id="appcontent" flex="3">
<!-- this box is temporary, pending XBLified <browser> -->
<hbox id="browser" flex="1">
<!-- type attribute is used by frame construction to locate iframes
intended to hold (html) content -->
<browser context="helpContextMenu" type="content-primary" id="help-content"
src="about:blank" flex="1" onclick="return contentClick(event);"/>
<browser type="content" id="help-external" collapsed="true"/>
</hbox>
</vbox>
</hbox>
</vbox>
<!-- Make sure the down-scroll arrow is visible on Mac (bug 56488) -->
<statusbar id="statusbarDummy" class="mac"/>
</window>