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 / pref / pref-applications.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  5KB  |  127 lines

  1. <?xml version="1.0"?> 
  2. <!--
  3.    The contents of this file are subject to the Netscape Public
  4.    License Version 1.1 (the "License"); you may not use this file
  5.    except in compliance with the License. You may obtain a copy of
  6.    the License at http://www.mozilla.org/NPL/
  7.     
  8.    Software distributed under the License is distributed on an "AS
  9.    IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10.    implied. See the License for the specific language governing
  11.    rights and limitations under the License.
  12.     
  13.    The Original Code is Mozilla Communicator client code, released
  14.    March 31, 1998.
  15.    
  16.    The Initial Developer of the Original Code is Netscape
  17.    Communications Corporation. Portions created by Netscape are
  18.    Copyright (C) 1998-1999 Netscape Communications Corporation. All
  19.    Rights Reserved.
  20.    
  21.    Contributor(s): 
  22.      Ben Goodger <ben@netscape.com>, original implementor
  23.   -->
  24.  
  25. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  26.  
  27. <!DOCTYPE page SYSTEM "chrome://communicator/locale/pref/pref-applications.dtd" >
  28.  
  29. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  30.       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  31.       onload="parent.initPanel('chrome://communicator/content/pref/pref-applications.xul');"
  32.       headertitle="&lHeader;">
  33.  
  34.   <stringbundle id="bundle_prefApplications"
  35.                 src="chrome://communicator/locale/pref/pref-applications.properties"/>
  36.   <script type="application/x-javascript" src="chrome://communicator/content/pref/pref-applications.js"/>
  37.   <script type="application/x-javascript" src="chrome://communicator/content/pref/overrideHandler.js"/>
  38.  
  39.     <script type="application/x-javascript">
  40.     <![CDATA[  
  41.     var _elementIDs = ["useNSPluginFinder"];
  42.     ]]>
  43.     </script>
  44.         
  45.   <groupbox flex="1">
  46.     <caption label="&descript;"/>
  47.     <label value="&fileTypes.label;"/>
  48.     <vbox flex="1">
  49.       <hbox flex="1">
  50.         <listbox id="appList" flex="1"
  51.               sortResource="http://home.netscape.com/NC-rdf#value"
  52.               sortDirection="ascending"
  53.               datasources="rdf:null" ref="urn:mimetypes"
  54.               onselect="selectApplication();">
  55.           <template>
  56.             <rule>
  57.               <conditions>
  58.                 <content uri="?uri"/>
  59.                 <!-- the RDF Seq of MIME types -->
  60.                 <triple subject="?uri" object="?MIME-types"
  61.                         predicate="http://home.netscape.com/NC-rdf#MIME-types"/>
  62.                 <!-- each MIME type -->
  63.                 <member container="?MIME-types" child="?type"/>
  64.                 <!-- MIME type value -->
  65.                 <triple subject="?type" object="?value"
  66.                         predicate="http://home.netscape.com/NC-rdf#value"/>
  67.                 <triple subject="?type" object="?editable"
  68.                         predicate="http://home.netscape.com/NC-rdf#editable"/>
  69.               </conditions>
  70.               <action> 
  71.                 <listitem uri="?type" label="?value"/>
  72.               </action>
  73.             </rule>        
  74.           </template>
  75.         </listbox>
  76.         <vbox>
  77.           <button id="newTypeButton" 
  78.                   label="&newTypeButton.label;" accesskey="&newTypeButton.accesskey;"
  79.                   oncommand="newType();"/>
  80.           <button id="editButton" 
  81.                   label="&editButton.label;" accesskey="&editButton.accesskey;" 
  82.                   oncommand="editType();"/>
  83.           <button id="removeButton" 
  84.                   label="&removeButton.label;" accesskey="&removeButton.accesskey;" 
  85.                   oncommand="removeType();"/>
  86.         </vbox>
  87.       </hbox>
  88.       <groupbox orient="horizontal">
  89.         <caption label="&file;"/>
  90.         <hbox flex="1">
  91.           <vbox style="width: 40px; height: 40px;" pack="center" align="center">
  92.             <image id="contentTypeImage"/>
  93.           </vbox>
  94.           <grid flex="1">
  95.             <columns>
  96.               <column/>
  97.               <column flex="1"/>
  98.             </columns>
  99.             <rows>
  100.               <row align="center">
  101.                 <label value="&mimeDesc;"/>
  102.                 <label id="mimeDesc" crop="right" flex="1"/>
  103.               </row>
  104.               <row align="center">
  105.                 <label value="&exten;"/>
  106.                 <label id="extension" crop="right"/>
  107.               </row>
  108.               <row align="center">
  109.                 <label value="&handle;"/>
  110.                 <textbox id="handler" readonly="true" flex="1"/>
  111.               </row>
  112.             </rows>
  113.           </grid>
  114.         </hbox>
  115.       </groupbox>    
  116.     </vbox>
  117.   </groupbox>
  118.   <groupbox id="pluginFinderBox">
  119.     <caption label="&plugins.label;"/>
  120.     <vbox>
  121.       <checkbox id="useNSPluginFinder" label="&pluginFinder.label;"
  122.                 prefstring="application.use_ns_plugin_finder"/>
  123.       <description>&pluginFinderDesc.label;</description>
  124.     </vbox>
  125.   </groupbox>
  126. </page>
  127.