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