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 / web-panels.xul < prev    next >
Extensible Markup Language  |  2005-09-26  |  12KB  |  255 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 
  5.  
  6. <!DOCTYPE window SYSTEM "chrome://browser/locale/browser.dtd">
  7.  
  8. <page id="webpanels-window"
  9.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  10.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.         onload="load()" onunload="unload()"> 
  12.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  13.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  14.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  15.   <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
  16.   <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
  17.   <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  18.   <script type="application/x-javascript" src="chrome://browser/content/web-panels.js"/>
  19.  
  20.   <stringbundleset id="stringbundleset"> 
  21.     <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
  22.   </stringbundleset>
  23.     
  24.   <popupset id="mainPopupSet">
  25.  
  26.     <popup id="contentAreaContextMenu"
  27.            onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
  28.            onpopuphiding="if (event.target == this) gContextMenu = null;">
  29.       <menuitem id="context-openlinkintab"
  30.                 label="&openLinkCmdInTab.label;"
  31.                 accesskey="&openLinkCmdInTab.accesskey;"
  32.                 oncommand="gContextMenu.openLinkInTab();"/>
  33.       <menuitem id="context-openlink"
  34.                 label="&openLinkCmd.label;"
  35.                 accesskey="&openLinkCmd.accesskey;"
  36.                 oncommand="gContextMenu.openLink();"/>
  37.       <menuseparator id="context-sep-open"/>
  38.       <menuitem id="context-bookmarklink"
  39.                 label="&bookmarkLinkCmd.label;"
  40.                 accesskey="&bookmarkLinkCmd.accesskey;"
  41.                 oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL(),
  42.                                                       gContextMenu.linkText());"/>
  43.       <menuitem id="context-savelink"
  44.                 label="&saveLinkCmd.label;"
  45.                 accesskey="&saveLinkCmd.accesskey;"
  46.                 oncommand="gContextMenu.saveLink();"/>
  47.       <menuitem id="context-sendlink"
  48.                 label="&sendLinkCmd.label;"
  49.                 accesskey="&sendLinkCmd.accesskey;"
  50.                 oncommand="gContextMenu.sendLink();"/>
  51.       <menuitem id="context-copyemail"
  52.                 label="©EmailCmd.label;"
  53.                 accesskey="©EmailCmd.accesskey;"
  54.                 oncommand="gContextMenu.copyEmail();"/>
  55.       <menuseparator id="context-sep-copylink"/>
  56.       <menuitem id="context-viewimage"
  57.                 label="&viewImageCmd.label;"
  58.                 accesskey="&viewImageCmd.accesskey;"
  59.                 oncommand="gContextMenu.viewImage(event);"
  60.                 onclick="checkForMiddleClick(this, event);"/>
  61.       <menuitem id="context-saveimage"
  62.                 label="&saveImageCmd.label;"
  63.                 accesskey="&saveImageCmd.accesskey;"
  64.                 oncommand="gContextMenu.saveImage();"/>
  65.       <menuitem id="context-sendimage"  
  66.                 label="&sendImageCmd.label;" 
  67.                 accesskey="&sendImageCmd.accesskey;" 
  68.                 oncommand="gContextMenu.sendImage();"/>
  69.       <menuitem id="context-setWallpaper"
  70.                 label="&setWallpaperCmd.label;"
  71.                 accesskey="&setWallpaperCmd.accesskey;"
  72.                 oncommand="gContextMenu.setWallpaper();"/>
  73.       <menuitem id="context-copyimage-contents"
  74.                 label="©ImageContentsCmd.label;"
  75.                 accesskey="©ImageContentsCmd.accesskey;"
  76.                 command="cmd_copyImageContents"/>
  77.       <menuitem id="context-copyimage"
  78.                 label="©ImageCmd.label;"
  79.                 accesskey="©ImageCmd.accesskey;"
  80.                 command="cmd_copyImageLocation"/>
  81.       <menuseparator id="context-sep-copyimage"/>
  82.  
  83. <!--XXXBlake XUL sucks! We need autocheck for menuitems. -->
  84.  
  85. <!-- MERC: ccampbell: commenting out because we need to change this
  86.      to use Site Controls instead
  87.  
  88.       <menuitem id="context-blockimage" class="menuitem-iconic"
  89.                 accesskey="&blockImageCmd.accesskey;"
  90.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') != 'true');"/>
  91. -->
  92.  
  93.       <menuitem id="context-back"
  94.                 label="&backCmd.label;"
  95.                 accesskey="&backCmd.accesskey;"
  96.                 command="Browser:Back"/>
  97.       <menuitem id="context-forward"
  98.                 label="&forwardCmd.label;"
  99.                 accesskey="&forwardCmd.accesskey;"
  100.                 command="Browser:Forward"/>
  101.       <menuitem id="context-reload"
  102.                 label="&reloadCmd.label;"
  103.                 accesskey="&reloadCmd.accesskey;"
  104.                 oncommand="BrowserReload();"/>
  105.       <menuitem id="context-stop"
  106.                 label="&stopCmd.label;"
  107.                 accesskey="&stopCmd.accesskey;"
  108.                 command="Browser:Stop"/>
  109.         <!-- MERC JA: BrowserReload() is called from toggleDisplayEngineSiteControl! -->
  110.       <menuitem id="switchToTrident"
  111.                 label="&switchToTrident.label;"
  112.                 key="key_toggleEngine"
  113.                 accesskey="&switchToTrident.accesskey;"
  114.                 oncommand="gBrowser.mCurrentTab.toggleDisplayEngineSiteControl();"/>
  115.       <menuseparator id="context-sep-stop"/>
  116.       <menuitem id="context-undo"
  117.                 label="&undoCmd.label;"
  118.                 accesskey="&undoCmd.accesskey;"
  119.                 command="cmd_undo"/>
  120.       <menuseparator id="context-sep-undo"/>
  121.       <menuitem id="context-cut"
  122.                 label="&cutCmd.label;"
  123.                 accesskey="&cutCmd.accesskey;"
  124.                 command="cmd_cut"/>
  125.       <menuitem id="context-copy"
  126.                 label="©Cmd.label;"
  127.                 accesskey="©Cmd.accesskey;"
  128.                 command="cmd_copy"/>
  129.       <menuitem id="context-copylink"
  130.                 label="©LinkCmd.label;"
  131.                 accesskey="©LinkCmd.accesskey;"
  132.                 command="cmd_copyLink"/>
  133.       <menuitem id="context-paste"
  134.                 label="&pasteCmd.label;"
  135.                 accesskey="&pasteCmd.accesskey;"
  136.                 command="cmd_paste"/>
  137.       <menuitem id="context-delete"
  138.                 label="&deleteCmd.label;"
  139.                 accesskey="&deleteCmd.accesskey;"
  140.                 command="cmd_delete"/>
  141.       <menuitem id="context-selectall"
  142.                 label="&selectAllCmd.label;"
  143.                 accesskey="&selectAllCmd.accesskey;"
  144.                 command="cmd_selectAll"/>      
  145.       <menuseparator id="context-sep-selectall"/>
  146.       <menuitem id="context-bookmarkpage"
  147.                 label="&bookmarkPageCmd.label;"
  148.                 accesskey="&bookmarkPageCmd.accesskey;"
  149.                 oncommand="bookmarkPage(document.getElementById('content'));"/>
  150.       <menuitem id="context-savepage"
  151.                 label="&savePageCmd.label;"
  152.                 accesskey="&savePageCmd.accesskey;"
  153.                 oncommand="saveDocument(window._content.document);"/>
  154.       <menuitem id="context-sendpage"  
  155.                 label="&sendPageCmd.label;" 
  156.                 accesskey="&sendPageCmd.accesskey;" 
  157.                 command="Browser:SendLink"/>
  158. <!--
  159.       <menuitem key="context-addBookmarkAsTabGrp"
  160.                 label="&addCurTabsAsCmd.label;"
  161.                 accesskey="&addCurTabsAsCmd.accesskey;"
  162.                 command="Browser:AddBookmarkAs"/>
  163.       <menuseparator id="context-sep-viewbgimage"/>  
  164. -->
  165.       <menuitem id="context-viewbgimage"
  166.                 label="&viewBGImageCmd.label;"
  167.                 accesskey="&viewBGImageCmd.accesskey;"
  168.                 oncommand="gContextMenu.viewBGImage(event);"
  169.                 onclick="checkForMiddleClick(this, event);"/>
  170.       <menuitem id="context-keywordfield"
  171.                 label="&keywordfield.label;"
  172.                 accesskey="&keywordfield.accesskey;"
  173.                 oncommand="AddKeywordForSearchField();"/>
  174.       <menuitem id="context-searchselect"
  175.                 accesskey="&search.accesskey;"
  176.                 oncommand="OpenSearch('internet', gContextMenu.searchSelected(), true);"/>
  177.       <menuseparator id="frame-sep"/>
  178.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  179.         <menupopup>
  180.           <menuitem label="&showOnlyThisFrameCmd.label;"
  181.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  182.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  183.           <menuitem label="&openFrameCmd.label;"
  184.                     accesskey="&openFrameCmd.accesskey;"
  185.                     oncommand="gContextMenu.openFrame();"/>
  186.           <menuitem label="&openFrameCmdInTab.label;"
  187.                     accesskey="&openFrameCmdInTab.accesskey;"
  188.                     oncommand="gContextMenu.openFrameInTab();"/>
  189.           <menuseparator/>
  190.           <menuitem label="&reloadFrameCmd.label;"
  191.                     accesskey="&reloadFrameCmd.accesskey;"
  192.                     oncommand="gContextMenu.reloadFrame();"/>
  193.           <menuseparator/>
  194.           <menuitem label="&bookmarkFrameCmd.label;"
  195.                     accesskey="&bookmarkFrameCmd.accesskey;"
  196.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  197.           <menuitem label="&saveFrameCmd.label;"
  198.                     accesskey="&saveFrameCmd.accesskey;"
  199.                     oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
  200.           <menuseparator/>
  201.           <menuitem label="&viewFrameSourceCmd.label;"
  202.                     accesskey="&viewFrameSourceCmd.accesskey;"
  203.                     oncommand="gContextMenu.viewFrameSource();"/>
  204.           <menuitem label="&viewFrameInfoCmd.label;"
  205.                     accesskey="&viewFrameInfoCmd.accesskey;"
  206.                     oncommand="gContextMenu.viewFrameInfo();"/>        
  207.         </menupopup>
  208.       </menu>
  209.       <!-- MERC (DP): print menu items -->
  210.       <menuseparator id="context-sep-print"/>
  211.       <menuitem id="context-print"
  212.                 label="Print"
  213.                 accesskey="p"
  214.                 command="cmd_print"/>
  215.       <!-- end -->
  216.       <menuseparator id="context-sep-properties"/>
  217.       <menuitem id="context-viewpartialsource-selection"
  218.                 label="&viewPartialSourceForSelectionCmd.label;"
  219.                 accesskey="&viewPartialSourceCmd.accesskey;"
  220.                 oncommand="gContextMenu.viewPartialSource('selection');"/>
  221.       <menuitem id="context-viewpartialsource-mathml"
  222.                 label="&viewPartialSourceForMathMLCmd.label;"
  223.                 accesskey="&viewPartialSourceCmd.accesskey;"
  224.                 oncommand="gContextMenu.viewPartialSource('mathml');"/>
  225.       <menuitem id="context-viewsource"
  226.                 label="&viewPageSourceCmd.label;"
  227.                 accesskey="&viewPageSourceCmd.accesskey;"
  228.                 oncommand="BrowserViewSourceOfDocument(_content.document);"/>
  229.       <menuitem id="context-viewinfo"
  230.                 label="&viewPageInfoCmd.label;"
  231.                 accesskey="&viewPageInfoCmd.accesskey;"
  232.                 oncommand="gContextMenu.viewInfo();"/>
  233.       <menuitem id="context-metadata"
  234.                 label="&metadataCmd.label;"
  235.                 accesskey="&metadataCmd.accesskey;"
  236.                 oncommand="gContextMenu.showMetadata();"/>
  237.       <menuseparator hidden="true" id="context-sep-bidi"/>
  238.       <menuitem hidden="true" id="context-bidi-text-direction-toggle"
  239.                 label="&bidiSwitchTextDirectionItem.label;"
  240.                 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  241.                 oncommand="SwitchTextEntryDirection(gContextMenu.target)"/>
  242.       <menuitem hidden="true" id="context-bidi-page-direction-toggle"
  243.                 label="&bidiSwitchPageDirectionItem.label;"
  244.                 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  245.                 oncommand="SwitchDocumentDirection();"/>
  246.     </popup>
  247.  
  248.   </popupset>
  249.   
  250.   
  251.   <browser id="web-panels-browser" persist="cachedurl" type="content" flex="1"
  252.            context="contentAreaContextMenu"
  253.            onclick="return window.parent.contentAreaClick(event, true);"/>
  254. </page>
  255.