home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2001 October / PCpro_2001_10.ISO / browser / netscape61 / N6SetupB.exe / bin / chrome / help.jar / content / help / help.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-05-19  |  5.7 KB  |  164 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.  
  7. <!DOCTYPE window [
  8. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  9. %brandDTD;
  10. <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd" >
  11. %helpDTD;
  12. ]>
  13.  
  14.  
  15. <window id="moz__help"
  16.         windowtype="mozilla:help"
  17.         xmlns:html="http://www.w3.org/TR/REC-html40"
  18.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  19.         title="&helpWin.ttl;"
  20.         width="640"
  21.         height="650"
  22.         persist="width height screenX screenY"
  23.         onload="init();" >
  24.  
  25.   <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  26.  
  27.   <box orient="vertical" flex="1">
  28.  
  29.     <!-- button bar -->
  30.     <toolbox id="help-toolbox" class="toolbox-top" deferattached="true">
  31.       <toolbar class="toolbar-primary" 
  32.     id="helpToolbar" 
  33.     grippytooltip="aTooltip" 
  34.     grippytooltiptext="The Help Toolbar"
  35.         tbautostretch="always" 
  36.     persist="collapsed">
  37.  
  38.         <button id="helpBackButton"
  39.                 class="button-toolbar-1 top"
  40.                 label="&backBtn.label;"
  41.                 tooltiptext="&backBtn.tooltip;"
  42.                 tooltip="aTooltip"
  43.                 oncommand="goBack();"/>
  44.         <button id="helpForwardButton"
  45.                 class="button-toolbar-1 top"
  46.                 label="&fwdBtn.label;"
  47.                 tooltiptext="&fwdBtn.tooltip;"
  48.                 tooltip="aTooltip"
  49.                 oncommand="goForward();"/>
  50.         <button id="helpHomeButton"
  51.                 class="button-toolbar-1 top"
  52.                 label="&homeBtn.label;"
  53.                 tooltiptext="&homeBtn.tooltip;"
  54.                 tooltip="aTooltip"
  55.                 oncommand="goHome();"/>
  56.  
  57.         <spring flex="1"/>
  58.  
  59.         <button class="button-toolbar" id="print" onclick="print()"/>
  60.  
  61.       </toolbar>
  62.     </toolbox>
  63.  
  64.     <separator class="groovy-thin"/>
  65.  
  66.     <!-- the two help panes (sidebar & content) -->
  67.     <box flex="1">
  68.  
  69.       <box id="helpsidebar-box" orient="vertical">
  70.  
  71.         <box orient="vertical" id="help-subset">
  72.           <!-- these we will want to clean up or style better -->
  73.       <text value="&t1.label;"/>
  74.           <text value="&t2.label;"/>
  75.           <text value="&t3.label;"/>
  76.         </box>
  77.  
  78.         <tabbox orient="vertical" flex="1">
  79.           <tabs orient="horizontal">
  80.             <tab label="&tab1.label;"/>
  81.             <tab label="&tab2.label;"/>
  82.           </tabs>
  83.           <tabpanels flex="1">
  84.             <box id="help-toc">
  85.               <tree id="help-toc-tree" ref="urn:root" flex="1*"
  86.                     datasources="chrome://help/locale/help-toc.rdf"
  87.                     containment="http://home.netscape.com/NC-rdf#subheadings">
  88.                 <template>
  89.                   <rule>
  90.                     <conditions>
  91.                       <content uri="?uri"/>
  92.                       <triple subject="?uri"
  93.                               predicate="http://home.netscape.com/NC-rdf#subheadings"
  94.                               object="?subheadings" />
  95.                       <member container="?subheadings" child="?subheading"/>
  96.                     </conditions>
  97.                     <bindings>
  98.                       <binding subject="?subheading"
  99.                                predicate="http://home.netscape.com/NC-rdf#name"
  100.                                object="?name" />
  101.  
  102.                       <binding subject="?subheading"
  103.                                predicate="http://home.netscape.com/NC-rdf#link"
  104.                                object="?link" />
  105.                     </bindings>
  106.  
  107.                     <action>
  108.                       <treechildren>
  109.                         <treeitem uri="?subheading">
  110.                           <treerow>
  111.                             <treecell class="treecell-indent"
  112.                                       label="?name"
  113.                                       helplink="?link"
  114.                                       onclick="loadURI(this.getAttribute('helplink'));"/>
  115.                           </treerow>
  116.                         </treeitem>
  117.                       </treechildren>
  118.                     </action>
  119.                   </rule>
  120.                 </template>
  121.  
  122.                 <treecolgroup>
  123.                   <treecol flex="1*" />
  124.                 </treecolgroup>
  125.  
  126.                 <!-- because the outermost treechildren needs "flex='1'" -->
  127.                 <treechildren flex="1*"/>
  128.  
  129.               </tree>
  130.             </box>
  131.  
  132.             <box id="help-index">
  133.               <!-- right now this makes the toc as wide as the content area -->
  134.               <iframe flex="1" style="min-width: 0px; width: 0px;" 
  135.         src="chrome://help/locale/help_index.html" />
  136.             </box>
  137.  
  138.           </tabpanels>
  139.         </tabbox>
  140.       </box>
  141.  
  142.       <splitter id="helpsidebar-splitter"
  143.                 collapse="before"
  144.                 persist="state hidden"
  145.                 autostretch="never"
  146.                 orient="vertical"
  147.                 state="open">
  148.         <grippy/>
  149.       </splitter>
  150.  
  151.       <!-- this stuff lifted from navigator.xul -->
  152.       <box id="appcontent" align="vertical" flex="3">
  153.         <!-- this box is temporary, pending XBLified <browser> -->
  154.         <box id="browser" flex="1">
  155.           <!-- type attribute is used by frame construction to locate iframes
  156.                intended to hold (html) content -->
  157.           <browser context="context" type="content-primary" id="help-content"
  158.                    src="about:blank" flex="1"/>
  159.         </box>
  160.       </box>
  161.     </box>
  162.   </box>
  163. </window>
  164.