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 / embed-sample.jar / content / embed / mini-nav.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  4KB  |  102 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
  2.  
  3. <!-- The contents of this file are subject to the Netscape Public
  4. License Version 1.1 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of
  6. the License at http://www.mozilla.org/NPL/
  7.  
  8. Software distributed under the License is distributed on an "AS
  9. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10. implied. See the License for the specific language governing
  11. rights and limitations under the License.
  12.  
  13. The Original Code is Mozilla Communicator client code, released
  14. March 31, 1998.
  15.  
  16. The Initial Developer of the Original Code is Netscape
  17. Communications Corporation. Portions created by Netscape are
  18. Copyright (C) 1998-2000 Netscape Communications Corporation. All
  19. Rights Reserved.
  20.  
  21. Contributor(s): ______________________________________. -->
  22.  
  23. <?xml-stylesheet href="chrome://embed/content/embedding.css" type="text/css"?> 
  24. <?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
  25.  
  26.  
  27. <!DOCTYPE window [
  28. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  29. %brandDTD;
  30. <!ENTITY % embeddingDTD SYSTEM "chrome://embed/locale/embedding.dtd" >
  31. %embeddingDTD;
  32. ]>
  33.  
  34. <window id="main-window"
  35.   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  36.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  37.   orient="vertical"
  38.   title="Embedding"
  39.   onload="MiniNavStartup()"
  40.   onunload="MiniNavShutdown()">
  41.  
  42.   <script type="application/x-javascript" src="chrome://embed/content/mini-nav.js"/>
  43.  
  44.   <!-- Context menu -->
  45.   <popupset>
  46.     <popup id="context" oncreate="InitContextMenu(this)">
  47.       <menuitem id="context-back" label="&backCmd.label;"
  48.           accesskey="" oncommand="BrowserBack()"/>
  49.       <menuitem id="context-forward" label="&forwardCmd.label;"
  50.           accesskey="" oncommand="BrowserForward()"/>
  51.       <menuitem id="context-stop" label="&stopCmd.label;"
  52.           accesskey="" oncommand="BrowserStop()"/>
  53.       <menuitem id="context-reload" label="&reloadCmd.label;"
  54.           accesskey="" oncommand="BrowserReload()"/>
  55.       
  56.       <!-- The following DEBUG MENU ITEMS can be removed -->
  57.       <menuseparator/>
  58.       <menu label="Debug">
  59.         <menupopup>
  60.           <menuitem id="command-handler" label="CommandHandler::Exec" oncommand="CHExecTest()"/>
  61.           <menuitem id="command-handler" label="CommandHandler::Query" oncommand="CHQueryTest()"/>
  62.         </menupopup>
  63.       </menu>
  64.       <!-- End DEBUG MENU ITEMS -->
  65.  
  66.     </popup>
  67.   </popupset>
  68.  
  69.   <!-- Embedding apps probably don't need a toolbar, but it's useful
  70.        for embedding -->
  71.   <toolbox>
  72.     <toolbar id="nav-bar">
  73.       <hbox id="nav-bar-inner" autostretch="never" flex="1" style="min-width: 0px;">
  74.         <button id="back-button" crop="right" onclick="BrowserBack()" label="&backButton.label;"/>  
  75.         <button id="forward-button" crop="right" onclick="BrowserForward()" label="&forwardButton.label;"/>  
  76.         <button id="reload-button" crop="right" onclick="BrowserReload()" label="&reloadButton.label;"/>
  77.         <button id="stop-button" crop="right" onclick="BrowserStop()" label="&stopButton.label;"/>
  78.         <hbox class="box-toolbar-group" flex="1">
  79.           <hbox autostretch="never" valign="middle" flex="1">
  80.             <textbox autocomplete="true" timeout="300"
  81.                               searchSessionType="urlbar" id="urlbar"
  82.                        onkeypress="if( event.keyCode == 13 ) { BrowserLoadURL(); }"/>  
  83.           </hbox>
  84.         </hbox>
  85.       </hbox>
  86.     </toolbar>
  87.   </toolbox>
  88.  
  89.   <hbox flex="1" >
  90.     <hbox id="appcontent" flex="100%">
  91.       <!-- this box is temporary, pending XBLified <browser> -->
  92.       <hbox id="browser" context="context" flex="1">
  93.         <!-- type attribute is used by frame construction to locate iframes
  94.              intended to hold (html) content -->
  95.         <browser context="context" type="content-primary" id="content"
  96.                  src="about:blank" flex="1"/>
  97.       </hbox>
  98.     </hbox>
  99.   </hbox>
  100.  
  101. </window>
  102.