home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / help.jar / content / help / help.xul < prev    next >
Extensible Markup Language  |  2003-06-07  |  15KB  |  361 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, false);" modifiers="accel"/>
  74.     <key id="key_findAgain"
  75.         key="&findAgainCmd.commandkey;" oncommand="find(true, false);" modifiers="accel"/>
  76.     <key id="key_findPrev"
  77.         key="&findPrevCmd.commandkey;" oncommand="find(true, true);" modifiers="accel, shift"/>
  78.     <key id="key_findAgain2" keycode="&findAgainCmd.commandkey2;" oncommand="find(true, false);" />
  79.     <key id="key_findPrev2"  keycode="&findPrevCmd.commandkey2;"  oncommand="find(true, true);"  modifiers="shift"/>
  80.     <key id="key_viewSource" key="&pageSourceCmd.commandkey;"
  81.         oncommand="BrowserViewSource();" modifiers="accel"/>
  82.     <key id="key_viewInfo" key="&pageInfoCmd.commandkey;"
  83.         oncommand="BrowserPageInfo();"   modifiers="accel"/>
  84.   </keyset>
  85.   <stringbundle id="bundle_viewZoom"/>
  86.   <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
  87.  
  88.   <vbox flex="1">
  89.  
  90.   <!-- button bar -->
  91.   <toolbox id="help-toolbox" class="toolbox-top" deferattached="true">
  92.     <toolbar id="helpToolbar" class="toolbar-primary"
  93.         grippytooltiptext="&toolbar.tooltip;"
  94.         tbalign="stretch" persist="collapsed">
  95.  
  96.         <toolbarbutton id="helpBackButton" type="menu-button" class="toolbarbutton-1"
  97.           label="&backBtn.label;" 
  98.           oncommand="if (event.target==this) goBack(); else gotoHistoryIndex(event);"
  99.           observes="canGoBack" context="backMenu"
  100.           tooltiptext="&backButton.tooltip;">
  101.           <menupopup context="" onpopupshowing="createBackMenu(event);"/>
  102.         </toolbarbutton>
  103.         <toolbarbutton id="helpForwardButton" type="menu-button" class="toolbarbutton-1"
  104.           label="&fwdBtn.label;" 
  105.           tooltiptext="&forwardButton.tooltip;"
  106.           oncommand="if (event.target==this) goForward(); else gotoHistoryIndex(event);"
  107.           observes="canGoForward" context="forwardMenu">
  108.           <menupopup context="" onpopupshowing="createForwardMenu(event);"/>
  109.         </toolbarbutton>
  110.         <toolbarbutton id="helpHomeButton" class="toolbarbutton-1"
  111.           label="&homeBtn.label;" oncommand="goHome();"
  112.           tooltiptext="&homeBtn.tooltip;"/>
  113.  
  114.         <spacer flex="1"/>
  115.  
  116.         <toolbarbutton id="print" class="toolbarbutton-1"
  117.           label="&printButton.label;" oncommand="print();"
  118.           tooltiptext="&printButton.tooltip;"/>
  119.       </toolbar>
  120.     </toolbox>
  121.  
  122.     <!-- the two help panes (sidebar & content) -->
  123.     <hbox flex="1">
  124.       <vbox id="helpsidebar-box" persist="width">
  125.  
  126.          <!-- glossary panel -->
  127.          <button id="help-glossary-btn" class="box-texttab texttab-sidebar"
  128.             label="&glossarytab.label;" oncommand="showPanel('help-glossary-tree')"/>
  129.          <tree id="help-glossary-tree" flex="1" hidecolumnpicker="true" hidden="true"
  130.                datasources="rdf:null"
  131.                containment="http://home.netscape.com/NC-rdf#subheadings"
  132.                ref="urn:root"
  133.                flags="dont-build-content"
  134.                onselect="onselect_loadURI(this, 'GlossaryNameColumn')">
  135.         <template>
  136.           <rule>
  137.           <conditions>
  138.             <treeitem uri="?uri"/>
  139.             <triple subject="?uri"
  140.               predicate="http://home.netscape.com/NC-rdf#subheadings"
  141.               object="?subheadings" />
  142.             <member container="?subheadings" child="?subheading"/>
  143.           </conditions>
  144.           <bindings>
  145.             <binding subject="?subheading"
  146.               predicate="http://home.netscape.com/NC-rdf#name"
  147.               object="?name" />
  148.  
  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.             <treecols>
  167.                <treecol id="GlossaryNameColumn" flex="1"
  168.                   hideheader="true"
  169.                   primary="true"/>
  170.             </treecols>
  171.          </tree>
  172.  
  173.      <!-- index panel -->
  174.          <button id="help-index-btn" class="box-texttab texttab-sidebar"
  175.             label="&indextab.label;"  oncommand="showPanel('help-index-tree');displayIndex();"/>
  176.  
  177.          <tree id="help-index-tree" flex="1"
  178.                datasources="rdf:null" hidecolumnpicker="true" hidden="true"
  179.                containment="http://home.netscape.com/NC-rdf#subheadings"
  180.                ref="urn:root"
  181.                flags="dont-build-content dont-test-empty"
  182.                onselect="onselect_loadURI(this, 'IndexNameColumn')">
  183.         <template>
  184.           <rule>
  185.           <conditions>
  186.             <treeitem uri="?uri"/>
  187.             <triple subject="?uri"
  188.               predicate="http://home.netscape.com/NC-rdf#subheadings"
  189.               object="?subheadings" />
  190.             <member container="?subheadings" child="?subheading"/>
  191.           </conditions>
  192.           <bindings>
  193.             <binding subject="?subheading"
  194.               predicate="http://home.netscape.com/NC-rdf#name"
  195.               object="?name" />
  196.  
  197.             <binding subject="?subheading"
  198.               predicate="http://home.netscape.com/NC-rdf#link"
  199.               object="?link" />
  200.           </bindings>
  201.  
  202.           <action>
  203.             <treechildren>
  204.               <treeitem uri="?subheading">
  205.                 <treerow>
  206.                   <treecell ref="IndexNameColumn" label="?name"
  207.                       properties="link-?link"/>
  208.                 </treerow>
  209.               </treeitem>
  210.             </treechildren>
  211.           </action>
  212.           </rule>
  213.         </template>
  214.             <treecols>
  215.                <treecol id="IndexNameColumn" flex="1"
  216.                   hideheader="true"
  217.                   primary="true"
  218.                   sortActive="true"
  219.                   sortDirection="ascending"
  220.                   sort="?name"/>
  221.             </treecols>
  222.          </tree>
  223.  
  224.      <!-- search panel -->
  225.      <button id="help-search-btn" class="box-texttab texttab-sidebar"
  226.              label="&searchtab.label;" oncommand="showPanel('help-search-panel')"/>
  227.  
  228.              <vbox id="help-search-panel" hidden="true" flex="1">
  229.                 <hbox align="center">
  230.                   <textbox id="findText" 
  231.                      flex="1" 
  232.                      oninput="doEnabling();"
  233.                      onkeypress="if (event.keyCode == KeyEvent.DOM_VK_ENTER || event.keyCode == KeyEvent.DOM_VK_RETURN) doFind();"/>
  234.  
  235.                   <button id="findButton" default="true" disabled="true" label="&gobtn.label;" oncommand="doFind()" flex="0"/>
  236.                 </hbox>
  237.                 <tree id="help-search-tree"
  238.                       flex="1" hidecolumnpicker="true"
  239.                       datasources="rdf:null"
  240.                       containment="http://home.netscape.com/NC-rdf#child"
  241.                       ref="urn:root"
  242.                       flags="dont-build-content"
  243.                       onselect="onselect_loadURI(this, 'ResultsColumn')">
  244.             <template>
  245.               <rule>
  246.                 <conditions>
  247.                   <treeitem uri="?uri"/>
  248.                   <member container="?uri" child="?subheading" />
  249.                 </conditions>
  250.  
  251.                 <bindings>
  252.                   <binding subject="?subheading"
  253.                    predicate="http://home.netscape.com/NC-rdf#name"
  254.                    object="?name" />
  255.                   <binding subject="?subheading"
  256.                    predicate="http://home.netscape.com/NC-rdf#link"
  257.                    object="?link" />
  258.                 </bindings>
  259.  
  260.                 <action>
  261.                   <treechildren>
  262.                     <treeitem uri="?subheading">
  263.                      <treerow>
  264.                       <treecell label="?name"
  265.                          properties="link-?link"/>
  266.                      </treerow>
  267.                     </treeitem>
  268.                   </treechildren>
  269.                 </action>
  270.               </rule>
  271.             </template>
  272.  
  273.                  <treecols>
  274.                     <treecol id="ResultsColumn" flex="1"
  275.                              hideheader="true" primary="true"
  276.                              sortActive="true"
  277.                              sortDirection="ascending"
  278.                              sort="?name"/>
  279.                  </treecols>
  280.           </tree>
  281.        </vbox>
  282.  
  283.        <!-- table of contents panel -->
  284.        <button id="help-toc-btn" class="box-texttab texttab-sidebar"
  285.           label="&toctab.label;" oncommand="showPanel('help-toc-tree')"/>
  286.           <tree id="help-toc-tree" flex="1"  hidecolumnpicker="true"
  287.                 datasources="rdf:null"
  288.                 containment="http://home.netscape.com/NC-rdf#subheadings"
  289.                 ref="urn:root"
  290.                 flags="dont-build-content"
  291.                 onselect="onselect_loadURI(this, 'NameColumn')">
  292.           <template>
  293.             <rule>
  294.               <conditions>
  295.                <treeitem uri="?uri"/>
  296.                <triple subject="?uri"
  297.                  predicate="http://home.netscape.com/NC-rdf#subheadings"
  298.                  object="?subheadings" />
  299.                <member container="?subheadings" child="?subheading"/>
  300.               </conditions>
  301.  
  302.               <bindings>
  303.                <binding subject="?subheading"
  304.                  predicate="http://home.netscape.com/NC-rdf#name"
  305.                  object="?name" />
  306.                <binding subject="?subheading"
  307.                  predicate="http://home.netscape.com/NC-rdf#link"
  308.                  object="?link" />
  309.               </bindings>
  310.  
  311.               <action>
  312.                 <treechildren>
  313.                   <treeitem uri="?subheading">
  314.                     <treerow>
  315.                       <treecell label="?name"
  316.                           properties="link-?link"/>
  317.                     </treerow>
  318.                   </treeitem>
  319.               </treechildren>
  320.             </action>
  321.           </rule>
  322.         </template>
  323.             <treecols>
  324.                <treecol id="NameColumn" flex="1"
  325.                         hideheader="true" primary="true"/>
  326.             </treecols>
  327.          </tree>
  328.  
  329.  
  330.  
  331.       </vbox>
  332.  
  333.       <splitter id="helpsidebar-splitter"
  334.           collapse="before"
  335.           persist="state hidden"
  336.           autostretch="never"
  337.           state="open">
  338.           <grippy/>
  339.       </splitter>
  340.  
  341.       <!-- this stuff lifted from navigator.xul -->
  342.       <vbox id="appcontent" flex="3">
  343.         <!-- this box is temporary, pending XBLified <browser> -->
  344.         <hbox id="browser" flex="1">
  345.           <!-- type attribute is used by frame construction to locate iframes
  346.                intended to hold (html) content -->
  347.           <browser context="contentAreaContextMenu" type="content-primary" id="help-content"
  348.               src="about:blank" flex="1"
  349.               ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);"
  350.               onclick="return contentAreaClick(event);"/>
  351.         </hbox>
  352.       </vbox>
  353.     </hbox>
  354.   </vbox>
  355. </window>
  356.  
  357.  
  358.  
  359.  
  360.  
  361.