home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / browser.jar / content / browser / titlebarOverlay.xul < prev    next >
Extensible Markup Language  |  2005-09-26  |  32KB  |  541 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE window [
  4. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  5. %brandDTD;
  6. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  7. %browserDTD;
  8. <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
  9. %globalRegionDTD;
  10. <!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
  11. %charsetDTD;
  12. <!ENTITY % findDTD SYSTEM "chrome://global/locale/finddialog.dtd" >
  13. %findDTD;
  14. <!ENTITY % multibarDTD SYSTEM "chrome://global/locale/multibar.dtd" >
  15. %multibarDTD;
  16. <!ENTITY % tabBrowserDTD SYSTEM "chrome://global/locale/tabbrowser.dtd" >
  17. %tabBrowserDTD;
  18. ]>
  19.  
  20.  
  21. <overlay id="titlebarOverlay"
  22.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  23.          xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  24.  
  25. <window id="main-window" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  26.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  27.  
  28.     <script type="application/x-javascript" src="chrome://browser/content/titlebar.js"
  29.             insertbefore="mainPopupSet"/>
  30.  
  31.   <stack id="topstack">
  32.    <vbox id="topbox">
  33.     <toolbar id="titlebar" insertbefore="navigator-toolbox"
  34.              customizable="false" iconsize="small"
  35.              context="toolbar-context-menu"
  36.              onmouseover="titlebar.onmouseover(event);"
  37.              onmousemove="titlebar.onmousemove(event);">
  38. <!--             onmouseout="titlebar.onmouseout(event);">-->
  39.  
  40.         <hbox id="titlebar-container" flex="1" style="overflow: hidden;">
  41.             <spacer class="titlebar-left-margin"/>
  42.             <!-- Page title -->
  43.             <titlebar flex="1"
  44.                       ondblclick="BrowserToggleMaximize();">
  45.                 <label id="titlebar-title" flex="1" crop="right"/>
  46.                 <hbox id="titlebar-separator"/>
  47.             </titlebar>
  48.  
  49.             <!-- Menus -->
  50.             <stack id="titlebar-menu-stack" class="titlebar-menu-stack">
  51.                 <toolbaritem id="menubar-items" class="chromeclass-menubar" align="center">
  52.  
  53.        <menubar id="main-menubar" statusbar="statusbar-display"
  54.                 style="border:0px;padding:0px;margin:0px;-moz-appearance:none">
  55.             <menu observes="mainMenuPopupBroadcaster" label="&fileMenu.label;"
  56.                   accesskey="&fileMenu.accesskey;">
  57.               <menupopup id="menu_FilePopup" onpopupshowing="getContentAreaFrameCount();">
  58.                 <menuitem label="&newNavigatorCmd.label;"
  59.                           accesskey="&newNavigatorCmd.accesskey;"
  60.                           key="key_newNavigator"
  61.                           command="cmd_newNavigatorAlways"/>
  62.                 <menuitem command="cmd_newNavigatorTab" key="key_newNavigatorTab"
  63.                           label="&tabCmd.label;" accesskey="&tabCmd.accesskey;"/>
  64.                 <menuitem label="&openLocationCmd.label;" accesskey="&openLocationCmd.accesskey;" key="focusURLBar" command="Browser:OpenLocation"/>
  65.                 <menuitem label="&openFileCmd.label;" accesskey="&openFileCmd.accesskey;" key="openFileKb" command="Browser:OpenFile"/>
  66.                 <menuitem id="menu_closeWindow" hidden="true" command="cmd_closeWindow" key="key_closeWindow" label="&closeWindow.label;" accesskey="&closeWindow.accesskey;"/>
  67.                 <menuitem id="menu_close" label="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" command="cmd_close"/>
  68.                 <menuseparator/>
  69.                 <menuitem label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" key="key_savePage" command="Browser:SavePage"/>
  70.                 <menuitem id="menu_saveFrame" label="&saveFrameCmd.label;" accesskey="&saveFrameCmd.accesskey;" oncommand="saveFrameDocument();" hidden="true"/>
  71.                 <menuitem id="menu_sendLink"  label="&sendPageCmd.label;"  accesskey="&sendPageCmd.accesskey;"  command="Browser:SendLink"/>
  72.                 <menuseparator/>
  73.           <!--  <menuitem label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" oncommand="PrintUtils.showPageSetup();"/> -->
  74.                 <menuitem label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" oncommand="browserDoOLECmd(0);"/>
  75.           <!--  <menuitem label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" oncommand="PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview);"/>  -->
  76.                 <menuitem label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" oncommand="browserDoOLECmd(1);"/>
  77.                 <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="cmd_print"/>
  78.                 <menuseparator/>
  79.                 <menuitem label="&import.label;" accesskey="&import.accesskey;" oncommand="BrowserImport();"/>
  80.                 <menuseparator/>
  81.                 <menuitem id="goOfflineMenuitem"
  82.                           label="&goOfflineCmd.label;" accesskey="&goOfflineCmd.accesskey;" 
  83.                           type="checkbox" oncommand="BrowserOffline.toggleOfflineStatus();"/>
  84.                   <menuitem id="menu_FileQuitItem" 
  85.                       key="key_quitApplication"
  86.                       command="cmd_quitApplication"                      
  87.                       label="&quitApplicationCmdWin.label;"
  88.                       accesskey="&quitApplicationCmdWin.accesskey;"
  89.                       /> 
  90.                 </menupopup>
  91.             </menu>
  92.   
  93.             <menu observes="mainMenuPopupBroadcaster" label="&editMenu.label;"
  94.                   accesskey="&editMenu.accesskey;">
  95.               <menupopup id="menu_EditPopup">
  96.                 <menuitem label="&undoCmd.label;"
  97.                           key="key_undo"
  98.                           accesskey="&undoCmd.accesskey;"
  99.                           command="cmd_undo"/>
  100.                 <menuitem label="&redoCmd.label;"
  101.                           key="key_redo"
  102.                           accesskey="&redoCmd.accesskey;"
  103.                           command="cmd_redo"/>
  104.                 <menuseparator/>
  105.                 <menuitem label="&cutCmd.label;"
  106.                           key="key_cut"
  107.                           accesskey="&cutCmd.accesskey;"
  108.                           command="cmd_cut"/>
  109.                 <menuitem label="©Cmd.label;"
  110.                           key="key_copy"
  111.                           accesskey="©Cmd.accesskey;"
  112.                           command="cmd_copy"/>
  113.                 <menuitem label="&pasteCmd.label;"
  114.                           key="key_paste"
  115.                           accesskey="&pasteCmd.accesskey;"
  116.                           command="cmd_paste"/>
  117.                 <menuitem label="&deleteCmd.label;"
  118.                           key="key_delete"
  119.                           accesskey="&deleteCmd.accesskey;"
  120.                           command="cmd_delete"/>
  121.                 <menuseparator/>
  122.                 <menuitem label="&selectAllCmd.label;"
  123.                           key="key_selectAll"
  124.                           accesskey="&selectAllCmd.accesskey;"
  125.                           command="cmd_selectAll"/>
  126.                 <menuseparator/>
  127.                 <menuitem label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="cmd_find"/>
  128.                 <menuitem label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="cmd_findAgain"/>
  129.                 <menuseparator hidden="true" id="textfieldDirection-separator"/>
  130.                 <menuitem hidden="true" id="textfieldDirection-swap" 
  131.                           label="&bidiSwitchTextDirectionItem.label;"
  132.                           key="key_SwitchTextDirection"
  133.                           accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  134.                           command="cmd_SwitchTextDirection"/>
  135.               </menupopup>
  136.             </menu>
  137.   
  138.             <menu observes="mainMenuPopupBroadcaster" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  139.               <menupopup id="menu_viewPopup">
  140.                 <menu observes="mainMenuPopupBroadcaster" label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"
  141.                       onpopupshowing="onViewToolbarsPopupShowing(event);">
  142.                   <menupopup autoPosition="true" observes="mainMenuPopupBroadcaster"  onpopupshowing="updateToolbarStates(this);"> 
  143.                     <menuseparator/>
  144.                       <menuitem label="&viewCustomizeToolbar.label;" accesskey="&viewCustomizeToolbar.accesskey;"
  145.                                 command="cmd_CustomizeToolbars"/>             
  146.                   </menupopup>
  147.                 </menu>
  148.                 <menuitem id="toggle_taskbar" label="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" type="checkbox" oncommand="goToggleToolbar('status-bar','toggle_taskbar');" checked="true" />
  149. <!-- Disabling Firefox sidebar submenu
  150.                 <menu observes="mainMenuPopupBroadcaster" label="&viewSidebarMenu.label;"
  151.                       accesskey="&viewSidebarMenu.accesskey;">
  152.                   <menupopup observes="mainMenuPopupBroadcaster"  id="viewSidebarMenu">
  153.                     <menuitem key="viewBookmarksSidebarKb" observes="viewBookmarksSidebar" accesskey="&bookmarksSidebarCmd.accesskey;"/>
  154.                     <menuitem key="key_gotoHistory" observes="viewHistorySidebar" accesskey="&historySidebarCmd.accesskey;"/>
  155.                   </menupopup>
  156.                 </menu>            
  157. -->
  158.                 <menuseparator/>
  159.                 <menuitem label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" command="Browser:Stop" key="key_stop"/>
  160.                 <menuitem accesskey="&reloadCmd.accesskey;" key="key_reload" label="&reloadCmd.label;" oncommand="BrowserReload();"/>
  161.                 <menuseparator/>
  162.                 <menu observes="mainMenuPopupBroadcaster" label="&textSize.label;" accesskey="&textSize.accesskey;">
  163.                   <menupopup position="before_end">                    
  164.                     <menuitem key="key_textZoomEnlarge" label="&textZoomEnlargeCmd.label;" accesskey="&textZoomEnlargeCmd.accesskey;"
  165.                               command="cmd_textZoomEnlarge"/>
  166.                     <menuitem key="key_textZoomReduce"  label="&textZoomReduceCmd.label;"  accesskey="&textZoomReduceCmd.accesskey;"
  167.                               command="cmd_textZoomReduce"/>
  168.                     <menuseparator/>
  169.                     <menuitem key="key_textZoomReset" label="&textZoomResetCmd.label;" accesskey="&textZoomResetCmd.accesskey;"
  170.                               command="cmd_textZoomReset"/>
  171.                   </menupopup>
  172.                 </menu>
  173.                 <menu  label="&pageStyleMenu.label;" accesskey="&pageStyleMenu.accesskey;">
  174.                   <menupopup  onpopupshowing="stylesheetFillPopup(this);"
  175.                              oncommand="stylesheetSwitchAll(window._content, event.target.getAttribute('data')); setStyleDisabled(false);">
  176.                     <menuitem label="&pageStyleNoStyle.label;" accesskey="&pageStyleNoStyle.accesskey;"
  177.                               oncommand="setStyleDisabled(true); event.preventBubble();" type="radio"/>
  178.                     <menuitem label="&pageStylePersistentOnly.label;" accesskey="&pageStylePersistentOnly.accesskey;" type="radio" checked="true"/>
  179.                     <menuseparator/>
  180.                   </menupopup>
  181.                 </menu>
  182.                 <menu label="&charsetMenu.label;" accesskey="&charsetMenu.accesskey;"
  183.                       datasources="rdf:charset-menu" ref="NC:BrowserCharsetMenuRoot"
  184.                       oncommand="MultiplexHandler(event)" onpopupshowing="CreateMenu('browser');UpdateMenus(event)" onpopupshown="CreateMenu('more-menu');">
  185.                     <template>
  186.                         <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  187.                             <menupopup >
  188.                             <menuseparator uri="..." />
  189.                             </menupopup>
  190.                         </rule>
  191.                         <rule>
  192.                             <menupopup>
  193.                             <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  194.                             </menupopup>
  195.                         </rule>
  196.                     </template>
  197.       
  198.                     <menupopup >
  199.                     <menu label="&charsetMenuAutodet.label;" accesskey="&charsetMenuAutodet.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserAutodetMenuRoot">
  200.                         <template>
  201.                             <!-- <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector"> -->
  202.                             <rule>
  203.                                 <menupopup  >
  204.                                 <menuitem type="radio" joshtype="rdf:http://home.netscape.com/NC-rdf#CharsetDetector" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  205.                                 </menupopup>
  206.                             </rule>
  207.                         </template>
  208.                         <menupopup>
  209.                         </menupopup>
  210.                     </menu>
  211.                     <menu label="&charsetMenuMore.label;" accesskey="&charsetMenuMore.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
  212.                         <template>
  213.                             <rule>
  214.                                 <menupopup  position="before_end">
  215.                                 <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  216.                                 </menupopup>
  217.                             </rule>
  218.                         </template>
  219.                         <menupopup  >
  220.                             <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
  221.                                 <template>
  222.                                     <rule>
  223.                                         <menupopup  >
  224.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  225.                                         </menupopup>
  226.                                     </rule>
  227.                                 </template>
  228.                                 <menupopup  position="before_end">
  229.                                 </menupopup>
  230.                             </menu>
  231.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuMore2.label;" accesskey="&charsetMenuMore2.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
  232.                                 <template>
  233.                                     <rule>
  234.                                         <menupopup  >
  235.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  236.                                         </menupopup>
  237.                                     </rule>
  238.                                 </template>
  239.                                 <menupopup  >
  240.                                 </menupopup>
  241.                             </menu>
  242.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuMore3.label;" accesskey="&charsetMenuMore3.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
  243.                                 <template>
  244.                                     <rule>
  245.                                         <menupopup >
  246.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  247.                                         </menupopup>
  248.                                     </rule>
  249.                                 </template>
  250.                                 <menupopup  position="before_end">
  251.                                 </menupopup>
  252.                             </menu>
  253.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuMore4.label;" accesskey="&charsetMenuMore4.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
  254.                                 <template>
  255.                                     <rule>
  256.                                         <menupopup  >
  257.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  258.                                         </menupopup>
  259.                                     </rule>
  260.                                 </template>
  261.                                 <menupopup  >
  262.                                 </menupopup>
  263.                             </menu>
  264.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuMore5.label;" accesskey="&charsetMenuMore5.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
  265.                                 <template>
  266.                                     <rule>
  267.                                         <menupopup  >
  268.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  269.                                         </menupopup>
  270.                                     </rule>
  271.                                 </template>
  272.                                 <menupopup  position="before_end">
  273.                                 </menupopup>
  274.                             </menu>
  275.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuUnicode.label;" accesskey="&charsetMenuUnicode.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserUnicodeCharsetMenuRoot">
  276.                                 <template>
  277.                                     <rule>
  278.                                         <menupopup  >
  279.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  280.                                         </menupopup>
  281.                                     </rule>
  282.                                 </template>
  283.                                 <menupopup  >
  284.                                 </menupopup>
  285.                             </menu>
  286.                             <menuseparator />
  287.                         </menupopup>
  288.                     </menu>
  289.                     <menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://global/content/customizeCharset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
  290.                     </menupopup>
  291.                 </menu>
  292.                <menu observes="mainMenuPopupBroadcaster" label="&viewMenuRenderingEngine.label;" accesskey="&viewMenuRenderingEngine.accesskey;">
  293.                     <menupopup>
  294.                         <menuitem observes="engineIsFirefoxBroadcaster" label="&viewFirefoxRenderingEngine.label;"
  295.                               accesskey="&viewFirefoxRenderingEngine.accesskey;"
  296.                               oncommand="gBrowser.mCurrentTab.toggleDisplayEngineSiteControl();"/>
  297.                       <menuitem observes="engineIsIEBroadcaster" label="&viewIERenderingEngine.label;"
  298.                               oncommand="gBrowser.mCurrentTab.toggleDisplayEngineSiteControl();"
  299.                               accesskey="&viewIERenderingEngine.accesskey;"/>
  300.                       <menuseparator/>
  301.                       <menuitem label="&viewToggleRenderingEngine.label;"
  302.                               id="viewMenuToggleRenderingEngine"
  303.                               accesskey="&viewToggleRenderingEngine.accesskey;"
  304.                               key="key_toggleEngine"
  305.                               command="cmd_toggleEngine"/>
  306.                       </menupopup>             
  307.                 </menu>
  308.                 
  309.                 <menuseparator/>
  310.                 <menuitem accesskey="&pageSourceCmd.accesskey;" label="&pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"/>
  311.                 <menuitem accesskey="&fullScreenCmd.accesskey;"
  312.                           label="&fullScreenCmd.label;" key="key_fullScreen"
  313.                           command="View:FullScreen"/>
  314.                 <menuseparator hidden="true" id="documentDirection-separator"/>
  315.                 <menuitem hidden="true" id="documentDirection-swap" 
  316.                           label="&bidiSwitchPageDirectionItem.label;" accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  317.                           oncommand="SwitchDocumentDirection()"/>
  318.               </menupopup>
  319.             </menu>
  320.   
  321.             <menu observes="mainMenuPopupBroadcaster" label="&goMenu.label;" accesskey="&goMenu.accesskey;" 
  322.                   oncommand="var url = event.target.getAttribute('statustext'); if (url) openGOLink(url, event, false, true);"
  323.                   onclick="checkForMiddleClick(this, event);">
  324.  
  325.               <menupopup   id="goPopup" onpopupshowing="updateGoMenu(this);" onpopuphiding="onGoMenuHidden();">
  326.                 <menuitem label="&backCmd.label;"
  327.                           accesskey="&backCmd.accesskey;"
  328.                           key="goBackKb"
  329.                           command="Browser:Back"
  330.                           onclick="checkForMiddleClick(this, event);">
  331.                     <!--   JMC   oncommand="BrowserBack(event, true)"> 
  332.                      <observes element="Browser:Back" attribute="disabled" /> -->
  333.                 </menuitem>
  334.                 <menuitem label="&forwardCmd.label;" 
  335.                           accesskey="&forwardCmd.accesskey;"
  336.                           key="goForwardKb" 
  337.                           command="Browser:Forward"
  338.                           onclick="checkForMiddleClick(this, event);">
  339.                        <!--   JMC   oncommand="BrowserForward(event, true)">
  340.                   <observes element="Browser:Forward" attribute="disabled" /> -->
  341.                 </menuitem>
  342.  
  343.                           
  344.                           
  345.                 <menuitem label="&goHomeCmd.label;"    accesskey="&goHomeCmd.accesskey;"    command="Browser:Home" key="goHome"/>
  346.                 <menuseparator id="startHistorySeparator"/>
  347.                 <menuseparator hidden="true" id="endHistorySeparator"/>
  348.                 <!-- MERC: menu item now handled in sidebar overlay
  349.                 <menuitem observes="viewHistorySidebar" accesskey="&historySidebarCmd.accesskey;" key="key_gotoHistory"/>
  350.                 -->
  351.               </menupopup>
  352.             </menu>
  353.  
  354.             <menu observes="mainMenuPopupBroadcaster" id="bookmarks-menu" label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;"
  355.                   datasources="rdf:bookmarks rdf:files rdf:localsearch" 
  356.                   ref="NC:BookmarksRoot" flags="dont-test-empty"
  357.                   template='bookmarks-template'
  358.                   infer="forward-proxy"
  359.                   onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
  360.                   onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  361.                   oncommand="BookmarksMenu.onSelectBookmark(event, event.target, this.database)"
  362.                   onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  363.                   ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  364.                   ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.preventBubble()"
  365.                   ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.preventBubble()"
  366.                   ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.preventBubble()"
  367.                   ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.preventBubble()">
  368.               <menupopup   id="menu_BookmarksPopup" contextmenu='bookmarks-context-menu'>
  369.                 <menuitem key="addBookmarkAsKb"
  370.                           label="&addCurPageAsCmd.label;"
  371.                           accesskey="&addCurPageAsCmd.accesskey;"
  372.                           command="Browser:BookmarkPage"/>
  373.                 <menuitem key="manBookmarkKb" 
  374.                           label="&manBookmarksCmd.label;"
  375.                           accesskey="&manBookmarksCmd.accesskey;"    
  376.                           oncommand="toOpenWindowByType('bookmarks:manager', 'chrome://browser/content/bookmarks/bookmarksManager.xul');"/>
  377.                 <menuitem key="addBookmarkAsTabGrp"
  378.                           label="&addCurTabsAsCmd.label;"
  379.                           accesskey="&addCurTabsAsCmd.accesskey;"
  380.                           command="Browser:BookmarkTabsFromMultibar"/>
  381.                           <!-- JMC: Fix for BLT # 122428, don't know why the old function (Browser:BookmarkTabs) even exists -->
  382.                 <menuseparator/>
  383.               </menupopup>
  384.             </menu>
  385.         
  386.           <menu observes="mainMenuPopupBroadcaster" label="&toolsMenu.label;" accesskey="&toolsMenu.accesskey;">
  387.             <menupopup   id="menu_ToolsPopup"
  388.                        onpopupshowing="MailIntegration.updateUnreadCount();"
  389.             >
  390.               <menuitem label="&search.label;" accesskey="&search.accesskey;" 
  391.                         key="key_search" command="Tools:Search"/>
  392.               <menuseparator/>
  393.               <menuitem label="&downloads.label;" accesskey="&downloads.accesskey;"
  394.                         key="key_openDownloads"
  395.                         command="Tools:Downloads"/>
  396.               <menuitem label="&extensions.label;" accesskey="&extensions.accesskey;" 
  397.                         command="Tools:Extensions"/>
  398.               <menuitem label="&themes.label;" accesskey="&themes.accesskey;" 
  399.                         command="Tools:Themes"/>
  400.               <menuseparator id="devToolsSeparator"/>
  401.               <menuitem id="javascriptConsole" 
  402.                         label="&javaScriptConsoleCmd.label;" accesskey="&javaScriptConsoleCmd.accesskey;" 
  403.                         oncommand="toJavaScriptConsole();"/>
  404.               <menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;"   
  405.                         command="View:PageInfo"/>
  406.  
  407.               <menuseparator id="prefSep"/>
  408.               <menuitem id="menu_preferences"
  409.                         label="&preferencesCmd.label;"
  410.                         accesskey="&preferencesCmd.accesskey;"
  411.                         oncommand="openPreferences();"/>
  412.             </menupopup>
  413.           </menu>
  414.     
  415.  
  416.           <menu observes="mainMenuPopupBroadcaster" label="&helpMenuWin.label;"
  417.                 accesskey="&helpMenuWin.accesskey;">
  418.             <menupopup  autoPosition="true" observes="mainMenuPopupBroadcaster"  id="menu_HelpPopup">
  419. <!-- // MERC: ccampbell: removing menu item
  420.               <menuseparator/>
  421.               <menuitem accesskey="&promote.accesskey;"
  422.                         label="&promote.label;"
  423.                         oncommand="openUILink(getUILink('promote'), event, false, true);"
  424.                         onclick="checkForMiddleClick(this, event);"/>
  425.               <menuseparator/>
  426. -->
  427.               <menuitem id="aboutName"
  428.                         accesskey="&aboutCmd.accesskey;"
  429.                         label="&aboutCmd.label;"
  430.                         oncommand="openAboutDialog();"/>
  431.             </menupopup>
  432.           </menu>
  433.         </menubar>
  434.  
  435.  
  436. <template id="bookmarks-template"
  437.           xmlns:nc="http://home.netscape.com/NC-rdf#"
  438.           xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  439.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  440.       <toolbarseparator uri="rdf:*"
  441.                         rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"/>
  442.     </rule>
  443.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#Livemark">
  444.       <toolbarbutton type="menu" class="bookmark-item" uri="rdf:*" editable="true"
  445.                      rdf:type="http://home.netscape.com/NC-rdf#Folder"
  446.                      label="rdf:http://home.netscape.com/NC-rdf#Name"
  447.                      livemark="true"
  448.                      chromedir="&locale.dir;">
  449.         <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  450.       </toolbarbutton>
  451.     </rule>
  452.     <rule parent="hbox" iscontainer="true">
  453.       <toolbarbutton type="menu" class="bookmark-item" uri="rdf:*" editable="true"
  454.                      rdf:type="http://home.netscape.com/NC-rdf#Folder"
  455.                      label="rdf:http://home.netscape.com/NC-rdf#Name">
  456.         <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  457.       </toolbarbutton>
  458.     </rule>
  459.     <rule parent="hbox">
  460.       <toolbarbutton class="bookmark-item" uri="rdf:*" editable="true" 
  461.                      status="rdf:http://home.netscape.com/WEB-rdf#status"
  462.                      rdf:type="http://home.netscape.com/NC-rdf#Bookmark"
  463.                      image="rdf:http://home.netscape.com/NC-rdf#Icon"
  464.                      statustext="rdf:http://home.netscape.com/NC-rdf#URL"
  465.                      tooltip="btTooltip"
  466.                      label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  467.     </rule>
  468.     <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  469.       <menupopup observes="mainMenuPopupBroadcaster" > 
  470.         <menuseparator uri="rdf:*" />
  471.       </menupopup>
  472.     </rule>
  473.     <rule rdf:type="http://home.netscape.com/NC-rdf#Livemark">
  474.       <menupopup observes="mainMenuPopupBroadcaster" >
  475.         <menu observes="mainMenuPopupBroadcaster" class="menu-iconic bookmark-item" uri="rdf:*"
  476.               label="rdf:http://home.netscape.com/NC-rdf#Name"
  477.               type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  478.               livemark="true">
  479.           <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  480.         </menu>
  481.       </menupopup>
  482.     </rule>
  483.     <rule iscontainer="true">
  484.       <menupopup observes="mainMenuPopupBroadcaster" >
  485.         <menu observes="mainMenuPopupBroadcaster" class="menu-iconic bookmark-item" uri="rdf:*"
  486.               label="rdf:http://home.netscape.com/NC-rdf#Name"
  487.               type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  488.           <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  489.         </menu>
  490.       </menupopup>
  491.     </rule>
  492.     <rule>
  493.       <menupopup observes="mainMenuPopupBroadcaster" >
  494.         <menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"
  495.                   label="rdf:http://home.netscape.com/NC-rdf#Name" 
  496.                   image="rdf:http://home.netscape.com/NC-rdf#Icon"
  497.                   status="rdf:http://home.netscape.com/WEB-rdf#status"
  498.                   statustext="rdf:http://home.netscape.com/NC-rdf#URL"/>
  499.       </menupopup>
  500.     </rule>
  501.   </template>
  502.                 </toolbaritem>
  503.                 <vbox id="menu-label-box" align="right" hidden="true">
  504.                     <spacer flex="1"/>
  505.                     <label id="menu-label"><< Menu</label>
  506.                     <spacer flex="1"/>
  507.                 </vbox>
  508.             </stack>
  509.         </hbox>
  510.  
  511.         <!-- Window controls --><!-- fullscreencontrol="true" ? -->
  512.         <toolbaritem id="window-controls">
  513.             <toolbarbutton id="minimize-button" class="toolbarbutton-1"
  514.                            oncommand="window.minimize();" tooltiptext="Minimize"/>
  515.             <toolbarbutton id="restore-button" class="toolbarbutton-1"
  516.                            oncommand="BrowserToggleMaximize();" observes="restoreButtonBroadcaster"/>
  517.             <toolbarbutton id="close-button" class="toolbarbutton-1"
  518.                            oncommand="BrowserClosedByCloseButton();"  tooltiptext="Close"/>
  519.         </toolbaritem>
  520.  
  521.     </toolbar>
  522.   </vbox>
  523.  
  524.     <!-- Throbber -->
  525.     <toolbaritem id="throbber-box" title="&throbberItem.title;"
  526.                  align="stretch" pack="start"
  527.                  top="0" left="0">
  528.         <titlebar flex="1" align="start"
  529.                   onmousedown="titlebar.throbberMouseDown(event);"
  530.                   onmouseup="titlebar.throbberMouseUp(event);">
  531.             <button id="navigator-throbber" observes="throbberBroadcaster"
  532.                     tooltiptext="&throbber.tooltip;"/>
  533.         </titlebar>
  534.     </toolbaritem>
  535.  
  536.  </stack>
  537.  
  538. </window>
  539.  
  540. </overlay>
  541.