home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / toolkit.jar / content / global / hiddenWindow.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-10-08  |  3.4 KB  |  84 lines

  1. <?xml version="1.0"?> 
  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-1999 Netscape Communications Corporation. All
  19. Rights Reserved.
  20.  
  21. Contributor(s): ______________________________________. -->
  22.  
  23. <?xul-overlay href="chrome://navigator/content/navigatorOverlay.xul"?>
  24. <?xul-overlay href="chrome://navigator/content/navExtraOverlay.xul"?>
  25.  
  26. <!-- hiddenwindow is a "minimal" XUL window intended for creating the,
  27.      er, hidden window.  This window is never shown, but on platforms
  28.      which leave the app running after the last (visible) window is shut
  29.      down, this window does hold a browser menubar.
  30.        Though this window looks a lot like navigator.xul, that xul
  31.      is unsuitable because it's subject to the whims of its associated
  32.      appcore, which among other things causes it to load content documents
  33.      undesirable for this window.
  34.        Arguably a simpler menu structure could be substituted, but
  35.      the full one was included for now in anticipation of the whole thing
  36.      becoming an included file someday. -->
  37.  
  38. <!-- Localizable string definitions from navigator.xul. -->
  39. <!DOCTYPE window [
  40. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  41. %brandDTD;
  42. <!ENTITY % buildDTD SYSTEM "chrome://global/content/build.dtd" >
  43. %buildDTD;
  44. <!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
  45. %navigatorDTD;
  46. <!ENTITY % mainWindowDTD SYSTEM "chrome://navigator/locale/mainWindow.dtd" >
  47. %mainWindowDTD;
  48. ]>
  49.  
  50. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  51.   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  52.   title="hidden"
  53.   titlemodifier="&mainWindow.titlemodifier;" 
  54.   titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
  55.   onload="hiddenWindowStartup();">
  56.  
  57.   <!-- JS from navigator.xul, to handle the menu commands -->
  58.   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  59.   <script type="application/x-javascript" src="chrome://navigator/content/navigator.js"/>
  60.  
  61.   <!-- keys are appended from the overlay -->
  62.   <keyset id="tasksKeys"/>
  63.   <keyset id="navKeys">
  64.     <key id="showHideSidebar"/>
  65.   </keyset>
  66.   
  67.   <!-- commands are appended from the overlay -->
  68.   <commandset id="tasksCommands"/>
  69.   <commandset id="globalEditMenuItems"/>
  70.   <commandset id="selectEditMenuItems"/>
  71.   <commandset id="undoEditMenuItems"/>
  72.   <commandset id="clipboardEditMenuItems"/>
  73.   <commandset id="commands"/>
  74.   
  75.   <broadcasterset id="navBroadcasters"/>
  76.  
  77.   <!-- it's the whole navigator.xul menubar! hidden windows need to
  78.        have a menubar for situations where they're the only window remaining
  79.        on a platform that wants to leave the app running, like the Mac.
  80.   -->
  81.   <menubar id="main-menubar"/>
  82.  
  83. </window>
  84.