home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 December / PCWorld_2006-12_cd.bin / komunikace / netscape / nsb-install-8-1-2.exe / chrome / help.jar / content / help / help.xul < prev    next >
Extensible Markup Language  |  2006-01-06  |  21KB  |  410 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://help/skin/sidebar.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  6.  
  7. <?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
  8. <!DOCTYPE window [
  9.     <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
  10.     %brandDTD;
  11.     <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
  12.     %helpDTD;
  13.     <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  14.     %browserDTD;
  15.     <!ENTITY % findDTD SYSTEM "chrome://global/locale/finddialog.dtd" >
  16.     %findDTD;
  17. ]>
  18.  
  19. <window id="help"
  20.         windowtype="mozilla:help"
  21.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  22.         width="700"
  23.         height="550"
  24.         persist="width height screenX screenY"
  25.         onload="init();"
  26.         onunload="uninitFindBar(); window.XULBrowserWindow.destroy();">
  27.  
  28.     <script type="application/x-javascript" src="chrome://help/content/toolbarCustomization.js"/>
  29.     <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  30.     <script type="application/x-javascript" src="chrome://browser/content/sessionHistoryUI.js"/>
  31.     <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  32.     <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  33.     <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  34.  
  35.     <stringbundle id="bundle_findBar" src="chrome://browser/locale/browser.properties"/>
  36.     
  37.     <menupopup id="backMenu" position="after_start"
  38.         onpopupshowing="return createBackMenu(event);"
  39.         oncommand="gotoHistoryIndex(event);"/>
  40.     <menupopup id="forwardMenu" position="after_start"
  41.         onpopupshowing="return createForwardMenu(event);"
  42.         oncommand="gotoHistoryIndex(event);"/>
  43.     <popupset id="contentAreaContextSet"/>
  44.     <popup id="toolbar-context-menu">
  45.       <menuitem command="cmd_CustomizeToolbars"
  46.                 label="&viewCustomizeToolbar.label;"
  47.                 accesskey="&viewCustomizeToolbar.accesskey;"/>
  48.     </popup>
  49.     <broadcasterset id="helpBroadcasters">
  50.         <broadcaster id="canGoBack"    disabled="true"/>
  51.         <broadcaster id="canGoForward" disabled="true"/>
  52.     </broadcasterset>
  53.     <commandset id="globalEditMenuItems"/>
  54.     <commandset id="selectEditMenuItems">
  55.         <command id="cmd_close" oncommand="close();"/>
  56.         <command id="Help:Home" oncommand="goHome();"/>
  57.         <command id="Help:Back" oncommand="goBack();"       observes="canGoBack"/>
  58.         <command id="Help:Forward" oncommand="goForward();" observes="canGoForward"/>
  59.         <command id="Help:ToggleSidebar" oncommand="toggleSidebar();"/>
  60.         <command id="cmd_closeWindow" oncommand="close();"/>
  61.         <command id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  62.         <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  63.         <command id="cmd_CustomizeToolbars" oncommand="CustomizeToolbar('help-toolbox');"/>
  64.         <command id="cmd_find" oncommand="onFindCmd();"/>
  65.         <command id="cmd_findAgain" oncommand="onFindAgainCmd();"/>
  66.         <command id="cmd_findPrevious" oncommand="onFindPreviousCmd();"/>    
  67.     </commandset>
  68.     <keyset id="keys">
  69.         <key id="goHome"      keycode="VK_HOME"  command="Help:Home" modifiers="alt"/>
  70.         <key id="goBackKb"    keycode="VK_LEFT"  command="Help:Back" modifiers="alt"/>
  71.         <key id="goForwardKb" keycode="VK_RIGHT" command="Help:Forward" modifiers="alt"/>
  72.         <key keycode="VK_BACK" command="Help:Back"/>
  73.         <key keycode="VK_BACK" command="Help:Forward" modifiers="shift"/>
  74.         <key id="printKb" key="&printCmd.commandkey;" oncommand="print();"
  75.             modifiers="accel"/>  
  76.         <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  77.         <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  78.         <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  79.         <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  80.         <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  81.         <key keycode="VK_F5" oncommand="reload();"/>
  82.         <key id="key_closeWindow" key="&closeWindow.commandkey;"
  83.             command="cmd_closeWindow" modifiers="accel"/>
  84.         <key id="key_closeWindow2" keycode="VK_ESCAPE"
  85.             command="cmd_closeWindow"/>
  86.         <key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;"
  87.             command="cmd_textZoomEnlarge" modifiers="accel"/>
  88.         <key id="key_textZoomEnlarge2" key="&textZoomEnlargeCmd.commandkey2;"
  89.             command="cmd_textZoomEnlarge" modifiers="accel"/>
  90.         <key id="key_textZoomReduce" key="&textZoomReduceCmd.commandkey;"
  91.             command="cmd_textZoomReduce" modifiers="accel"/>
  92.         <key id="key_textZoomReset" key="&textZoomResetCmd.commandkey;"
  93.             oncommand="ZoomManager.prototype.getInstance().reset();" modifiers="accel"/>
  94.         <key id="key_toggleSidebar" keycode="VK_F9" command="Help:ToggleSidebar"/>
  95.         <key id="key_viewNextHelpPanel" keycode="VK_TAB"
  96.              oncommand="showRelativePanel(true);" modifiers="control"/>
  97.         <key id="key_viewPrevHelpPanel" keycode="VK_TAB"
  98.              oncommand="showRelativePanel(false);" modifiers="control,shift"/>
  99.     </keyset>
  100.     <stringbundle id="bundle_viewZoom"/>
  101.     <stringbundle id="findBundle"
  102.         src="chrome://global/locale/finddialog.properties"/>
  103.     <stringbundle id="bundle_help"
  104.         src="chrome://help/locale/help.properties"/>
  105.  
  106.     <vbox flex="1">
  107.  
  108.         <toolbox id="help-toolbox" class="toolbox-top" mode="icons" iconsize="small" customizable="true">
  109.  
  110.             <toolbarpalette id="HelpToolbarPalette">
  111.  
  112.                 <toolbarbutton id="help-sidebar-button"
  113.                     class="toolbarbutton-1"
  114.                     tooltiptext="&sidebarBtn.tooltip;"
  115.                     customizeable="true" label="&sidebarBtn.label;"
  116.                     command="Help:ToggleSidebar"/>
  117.                 <toolbarbutton id="help-back-button" type="menu-button"
  118.                         class="browserButton" label="&backButton.label;"
  119.                         oncommand="if (event.target==this) goBack(); else gotoHistoryIndex(event);"
  120.                         observes="canGoBack" context="backMenu"
  121.                         tooltiptext="&backButton.tooltip;">
  122.                     <menupopup context=""
  123.                         onpopupshowing="createBackMenu(event);"/>
  124.                 </toolbarbutton>
  125.                 <toolbarbutton id="help-forward-button" type="menu-button"
  126.                         class="browserButton"
  127.                         label="&forwardButton.label;"
  128.                         oncommand="if (event.target==this) goForward(); else gotoHistoryIndex(event);"
  129.                         tooltiptext="&forwardButton.tooltip;"
  130.                         observes="canGoForward">
  131.                     <menupopup context=""
  132.                         onpopupshowing="createForwardMenu(event);"/>
  133.                 </toolbarbutton>
  134.                 <toolbarbutton id="help-home-button"
  135.                     class="browserButton" label="&homeButton.label;"
  136.                     tooltiptext="&homeButton.tooltip;"
  137.                     command="Help:Home"/>
  138.                 <toolbarbutton id="help-find-button"
  139.                     class="toolbarbutton-1" label="&findBtn.label;"
  140.                     command="cmd_find"/>
  141.                 <toolbarbutton id="help-zoom-small-button"
  142.                     class="toolbarbutton-1" label="&textZoomReduceBtn.label;"
  143.                     tooltiptext="&textZoomReduceBtn.tooltip;"
  144.                     command="cmd_textZoomReduce"/>
  145.                 <toolbarbutton id="help-zoom-large-button"
  146.                     class="toolbarbutton-1" label="&textZoomEnlargeBtn.label;"
  147.                     tooltiptext="&textZoomEnlargeBtn.tooltip;"
  148.                     command="cmd_textZoomEnlarge"/>
  149.                 <toolbarbutton id="help-print-button" class="browserButton"
  150.                     label="&printButton.label;"
  151.                     oncommand="print();"
  152.                     tooltiptext="&printButton.tooltip;"/>
  153.                 <toolbarbutton id="help-toolbar-customization" class="toolbarbutton-1"
  154.                     label="&cmd_CustomizeToolbars.label;"
  155.                     command="cmd_CustomizeToolbars"
  156.                     tooltiptext="&customizeButton.tooltip;"/>
  157.  
  158.                 <toolbaritem id="throbber-box" title="&throbberItem.title;"
  159.                     align="center" pack="center">
  160.                   <button id="help-throbber" tooltiptext="&throbber.tooltip;"
  161.                     command="Help:Home"/>
  162.                 </toolbaritem>
  163.             </toolbarpalette>
  164.             <toolbar id="helpToolbar" toolbarname="Help Toolbar" class="toolbar-primary
  165.                     chromeclass-toolbar" mode="icons" iconsize="small"
  166.                     customizable="true"
  167.                     defaultset="help-sidebar-button,separator,help-back-button,help-forward-button,help-home-button,separator,help-toolbar-customization,spring,help-print-button,separator,spacer,throbber-box"
  168.                     context="toolbar-context-menu"/>
  169.             <toolbarset id="customToolbars"/>
  170.         </toolbox>
  171.  
  172.         <hbox flex="1">
  173.             <vbox id="helpsidebar-box" persist="width">
  174.  
  175.                 <!-- glossary panel -->
  176.                 <toolbarbutton id="help-glossary-btn"
  177.                     class="box-texttab texttab-sidebar"
  178.                     label="&glossarytab.label;"
  179.                     oncommand="showPanel('help-glossary')"
  180.                     accesskey="&glossarytab.accesskey;"/>
  181.                 <tree id="help-glossary-panel" class="focusring"
  182.                         flex="1" hidecolumnpicker="true"
  183.                         hidden="true" datasources="rdf:null"
  184.                         containment="http://home.netscape.com/NC-rdf#subheadings"
  185.                         ref="urn:root" flags="dont-build-content"
  186.                         onselect="onselect_loadURI(this)">
  187.                     <template>
  188.                         <rule>
  189.                             <conditions>
  190.                                 <content uri="?uri"/>
  191.                                 <triple subject="?uri"
  192.                                     predicate="http://home.netscape.com/NC-rdf#subheadings"
  193.                                     object="?subheadings"/>
  194.                                 <member container="?subheadings"
  195.                                     child="?subheading"/>
  196.                             </conditions>
  197.                             <bindings>
  198.                                 <binding subject="?subheading"
  199.                                     predicate="http://home.netscape.com/NC-rdf#name"
  200.                                     object="?name"/>
  201.                             </bindings>
  202.  
  203.                             <action>
  204.                                 <treechildren>
  205.                                     <treeitem uri="?subheading">
  206.                                         <treerow>
  207.                                             <treecell label="?name"/>
  208.                                         </treerow>
  209.                                     </treeitem>
  210.                                 </treechildren>
  211.                             </action>
  212.                         </rule>
  213.                     </template>
  214.                     <treecols>
  215.                         <treecol id="GlossaryNameColumn" flex="1"
  216.                             hideheader="true" primary="true"/>
  217.                     </treecols>
  218.                 </tree>
  219.  
  220.                 <toolbarbutton id="help-index-btn" class="box-texttab texttab-sidebar"
  221.                     label="&indextab.label;"
  222.                     oncommand="showPanel('help-index');expandAllIndexEntries();"
  223.                     accesskey="&indextab.accesskey;"/>
  224.  
  225.                 <tree id="help-index-panel" class="focusring"
  226.                         flex="1" datasources="rdf:null"
  227.                         hidecolumnpicker="true" hidden="true"
  228.                         containment="http://home.netscape.com/NC-rdf#subheadings"
  229.                         ref="urn:root"
  230.                         flags="dont-build-content dont-test-empty"
  231.                         onselect="onselect_loadURI(this)">
  232.                     <template>
  233.                         <rule>
  234.                             <conditions>
  235.                                 <content uri="?uri"/>
  236.                                 <triple subject="?uri"
  237.                                     predicate="http://home.netscape.com/NC-rdf#subheadings"
  238.                                     object="?subheadings"/>
  239.                                 <member container="?subheadings"
  240.                                     child="?subheading"/>
  241.                             </conditions>
  242.                             <bindings>
  243.                                 <binding subject="?subheading"
  244.                                     predicate="http://home.netscape.com/NC-rdf#name"
  245.                                     object="?name"/>
  246.                             </bindings>
  247.  
  248.                             <action>
  249.                                 <treechildren>
  250.                                     <treeitem uri="?subheading">
  251.                                         <treerow>
  252.                                             <treecell label="?name"/>
  253.                                         </treerow>
  254.                                     </treeitem>
  255.                                 </treechildren>
  256.                             </action>
  257.                         </rule>
  258.                     </template>
  259.                     <treecols>
  260.                         <treecol id="IndexNameColumn" flex="1" hideheader="true"
  261.                             primary="true" sortActive="true"
  262.                             sortDirection="ascending" sort="?name"/>
  263.                     </treecols>
  264.                 </tree>
  265.  
  266.                 <toolbarbutton id="help-search-btn" class="box-texttab texttab-sidebar"
  267.                     label="&searchtab.label;"
  268.                     oncommand="showPanel('help-search')"
  269.                     accesskey="&searchtab.accesskey;"/>
  270.  
  271.                 <vbox id="help-search-panel" hidden="true" flex="1">
  272.                     <hbox align="center">
  273.                         <textbox id="findText" flex="1" oninput="doEnabling();"
  274.                             onkeypress="if ((event.keyCode
  275.                                 == KeyEvent.DOM_VK_ENTER) || (event.keyCode
  276.                                 == KeyEvent.DOM_VK_RETURN))
  277.                                 doFind();"/>
  278.                         <button id="findButton" default="true" disabled="true"
  279.                             label="&gobtn.label;" oncommand="doFind()"
  280.                             flex="0"/>
  281.                     </hbox>
  282.                     <tree id="help-search-tree" class="focusring"
  283.                             flex="1" hidecolumnpicker="true"
  284.                             datasources="rdf:null"
  285.                             containment="http://home.netscape.com/NC-rdf#child"
  286.                             ref="urn:root" flags="dont-build-content"
  287.                             onselect="onselect_loadURI(this)">
  288.                         <template>
  289.                             <rule>
  290.                                 <conditions>
  291.                                     <content uri="?uri"/>
  292.                                     <member container="?uri"
  293.                                         child="?subheading"/>
  294.                                 </conditions>
  295.  
  296.                                 <bindings>
  297.                                     <binding subject="?subheading"
  298.                                         predicate="http://home.netscape.com/NC-rdf#name"
  299.                                         object="?name"/>
  300.                                 </bindings>
  301.  
  302.                                 <action>
  303.                                     <treechildren>
  304.                                         <treeitem uri="?subheading">
  305.                                             <treerow>
  306.                                                 <treecell label="?name"/>
  307.                                             </treerow>
  308.                                         </treeitem>
  309.                                     </treechildren>
  310.                                 </action>
  311.                             </rule>
  312.                         </template>
  313.  
  314.                         <treecols>
  315.                             <treecol id="ResultsColumn" flex="1"
  316.                                 hideheader="true" primary="true"
  317.                                 sortActive="true" sortDirection="ascending"
  318.                                 sort="?name"/>
  319.                         </treecols>
  320.                     </tree>
  321.                 </vbox>
  322.  
  323.                 <toolbarbutton id="help-toc-btn" class="box-texttab texttab-sidebar"
  324.                     label="&toctab.label;"
  325.                     oncommand="showPanel('help-toc')"
  326.                     accesskey="&toctab.accesskey;"/>
  327.                 <tree id="help-toc-panel" class="focusring"
  328.                         flex="1"  hidecolumnpicker="true"
  329.                         datasources="rdf:null"
  330.                         containment="http://home.netscape.com/NC-rdf#subheadings"
  331.                         ref="urn:root" flags="dont-build-content"
  332.                         onselect="onselect_loadURI(this)">
  333.                     <template>
  334.                         <rule>
  335.                             <conditions>
  336.                                 <content uri="?uri"/>
  337.                                 <triple subject="?uri"
  338.                                     predicate="http://home.netscape.com/NC-rdf#subheadings"
  339.                                     object="?subheadings"/>
  340.                                 <member container="?subheadings"
  341.                                     child="?subheading"/>
  342.                             </conditions>
  343.  
  344.                             <bindings>
  345.                                 <binding subject="?subheading"
  346.                                     predicate="http://home.netscape.com/NC-rdf#name"
  347.                                     object="?name"/>
  348.                             </bindings>
  349.  
  350.                             <action>
  351.                                 <treechildren>
  352.                                     <treeitem uri="?subheading">
  353.                                         <treerow>
  354.                                             <treecell label="?name"/>
  355.                                         </treerow>
  356.                                     </treeitem>
  357.                                 </treechildren>
  358.                             </action>
  359.                         </rule>
  360.                     </template>
  361.                     <treecols>
  362.                         <treecol id="NameColumn" flex="1" hideheader="true"
  363.                             primary="true"/>
  364.                     </treecols>
  365.                 </tree>
  366.  
  367.             </vbox>
  368.  
  369.             <splitter id="helpsidebar-splitter" collapse="before"
  370.                     persist="state hidden" autostretch="never" state="open">
  371.             </splitter>
  372.  
  373.             <vbox id="appcontent" flex="3">
  374.               <!-- type attribute is used by frame construction to locate
  375.                   iframes intended to hold (html) content -->
  376.               <browser context="contentAreaContextMenu"
  377.                   type="content-primary" id="help-content"
  378.                   src="about:blank" flex="1"/>
  379.     <toolbar id="FindToolbar" hidden="true" align="center" fullscreentoolbar="true">
  380.  
  381.       <toolbarbutton id="find-closebutton" class="tabs-closebutton" tooltiptext="&findCloseButton.tooltip;"
  382.                      oncommand="closeFindBar();"/>
  383.  
  384.       <label value="&find.label;"/>
  385.       <hbox id="find-field-container">
  386.         <textbox id="find-field" oninput="find(this.value);" onfocus="onFindBarFocus();"
  387.                 onkeypress="onFindBarKeyPress(event);" onblur="onFindBarBlur();"/>
  388.       </hbox>
  389.       <toolbarbutton id="find-next" class="toolbarbutton-1" label="&findNext.label;" tooltiptext="&findNext.tooltip;"
  390.                      oncommand="findNext();" disabled="true"/>
  391.  
  392.       <toolbarbutton id="find-previous" class="toolbarbutton-1" label="&findPrevious.label;" tooltiptext="&findPrevious.tooltip;"
  393.                      oncommand="findPrevious();" disabled="true"/>
  394.  
  395.       <toolbarbutton id="highlight" class="toolbarbutton-1" label="&highlight.label;" tooltiptext="&highlight.tooltip;"
  396.                      oncommand="toggleHighlight(!this.checked);
  397.                                 if (gFindMode != FIND_NORMAL) setFindCloseTimeout();"
  398.                      type="checkbox" disabled="true"/>
  399.  
  400.       <checkbox id="find-case-sensitive" oncommand="toggleCaseSensitivity(this.checked);"
  401.                 label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
  402.       <image id="find-status-icon"/>
  403.       <label id="find-status"/>
  404.     </toolbar>
  405.  
  406.             </vbox>
  407.         </hbox>
  408.     </vbox>
  409. </window>
  410.