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 / addBookmark.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  4KB  |  120 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. <?xml-stylesheet href="chrome://communicator/content/bookmarks/bookmarks.css" type="text/css"?>
  31.  
  32. <!DOCTYPE dialog [
  33. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  34. %brandDTD;
  35. <!ENTITY % addBookmarkDTD SYSTEM "chrome://communicator/locale/bookmarks/addBookmark.dtd">
  36. %addBookmarkDTD;
  37. ]>
  38.  
  39. <dialog id="newBookmarkDialog"
  40.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  41.         ondialogaccept="return onOK(event)"
  42.         title="&newBookmark.title;" title-selectFolder="&selectFolder.label;"
  43.         onload="Startup();"
  44.         onunload="persistTreeSize();"
  45.         persist="screenX screenY"
  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.   <broadcaster id="showaddgroup"/>
  57.  
  58.   <separator id="nameseparator" class="thin"/>
  59.   
  60.   <grid id="bookmarknamegrid">
  61.     <columns>
  62.       <column/>
  63.       <column flex="5"/>
  64.       <column flex="1"/>
  65.     </columns>
  66.     <rows>
  67.       <row align="center">
  68.         <label value="&name.label;" accesskey="&name.accesskey;" control="name"/>
  69.         <textbox id="name" oninput="onFieldInput();"/>
  70.         <spacer/>
  71.       </row>
  72.       <row>
  73.         <separator class="thin"/>
  74.         <separator class="thin"/>
  75.         <spacer/>
  76.       </row>
  77.       <row align="center">
  78.         <label value="&url.label;" accesskey="&url.accesskey;" control="url"/>
  79.         <textbox id="url" oninput="onFieldInput();"/>
  80.         <spacer/>
  81.       </row>
  82.       <row observes="showaddgroup">
  83.         <separator class="thin"/>
  84.         <separator class="thin"/>
  85.         <spacer/>
  86.       </row>
  87.       <row observes="showaddgroup">
  88.         <spacer/>
  89.         <hbox pack="start">
  90.           <checkbox id="addgroup" label="&addGroup.label;"
  91.                     accesskey="&addGroup.accesskey;" oncommand="toggleGroup();"/>
  92.         </hbox>
  93.         <spacer/>
  94.       </row>
  95.     </rows>
  96.   </grid>
  97.  
  98.   <separator id="createinseparator"/>
  99.  
  100.   <vbox id="folderbox" flex="1">
  101.     <separator/>
  102.     <hbox flex="1">
  103.       <label id="createinlabel" value="&createin.label;"/>
  104.       <hbox flex="1">
  105.         <bookmarks-tree id="bookmarks-view" flex="1" type="folders"/>
  106.         <vbox>
  107.           <button label="&button.newfolder.label;" accesskey="&button.newfolder.accesskey;"
  108.                   oncommand="createNewFolder();"/>
  109.           <button label="&button.defaultfolder.label;" 
  110.                   accesskey="&button.defaultfolder.accesskey;"
  111.                   oncommand="useDefaultFolder();"/>
  112.         </vbox>
  113.       </hbox>
  114.     </hbox>
  115.   </vbox>
  116.  
  117.   <separator style="width: 36em;"/>
  118.  
  119. </dialog>
  120.