home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / help.jar / content / browser / help / help.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-07-29  |  14.1 KB  |  363 lines

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