home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 December / PCWorld_2006-12_cd.bin / komunikace / netscape / nsb-install-8-1-2.exe / chrome / browser.jar / content / browser / titlebarOverlay.xul < prev    next >
Extensible Markup Language  |  2006-01-06  |  37KB  |  637 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.  
  85.                 <menuitem id="logOutMenuitem" label="&logOutCmd.label;" key="key_logOut" oncommand="logOutUser();"/>
  86.                 
  87.                   <menuitem id="menu_FileQuitItem"
  88.                       key="key_quitApplication"
  89.                       command="cmd_quitApplication"
  90.                       label="&quitApplicationCmdWin.label;"
  91.                       accesskey="&quitApplicationCmdWin.accesskey;"
  92.                       />
  93.                 </menupopup>
  94.             </menu>
  95.  
  96.             <menu observes="mainMenuPopupBroadcaster" label="&editMenu.label;"
  97.                   accesskey="&editMenu.accesskey;">
  98.               <menupopup id="menu_EditPopup">
  99.                 <menuitem label="&undoCmd.label;"
  100.                           key="key_undo"
  101.                           accesskey="&undoCmd.accesskey;"
  102.                           command="cmd_undo"/>
  103.                 <menuitem label="&redoCmd.label;"
  104.                           key="key_redo"
  105.                           accesskey="&redoCmd.accesskey;"
  106.                           command="cmd_redo"/>
  107.                 <menuseparator/>
  108.                 <menuitem label="&cutCmd.label;"
  109.                           key="key_cut"
  110.                           accesskey="&cutCmd.accesskey;"
  111.                           command="cmd_cut"/>
  112.                 <menuitem label="©Cmd.label;"
  113.                           key="key_copy"
  114.                           accesskey="©Cmd.accesskey;"
  115.                           command="cmd_copy"/>
  116.                 <menuitem label="&pasteCmd.label;"
  117.                           key="key_paste"
  118.                           accesskey="&pasteCmd.accesskey;"
  119.                           command="cmd_paste"/>
  120.                 <menuitem label="&deleteCmd.label;"
  121.                           key="key_delete"
  122.                           accesskey="&deleteCmd.accesskey;"
  123.                           command="cmd_delete"/>
  124.                 <menuseparator/>
  125.                 <menuitem label="&selectAllCmd.label;"
  126.                           key="key_selectAll"
  127.                           accesskey="&selectAllCmd.accesskey;"
  128.                           command="cmd_selectAll"/>
  129.                 <menuseparator/>
  130.                 <menuitem label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="cmd_find"/>
  131.                 <menuitem label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="cmd_findAgain"/>
  132.                 <menuseparator hidden="true" id="textfieldDirection-separator"/>
  133.                 <menuitem hidden="true" id="textfieldDirection-swap"
  134.                           label="&bidiSwitchTextDirectionItem.label;"
  135.                           key="key_SwitchTextDirection"
  136.                           accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  137.                           command="cmd_SwitchTextDirection"/>
  138.               </menupopup>
  139.             </menu>
  140.  
  141.             <menu observes="mainMenuPopupBroadcaster" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  142.               <menupopup id="menu_viewPopup">
  143.                 <menu observes="mainMenuPopupBroadcaster" label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"
  144.                       onpopupshowing="onViewToolbarsPopupShowing(event);">
  145.                   <menupopup autoPosition="true" observes="mainMenuPopupBroadcaster"  onpopupshowing="updateToolbarStates(this);">
  146.                     <menuseparator/>
  147.                       <menuitem label="&viewCustomizeToolbar.label;" accesskey="&viewCustomizeToolbar.accesskey;"
  148.                                 command="cmd_CustomizeToolbars"/>
  149.                   </menupopup>
  150.                 </menu>
  151.                 <menuitem id="toggle_security_center" label="&securityCenter.label;" accesskey="&securityCenter.accesskey;" type="checkbox" key="key_ToggleSecurityCenter" oncommand="goToggleToolbar('securityDashboard','toggle_security_center');" checked="true" />
  152.                 <menuitem id="toggle_taskbar" label="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" type="checkbox" oncommand="goToggleToolbar('status-bar','toggle_taskbar');" checked="true" />
  153. <!-- Disabling Firefox sidebar submenu
  154.                 <menu observes="mainMenuPopupBroadcaster" label="&viewSidebarMenu.label;"
  155.                       accesskey="&viewSidebarMenu.accesskey;">
  156.                   <menupopup observes="mainMenuPopupBroadcaster"  id="viewSidebarMenu">
  157.                     <menuitem key="viewBookmarksSidebarKb" observes="viewBookmarksSidebar" accesskey="&bookmarksSidebarCmd.accesskey;"/>
  158.                     <menuitem key="key_gotoHistory" observes="viewHistorySidebar" accesskey="&historySidebarCmd.accesskey;"/>
  159.                   </menupopup>
  160.                 </menu>
  161. -->
  162.                 <menuseparator/>
  163.                 <menuitem label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" command="Browser:Stop" key="key_stop"/>
  164.                 <menuitem accesskey="&reloadCmd.accesskey;" key="key_reload" label="&reloadCmd.label;" oncommand="BrowserReload();"/>
  165.                 <menuseparator/>
  166.                 <menu observes="mainMenuPopupBroadcaster" label="&textSize.label;" accesskey="&textSize.accesskey;">
  167.                   <menupopup position="before_end">
  168.                     <menuitem key="key_textZoomEnlarge" label="&textZoomEnlargeCmd.label;" accesskey="&textZoomEnlargeCmd.accesskey;"
  169.                               command="cmd_textZoomEnlarge"/>
  170.                     <menuitem key="key_textZoomReduce"  label="&textZoomReduceCmd.label;"  accesskey="&textZoomReduceCmd.accesskey;"
  171.                               command="cmd_textZoomReduce"/>
  172.                     <menuseparator/>
  173.                     <menuitem key="key_textZoomReset" label="&textZoomResetCmd.label;" accesskey="&textZoomResetCmd.accesskey;"
  174.                               command="cmd_textZoomReset"/>
  175.                   </menupopup>
  176.                 </menu>
  177.                 <menu  label="&pageStyleMenu.label;" accesskey="&pageStyleMenu.accesskey;">
  178.                   <menupopup  onpopupshowing="stylesheetFillPopup(this);"
  179.                              oncommand="stylesheetSwitchAll(window._content, event.target.getAttribute('data')); setStyleDisabled(false);">
  180.                     <menuitem label="&pageStyleNoStyle.label;" accesskey="&pageStyleNoStyle.accesskey;"
  181.                               oncommand="setStyleDisabled(true); event.preventBubble();" type="radio"/>
  182.                     <menuitem label="&pageStylePersistentOnly.label;" accesskey="&pageStylePersistentOnly.accesskey;" type="radio" checked="true"/>
  183.                     <menuseparator/>
  184.                   </menupopup>
  185.                 </menu>
  186.                 <menu label="&charsetMenu.label;" accesskey="&charsetMenu.accesskey;"
  187.                       datasources="rdf:charset-menu" ref="NC:BrowserCharsetMenuRoot"
  188.                       oncommand="MultiplexHandler(event)" onpopupshowing="CreateMenu('browser');UpdateMenus(event)" onpopupshown="CreateMenu('more-menu');">
  189.                     <template>
  190.                         <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  191.                             <menupopup >
  192.                             <menuseparator uri="..." />
  193.                             </menupopup>
  194.                         </rule>
  195.                         <rule>
  196.                             <menupopup>
  197.                             <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  198.                             </menupopup>
  199.                         </rule>
  200.                     </template>
  201.  
  202.                     <menupopup >
  203.                     <menu label="&charsetMenuAutodet.label;" accesskey="&charsetMenuAutodet.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserAutodetMenuRoot">
  204.                         <template>
  205.                             <!-- <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector"> -->
  206.                             <rule>
  207.                                 <menupopup  >
  208.                                 <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"/>
  209.                                 </menupopup>
  210.                             </rule>
  211.                         </template>
  212.                         <menupopup>
  213.                         </menupopup>
  214.                     </menu>
  215.                     <menu label="&charsetMenuMore.label;" accesskey="&charsetMenuMore.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
  216.                         <template>
  217.                             <rule>
  218.                                 <menupopup  position="before_end">
  219.                                 <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  220.                                 </menupopup>
  221.                             </rule>
  222.                         </template>
  223.                         <menupopup  >
  224.                             <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
  225.                                 <template>
  226.                                     <rule>
  227.                                         <menupopup  >
  228.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  229.                                         </menupopup>
  230.                                     </rule>
  231.                                 </template>
  232.                                 <menupopup  position="before_end">
  233.                                 </menupopup>
  234.                             </menu>
  235.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuMore2.label;" accesskey="&charsetMenuMore2.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
  236.                                 <template>
  237.                                     <rule>
  238.                                         <menupopup  >
  239.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  240.                                         </menupopup>
  241.                                     </rule>
  242.                                 </template>
  243.                                 <menupopup  >
  244.                                 </menupopup>
  245.                             </menu>
  246.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuMore3.label;" accesskey="&charsetMenuMore3.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
  247.                                 <template>
  248.                                     <rule>
  249.                                         <menupopup >
  250.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  251.                                         </menupopup>
  252.                                     </rule>
  253.                                 </template>
  254.                                 <menupopup  position="before_end">
  255.                                 </menupopup>
  256.                             </menu>
  257.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuMore4.label;" accesskey="&charsetMenuMore4.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
  258.                                 <template>
  259.                                     <rule>
  260.                                         <menupopup  >
  261.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  262.                                         </menupopup>
  263.                                     </rule>
  264.                                 </template>
  265.                                 <menupopup  >
  266.                                 </menupopup>
  267.                             </menu>
  268.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuMore5.label;" accesskey="&charsetMenuMore5.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
  269.                                 <template>
  270.                                     <rule>
  271.                                         <menupopup  >
  272.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  273.                                         </menupopup>
  274.                                     </rule>
  275.                                 </template>
  276.                                 <menupopup  position="before_end">
  277.                                 </menupopup>
  278.                             </menu>
  279.                             <menu observes="mainMenuPopupBroadcaster" label="&charsetMenuUnicode.label;" accesskey="&charsetMenuUnicode.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserUnicodeCharsetMenuRoot">
  280.                                 <template>
  281.                                     <rule>
  282.                                         <menupopup  >
  283.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  284.                                         </menupopup>
  285.                                     </rule>
  286.                                 </template>
  287.                                 <menupopup  >
  288.                                 </menupopup>
  289.                             </menu>
  290.                             <menuseparator />
  291.                         </menupopup>
  292.                     </menu>
  293.                     <menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://global/content/customizeCharset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
  294.                     </menupopup>
  295.                 </menu>
  296.                <menu observes="mainMenuPopupBroadcaster" label="&viewMenuRenderingEngine.label;" accesskey="&viewMenuRenderingEngine.accesskey;">
  297.                     <menupopup>
  298.                         <menuitem observes="engineIsFirefoxBroadcaster" label="&viewFirefoxRenderingEngine.label;"
  299.                               accesskey="&viewFirefoxRenderingEngine.accesskey;"
  300.                               oncommand="gBrowser.mCurrentTab.toggleDisplayEngineSiteControl();"/>
  301.                       <menuitem observes="engineIsIEBroadcaster" label="&viewIERenderingEngine.label;"
  302.                               oncommand="gBrowser.mCurrentTab.toggleDisplayEngineSiteControl();"
  303.                               accesskey="&viewIERenderingEngine.accesskey;"/>
  304.                       <menuseparator/>
  305.                       <menuitem label="&viewToggleRenderingEngine.label;"
  306.                               id="viewMenuToggleRenderingEngine"
  307.                               accesskey="&viewToggleRenderingEngine.accesskey;"
  308.                               key="key_toggleEngine"
  309.                               command="cmd_toggleEngine"/>
  310.                       </menupopup>
  311.                 </menu>
  312.  
  313.                 <menuseparator/>
  314.                 <menuitem accesskey="&pageSourceCmd.accesskey;" label="&pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"/>
  315.                 <menuitem accesskey="&fullScreenCmd.accesskey;"
  316.                           label="&fullScreenCmd.label;" key="key_fullScreen"
  317.                           command="View:FullScreen"/>
  318.                 <menuseparator hidden="true" id="documentDirection-separator"/>
  319.                 <menuitem hidden="true" id="documentDirection-swap"
  320.                           label="&bidiSwitchPageDirectionItem.label;" accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  321.                           oncommand="SwitchDocumentDirection()"/>
  322.               </menupopup>
  323.             </menu>
  324.  
  325.             <menu observes="mainMenuPopupBroadcaster" label="&goMenu.label;" accesskey="&goMenu.accesskey;"
  326.                   oncommand="var url = event.target.getAttribute('statustext'); if (url) openGOLink(url, event, false, true);"
  327.                   onclick="checkForMiddleClick(this, event);">
  328.  
  329.               <menupopup   id="goPopup" onpopupshowing="updateGoMenu(this);" onpopuphiding="onGoMenuHidden();">
  330.                 <menuitem label="&backCmd.label;"
  331.                           accesskey="&backCmd.accesskey;"
  332.                           key="goBackKb"
  333.                           command="Browser:Back"
  334.                           onclick="checkForMiddleClick(this, event);">
  335.                     <!--   JMC   oncommand="BrowserBack(event, true)">
  336.                      <observes element="Browser:Back" attribute="disabled" /> -->
  337.                 </menuitem>
  338.                 <menuitem label="&forwardCmd.label;"
  339.                           accesskey="&forwardCmd.accesskey;"
  340.                           key="goForwardKb"
  341.                           command="Browser:Forward"
  342.                           onclick="checkForMiddleClick(this, event);">
  343.                        <!--   JMC   oncommand="BrowserForward(event, true)">
  344.                   <observes element="Browser:Forward" attribute="disabled" /> -->
  345.                 </menuitem>
  346.  
  347.  
  348.  
  349.                 <menuitem label="&goHomeCmd.label;"    accesskey="&goHomeCmd.accesskey;"    command="Browser:Home" key="goHome"/>
  350.                 <menuseparator id="startHistorySeparator"/>
  351.                 <menuseparator hidden="true" id="endHistorySeparator"/>
  352.                 <!-- MERC: menu item now handled in sidebar overlay
  353.                 <menuitem observes="viewHistorySidebar" accesskey="&historySidebarCmd.accesskey;" key="key_gotoHistory"/>
  354.                 -->
  355.               </menupopup>
  356.             </menu>
  357.  
  358.             <menu observes="mainMenuPopupBroadcaster" id="bookmarks-menu" label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;"
  359.                   datasources="rdf:bookmarks rdf:files rdf:localsearch"
  360.                   ref="NC:BookmarksRoot" flags="dont-test-empty"
  361.                   template='bookmarks-template'
  362.                   infer="forward-proxy"
  363.                   onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
  364.                   onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  365.                   oncommand="BookmarksMenu.onSelectBookmark(event, event.target, this.database)"
  366.                   onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  367.                   ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  368.                   ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.preventBubble()"
  369.                   ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.preventBubble()"
  370.                   ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.preventBubble()"
  371.                   ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.preventBubble()">
  372.               <menupopup   id="menu_BookmarksPopup" contextmenu='bookmarks-context-menu'>
  373.                 <menuitem key="addBookmarkAsKb"
  374.                           label="&addCurPageAsCmd.label;"
  375.                           accesskey="&addCurPageAsCmd.accesskey;"
  376.                           command="Browser:BookmarkPage"/>
  377.                 <menuitem key="manBookmarkKb"
  378.                           label="&manBookmarksCmd.label;"
  379.                           accesskey="&manBookmarksCmd.accesskey;"
  380.                           oncommand="toOpenWindowByType('bookmarks:manager', 'chrome://browser/content/bookmarks/bookmarksManager.xul');"/>
  381.                 <menuitem key="addBookmarkAsTabGrp"
  382.                           label="&addCurTabsAsCmd.label;"
  383.                           accesskey="&addCurTabsAsCmd.accesskey;"
  384.                           command="Browser:BookmarkTabsFromMultibar"/>
  385.                           <!-- JMC: Fix for BLT # 122428, don't know why the old function (Browser:BookmarkTabs) even exists -->
  386.                 <menuseparator/>
  387.               </menupopup>
  388.             </menu>
  389.  
  390.           <menu observes="mainMenuPopupBroadcaster" label="&toolsMenu.label;" accesskey="&toolsMenu.accesskey;">
  391.             <menupopup   id="menu_ToolsPopup"
  392.                          onpopupshowing="
  393.                          MailIntegration.updateUnreadCount();
  394.                          TabHistoryList.UpdateUndoButton();">
  395.               <menuitem label="&search.label;" accesskey="&search.accesskey;"
  396.                         key="key_search" command="Tools:Search"/>
  397.                             <menuitem label="&desktopSearch.label;" id="menu_Tools_DesktopSearch" accesskey="&desktopSearch.accesskey;"
  398.                         key="key_desktopSearch" command="Tools:DesktopSearch"/>
  399.               <menuseparator/>
  400.               <menuitem label="&downloads.label;" accesskey="&downloads.accesskey;"
  401.                         key="key_openDownloads"
  402.                         command="Tools:Downloads"/>
  403.               <menuitem label="&extensions.label;" accesskey="&extensions.accesskey;"
  404.                         command="Tools:Extensions"/>
  405.               <menuitem label="&themes.label;" accesskey="&themes.accesskey;"
  406.                         command="Tools:Themes"/>
  407.               <menuseparator id="devToolsSeparator"/>
  408.               <menuitem id="javascriptConsole"
  409.                         label="&javaScriptConsoleCmd.label;" accesskey="&javaScriptConsoleCmd.accesskey;"
  410.                         oncommand="toJavaScriptConsole();"/>
  411.               <menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;"
  412.                         command="View:PageInfo"/>
  413.  
  414.                 <menuseparator id="prefSep"/>
  415.  
  416.  
  417.                 <menu id="topHistoryMenu" label="&tabHistoryCmd.label;" accesskey="&tabHistoryCmd.accesskey;">
  418.                     <menupopup id="tabHistoryMenu" onpopupshowing="return TabHistoryList.ShowTabHistoryMenu(event);"
  419.                                                    onpopuphidden="TabHistoryList.RemoveChildren(event.target);"
  420.                                                    opentab="false">
  421.                         <menuseparator/>
  422.                         <menuitem id="tabHistoryClear" label="&tabHistoryClear.label;" oncommand="TabHistoryList.Init();"/>
  423.                     </menupopup>
  424.                 </menu>
  425.                 <menuitem id="undoTabClose" label="&undoTabClose.label;" 
  426.                           accesskey="&undoTabClose.accesskey;" 
  427.                           key="key_undoTabClose"
  428.                           oncommand="TabHistoryList.RestoreLastDeletedTab();" />     
  429.                 
  430.                 
  431.               <menuseparator id="prefSep"/>
  432.               <menuitem id="menu_securitycenteropen" label="&securityCmd.label;"
  433.                         accesskey="&securityCmd.accesskey;"
  434.                          oncommand="ToggleSecurityDashboard()"/>
  435.               <menuitem id="menu_preferences"
  436.                         label="&preferencesCmd.label;"
  437.                         accesskey="&preferencesCmd.accesskey;"
  438.                         oncommand="openPreferences(true);"/>
  439.             </menupopup>
  440.           </menu>
  441.  
  442.  
  443.           <menu observes="mainMenuPopupBroadcaster" label="&helpMenuWin.label;"
  444.                 accesskey="&helpMenuWin.accesskey;">
  445.             <menupopup  autoPosition="true" observes="mainMenuPopupBroadcaster"  id="menu_HelpPopup">
  446. <!-- // MERC: ccampbell: removing menu item
  447.               <menuseparator/>
  448.               <menuitem accesskey="&promote.accesskey;"
  449.                         label="&promote.label;"
  450.                         oncommand="openUILink(getUILink('promote'), event, false, true);"
  451.                         onclick="checkForMiddleClick(this, event);"/>
  452.               <menuseparator/>
  453. -->
  454. <!-- // MERC: Stevo: Removing balloon help options
  455.               <menuitem id="balloonHelpMenu"
  456.                         label="&balloonHelpCmd.label;"
  457.                         accesskey="&balloonHelpCmd.accesskey;"
  458.                         type="checkbox"
  459.                         key="key_bubbleToggle"                      
  460.                         checked="true"
  461.                         oncommand="TrackData(this);balloonhelp.ToggleBalloonHelpPreference();"/>
  462. -->
  463.               <menuseparator id="aboutSep"/>
  464.               <menuitem id="aboutName"
  465.                         accesskey="&aboutCmd.accesskey;"
  466.                         label="&aboutCmd.label;"
  467.                         oncommand="openAboutDialog();"/>
  468.             </menupopup>
  469.           </menu>
  470.         </menubar>
  471.  
  472.  
  473. <template id="bookmarks-template"
  474.           xmlns:nc="http://home.netscape.com/NC-rdf#"
  475.           xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  476.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  477.       <toolbarseparator uri="rdf:*"
  478.                         rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"/>
  479.     </rule>
  480.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#Livemark"  nc:hasunread="true">
  481.       <toolbarbutton class="bookmark-item" uri="rdf:*" editable="true"
  482.                      rdf:type="http://home.netscape.com/NC-rdf#Bookmark"
  483.                      label="rdf:http://home.netscape.com/NC-rdf#Name ( rdf:http://home.netscape.com/NC-rdf#LivemarkUnread )"
  484.                      image="rdf:http://home.netscape.com/NC-rdf#Icon"
  485.                      livemark="true"
  486.                      chromedir="&locale.dir;">
  487.         <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  488.       </toolbarbutton>
  489.     </rule>
  490.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#Livemark">
  491. <!--      <toolbarbutton type="menu" class="bookmark-item" uri="rdf:*" editable="true"
  492.                      rdf:type="http://home.netscape.com/NC-rdf#Folder"
  493.                      label="rdf:http://home.netscape.com/NC-rdf#Name ( rdf:http://home.netscape.com/NC-rdf#LivemarkUnread )"
  494.                      livemark="true"
  495.                      chromedir="&locale.dir;">
  496.         <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  497.       </toolbarbutton> -->
  498.       <toolbarbutton class="bookmark-item" uri="rdf:*" editable="true"
  499.                      rdf:type="http://home.netscape.com/NC-rdf#Bookmark"
  500.                      label="rdf:http://home.netscape.com/NC-rdf#Name"
  501.                      image="rdf:http://home.netscape.com/NC-rdf#Icon"
  502.                      livemark="true"
  503.                      chromedir="&locale.dir;">
  504.         <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  505.       </toolbarbutton>
  506.     </rule>
  507.     <rule parent="hbox" iscontainer="true"  nc:hasunread="true">
  508.       <toolbarbutton type="menu" class="bookmark-item" uri="rdf:*" editable="true"
  509.                      rdf:type="http://home.netscape.com/NC-rdf#Folder"
  510.                      label="rdf:http://home.netscape.com/NC-rdf#Name ( rdf:http://home.netscape.com/NC-rdf#LivemarkUnread )">
  511.         <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  512.       </toolbarbutton>
  513.     </rule>
  514.     <rule parent="hbox" iscontainer="true">
  515.       <toolbarbutton type="menu" class="bookmark-item" uri="rdf:*" editable="true"
  516.                      rdf:type="http://home.netscape.com/NC-rdf#Folder"
  517.                      label="rdf:http://home.netscape.com/NC-rdf#Name">
  518.         <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  519.       </toolbarbutton>
  520.     </rule>
  521.     <rule parent="hbox">
  522.       <toolbarbutton class="bookmark-item" uri="rdf:*" editable="true"
  523.                      status="rdf:http://home.netscape.com/WEB-rdf#status"
  524.                      rdf:type="http://home.netscape.com/NC-rdf#Bookmark"
  525.                      image="rdf:http://home.netscape.com/NC-rdf#Icon"
  526.                      statustext="rdf:http://home.netscape.com/NC-rdf#URL"
  527.                      tooltip="btTooltip"
  528.                      label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  529.     </rule>
  530.     <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  531.       <menupopup observes="mainMenuPopupBroadcaster" >
  532.         <menuseparator uri="rdf:*" />
  533.       </menupopup>
  534.     </rule>
  535.     <rule rdf:type="http://home.netscape.com/NC-rdf#Livemark" nc:hasunread="true">
  536.       <menupopup observes="mainMenuPopupBroadcaster" >
  537.         <menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"
  538.               label="rdf:http://home.netscape.com/NC-rdf#Name ( rdf:http://home.netscape.com/NC-rdf#LivemarkUnread )"
  539.                   image="rdf:http://home.netscape.com/NC-rdf#Icon"
  540.                   status="rdf:http://home.netscape.com/WEB-rdf#status"
  541.                   statustext="rdf:http://home.netscape.com/NC-rdf#URL"
  542.               livemark="true"/>
  543.        </menupopup>
  544.     </rule>
  545.     <rule rdf:type="http://home.netscape.com/NC-rdf#Livemark">
  546. <!--      <menupopup observes="mainMenuPopupBroadcaster" >
  547.         <menu observes="mainMenuPopupBroadcaster" class="menu-iconic bookmark-item" uri="rdf:*"
  548.               label="rdf:http://home.netscape.com/NC-rdf#Name ( rdf:http://home.netscape.com/NC-rdf#LivemarkUnread )"
  549.               type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  550.               livemark="true">
  551.           <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  552.         </menu>
  553.       </menupopup>-->
  554.       <menupopup observes="mainMenuPopupBroadcaster" >
  555.         <menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"
  556.               label="rdf:http://home.netscape.com/NC-rdf#Name"
  557.                   image="rdf:http://home.netscape.com/NC-rdf#Icon"
  558.                   status="rdf:http://home.netscape.com/WEB-rdf#status"
  559.                   statustext="rdf:http://home.netscape.com/NC-rdf#URL"
  560.               livemark="true"/>
  561.        </menupopup>
  562.     </rule>
  563.     <rule iscontainer="true" nc:hasunread="true">
  564.       <menupopup observes="mainMenuPopupBroadcaster" >
  565.         <menu observes="mainMenuPopupBroadcaster" class="menu-iconic bookmark-item" uri="rdf:*"
  566.               label="rdf:http://home.netscape.com/NC-rdf#Name ( rdf:http://home.netscape.com/NC-rdf#LivemarkUnread )"
  567.               type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  568.           <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  569.         </menu>
  570.       </menupopup>
  571.     </rule>
  572.     <rule iscontainer="true">
  573.       <menupopup observes="mainMenuPopupBroadcaster" >
  574.         <menu observes="mainMenuPopupBroadcaster" class="menu-iconic bookmark-item" uri="rdf:*"
  575.               label="rdf:http://home.netscape.com/NC-rdf#Name"
  576.               type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  577.           <menupopup observes="mainMenuPopupBroadcaster"  contextmenu="bookmarks-context-menu"/>
  578.         </menu>
  579.       </menupopup>
  580.     </rule>
  581.     <rule>
  582.       <menupopup observes="mainMenuPopupBroadcaster" >
  583.         <menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"
  584.                   label="rdf:http://home.netscape.com/NC-rdf#Name"
  585.                   image="rdf:http://home.netscape.com/NC-rdf#Icon"
  586.                   status="rdf:http://home.netscape.com/WEB-rdf#status"
  587.                   statustext="rdf:http://home.netscape.com/NC-rdf#URL"/>
  588.       </menupopup>
  589.     </rule>
  590.   </template>
  591.                   <spacer flex="1"/>
  592. <!-- // MERC: Stevo: Removing balloon help options                  
  593.                   <toolbarbutton id="balloonButton" class="balloon-button"
  594.                                  tooltiptext="&balloon-help-tooltip;"
  595.                                  observes="balloonBroadcaster"
  596.                                  oncommand="if (balloonhelp) { balloonhelp.ToggleBalloonHelpPreference(); }"/>
  597. -->
  598.                 </toolbaritem>
  599.                 <vbox id="menu-label-box" align="right" hidden="true">
  600.                     <spacer flex="1"/>
  601.                     <label id="menu-label"><< Menu</label>
  602.                     <spacer flex="1"/>
  603.                 </vbox>
  604.             </stack>
  605.         </hbox>
  606.  
  607.         <!-- Window controls --><!-- fullscreencontrol="true" ? -->
  608.         <toolbaritem id="window-controls">
  609.             <toolbarbutton id="minimize-button" class="toolbarbutton-1"
  610.                            oncommand="window.minimize();" tooltiptext="Minimize"/>
  611.             <toolbarbutton id="restore-button" class="toolbarbutton-1"
  612.                            oncommand="BrowserToggleMaximize();" observes="restoreButtonBroadcaster"/>
  613.             <toolbarbutton id="close-button" class="toolbarbutton-1"
  614.                            oncommand="BrowserClosedByCloseButton();"  tooltiptext="Close"/>
  615.         </toolbaritem>
  616.  
  617.     </toolbar>
  618.   </vbox>
  619.  
  620.     <!-- Throbber -->
  621.     <toolbaritem id="throbber-box" title="&throbberItem.title;"
  622.                  align="stretch" pack="start"
  623.                  top="0" left="0">
  624.         <titlebar flex="1" align="start"
  625.                   onmousedown="titlebar.throbberMouseDown(event);"
  626.                   onmouseup="titlebar.throbberMouseUp(event);">
  627.             <button id="navigator-throbber" observes="throbberBroadcaster"
  628.                     tooltiptext="&throbber.tooltip;"/>
  629.         </titlebar>
  630.     </toolbaritem>
  631.  
  632.  </stack>
  633.  
  634. </window>
  635.  
  636. </overlay>
  637.