home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 November / november_2001.iso / Browsers / Netscape 6.1 / browser.xpi / bin / chrome / help.jar / content / help / help.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-07-15  |  9.2 KB  |  212 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://communicator/skin/help.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://navigator/skin" type="text/css"?>
  5. <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
  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://communicator/content/viewZoomOverlay.xul"?>
  10. <?xul-overlay href="chrome://navigator/content/platformNavigationBindings.xul"?>
  11.  
  12. <!DOCTYPE window [
  13. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  14. %brandDTD;
  15. <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd" >
  16. %helpDTD;
  17. <!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
  18. %navigatorDTD;
  19. ]>
  20.  
  21.  
  22. <window id="moz__help"
  23.         windowtype="mozilla:help"
  24.         xmlns:html="http://www.w3.org/TR/REC-html40"
  25.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  26.         title="&helpWin.ttl;"
  27.         width="640"
  28.         height="650"
  29.         persist="width height screenX screenY"
  30.         onload="init();" >
  31.  
  32.   <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  33.   <script type="application/x-javascript" src="chrome://navigator/content/sessionHistoryUI.js"/>
  34.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  35.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
  36.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  37.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaClick.js"/>
  38.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksOverlay.js"/>
  39.   <script type="application/x-javascript" src="chrome://communicator/content/findUtils.js"/>
  40.   <script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
  41.  
  42.   <popupset id="aTooltipSet">
  43.     <popup id="backMenu" oncreate="createBackMenu(event);" oncommand="gotoHistoryIndex(event);"/>
  44.     <popup id="forwardMenu" oncreate="createForwardMenu(event);" oncommand="gotoHistoryIndex(event);"/>
  45.   </popupset>
  46.   <popupset id="contentAreaContextSet"/>
  47.   <broadcasterset id="helpBroadcasters">
  48.     <broadcaster id="canGoBack"    disabled="true"/>
  49.     <broadcaster id="canGoForward" disabled="true"/>
  50.   </broadcasterset>
  51.   <commandset id="globalEditMenuItems"/>
  52.   <commandset id="selectEditMenuItems">
  53.     <command id="cmd_undo"/>
  54.     <command id="cmd_redo"/>
  55.     <command id="cmd_cut"/>
  56.     <command id="cmd_copy"/>
  57.     <command id="cmd_paste"/>
  58.     <command id="cmd_delete"/>
  59.     <command id="cmd_selectAll"/>
  60.     <command id="cmd_close" oncommand="close();"/>
  61.     <command id="Browser:Home"    oncommand="goHome();"/>
  62.     <command id="Browser:Back"    oncommand="goBack();"    observes="canGoBack"/>
  63.     <command id="Browser:Forward" oncommand="goForward();" observes="canGoForward"/>
  64.     <command id="cmd_copyLink"/>
  65.     <command id="cmd_copyImageLocation"/>
  66.     <command id="cmd_copyImageContents"/>
  67.   </commandset>
  68.   <commandset id="clipboardEditMenuItems"/>
  69.   <commandset id="viewZoomCommands"/>
  70.   <keyset id="keys">
  71.     <key id="key_close"/>
  72.     <key id="printKb" key="&printCmd.commandkey;" oncommand="print();" modifiers="accel"/>
  73.     <keyset id="viewZoomKeys"/>
  74.     <keyset id="navigationKeys"/>
  75.     <key id="key_find"              key="&findOnCmd.commandkey;" oncommand="find(false);" modifiers="accel"/>
  76.     <key id="key_findAgain"         key="&findAgainCmd.commandkey;" oncommand="find(true);" modifiers="accel"/>    
  77.     <key id="key_viewSource" key="&pageSourceCmd.commandkey;" oncommand="BrowserViewSource();" modifiers="accel"/>
  78.     <key id="key_viewInfo"   key="&pageInfoCmd.commandkey;"   oncommand="BrowserPageInfo();"   modifiers="accel"/>
  79.   </keyset>
  80.   <stringbundle id="bundle_viewZoom"/>
  81.   <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
  82.  
  83.   <vbox flex="1">
  84.  
  85.     <!-- button bar -->
  86.     <toolbox id="help-toolbox" class="toolbox-top" deferattached="true">
  87.       <toolbar class="toolbar-primary" 
  88.     id="helpToolbar" 
  89.     grippytooltip="aTooltip" 
  90.     grippytooltiptext="The Help Toolbar"
  91.         tbautostretch="always" 
  92.     persist="collapsed">
  93.  
  94.         <menubutton id="helpBackButton" label="&backBtn.label;" tooltiptext="&backButton.tooltip;"
  95.                     oncommand="gotoHistoryIndex(event);" buttonaction="goBack();" context="backMenu"
  96.                     class="menubutton-dual top" crop="right" tooltip="aTooltip" observes="canGoBack">  
  97.           <menupopup context="" oncreate="createBackMenu(event);"/>
  98.         </menubutton>
  99.         <menubutton id="helpForwardButton" label="&fwdBtn.label;" tooltiptext="&forwardButton.tooltip;"
  100.                     oncommand="gotoHistoryIndex(event);" buttonaction="goForward();" context="forwardMenu"
  101.                     class="menubutton-dual top" crop="right" tooltip="aTooltip" observes="canGoForward">
  102.           <menupopup context="" oncreate="createForwardMenu(event);"/>
  103.         </menubutton>
  104.         <button id="helpHomeButton"
  105.                 class="button-toolbar-1 top"
  106.                 label="&homeBtn.label;"
  107.                 tooltiptext="&homeBtn.tooltip;"
  108.                 tooltip="aTooltip"
  109.                 oncommand="goHome();"/>
  110.  
  111.         <spring flex="1"/>
  112.  
  113.         <button id="print" class="button-toolbar-1 top" label="&printButton.label;"
  114.                 tooltip="aTooltip" tooltiptext="&printButton.tooltip;" oncommand="print();"/>
  115.  
  116.       </toolbar>
  117.     </toolbox>
  118.  
  119.     <!-- the two help panes (sidebar & content) -->
  120.     <hbox flex="1">
  121.  
  122.       <vbox id="helpsidebar-box">
  123.         <separator class="thin"/>
  124.         <tabbox orient="vertical" flex="1">
  125.           <tabs orient="horizontal">
  126.             <tab label="&tab1.label;"/>
  127.             <tab label="&tab2.label;"/>
  128.           </tabs>
  129.           <tabpanels flex="1">
  130.             <box id="help-toc">
  131.               <tree id="help-toc-tree" ref="urn:root" flex="1*"
  132.                     datasources="chrome://help/locale/help-toc.rdf"
  133.                     containment="http://home.netscape.com/NC-rdf#subheadings"
  134.                     onselect="loadURI(this.selectedItems[0].firstChild.firstChild.getAttribute('helplink'));">
  135.                 <template>
  136.                   <rule>
  137.                     <conditions>
  138.                       <content 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 class="treecell-indent"
  159.                                       label="?name"
  160.                                       helplink="?link"/>
  161.                           </treerow>
  162.                         </treeitem>
  163.                       </treechildren>
  164.                     </action>
  165.                   </rule>
  166.                 </template>
  167.  
  168.                 <treecolgroup>
  169.                   <treecol flex="1*" />
  170.                 </treecolgroup>
  171.  
  172.                 <!-- because the outermost treechildren needs "flex='1'" -->
  173.                 <treechildren flex="1*"/>
  174.  
  175.               </tree>
  176.             </box>
  177.  
  178.             <box id="help-index">
  179.               <!-- right now this makes the toc as wide as the content area -->
  180.               <iframe flex="1" style="min-width: 0px; width: 0px;" 
  181.         src="chrome://help/locale/help_index.html" />
  182.             </box>
  183.  
  184.           </tabpanels>
  185.         </tabbox>
  186.       </vbox>
  187.  
  188.       <splitter id="helpsidebar-splitter"
  189.                 collapse="before"
  190.                 persist="state hidden"
  191.                 autostretch="never"
  192.                 orient="vertical"
  193.                 state="open">
  194.         <grippy/>
  195.       </splitter>
  196.  
  197.       <!-- this stuff lifted from navigator.xul -->
  198.       <vbox id="appcontent" flex="3">
  199.         <!-- this box is temporary, pending XBLified <browser> -->
  200.         <hbox id="browser" flex="1">
  201.           <!-- type attribute is used by frame construction to locate iframes
  202.                intended to hold (html) content -->
  203.           <browser context="contentAreaContextMenu" type="content-primary" id="help-content"
  204.                    src="about:blank" flex="1"
  205.                    ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);"
  206.                    onclick="return contentAreaClick(event);"/>
  207.         </hbox>
  208.       </vbox>
  209.     </hbox>
  210.   </vbox>
  211. </window>
  212.