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.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  3KB  |  88 lines

  1. <?xml version="1.0"?> 
  2. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> 
  3.  
  4. <?xul-overlay href="chrome://communicator/content/pref/preftree.xul"?>
  5.  
  6. <!DOCTYPE overlay [
  7.   <!ENTITY % dtd1 SYSTEM "chrome://communicator/locale/pref/pref.dtd" > %dtd1;
  8.   <!ENTITY % dtd2 SYSTEM "chrome://communicator-platform/locale/pref/platformPrefOverlay.dtd" > %dtd2;
  9. ]>
  10.  
  11.  
  12. <!-- This dialog has a fixed size and is not resizable. 
  13.      You MAY NOT increase the size of this dialog. 
  14.      Questions, Comments -> ben@netscape.com -->
  15. <dialog id="prefDialog" 
  16.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17.         title="&prefWindow.title;" 
  18.         style="&prefWindow.size;"
  19.         windowtype="mozilla:preferences"
  20.         buttons="accept,cancel,help"
  21.         onload="Startup();"
  22.         ondialogaccept="return hPrefWindow.onOK(event);"
  23.         ondialogcancel="return hPrefWindow.onCancel(event);"
  24.         ondialoghelp="return doHelpButton(event)"
  25.         persist="screenX screenY"> 
  26.  
  27.   <script>
  28.   <![CDATA[
  29.  
  30.   var hPrefWindow = null;
  31.  
  32.   /** General startup routine for preferences dialog. 
  33.    *  Place all necessary modifications to pref tree here. 
  34.    **/
  35.   function Startup()
  36.     {
  37.       hPrefWindow = new nsPrefWindow('panelFrame');  
  38.       
  39.       if( !hPrefWindow )
  40.         throw "failed to create prefwindow";
  41.  
  42.       hPrefWindow.init();
  43.  
  44.       // If this call worked, we could center the window here:
  45.       // centerWindowOnScreen();
  46.       
  47.     }
  48.   
  49.   ]]>
  50.   
  51.   </script>        
  52.         
  53.   <stringbundle id="bundle_prefutilities"
  54.                src="chrome://communicator/locale/pref/prefutilities.properties"/>
  55.   <script type="application/x-javascript" src="chrome://global/content/nsWidgetStateManager.js"/>
  56.   <script type="application/x-javascript" src="chrome://communicator/content/pref/nsPrefWindow.js"/>
  57.   <script type="application/x-javascript" src="chrome://communicator/content/pref/pref-help.js"/>
  58.   <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  59.  
  60.   <hbox flex="1">
  61.     <vbox>
  62.       <label value="&categoryHeader;"/>
  63.       <!-- tree sidebar -->
  64.       <tree id="prefsTree" style="width: 13em;" flex="1"/>
  65.     </vbox>
  66.     <vbox flex="1">
  67.       <dialogheader id="header"/>
  68.       <iframe id="panelFrame" name="panelFrame" style="width: 0px" flex="1"/>
  69.    </vbox>
  70.   </hbox>
  71.  
  72.    <script type="application/x-javascript">
  73.     <![CDATA[
  74.       if(window.arguments && window.arguments[0]) {
  75.         document.getElementById("panelFrame").setAttribute("src", window.arguments[0] );
  76.         document.getElementById("panelFrame").setAttribute("tag", window.arguments[0] );
  77.       }
  78.       else {
  79.         document.getElementById("panelFrame").setAttribute("src", "chrome://communicator/content/pref/pref-navigator.xul" );
  80.         document.getElementById("panelFrame").setAttribute("tag", "chrome://communicator/content/pref/pref-navigator.xul" );
  81.       }
  82.     ]]>
  83.     </script>
  84.  
  85.   <separator/>
  86.      
  87. </dialog>
  88.