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 / addBookmark.xul < prev    next >
Extensible Markup Language  |  2001-05-09  |  5KB  |  135 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> (Original Author)
  25.  
  26. -->
  27.  
  28. <?xml-stylesheet href="chrome://communicator/skin/"?>
  29. <?xml-stylesheet href="chrome://communicator/skin/bookmarks/bookmarks.css"?>
  30.  
  31. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  32.  
  33. <!DOCTYPE window [
  34. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  35. %brandDTD;
  36. <!ENTITY % addBookmarkDTD SYSTEM "chrome://communicator/locale/bookmarks/addBookmark.dtd">
  37. %addBookmarkDTD;
  38. ]>
  39.  
  40. <window id="newBookmarkWindow" style="width: 36em;"
  41.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  42.         title="&newBookmark.title;" title-selectFolder="&selectFolder.label;"
  43.         orient="vertical" class="dialog"
  44.         onload="Startup();"
  45.         persist="screenX screenY width height"
  46.         screenX="24" screenY="24">
  47.    
  48.   
  49.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksOverlay.js"/>
  50.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksTree.js"/>
  51.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/addBookmark.js"/>
  52.  
  53.   <stringbundle id="bookmarksbundle"
  54.                 src="chrome://communicator/locale/bookmarks/bookmark.properties"/>
  55.  
  56.   
  57.   <keyset id="dialogKeys"/>
  58.   
  59.   <separator id="nameseparator" class="thin"/>
  60.   
  61.   <grid id="bookmarknamegrid">
  62.     <columns>
  63.       <column/>
  64.       <column flex="5"/>
  65.       <column flex="1"/>
  66.     </columns>
  67.     <rows>
  68.       <row autostretch="never">
  69.         <text class="label" value="&name.label;" accesskey="&name.accesskey;" for="name"/>
  70.         <textbox id="name"/>
  71.         <spring/>
  72.       </row>
  73.       <row>
  74.         <separator class="thin"/>
  75.         <separator class="thin"/>
  76.         <spring/>
  77.       </row>
  78.       <row autostretch="never">
  79.         <text class="label" value="&url.label;" accesskey="&url.accesskey;" for="url"/>
  80.         <textbox id="url" oninput="onLocationInput();"/>
  81.         <spring/>
  82.       </row>
  83.     </rows>
  84.   </grid>
  85.  
  86.   <separator id="createinseparator"/>
  87.  
  88.   <vbox id="folderbox" flex="1">
  89.     <separator/>
  90.     <hbox flex="1">
  91.       <text id="createinlabel" class="label" value="&createin.label;"/>
  92.       <hbox flex="1">
  93.         <tree id="folders" flex="1" style="height: 12em; width: 0px"
  94.               class="inset" ref="NC:BookmarksRoot" datasources="rdf:bookmarks"
  95.               template="file-bookmarks-template"
  96.               onselect="onTreeSelect();" onkeypress="event.preventBubble();">
  97.           <treecolgroup>
  98.             <treecol flex="1"/>
  99.           </treecolgroup>
  100.     
  101.           <template id="file-bookmarks-template">
  102.             <rule iscontainer="true">
  103.               <treechildren>
  104.                 <treeitem uri="rdf:*" persist="open" class="bookmark-item"
  105.                           rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  106.                   <treerow>
  107.                     <treecell label="rdf:http://home.netscape.com/NC-rdf#Name"
  108.                               class="treecell-indent treecell-editable" editable="true"
  109.                               src="rdf:http://home.netscape.com/NC-rdf#Icon"
  110.                               rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  111.                               loading="rdf:http://home.netscape.com/NC-rdf#loading"/>
  112.                   </treerow>
  113.                 </treeitem>
  114.               </treechildren>
  115.             </rule>
  116.           </template>
  117.           <treechildren id="folderKids" flex="1"/>
  118.         </tree>
  119.         <vbox>
  120.           <button label="&button.newfolder.label;" accesskey="&button.newfolder.accesskey;"
  121.                   oncommand="createNewFolder();"/>
  122.           <button label="&button.defaultfolder.label;" 
  123.                   accesskey="&button.defaultfolder.accesskey;"
  124.                   oncommand="useDefaultFolder();"/>
  125.         </vbox>
  126.       </hbox>
  127.     </hbox>
  128.     <separator/>
  129.   </vbox>
  130.  
  131.   <!-- XXX - need to use an "Add Bookmark" string here -->
  132.   <box id="okCancelButtonsRight"/>
  133.  
  134. </window>        
  135.