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 / comm.jar / content / navigator / linkToolbarOverlay.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  9KB  |  197 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is Eric Hodel's <drbrain@segment7.net> code.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - Eric Hodel.
  19.    - Portions created by the Initial Developer are Copyright (C) 2001
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -      Christopher Hoess <choess@force.stwing.upenn.edu>
  24.    -      Tim Taylor <tim@tool-man.org>
  25.    -      Stuart Ballard <sballard@netreach.net>
  26.    -
  27.    - Alternatively, the contents of this file may be used under the terms of
  28.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  29.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30.    - in which case the provisions of the GPL or the LGPL are applicable instead
  31.    - of those above. If you wish to allow use of your version of this file only
  32.    - under the terms of either the GPL or the LGPL, and not to allow others to
  33.    - use your version of this file under the terms of the MPL, indicate your
  34.    - decision by deleting the provisions above and replace them with the notice
  35.    - and other provisions required by the LGPL or the GPL. If you do not delete
  36.    - the provisions above, a recipient may use your version of this file under
  37.    - the terms of any one of the MPL, the GPL or the LGPL.
  38.    -
  39.    - ***** END LICENSE BLOCK ***** -->
  40.  
  41. <?xml-stylesheet href="chrome://navigator/skin/linkToolbar.css" type="text/css"?> 
  42. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  43. <!DOCTYPE overlay SYSTEM "chrome://navigator/locale/linkToolbar.dtd">
  44.  
  45. <overlay id="linkToolbarOverlay" 
  46.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  47.          xmlns:rdf="http://www.mozilla.org/rdf">
  48.  
  49.   <!-- classes -->
  50.   <script type="application/x-javascript" src="chrome://navigator/content/linkToolbarHandler.js" />
  51.   <script type="application/x-javascript" src="chrome://navigator/content/linkToolbarItem.js" />
  52.   <script type="application/x-javascript" src="chrome://navigator/content/languageDictionary.js" />
  53.  
  54.   <!-- functions -->
  55.   <script type="application/x-javascript" src="chrome://navigator/content/linkToolbarOverlay.js" />
  56.  
  57.   <script type="application/x-javascript">
  58.     <![CDATA[
  59.       document.addEventListener("load", linkToolbarUI.initHandlers, true);
  60.     ]]>
  61.   </script>
  62.  
  63.   <menupopup id="view_toolbars_popup">
  64.     <menu label="&linkToolbar.label;" position="3"
  65.           accesskey="&linkToolbar.accesskey;"
  66.           oncommand="linkToolbarUI.toggleLinkToolbar(event.target)"
  67.           onpopupshowing="linkToolbarUI.initLinkbarVisibilityMenu()">
  68.       <menupopup>
  69.         <menuitem label="&linkToolbarAlways.label;"
  70.                   accesskey="&linkToolbarAlways.accesskey;"
  71.                   class="menuitem-iconic" type="radio" value="false"
  72.                   name="cmd_viewlinktoolbar" id="cmd_viewlinktoolbar_false" />
  73.         <menuitem label="&linkToolbarAsNeeded.label;"
  74.                   accesskey="&linkToolbarAsNeeded.accesskey;"
  75.                   class="menuitem-iconic" type="radio" value="maybe"
  76.                   name="cmd_viewlinktoolbar" id="cmd_viewlinktoolbar_maybe" />
  77.         <menuitem label="&linkToolbarNever.label;"
  78.                   accesskey="&linkToolbarNever.accesskey;"
  79.                   class="menuitem-iconic" type="radio" value="true"
  80.                   name="cmd_viewlinktoolbar" id="cmd_viewlinktoolbar_true" />
  81.       </menupopup>
  82.     </menu>
  83.   </menupopup>
  84.  
  85.   <toolbox id="navigator-toolbox">
  86.     <toolbar id="linktoolbar" class="chromeclass-directories"
  87.         oncommand="event.preventBubble(); return linkToolbarUI.commanded(event);"
  88.         tbautostretch="always" hidden="true" hasitems="false">
  89.  
  90.       <toolbarbutton id="link-top" class="bookmark-item"
  91.           label="&topButton.label;" disabled="true"/>
  92.  
  93.       <toolbarbutton id="link-up" class="bookmark-item"
  94.           label="&upButton.label;" disabled="true"/>
  95.  
  96.       <toolbarseparator />
  97.  
  98.       <toolbarbutton id="link-first" class="bookmark-item" 
  99.           label="&firstButton.label;" disabled="true"/>
  100.  
  101.       <toolbarbutton id="link-prev" class="bookmark-item" 
  102.           label="&prevButton.label;" disabled="true"/>
  103.  
  104.       <toolbarbutton id="link-next" class="bookmark-item" 
  105.           label="&nextButton.label;" disabled="true"/>
  106.  
  107.       <toolbarbutton id="link-last" class="bookmark-item" 
  108.           label="&lastButton.label;" disabled="true"/>
  109.  
  110.       <toolbarseparator />
  111.  
  112.       <toolbarbutton id="document-menu" class="bookmark-item" 
  113.           type="menu"
  114.           container="true"
  115.           label="&documentButton.label;" disabled="true">
  116.         <menupopup id="document-menu-popup">
  117.  
  118.           <menuitem id="link-toc" label="&tocButton.label;" disabled="true" 
  119.               class="menuitem-iconic bookmark-item"
  120.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type" />
  121.           <menu id="link-chapter" label="&chapterButton.label;" disabled="true" 
  122.               class="menu-iconic bookmark-item" container="true"
  123.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  124.             <menupopup id="link-chapter-popup" />
  125.           </menu>
  126.           <menu id="link-section" label="§ionButton.label;" disabled="true"  
  127.               class="menu-iconic bookmark-item" container="true"
  128.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  129.             <menupopup id="link-section-popup" />
  130.           </menu>
  131.           <menu id="link-subsection" label="&subSectionButton.label;" disabled="true"  
  132.               class="menu-iconic bookmark-item" container="true"
  133.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  134.             <menupopup id="link-subsection-popup" />
  135.           </menu>
  136.           <menu id="link-appendix" label="&appendixButton.label;" disabled="true"  
  137.               class="menu-iconic bookmark-item" container="true"
  138.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  139.             <menupopup id="link-appendix-popup" />
  140.           </menu>
  141.           <menuitem id="link-glossary" label="&glossaryButton.label;" disabled="true" 
  142.               class="menuitem-iconic bookmark-item"
  143.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type" />
  144.           <menuitem id="link-index" label="&indexButton.label;" disabled="true" 
  145.               class="menuitem-iconic bookmark-item"
  146.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type" />
  147.  
  148.         </menupopup>
  149.       </toolbarbutton>
  150.  
  151.       <toolbarbutton id="more-menu" class="bookmark-item" 
  152.           type="menu"
  153.           container="true"
  154.           label="&moreButton.label;" disabled="true">
  155.         <menupopup id="more-menu-popup">
  156.  
  157.           <menuitem id="link-help" label="&helpButton.label;" disabled="true"
  158.               class="menuitem-iconic bookmark-item"
  159.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type" />
  160.           <menuitem id="link-search" label="&searchButton.label;" disabled="true"
  161.               class="menuitem-iconic bookmark-item"
  162.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type" />
  163.  
  164.           <menuseparator />
  165.  
  166.           <menuitem id="link-author" label="&authorButton.label;" disabled="true"
  167.               class="menuitem-iconic bookmark-item"
  168.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type" />
  169.           <menuitem id="link-copyright" label="©rightButton.label;" disabled="true" 
  170.               class="menuitem-iconic bookmark-item"
  171.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type" />
  172.  
  173.           <menuseparator />
  174.  
  175.           <menu id="link-bookmark" label="&bookmarkButton.label;" disabled="true"  
  176.               class="menu-iconic bookmark-item" container="true"
  177.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  178.             <menupopup id="link-bookmark-popup" />
  179.           </menu>
  180.  
  181.           <menuseparator />
  182.  
  183.           <menu id="link-alternate" label="&alternateButton.label;" disabled="true"  
  184.               class="menu-iconic bookmark-item" container="true"
  185.               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  186.             <menupopup id="link-alternate-popup" />
  187.           </menu>
  188.  
  189.           <menuseparator collapsed="true" id="misc-separator" />
  190.  
  191.         </menupopup>
  192.       </toolbarbutton>
  193.  
  194.     </toolbar>
  195.   </toolbox>
  196. </overlay>
  197.