home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / communicator / bookmarks / bookmarks.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  12KB  |  267 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- -*- Mode: HTML; indent-tabs-mode: nil; -*- -->
  4. <!--
  5.  
  6.   The contents of this file are subject to the Netscape Public
  7.   License Version 1.1 (the "License"); you may not use this file
  8.   except in compliance with the License. You may obtain a copy of
  9.   the License at http://www.mozilla.org/NPL/
  10.  
  11.   Software distributed under the License is distributed on an "AS
  12.   IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  13.   implied. See the License for the specific language governing
  14.   rights and limitations under the License.
  15.  
  16.   The Original Code is mozilla.org code.
  17.  
  18.   The Initial Developer of the Original Code is Netscape
  19.   Communications Corporation.  Portions created by Netscape are
  20.   Copyright (C) 1998 Netscape Communications Corporation. All
  21.   Rights Reserved.
  22.  
  23.   Contributor(s):
  24.     Ben Goodger <ben@netscape.com>
  25.     Blake Ross <blakeross@telocity.com>
  26.     Dean Tessman <dean_tessman@hotmail.com>
  27.     Mike Kowalski <mikejk@ameritech.net>
  28.  
  29. -->
  30.  
  31. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  32. <?xml-stylesheet href="chrome://communicator/skin/bookmarks/bookmarksWindow.css" type="text/css"?>
  33. <?xml-stylesheet href="chrome://communicator/content/bookmarks/bookmarks.css" type="text/css"?>
  34. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  35. <?xul-overlay href="chrome://communicator/content/bookmarks/bookmarksOverlay.xul"?>
  36. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  37. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  38. <?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
  39.  
  40. <!DOCTYPE window [
  41. <!ENTITY % utilDTD SYSTEM "chrome://communicator/locale/utilityOverlay.dtd" >
  42. %utilDTD;
  43. <!ENTITY % bmDTD SYSTEM "chrome://communicator/locale/bookmarks/bookmarks.dtd">
  44. %bmDTD;
  45. ]>
  46.  
  47. <window id="bookmark-window" windowtype="bookmarks:manager"
  48.         title="&bookmarksWindowTitle.label;"
  49.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  50.         xmlns:web="http://home.netscape.com/WEB-rdf#"
  51.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  52.         width="630" height="400" screenX="20" screenY="20"
  53.         persist="width height screenX screenY sizemode"
  54.         onload="Startup();" onunload="Shutdown();">
  55.  
  56.   <!-- The order of loading of these script files is IMPORTANT -->
  57.  
  58.   <!-- Shared Libraries -->
  59.   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  60.  
  61.   <!-- XXX - This should SO become an XBL widget -->
  62.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  63.  
  64.   <!-- Shared Bookmarks Utility Library -->
  65.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksOverlay.js"/>
  66.   <!-- Tree-based Bookmarks UI Utility Library -->
  67.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksTree.js"/>
  68.   <!-- Bookmarks Window -->
  69.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarks.js"/>
  70.  
  71.   <!-- Bookmarks Window Drag & Drop -->
  72.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  73.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  74.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksDD.js"/>
  75.  
  76.   <popupset id="bookmarksPopupset"/>
  77.  
  78.   <commands id="commands">
  79.     <commandset id="CommandUpdate_Bookmarks"
  80.                 commandupdater="true"
  81.                 events="focus,tree-select"
  82.                 oncommandupdate="document.getElementById('bookmarks-view').onCommandUpdate();">
  83.     </commandset>
  84.  
  85.     <commandset id="tasksCommands"/>
  86.  
  87.     <!-- File Menu -->
  88.     <command id="cmd_close" oncommand="close()"/>
  89.     <command id="cmd_quit"/>
  90.     <!-- Edit Menu -->
  91.     <command id="cmd_undo"/>
  92.   </commands>
  93.  
  94.   <stringbundleset id="stringbundleset"/>
  95.  
  96.   <keyset id="tasksKeys">
  97.     <!-- File Menu -->
  98.     <key id="key_close"/>
  99.     <key id="key_quit"/>
  100.     <!-- Edit Menu -->
  101.     <key id="key_undo"/>
  102.  
  103.     <!-- These keybindings do not have a command specified in the overlay,
  104.          which is good, but we need to specify it ourselves here -->
  105.     <key id="key_cut" command="cmd_bm_cut"/>
  106.     <key id="key_copy" command="cmd_bm_copy"/>
  107.     <key id="key_paste" command="cmd_bm_paste"/>
  108.     <key id="key_selectAll" command="cmd_bm_selectAll"/>
  109.  
  110.     <!-- We need to provide our own delete key binding because the key_delete
  111.          handler in platformGlobalOverlay.xul maps command to "cmd_delete" which
  112.          is NOT what we want! -->
  113.     <key id="key_bm_delete" keycode="VK_DELETE" command="cmd_bm_delete"/>
  114.  
  115.     <key id="bm_key_find"
  116.          key="&edit.find.keybinding;"
  117.          command="cmd_bm_find" modifiers="accel"/>
  118.     <key id="bm_key_properties"
  119.          key="&edit.properties.keybinding;"
  120.          command="cmd_bm_properties" modifiers="accel"/>
  121.   </keyset>
  122.  
  123.   <toolbox id="bookmarks-toolbox">
  124.     <menubar id="main-menubar" grippytooltiptext="&menuBar.tooltip;">
  125.       <menu id="menu_File">
  126.         <menupopup id="menu_FilePopup">
  127.           <menu id="menu_New">
  128.             <menupopup>
  129.               <menuitem label="&menuitem.newBookmark.label;"
  130.                         accesskey="&command.newBookmark.accesskey;"
  131.                         observes="cmd_bm_newbookmark"/>
  132.               <menuitem label="&menuitem.newFolder.label;"
  133.                         accesskey="&command.newFolder.accesskey;"
  134.                         observes="cmd_bm_newfolder"/>
  135.               <menuitem label="&menuitem.newSeparator.label;"
  136.                         accesskey="&command.newSeparator.accesskey;"
  137.                         observes="cmd_bm_newseparator"/>
  138.             </menupopup>
  139.           </menu>
  140.           <menuitem id="menu_close"/>
  141.         </menupopup>
  142.       </menu>
  143.       <menu id="menu_Edit">
  144.         <menupopup>
  145.           <menuitem id="menu_undo" disabled="true"/>
  146.           <menuseparator/>
  147.           <menuitem id="menu_bm_cut"
  148.                     label="&cutCmd.label;" accesskey="&cutCmd.accesskey;"
  149.                     key="key_cut" command="cmd_bm_cut"/>
  150.           <menuitem id="menu_bm_copy"
  151.                     label="©Cmd.label;" accesskey="©Cmd.accesskey;"
  152.                     key="key_copy" command="cmd_bm_copy"/>
  153.           <menuitem id="menu_bm_paste"
  154.                     label="&pasteCmd.label;" accesskey="&pasteCmd.accesskey;"
  155.                     key="key_paste" command="cmd_bm_paste"/>
  156.           <menuitem id="menu_bm_delete"
  157.                     label="&deleteCmd.label;" accesskey="&deleteCmd.accesskey;"
  158.                     key="key_bm_delete" command="cmd_bm_delete"/>
  159.           <menuseparator/>
  160.           <menuitem id="menu_bm_selectAll"
  161.                     label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"
  162.                     key="key_selectAll" command="cmd_bm_selectAll"/>
  163.           <menuseparator/>
  164.           <menuitem label="&command.fileBookmark.label;"
  165.                     accesskey="&command.fileBookmark.accesskey;"
  166.                     command="cmd_bm_fileBookmark"/>
  167.           <menuseparator/>
  168.             <menuitem observes="cmd_bm_properties" key="bm_key_properties"
  169.                       label="&command.properties.label;"
  170.                       accesskey="&command.properties.accesskey;" />
  171.         </menupopup>
  172.       </menu>
  173.  
  174.       <menu id="menu_View">
  175.         <menupopup onpopupshowing="fillViewMenu(event)"
  176.                    oncommand="onViewMenuSortItemSelected(event);">
  177.           <menuitem id="viewCommandToolbar" type="checkbox" class="menuitem-iconic"
  178.                     label="&menuitem.view.command.toolbar.label;"
  179.                     accesskey="&menuitem.view.command.toolbar.accesskey;"
  180.                     oncommand="goToggleToolbar('command-toolbar', 'viewCommandToolbar'); event.preventBubble();"
  181.                     persist="checked"/>
  182.           <menuseparator id="fill-after-this-node"/>
  183.           <menuitem id="natural" label="&menuitem.view.unsorted.label;"
  184.                     accesskey="&menuitem.view.unsorted.accesskey;"
  185.                     type="radio"
  186.                     resource="direction" name="sortSet"/>
  187.           <menuseparator id="fill-before-this-node"/>
  188.           <menuitem id="ascending" label="&menuitem.view.ascending.label;"
  189.                     accesskey="&menuitem.view.ascending.accesskey;"
  190.                     type="radio"
  191.                     resource="direction" name="sortDirectionSet"/>
  192.           <menuitem id="descending" label="&menuitem.view.descending.label;"
  193.                     accesskey="&menuitem.view.descending.accesskey;"
  194.                     type="radio"
  195.                     resource="direction" name="sortDirectionSet"/>
  196.           <menuseparator/>
  197.           <menu id="descending" label="&menuitem.view.show_columns.label;"
  198.                 accesskey="&menuitem.view.show_columns.accesskey;">
  199.             <menupopup id="columnsPopup" onpopupshowing="fillColumnsMenu(event);"
  200.                        oncommand="onViewMenuColumnItemSelected(event);"/>
  201.           </menu>
  202.           <menuseparator/>
  203.           <menuitem label="&menuitem.newbookmarkfolder.label;"
  204.                     command="cmd_bm_setnewbookmarkfolder"
  205.                     accesskey="&menuitem.newbookmarkfolder.accesskey;"/>
  206.           <menuitem label="&menuitem.newinternetsearchfolder.label;"
  207.                     command="cmd_bm_setnewsearchfolder"
  208.                     accesskey="&menuitem.newinternetsearchfolder.accesskey;"/>
  209.           <menuitem label="&menuitem.personaltoolbarfolder.label;"
  210.                     command="cmd_bm_setpersonaltoolbarfolder"
  211.                     accesskey="&menuitem.personaltoolbarfolder.accesskey;"/>
  212.         </menupopup>
  213.       </menu>
  214.       <menu id="tasksMenu">
  215.         <menupopup id="taskPopup">
  216.           <menuitem command="cmd_bm_find" key="bm_key_find"
  217.                     label="&menuitem.find.label;"
  218.                     accesskey="&menuitem.find.accesskey;"/>
  219.           <menuitem label="&menuitem.import.label;"
  220.                     accesskey="&menuitem.import.accesskey;"
  221.                     observes="cmd_bm_import"/>
  222.           <menuitem label="&menuitem.export.label;"
  223.                     accesskey="&menuitem.export.accesskey;"
  224.                     observes="cmd_bm_export"/>
  225.           <menuseparator/>
  226.         </menupopup>
  227.       </menu>
  228.       <menu id="windowMenu"/>
  229.       <menu id="menu_Help"/>
  230.     </menubar>
  231.  
  232.     <toolbar id="command-toolbar" tbalign="stretch" grippytooltiptext="&bookmarkToolbar.tooltip;">
  233.       <toolbarbutton id="newfolder" label="&button.newFolder.label;"
  234.                      accesskey="&button.newFolder.accesskey;"
  235.                      command="cmd_bm_newfolder"/>
  236.       <toolbarbutton id="newseparator" label="&button.newSeparator.label;"
  237.                      accesskey="&button.newSeparator.accesskey;"
  238.                      command="cmd_bm_newseparator"/>
  239.       <toolbarseparator/>
  240.       <toolbarbutton id="fileBookmark" label="&command.fileBookmark.label;"
  241.                      accesskey="&button.fileBookmark.accesskey;"
  242.                      command="cmd_bm_fileBookmark"/>
  243.       <toolbarseparator/>
  244.       <toolbarbutton id="properties" label="&command.properties.label;"
  245.                      accesskey="&button.properties.accesskey;"
  246.                      command="cmd_bm_properties"/>
  247.       <toolbarbutton id="rename" label="&command.rename.label;"
  248.                      accesskey="&button.rename.accesskey;"
  249.                      command="cmd_bm_rename"/>
  250.       <toolbarbutton id="delete" label="&command.delete.label;"
  251.                      accesskey="&button.delete.accesskey;"
  252.                      command="cmd_bm_delete"/>
  253.     </toolbar>
  254.  
  255.     <toolbar id="bookmarks-search" grippytooltiptext="&bookmarksSearch.tooltip;">
  256.       <label value="&find.label;" accesskey="&find.accesskey;" control="search-box"/>
  257.       <textbox id="search-box" flex="1"
  258.                type="timed" timeout="500"
  259.                callback="document.getElementById('bookmarks-view').searchBookmarks(document.getElementById('search-box').value)"/>
  260.     </toolbar>
  261.   </toolbox>
  262.  
  263.   <bookmarks-tree id="bookmarks-view" flex="1"/>
  264.  
  265. </window>
  266.  
  267.