home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 December / VPR0112B.ISO / NETSCAPE6 / N6Setup.exe / bin / chrome / comm.jar / content / communicator / bookmarks / bm-panel.xul < prev    next >
Extensible Markup Language  |  2001-06-06  |  7KB  |  152 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- --> 
  2. <!--
  3.  
  4.   The contents of this file are subject to the Netscape Public
  5.   License Version 1.1 (the "License"); you may not use this file
  6.   except in compliance with the License. You may obtain a copy of
  7.   the License at http://www.mozilla.org/NPL/
  8.  
  9.   Software distributed under the License is distributed on an "AS
  10.   IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.   implied. See the License for the specific language governing
  12.   rights and limitations under the License.
  13.  
  14.   The Original Code is mozilla.org code.
  15.  
  16.   The Initial Developer of the Original Code is Netscape
  17.   Communications Corporation.  Portions created by Netscape are
  18.   Copyright (C) 1998 Netscape Communications Corporation. All
  19.   Rights Reserved.
  20.  
  21.   Contributor(s): 
  22.     Ben Goodger <ben@netscape.com> (Original Author, v2.0)
  23.  
  24. -->
  25.  
  26. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  27. <?xml-stylesheet href="chrome://communicator/skin/bookmarks/bookmarksWindow.css" type="text/css"?>
  28.  
  29. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  30. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  31. <?xul-overlay href="chrome://communicator/content/bookmarks/bookmarksOverlay.xul"?>
  32. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  33. <?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
  34.  
  35. <!DOCTYPE window SYSTEM "chrome://communicator/locale/bookmarks/bookmarks.dtd">
  36.  
  37. <window id="bookmarksPanel" orient="vertical"
  38.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  39.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  40.         onload="Startup();">
  41.  
  42.   <!-- Generic Utilities -->
  43.   <script type="application/x-javascript" src="chrome://global/content/nsTreeUtils.js"/>
  44.   <!-- XXX - would like to cut this dependency out -->
  45.   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  46.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  47.   <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  48.  
  49.   <!-- Bookmarks Shell -->
  50.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksOverlay.js"/>
  51.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksTree.js"/>
  52.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksPanel.js"/>
  53.  
  54.   <!-- Drag and Drop -->
  55.   <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  56.   <script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
  57.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  58.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  59.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksDD.js"/>
  60.  
  61.  
  62.   <!-- context menu, tooltips, etc -->
  63.   <popupset id="bookmarksPopupset"/>
  64.   
  65.   <!-- bookmarks string bundle -->
  66.   <stringbundleset id="stringbundleset"/>
  67.   
  68.   <!-- bookmarks & edit commands -->
  69.   <commands id="commands">
  70.     <commandset id="CommandUpdate_Bookmarks"
  71.                 commandupdater="true"
  72.                 events="click,focus,tree-select"
  73.                 oncommandupdate="BookmarksTree.prototype.controller.onCommandUpdate()">
  74.     </commandset>                
  75.     <commandset id="bookmarksItems"/>
  76.   </commands>
  77.   
  78.   <box id="panel-bar" class="toolbar">
  79.     <button class="button-toolbar" label="&command.addBookmark.label;"
  80.             oncommand="gBookmarksShell.addBookmark();"/>
  81.     <button class="button-toolbar" label="&command.manageBookmarks.label;"
  82.             oncommand="gBookmarksShell.manageBookmarks();"/>
  83.     <spring flex="1"/>
  84.     <toolbarseparator/>
  85.     <button class="button-toolbar" label="&command.findBookmarks.label;"
  86.             oncommand="gBookmarksShell.findInBookmarks();"/>
  87.   </box>
  88.   
  89.   <tree id="bookmarksTree" context="bmContext" ref="NC:BookmarksRoot" class="sidebarTree"
  90.         datasources="rdf:bookmarks rdf:files rdf:httpindex rdf:localsearch rdf:internetsearch"
  91.         flags="dont-test-empty"
  92.         type="http://home.netscape.com/NC-rdf#Folder"
  93.         ondragover="nsDragAndDrop.dragOver(event, bookmarksDNDObserver);"
  94.         ondraggesture="nsDragAndDrop.startDrag(event, bookmarksDNDObserver);"
  95.         ondragdrop="nsDragAndDrop.drop(event, bookmarksDNDObserver);"
  96.         onclick="gBookmarksShell.hlClick(event);"
  97.         style="height:0px" flex="1">
  98.  
  99.     <template>
  100.       <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  101.         <treechildren>
  102.           <treeitem uri="rdf:*"
  103.                     rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  104.             <treerow>
  105.               <treecell autostretch="never"><treeindentation/>
  106.                         <separator class="groove" flex="1"/></treecell>
  107.             </treerow>
  108.           </treeitem>     
  109.         </treechildren>
  110.       </rule>
  111.   
  112.       <rule>
  113.         <treechildren>
  114.           <treeitem uri="rdf:*" persist="open" class="bookmark-item"
  115.                     status="rdf:http://home.netscape.com/WEB-rdf#status"
  116.                     rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  117.                     loading="rdf:http://home.netscape.com/NC-rdf#loading">
  118.             <treerow>
  119.               <treecell class="treecell-indent treecell-editable"
  120.                         editable="true" label="rdf:http://home.netscape.com/NC-rdf#Name"
  121.                         src="rdf:http://home.netscape.com/NC-rdf#Icon"
  122.                         web:status="rdf:http://home.netscape.com/WEB-rdf#status"
  123.                         rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  124.                         loading="rdf:http://home.netscape.com/NC-rdf#loading" />
  125.             </treerow>
  126.           </treeitem>
  127.         </treechildren>
  128.       </rule>
  129.     </template>
  130.  
  131.     <treecolgroup id="theColumns">
  132.       <treecol id="Name"
  133.                sortSeparators="true" width="4*" flex="4"
  134.                persist="hidden width sortActive sortDirection" 
  135.                resource="http://home.netscape.com/NC-rdf#Name"/>
  136.     </treecolgroup>
  137.     
  138.     <treehead>
  139.       <treerow id="headRow">
  140.         <treecell class="treecell-header sortDirectionIndicator treecell-header-sidebarpanel"
  141.                   label="&tree.header.name.label;"
  142.                   onclick="return TriStateColumnSort('Name');"
  143.                   observes="Name" />
  144.       </treerow>
  145.     </treehead>
  146.  
  147.     <treechildren flex="1" id="treechildren-bookmarks" 
  148.                   onclick="gBookmarksShell.treeOpen(event);"/>
  149.   </tree>
  150.  
  151. </window>
  152.