home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / help.jar / content / help / help.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-08-10  |  9.3 KB  |  213 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" position="after_start" onpopupshowing="return createBackMenu(event);" oncommand="gotoHistoryIndex(event);"/>
  44.     <popup id="forwardMenu" position="after_start" onpopupshowing="return 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.         tbalign="stretch" 
  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="" onpopupshowing="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="" onpopupshowing="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.  
  120.     <!-- the two help panes (sidebar & content) -->
  121.     <hbox flex="1">
  122.  
  123.       <vbox id="helpsidebar-box">
  124.        <separator class="thin"/>
  125.         <tabbox orient="vertical" flex="1">
  126.           <tabs orient="horizontal">
  127.             <tab label="&tab1.label;"/>
  128.             <tab label="&tab2.label;"/>
  129.           </tabs>
  130.           <tabpanels flex="1">
  131.             <hbox id="help-toc">
  132.               <tree id="help-toc-tree" ref="urn:root" flex="1*"
  133.                     datasources="chrome://help/locale/help-toc.rdf"
  134.                     containment="http://home.netscape.com/NC-rdf#subheadings"
  135.                     onselect="loadURI(this.selectedItems[0].firstChild.firstChild.getAttribute('helplink'));">>
  136.                 <template>
  137.                   <rule>
  138.                     <conditions>
  139.                       <content uri="?uri"/>
  140.                       <triple subject="?uri"
  141.                               predicate="http://home.netscape.com/NC-rdf#subheadings"
  142.                               object="?subheadings" />
  143.                       <member container="?subheadings" child="?subheading"/>
  144.                     </conditions>
  145.                     <bindings>
  146.                       <binding subject="?subheading"
  147.                                predicate="http://home.netscape.com/NC-rdf#name"
  148.                                object="?name" />
  149.  
  150.                       <binding subject="?subheading"
  151.                                predicate="http://home.netscape.com/NC-rdf#link"
  152.                                object="?link" />
  153.                     </bindings>
  154.  
  155.                     <action>
  156.                       <treechildren>
  157.                         <treeitem uri="?subheading">
  158.                           <treerow>
  159.                             <treecell class="treecell-indent"
  160.                                       label="?name"
  161.                                       helplink="?link"/>
  162.                           </treerow>
  163.                         </treeitem>
  164.                       </treechildren>
  165.                     </action>
  166.                   </rule>
  167.                 </template>
  168.  
  169.                 <treecolgroup>
  170.                   <treecol flex="1*" />
  171.                 </treecolgroup>
  172.  
  173.                 <!-- because the outermost treechildren needs "flex='1'" -->
  174.                 <treechildren flex="1*"/>
  175.  
  176.               </tree>
  177.             </hbox>
  178.  
  179.             <hbox id="help-index">
  180.               <!-- right now this makes the toc as wide as the content area -->
  181.               <iframe flex="1" style="min-width: 0px; width: 0px;" 
  182.         src="chrome://help/locale/help_index.html" />
  183.             </hbox>
  184.  
  185.           </tabpanels>
  186.         </tabbox>
  187.       </vbox>
  188.  
  189.       <splitter id="helpsidebar-splitter"
  190.                 collapse="before"
  191.                 persist="state hidden"
  192.                 autostretch="never"
  193.                 orient="vertical"
  194.                 state="open">
  195.         <grippy/>
  196.       </splitter>
  197.  
  198.       <!-- this stuff lifted from navigator.xul -->
  199.       <vbox id="appcontent" flex="3">
  200.         <!-- this box is temporary, pending XBLified <browser> -->
  201.         <hbox id="browser" flex="1">
  202.           <!-- type attribute is used by frame construction to locate iframes
  203.                intended to hold (html) content -->
  204.           <browser context="contentAreaContextMenu" type="content-primary" id="help-content"
  205.                    src="about:blank" flex="1"
  206.                    ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);"
  207.                    onclick="return contentAreaClick(event);"/>
  208.         </hbox>
  209.       </vbox>
  210.     </hbox>
  211.   </vbox>
  212. </window>
  213.