mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
162 lines
8.9 KiB
XML
162 lines
8.9 KiB
XML
<?xml version="1.0"?>
|
|
<!-- The contents of this file are subject to the Netscape Public
|
|
License Version 1.1 (the "License"); you may not use this file
|
|
except in compliance with the License. You may obtain a copy of
|
|
the License at http://www.mozilla.org/NPL/
|
|
|
|
Software distributed under the License is distributed on an "AS
|
|
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
implied. See the License for the specific language governing
|
|
rights and limitations under the License.
|
|
|
|
The Original Code is Mozilla Communicator client code, released
|
|
March 31, 1998.
|
|
|
|
The Initial Developer of the Original Code is Netscape
|
|
Communications Corporation. Portions created by Netscape are
|
|
Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
Rights Reserved.
|
|
|
|
Contributor(s): ______________________________________. -->
|
|
|
|
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
|
|
|
|
|
<!DOCTYPE window SYSTEM "chrome://navigator/locale/navigator.dtd" >
|
|
|
|
<overlay id="navigatorOverlay"
|
|
xmlns:html="http://www.w3.org/TR/REC-html40"
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<keyset id="keyset">
|
|
<!-- key id="newmessagekb" disabled="false" command="true" key="m" onkeypress="NewMessage()" / -->
|
|
|
|
<key id="newBrowserKb" disabled="false" command="true" key="&browserCmd.commandkey;" observes="Browser:NewWindow" />
|
|
<key id="newMailKb" disabled="false" command="true" key="&newMailCmd.commandkey;" observes="Browser:NewMail" />
|
|
<key id="newBlankPageKB" disabled="false" command="true" shift="true" key="&newBlankPageCmd.commandkey;" observes="Browser:NewEditor"/>
|
|
<key id="openBrowserKb" disabled="false" command="true" key="&openCmd.commandkey;" observes="Browser:OpenUrl" />
|
|
<key id="openFileKb" disabled="false" command="true" key="&openFileCmd.commandkey;" observes="Browser:OpenFile" />
|
|
<key id="printKb" disabled="false" command="true" key="&printCmd.commandkey;" observes="Browser:Print" />
|
|
<key id="key_close"/>
|
|
<key id="quitKb" disabled="false" command="true" key="&quitCmd.commandkey;" observes="Browser:Quit" />
|
|
|
|
<key id="goForwardKb" disabled="false" command="true" key="&goBackCmd.commandkey;" observes="Browser:GoForward" />
|
|
<key id="goBackwardKb" disabled="false" command="true" key="&goForwardCmd.commandkey;" observes="Browser:GoBackwards" />
|
|
<key id="goHomeKb" disabled="false" command="true" key="&goHomeCmd.commandkey;" observes="Browser:GoHome" />
|
|
|
|
<key id="addBookmarkKb" disabled="false" command="true" key="&addCurPageCmd.commandkey;" observes="Browser:AddBookmark" />
|
|
<key id="manBookmarkKb" disabled="false" command="true" key="&manBookmarksCmd.commandkey;" observes="Browser:ManageBookmark" />
|
|
|
|
<!-- how to handle return, enter, tab, function keys, arrow keys, others? saari working on solution -->
|
|
</keyset>
|
|
|
|
<broadcasterset id="broadcasterset">
|
|
<!-- Broadcaster nodes -->
|
|
<broadcaster id="Browser:NewWindow" value="&browserCmd.label;" oncommand="BrowserNewWindow()"/>
|
|
<broadcaster id="Browser:NewMail" value="&newMailCmd.label;" oncommand="MsgNewMessage();"/>
|
|
<broadcaster id="Browser:NewEditor" value="&newBlankPageCmd.label;" oncommand="BrowserNewEditorWindow();"/>
|
|
<broadcaster id="Browser:NewEditorTemplate" value="&newPageFromTemplateCmd.label;" disabled="true" oncommand="BrowserNewWindow();"/>
|
|
<broadcaster id="Browser:NewEditorDraft" value="&newPageFromDraftCmd.label;" disabled="true" oncommand="BrowserNewWindow();"/>
|
|
|
|
<broadcaster id="Browser:Open" value="&openCmd.label;" oncommand="BrowserOpenWindow();"/>
|
|
<broadcaster id="Browser:OpenFile" value="&openFileCmd.label;" oncommand="BrowserOpenFileWindow();"/>
|
|
|
|
<broadcaster id="cmd_close" oncommand="BrowserClose()"/>
|
|
|
|
<broadcaster id="Browser:SendPage" value="&sendPageCmd.label;" disabled ="true" oncommand="BrowserReload();"/>
|
|
<broadcaster id="Browser:EditPage" value="&editPageCmd.label;" oncommand="BrowserEditPage(window.content.location.href);"/>
|
|
|
|
<broadcaster id="Browser:GoOffline" value="&offlineGoOfflineCmd.label;" disabled="true" oncommand="BrowserReload();"/>
|
|
<broadcaster id="Browser:Synchronize" value="&offlineSynchronizeCmd.label;" disabled="true" oncommand="BrowserReload();"/>
|
|
|
|
<broadcaster id="Browser:PrintSetup" value="&printSetupCmd.label;" disabled ="true" oncommand="BrowserReload();"/>
|
|
<broadcaster id="Browser:PrintPreview" value="&printPreviewCmd.label;" disabled="true" oncommand="BrowserReload();"/>
|
|
<broadcaster id="Browser:Print" value="&printCmd.label;" oncommand="BrowserPrint();"/>
|
|
|
|
|
|
<broadcaster id="Browser:Quit" value="&quitCmd.label;" oncommand="BrowserExit();"/>
|
|
|
|
<broadcaster id="canGoBack" value="&goBackCmd.label;" disabled="true" oncommand="BrowserBack();"/>
|
|
<broadcaster id="canGoForward" value="&goForwardCmd.label;" disabled="true" oncommand="BrowserForward();"/>
|
|
<broadcaster id="Browser:Home" value="&goHomeCmd.label;" oncommand="BrowserHome();" />
|
|
|
|
<broadcaster id="Browser:AddBookmark" value="&addCurPageCmd.label;" oncommand="BrowserAddBookmark(window.content.location.href,window.content.document.title);"/>
|
|
<broadcaster id="Browser:ManageBookmark" value="&manBookmarksCmd.label;" oncommand="BrowserEditBookmarks();" />
|
|
</broadcasterset>
|
|
|
|
|
|
<menu id="menu_File">
|
|
<menupopup>
|
|
<menuitem accesskey="&browserCmd.accesskey;" key="newBrowserKb" observes="Browser:NewWindow" />
|
|
<menu value="&newMenu.label;" accesskey="&newMenu.accesskey;">
|
|
<menupopup>
|
|
<menuitem accessKey="&newMailCmd.accesskey;" key="newMailKb" observes="Browser:NewMail"/>
|
|
<menuseparator />
|
|
<menuitem accessKey="&newBlankPageCmd.accesskey;" key="newBlankPageKB" observes="Browser:NewEditor"/>
|
|
<menuitem accessKey="&newPageFromTemplateCmd.accesskey;" observes="Browser:NewEditorTemplate"/>
|
|
<menuitem accessKey="&newPageFromDraftCmd.accesskey;" observes="Browser:NewEditorDraft"/>
|
|
</menupopup>
|
|
</menu>
|
|
|
|
<menuitem accesskey="&openCmd.accesskey;" key="openBrowserKb" observes="Browser:Open"/>
|
|
<menuitem accesskey="&openFileCmd.accesskey;" key="openFileKb" observes="Browser:OpenFile"/>
|
|
<menuseparator/>
|
|
<menuitem id="menu_close"/>
|
|
<menuseparator/>
|
|
<menuitem accesskey="&sendPageCmd.label;" observes="Browser:SendPage"/>
|
|
<menuitem accesskey="&editPageCmd.label;" observes="Browser:EditPage" />
|
|
<menuseparator />
|
|
<menu value="&offlineMenu.label;" disabled ="true" accesskey="&offlineMenu.accesskey;">
|
|
<menupopup>
|
|
<menuitem accesskey="&offlineGoOfflineCmd.accesskey;" observes="Browser:GoOffline"/>
|
|
<menuseparator />
|
|
<menuitem accesskey="&offlineSynchronizeCmd.accesskey;" observes="Browser:Synchronize"/>
|
|
</menupopup>
|
|
</menu>
|
|
<menuseparator/>
|
|
<menuitem accesskey="&printSetupCmd.accesskey;" observes="Browser:PrintSetup"/>
|
|
<menuitem accesskey="&printPreviewCmd.accesskey;" observes="Browser:PrintPreview"/>
|
|
<menuitem accesskey="&printCmd.accesskey;" key="printKb" observes="Browser:Print"/>
|
|
<menuseparator />
|
|
<menuitem accesskey="&quitCmd.accesskey;" key="quitKb" observes="Browser:Quit"/>
|
|
</menupopup>
|
|
</menu>
|
|
|
|
<menu accesskey="&goMenu.accesskey;" id="gomenu" value="&goMenu.label;" >
|
|
<menupopup>
|
|
<menuitem id="menuitem-back" accesskey="&goBackCmd.accesskey;" key="goBackwardKb" observes="canGoBack"/>
|
|
<menuitem id="menuitem-forward" accesskey="&goForwardCmd.accesskey;" key="goForwardKb" observes="canGoForward" />
|
|
<menuitem accesskey="&goHomeCmd.accesskey;" key="goHomeKb" observes="Browser:Home"/>
|
|
<menuseparator />
|
|
</menupopup>
|
|
</menu>
|
|
|
|
|
|
<menu accesskey="&bookmarksMenu.accesskey;" value="&bookmarksMenu.label;"
|
|
datasources="rdf:bookmarks rdf:files rdf:find rdf:internetsearch" id="BookmarksMenu" ref="NC:BookmarksRoot">
|
|
<template>
|
|
<rule iscontainer="true">
|
|
<menupopup>
|
|
<menu uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
|
|
</menupopup>
|
|
</rule>
|
|
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
|
|
<menupopup>
|
|
<menuseparator uri="..." />
|
|
</menupopup>
|
|
</rule>
|
|
<rule>
|
|
<menupopup>
|
|
<menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="OpenBookmarkURL(event.target, 'BookmarksMenu')" />
|
|
</menupopup>
|
|
</rule>
|
|
</template>
|
|
<menupopup>
|
|
<menuitem accesskey="&addCurPageCmd.accesskey;" key="addBookmarkKb" observes="Browser:AddBookmark"/>
|
|
<menuitem accesskey="&manBookmarksCmd.accesskey;" key="manBookmarkKb" observes="Browser:ManageBookmark"/>
|
|
<menuseparator/>
|
|
</menupopup>
|
|
</menu>
|
|
</overlay>
|