home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / browser.jar / content / browser / pref / pref-privacy.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-07-29  |  7.9 KB  |  175 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://mozapps/skin/pref/pref.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://browser/skin/pref/pref.css" type="text/css"?>
  6.  
  7. <!DOCTYPE window [
  8. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  9. %brandDTD;
  10. <!ENTITY % prefPrivacyDTD SYSTEM "chrome://browser/locale/pref/pref-privacy.dtd" >
  11. %prefPrivacyDTD;
  12. ]>
  13.  
  14. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  15.       onload="parent.initPanel('chrome://browser/content/pref/pref-privacy.xul');"
  16.       onunload="unload();" headertitle="&lHeader;">
  17.  
  18.   <!-- MERC - Brad Lewis - have separated start up & other functions of pref-privacy.js into pref-privacyStart
  19.   so I can import it into browser.js
  20.   -->
  21.   <script type="application/x-javascript" src="chrome://browser/content/pref/pref-privacy.js"/>
  22.   <script type="application/x-javascript" src="chrome://browser/content/search.js"/>
  23.   <script type="application/x-javascript" src="chrome://mozapps/content/autofill/datacardUtils.js"/>
  24.   <script type="application/x-javascript" src="chrome://browser/content/pref/pref-privacy-utils.js"/>
  25.   <!-- END MERC - Brad Lewis - -->
  26.  
  27.   <stringbundle id="privacyBundle" src="chrome://browser/locale/pref/prefutilities.properties"/>
  28.  
  29.   <broadcaster id="cookieBroadcaster"/>
  30.  
  31.   <description>&privacyDescription.label;</description>
  32.  
  33.   <hbox>
  34.     <vbox flex="3">
  35.       <checkbox id="toggleAnonMode"
  36.                 crop="end"
  37.                 label="&anonMode.label;"
  38.                 prefstring="privacy.anonMode.enabled"
  39.                 oncommand="anonmodeToggle(this.checked);"/>
  40.       <description style="margin-left: 30px;">Clears all browse information when you close the browser.</description>
  41.     </vbox>
  42.     <separator orient="vertical" class="groove" style="width: 2px;"/>
  43.     <button label="&clearAll.label;" flex="1" oncommand="PrivacyPanel.clearAll(true);"/>
  44.   </hbox>
  45.  
  46.   <vbox id="privacyCategories" class="listBox settingsBox" flex="1" style="overflow: auto;"
  47.         oncommand="if (event.originalTarget.getAttribute('anonid') == 'disclosure') unexpandOld(event);"
  48.         onclick="if (event.originalTarget.getAttribute('anonid') == 'label') unexpandOld(event);">
  49.     <!-- History -->
  50.     <expander id="history" label="&history.label;" clearlabel="&clearHistory.label;" onclear="clearHistory();"
  51.               open="true" persist="open">
  52.       <hbox align="center">
  53.         <label value="&pageHis.label;" accesskey="&pageHis.accesskey;" control="histDay"/>
  54.         <textbox id="histDay" size="3"
  55.                   preftype="int" prefstring="browser.history_expire_days"/>
  56.         <label value="&days.label;"/>
  57.       </hbox>
  58.       <checkbox id="historyClearOnExit"
  59.                 label="Clear Page History on browser exit"
  60.                 prefstring="privacy.history.clear_on_exit"/>
  61.     </expander>
  62.     
  63.     <!-- Search History -->
  64.     <expander id="search" label="&search.label;" clearlabel="&clearSearchHistory.label;" persist="open">
  65.       <description>&searchHistoryDescription.label;</description>
  66.       <checkbox id="searchClearOnExit"
  67.                 label="Clear Search History on browser exit"
  68.                 prefstring="privacy.search.clear_on_exit"/>
  69.     </expander>
  70.     
  71.     
  72.     <!-- Automatic Form Fill -->
  73.     <expander id="formfill" label="&formfill.label;" clearlabel="&clearFormfill.label;" persist="open">
  74.     <description>&formfillDescription.label.clear;</description>
  75.       <description>&formfillDescription.label;</description>
  76.       <!-- checkbox id="enableFormFill" label="&formfillEnable.label;" accesskey="&formfillEnable.accesskey;"
  77.                 prefstring="browser.formfill.enable"/ -->
  78.     </expander>
  79.  
  80.     <!-- Passwords -->
  81.     <expander id="passwords" label="&passwords.label;" clearlabel="&clearPasswords.label;" persist="open">
  82.       <description>&passwordsDescription.clear.label;</description>
  83.       <separator orient="horizontal" class="thin"/>
  84.       <hbox flex="1">
  85.         <vbox flex="1">
  86.           <description>&passwordsDescription.label;</description>
  87.           <!-- MERC JVL <checkbox id="enablePasswords" label="&passwordsEnable.label;" accesskey="&passwordsEnable.accesskey;"
  88.                     prefstring="signon.rememberSignons"/>
  89.           -->
  90.         </vbox>
  91.         <vbox>
  92.           <button label="&viewPasswords.label;" oncommand="viewSignons();"/>
  93.           <button id="masterPasswordBtn" label="" oncommand="changeMasterPassword();"/>
  94.         </vbox>
  95.       </hbox>
  96.     </expander>
  97.  
  98.     <!-- Downloaded Files List -->
  99.     <expander id="downloads" label="&downloads.label;" clearlabel="&clearDownloads.label;" persist="open">
  100.       <description>&downloadsDescription.label;</description>     
  101.  
  102.       <hbox align="center" id="downloadsRetentionBox">                          
  103.         <description>&downloadsRetentionPolicy.label;</description>             
  104.       </hbox>                                                                         
  105.       <checkbox id="downloadsClearOnExit"
  106.                 label="Clear Download Manager History on browser exit"
  107.                 prefstring="privacy.downloads.clear_on_exit"/>
  108.     </expander>
  109.  
  110.     <!-- Cookies -->
  111.     <expander id="cookies" label="&cookies.label;" clearlabel="&clearCookies.label;" persist="open">
  112.       <vbox flex="1">
  113.         <description>&cookieExplanation.label;</description>
  114.         <separator class="thin"/>
  115.         <hbox>
  116.           <vbox flex="1">
  117.             <data id="cookieBehavior" prefstring="network.cookie.cookieBehavior" preftype="int"/>
  118.             <!--checkbox id="enableCookies"
  119.                       oncommand="updateCookieBehavior();updateCookieBroadcaster();"
  120.                       label="&enableCookies.label;" accesskey="&enableCookies.accesskey;"/-->
  121.             <!--checkbox id="enableCookiesForOriginatingSiteOnly" observes="cookieBroadcaster"
  122.                       label="&forOriginatingSiteOnly.label;" accesskey="&forOriginatingSiteOnly.accesskey;"
  123.                       style="margin-left: 23px;" oncommand="updateCookieBehavior();"/-->
  124.             <separator class="thin"/>
  125.             <hbox align="center">
  126.               <description>&cookieRetention.label;</description>
  127.               <menulist id="networkCookieLifetime" 
  128.                         prefstring="network.cookie.lifetimePolicy">
  129.                 <menupopup>
  130.                   <menuitem value="0" label="&acceptNormally.label;"/>
  131.                   <menuitem value="2" label="&acceptForSession.label;"/>
  132.                   <menuitem value="1" label="&askAboutCookies.label;"/>
  133.                 </menupopup>
  134.               </menulist>
  135.             </hbox>
  136.           </vbox>
  137.           <vbox>
  138.             <hbox pack="end">
  139.               <button label="&exceptions.label;" hidden="true" oncommand="viewCookieExceptions();"/>
  140.               <button label="&viewCookies.label;" oncommand="viewCookies();"/>
  141.             </hbox>
  142.           </vbox>
  143.         </hbox>
  144.       </vbox>
  145.     </expander>    
  146.     
  147.     <!-- Cache -->
  148.     <expander id="cache" label="&cache.label;" clearlabel="&clearCache.label;" persist="open">
  149.       <label value="&cacheExplanation.label;"/>
  150.       <separator class="thin"/>
  151.       <hbox align="center">
  152.         <label value="&diskCache.label;" accesskey="&diskCache.accesskey;" control="browserCacheDiskCache"/>
  153.         <textbox id="browserCacheDiskCache" size="8" preftype="int"
  154.                   prefstring="browser.cache.disk.capacity"/>
  155.         <label value="&kbytes;"/>
  156.       </hbox>
  157.       <checkbox id="cacheClearOnExit"
  158.                 label="Clear Cache on browser exit"
  159.                 prefstring="privacy.cache.clear_on_exit"/>
  160.     </expander>
  161.   </vbox>
  162.  
  163.  
  164.   <menulist id="downloadsRetentionPolicy" hidden="true"
  165.             preftype="int" prefstring="browser.download.manager.retention" prefdefval="0">
  166.     <menupopup>
  167.       <menuitem value="0" label="&downloadsRemoveImmediately.label;"/>
  168.       <menuitem value="1" label="&downloadsRemoveExit.label;"/>
  169.       <menuitem value="2" label="&downloadsRemoveManually.label;"/>
  170.     </menupopup>
  171.   </menulist>
  172.  
  173. </page>
  174.     
  175.