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 / search / findresults.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  4KB  |  84 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://communicator/skin/search/search.css" type="text/css"?>
  3. <?xml-stylesheet href="chrome://communicator/skin/search/findresults.css" type="text/css"?>
  4.  
  5. <!DOCTYPE window SYSTEM "chrome://communicator/locale/search/findresults.dtd">
  6.  
  7. <window class="dialog" title="&window.title.label;" style="width:100%; height:100%; background-color:white"
  8.   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  9.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  10.  
  11.   <script type="application/x-javascript" src="chrome://communicator/content/search/shared.js" />
  12.  
  13.   <tree id="findresultstree" flex="100%" datasources="rdf:bookmarks rdf:history rdf:localsearch"
  14.     onclick="if (event.detail == 2) return OpenURL(event, event.target.parentNode.parentNode);">
  15.  
  16.                 <treecolgroup>
  17.       <treecol id="NameColumn" resource="http://home.netscape.com/NC-rdf#Name" sortActive="true" sortDirection="ascending" flex="1"/>
  18.       <treecol id="URLColumn" resource="http://home.netscape.com/NC-rdf#URL" flex="1"/>
  19.       <treecol id="ShortcutURLColumn" resource="http://home.netscape.com/NC-rdf#ShortcutURL" flex="1"/>
  20.       <treecol id="DescriptionColumn" resource="http://home.netscape.com/NC-rdf#Description" flex="1"/>
  21.                 </treecolgroup>
  22.  
  23.     <template>
  24.       <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  25.                                 <treechildren flex="1">
  26.         <treeitem uri="...">
  27.           <treerow>
  28.             <treecell>
  29.               <html:hr width="75%" size="1" />
  30.             </treecell>
  31.           </treerow>
  32.         </treeitem>   
  33.                                 </treechildren> 
  34.       </rule>
  35.  
  36.       <rule>
  37.                                 <treechildren flex="1">
  38.         <treeitem uri="...">
  39.           <treerow>
  40.             <treecell>
  41.               <treeindentation />
  42.               <button label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  43.             </treecell>
  44.             <treecell>
  45.               <button label="rdf:http://home.netscape.com/NC-rdf#URL" style="list-style-image: none;" />
  46.             </treecell>
  47.             <treecell>
  48.               <button label="rdf:http://home.netscape.com/NC-rdf#ShortcutURL" style="list-style-image: none;" />
  49.             </treecell>
  50.             <treecell>
  51.               <button label="rdf:http://home.netscape.com/NC-rdf#Description" style="list-style-image: none;" />
  52.             </treecell>
  53.           </treerow>
  54.         </treeitem>
  55.                                 </treechildren>
  56.       </rule>
  57.     </template>
  58.  
  59.     <treehead>
  60.       <treerow>
  61.         <treecell observes="NameColumn" label="&name.column.label;" resource="http://home.netscape.com/NC-rdf#Name" onclick="return doSort('NameColumn');" sortActive="true" sortDirection="ascending" />
  62.         <treecell observes="URLColumn" label="&url.column.label;" resource="http://home.netscape.com/NC-rdf#URL" onclick="return doSort('URLColumn');" />
  63.         <treecell observes="ShortcutURLColumn" label="&shortcuturl.column.label;" resource="http://home.netscape.com/NC-rdf#ShortcutURL" onclick="return doSort('ShortcutURLColumn');" />
  64.         <treecell observes="DescriptionColumn" label="&description.column.label;" resource="http://home.netscape.com/NC-rdf#Description" onclick="return doSort('DescriptionColumn');" />
  65.       </treerow>
  66.     </treehead>
  67.  
  68.     <treechildren open="true" flex="1"/>
  69.   </tree>
  70.   <spacer flex="100%" orient="horizontal" />
  71.  
  72. <!--
  73. This extra "status" bar is necessary because the bottom right corner of the window on MacOS is
  74. taken up by the growBox. If this window had a horizontal scrollbar, we'd be alright, but since
  75. it doesn't the bottom arrow on the vertical scrollbar was being hidden by this growBox. To
  76. combat this, we can just stick in a 15px high bar to bump up the bottom of the tree so that
  77. the scrollbar is visible. Yes, I know this is not necessary for win32 or gtk, but we can
  78. use this area for information (maybe full URL of selected item or the like) in the future.
  79. -->
  80.   <hbox id="status-bar" style="min-height:15px; max-height:15px;">
  81.     <button class="status-bar" label=""/>
  82.   </hbox>
  83. </window>
  84.