home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / 01_03.iso / software / ghostzilla_hit / files / ghostzilla-1.0-plus-install.exe / chrome / help.jar / content / help / help.xul < prev    next >
Encoding:
Extensible Markup Language  |  2002-04-09  |  13.6 KB  |  348 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="650"
  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.      <button id="help-search-btn" class="box-texttab texttab-sidebar"
  122.              label="&searchtab.label;" oncommand="showPanel('help-search-panel')"/>
  123.              <vbox id="help-search-panel" hidden="true" flex="1">
  124.                 <hbox>
  125.                   <textbox id="findText" 
  126.                      flex="1" 
  127.                      onkeydown="if (event.keyCode == KeyEvent.DOM_VK_ENTER || event.keyCode == KeyEvent.DOM_VK_RETURN) doFind();"/>
  128.  
  129.                   <button id="findButton" label="&gobtn.label;" oncommand="doFind()" flex="0"/>
  130.                 </hbox>
  131.                 <tree id="help-search-tree"
  132.                       flex="1" hidecolumnpicker="true"
  133.                       datasources="rdf:null"
  134.                       containment="http://home.netscape.com/NC-rdf#child"
  135.                       ref="urn:root"
  136.                       flags="dont-build-content"
  137.                       onselect="onselect_loadURI(this, 'ResultsColumn')">
  138.             <template>
  139.               <rule>
  140.                 <conditions>
  141.                   <treeitem uri="?uri"/>
  142.                   <member container="?uri" child="?subheading" />
  143.                 </conditions>
  144.  
  145.                 <bindings>
  146.                   <binding subject="?subheading"
  147.                    predicate="http://home.netscape.com/NC-rdf#name"
  148.                    object="?name" />
  149.                   <binding subject="?subheading"
  150.                    predicate="http://home.netscape.com/NC-rdf#link"
  151.                    object="?link" />
  152.                 </bindings>
  153.  
  154.                 <action>
  155.                   <treechildren>
  156.                     <treeitem uri="?subheading">
  157.                      <treerow>
  158.                       <treecell label="?name"
  159.                          properties="link-?link"/>
  160.                      </treerow>
  161.                     </treeitem>
  162.                   </treechildren>
  163.                 </action>
  164.               </rule>
  165.             </template>
  166.  
  167.                  <treecols>
  168.                     <treecol id="ResultsColumn" flex="1"
  169.                              hideheader="true" primary="true"
  170.                              sortActive="true"
  171.                              sortDirection="ascending"
  172.                              sort="?name"/>
  173.                  </treecols>
  174.           </tree>
  175.        </vbox>
  176.  
  177.        <button id="help-toc-btn" class="box-texttab texttab-sidebar"
  178.           label="&toctab.label;" oncommand="showPanel('help-toc-tree')"/>
  179.           <tree id="help-toc-tree" flex="1"  hidecolumnpicker="true"
  180.                 datasources="rdf:null"
  181.                 containment="http://home.netscape.com/NC-rdf#subheadings"
  182.                 ref="urn:root"
  183.                 flags="dont-build-content"
  184.                 onselect="onselect_loadURI(this, 'NameColumn')">
  185.           <template>
  186.             <rule>
  187.               <conditions>
  188.                <treeitem uri="?uri"/>
  189.                <triple subject="?uri"
  190.                  predicate="http://home.netscape.com/NC-rdf#subheadings"
  191.                  object="?subheadings" />
  192.                <member container="?subheadings" child="?subheading"/>
  193.               </conditions>
  194.  
  195.               <bindings>
  196.                <binding subject="?subheading"
  197.                  predicate="http://home.netscape.com/NC-rdf#name"
  198.                  object="?name" />
  199.                <binding subject="?subheading"
  200.                  predicate="http://home.netscape.com/NC-rdf#link"
  201.                  object="?link" />
  202.               </bindings>
  203.  
  204.               <action>
  205.                 <treechildren>
  206.                   <treeitem uri="?subheading">
  207.                     <treerow>
  208.                       <treecell label="?name"
  209.                           properties="link-?link"/>
  210.                     </treerow>
  211.                   </treeitem>
  212.               </treechildren>
  213.             </action>
  214.           </rule>
  215.         </template>
  216.             <treecols>
  217.                <treecol id="NameColumn" flex="1"
  218.                         hideheader="true" primary="true"/>
  219.             </treecols>
  220.          </tree>
  221.  
  222.          <button id="help-index-btn" class="box-texttab texttab-sidebar"
  223.             label="&indextab.label;"  oncommand="showPanel('help-index-tree');displayIndex();"/>
  224.  
  225.          <tree id="help-index-tree" flex="1"
  226.                datasources="rdf:null" hidecolumnpicker="true" hidden="true"
  227.                containment="http://home.netscape.com/NC-rdf#subheadings"
  228.                ref="urn:root"
  229.                flags="dont-build-content dont-test-empty"
  230.                onselect="onselect_loadURI(this, 'IndexNameColumn')">
  231.         <template>
  232.           <rule>
  233.           <conditions>
  234.             <treeitem uri="?uri"/>
  235.             <triple subject="?uri"
  236.               predicate="http://home.netscape.com/NC-rdf#subheadings"
  237.               object="?subheadings" />
  238.             <member container="?subheadings" child="?subheading"/>
  239.           </conditions>
  240.           <bindings>
  241.             <binding subject="?subheading"
  242.               predicate="http://home.netscape.com/NC-rdf#name"
  243.               object="?name" />
  244.  
  245.             <binding subject="?subheading"
  246.               predicate="http://home.netscape.com/NC-rdf#link"
  247.               object="?link" />
  248.           </bindings>
  249.  
  250.           <action>
  251.             <treechildren>
  252.               <treeitem uri="?subheading">
  253.                 <treerow>
  254.                   <treecell ref="IndexNameColumn" label="?name"
  255.                       properties="link-?link"/>
  256.                 </treerow>
  257.               </treeitem>
  258.             </treechildren>
  259.           </action>
  260.           </rule>
  261.         </template>
  262.             <treecols>
  263.                <treecol id="IndexNameColumn" flex="1"
  264.                   hideheader="true"
  265.                   primary="true"
  266.                   sortActive="true"
  267.                   sortDirection="ascending"
  268.                   sort="?name"/>
  269.             </treecols>
  270.          </tree>
  271.  
  272.          <button id="help-glossary-btn" class="box-texttab texttab-sidebar"
  273.             label="&glossarytab.label;" oncommand="showPanel('help-glossary-tree')"/>
  274.          <tree id="help-glossary-tree" flex="1" hidecolumnpicker="true" hidden="true"
  275.                datasources="rdf:null"
  276.                containment="http://home.netscape.com/NC-rdf#subheadings"
  277.                ref="urn:root"
  278.                flags="dont-build-content"
  279.                onselect="onselect_loadURI(this, 'GlossaryNameColumn')">
  280.         <template>
  281.           <rule>
  282.           <conditions>
  283.             <treeitem uri="?uri"/>
  284.             <triple subject="?uri"
  285.               predicate="http://home.netscape.com/NC-rdf#subheadings"
  286.               object="?subheadings" />
  287.             <member container="?subheadings" child="?subheading"/>
  288.           </conditions>
  289.           <bindings>
  290.             <binding subject="?subheading"
  291.               predicate="http://home.netscape.com/NC-rdf#name"
  292.               object="?name" />
  293.  
  294.             <binding subject="?subheading"
  295.               predicate="http://home.netscape.com/NC-rdf#link"
  296.               object="?link" />
  297.           </bindings>
  298.  
  299.           <action>
  300.             <treechildren>
  301.               <treeitem uri="?subheading">
  302.                 <treerow>
  303.                   <treecell label="?name"
  304.                     properties="link-?link"/>
  305.                 </treerow>
  306.               </treeitem>
  307.             </treechildren>
  308.           </action>
  309.           </rule>
  310.         </template>
  311.             <treecols>
  312.                <treecol id="GlossaryNameColumn" flex="1"
  313.                   hideheader="true"
  314.                   primary="true"/>
  315.             </treecols>
  316.          </tree>
  317.  
  318.       </vbox>
  319.  
  320.       <splitter id="helpsidebar-splitter"
  321.           collapse="before"
  322.           persist="state hidden"
  323.           autostretch="never"
  324.           state="open">
  325.           <grippy/>
  326.       </splitter>
  327.  
  328.       <!-- this stuff lifted from navigator.xul -->
  329.       <vbox id="appcontent" flex="3">
  330.         <!-- this box is temporary, pending XBLified <browser> -->
  331.         <hbox id="browser" flex="1">
  332.           <!-- type attribute is used by frame construction to locate iframes
  333.                intended to hold (html) content -->
  334.           <browser context="contentAreaContextMenu" type="content-primary" id="help-content"
  335.               src="about:blank" flex="1"
  336.               ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);"
  337.               onclick="return contentAreaClick(event);"/>
  338.         </hbox>
  339.       </vbox>
  340.     </hbox>
  341.   </vbox>
  342. </window>
  343.  
  344.  
  345.  
  346.  
  347.  
  348.