home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha Extra 2002 March / CMYCHA200203_EXTRA_broken.iso / Przegladarki / NetscapeSetupB.exe / bin / chrome / help.jar / content / help / help.xul < prev   
Extensible Markup Language  |  2002-07-30  |  14KB  |  356 lines

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