home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
-
- <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
-
- <!DOCTYPE window SYSTEM "chrome://browser/locale/browser.dtd">
-
- <page id="webpanels-window"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- onload="load()" onunload="unload()">
- <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
- <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
- <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/web-panels.js"/>
-
- <stringbundleset id="stringbundleset">
- <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
- </stringbundleset>
-
- <popupset id="mainPopupSet">
-
- <popup id="contentAreaContextMenu"
- onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
- onpopuphiding="if (event.target == this) gContextMenu = null;">
- <menuitem id="context-openlinkintab"
- label="&openLinkCmdInTab.label;"
- accesskey="&openLinkCmdInTab.accesskey;"
- oncommand="gContextMenu.openLinkInTab();"/>
- <menuitem id="context-openlink"
- label="&openLinkCmd.label;"
- accesskey="&openLinkCmd.accesskey;"
- oncommand="gContextMenu.openLink();"/>
- <menuseparator id="context-sep-open"/>
- <menuitem id="context-bookmarklink"
- label="&bookmarkLinkCmd.label;"
- accesskey="&bookmarkLinkCmd.accesskey;"
- oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL(),
- gContextMenu.linkText());"/>
- <menuitem id="context-savelink"
- label="&saveLinkCmd.label;"
- accesskey="&saveLinkCmd.accesskey;"
- oncommand="gContextMenu.saveLink();"/>
- <menuitem id="context-sendlink"
- label="&sendLinkCmd.label;"
- accesskey="&sendLinkCmd.accesskey;"
- oncommand="gContextMenu.sendLink();"/>
- <menuitem id="context-copyemail"
- label="©EmailCmd.label;"
- accesskey="©EmailCmd.accesskey;"
- oncommand="gContextMenu.copyEmail();"/>
- <menuseparator id="context-sep-copylink"/>
- <menuitem id="context-viewimage"
- label="&viewImageCmd.label;"
- accesskey="&viewImageCmd.accesskey;"
- oncommand="gContextMenu.viewImage(event);"
- onclick="checkForMiddleClick(this, event);"/>
- <menuitem id="context-saveimage"
- label="&saveImageCmd.label;"
- accesskey="&saveImageCmd.accesskey;"
- oncommand="gContextMenu.saveImage();"/>
- <menuitem id="context-sendimage"
- label="&sendImageCmd.label;"
- accesskey="&sendImageCmd.accesskey;"
- oncommand="gContextMenu.sendImage();"/>
- <menuitem id="context-setWallpaper"
- label="&setWallpaperCmd.label;"
- accesskey="&setWallpaperCmd.accesskey;"
- oncommand="gContextMenu.setWallpaper();"/>
- <menuitem id="context-copyimage-contents"
- label="©ImageContentsCmd.label;"
- accesskey="©ImageContentsCmd.accesskey;"
- command="cmd_copyImageContents"/>
- <menuitem id="context-copyimage"
- label="©ImageCmd.label;"
- accesskey="©ImageCmd.accesskey;"
- command="cmd_copyImageLocation"/>
- <menuseparator id="context-sep-copyimage"/>
-
- <!--XXXBlake XUL sucks! We need autocheck for menuitems. -->
-
- <!-- MERC: ccampbell: commenting out because we need to change this
- to use Site Controls instead
-
- <menuitem id="context-blockimage" class="menuitem-iconic"
- accesskey="&blockImageCmd.accesskey;"
- oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') != 'true');"/>
- -->
-
- <menuitem id="context-back"
- label="&backCmd.label;"
- accesskey="&backCmd.accesskey;"
- command="Browser:Back"/>
- <menuitem id="context-forward"
- label="&forwardCmd.label;"
- accesskey="&forwardCmd.accesskey;"
- command="Browser:Forward"/>
- <menuitem id="context-reload"
- label="&reloadCmd.label;"
- accesskey="&reloadCmd.accesskey;"
- oncommand="BrowserReload();"/>
- <menuitem id="context-stop"
- label="&stopCmd.label;"
- accesskey="&stopCmd.accesskey;"
- command="Browser:Stop"/>
- <!-- MERC JA: BrowserReload() is called from toggleDisplayEngineSiteControl! -->
- <menuitem id="switchToTrident"
- label="&switchToTrident.label;"
- key="key_toggleEngine"
- accesskey="&switchToTrident.accesskey;"
- oncommand="gBrowser.mCurrentTab.toggleDisplayEngineSiteControl();"/>
- <menuseparator id="context-sep-stop"/>
- <menuitem id="context-undo"
- label="&undoCmd.label;"
- accesskey="&undoCmd.accesskey;"
- command="cmd_undo"/>
- <menuseparator id="context-sep-undo"/>
- <menuitem id="context-cut"
- label="&cutCmd.label;"
- accesskey="&cutCmd.accesskey;"
- command="cmd_cut"/>
- <menuitem id="context-copy"
- label="©Cmd.label;"
- accesskey="©Cmd.accesskey;"
- command="cmd_copy"/>
- <menuitem id="context-copylink"
- label="©LinkCmd.label;"
- accesskey="©LinkCmd.accesskey;"
- command="cmd_copyLink"/>
- <menuitem id="context-paste"
- label="&pasteCmd.label;"
- accesskey="&pasteCmd.accesskey;"
- command="cmd_paste"/>
- <menuitem id="context-delete"
- label="&deleteCmd.label;"
- accesskey="&deleteCmd.accesskey;"
- command="cmd_delete"/>
- <menuitem id="context-selectall"
- label="&selectAllCmd.label;"
- accesskey="&selectAllCmd.accesskey;"
- command="cmd_selectAll"/>
- <menuseparator id="context-sep-selectall"/>
- <menuitem id="context-bookmarkpage"
- label="&bookmarkPageCmd.label;"
- accesskey="&bookmarkPageCmd.accesskey;"
- oncommand="bookmarkPage(document.getElementById('content'));"/>
- <menuitem id="context-savepage"
- label="&savePageCmd.label;"
- accesskey="&savePageCmd.accesskey;"
- oncommand="saveDocument(window._content.document);"/>
- <menuitem id="context-sendpage"
- label="&sendPageCmd.label;"
- accesskey="&sendPageCmd.accesskey;"
- command="Browser:SendLink"/>
- <!--
- <menuitem key="context-addBookmarkAsTabGrp"
- label="&addCurTabsAsCmd.label;"
- accesskey="&addCurTabsAsCmd.accesskey;"
- command="Browser:AddBookmarkAs"/>
- <menuseparator id="context-sep-viewbgimage"/>
- -->
- <menuitem id="context-viewbgimage"
- label="&viewBGImageCmd.label;"
- accesskey="&viewBGImageCmd.accesskey;"
- oncommand="gContextMenu.viewBGImage(event);"
- onclick="checkForMiddleClick(this, event);"/>
- <menuitem id="context-keywordfield"
- label="&keywordfield.label;"
- accesskey="&keywordfield.accesskey;"
- oncommand="AddKeywordForSearchField();"/>
- <menuitem id="context-searchselect"
- accesskey="&search.accesskey;"
- oncommand="OpenSearch('internet', gContextMenu.searchSelected(), true);"/>
- <menuseparator id="frame-sep"/>
- <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
- <menupopup>
- <menuitem label="&showOnlyThisFrameCmd.label;"
- accesskey="&showOnlyThisFrameCmd.accesskey;"
- oncommand="gContextMenu.showOnlyThisFrame();"/>
- <menuitem label="&openFrameCmd.label;"
- accesskey="&openFrameCmd.accesskey;"
- oncommand="gContextMenu.openFrame();"/>
- <menuitem label="&openFrameCmdInTab.label;"
- accesskey="&openFrameCmdInTab.accesskey;"
- oncommand="gContextMenu.openFrameInTab();"/>
- <menuseparator/>
- <menuitem label="&reloadFrameCmd.label;"
- accesskey="&reloadFrameCmd.accesskey;"
- oncommand="gContextMenu.reloadFrame();"/>
- <menuseparator/>
- <menuitem label="&bookmarkFrameCmd.label;"
- accesskey="&bookmarkFrameCmd.accesskey;"
- oncommand="gContextMenu.addBookmarkForFrame();"/>
- <menuitem label="&saveFrameCmd.label;"
- accesskey="&saveFrameCmd.accesskey;"
- oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
- <menuseparator/>
- <menuitem label="&viewFrameSourceCmd.label;"
- accesskey="&viewFrameSourceCmd.accesskey;"
- oncommand="gContextMenu.viewFrameSource();"/>
- <menuitem label="&viewFrameInfoCmd.label;"
- accesskey="&viewFrameInfoCmd.accesskey;"
- oncommand="gContextMenu.viewFrameInfo();"/>
- </menupopup>
- </menu>
- <!-- MERC (DP): print menu items -->
- <menuseparator id="context-sep-print"/>
- <menuitem id="context-print"
- label="Print"
- accesskey="p"
- command="cmd_print"/>
- <!-- end -->
- <menuseparator id="context-sep-properties"/>
- <menuitem id="context-viewpartialsource-selection"
- label="&viewPartialSourceForSelectionCmd.label;"
- accesskey="&viewPartialSourceCmd.accesskey;"
- oncommand="gContextMenu.viewPartialSource('selection');"/>
- <menuitem id="context-viewpartialsource-mathml"
- label="&viewPartialSourceForMathMLCmd.label;"
- accesskey="&viewPartialSourceCmd.accesskey;"
- oncommand="gContextMenu.viewPartialSource('mathml');"/>
- <menuitem id="context-viewsource"
- label="&viewPageSourceCmd.label;"
- accesskey="&viewPageSourceCmd.accesskey;"
- oncommand="BrowserViewSourceOfDocument(_content.document);"/>
- <menuitem id="context-viewinfo"
- label="&viewPageInfoCmd.label;"
- accesskey="&viewPageInfoCmd.accesskey;"
- oncommand="gContextMenu.viewInfo();"/>
- <menuitem id="context-metadata"
- label="&metadataCmd.label;"
- accesskey="&metadataCmd.accesskey;"
- oncommand="gContextMenu.showMetadata();"/>
- <menuseparator hidden="true" id="context-sep-bidi"/>
- <menuitem hidden="true" id="context-bidi-text-direction-toggle"
- label="&bidiSwitchTextDirectionItem.label;"
- accesskey="&bidiSwitchTextDirectionItem.accesskey;"
- oncommand="SwitchTextEntryDirection(gContextMenu.target)"/>
- <menuitem hidden="true" id="context-bidi-page-direction-toggle"
- label="&bidiSwitchPageDirectionItem.label;"
- accesskey="&bidiSwitchPageDirectionItem.accesskey;"
- oncommand="SwitchDocumentDirection();"/>
- </popup>
-
- </popupset>
-
-
- <browser id="web-panels-browser" persist="cachedurl" type="content" flex="1"
- context="contentAreaContextMenu"
- onclick="return window.parent.contentAreaClick(event, true);"/>
- </page>
-