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

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://aim/skin/prefPanels.css" type="text/css"?>
  5.  
  6. <!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-IM_privacy.dtd">
  7.  
  8. <page 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.       onload="aimPreferenceOnload(); parent.initPanel('chrome://aim/content/pref-IM_privacy.xul'); PrefIMPrivacyOnLoad();"
  11.       headertitle="&privacyPanel.title;">
  12.  
  13.   <script language="JavaScript">
  14.     <![CDATA[
  15.     _elementIDs = ["privacyView", "chatInvites"];          
  16.     ]]>
  17.   </script>
  18.   <script language="JavaScript" src="chrome://aim/content/aimHelpers.js"/>
  19.   <script language="javascript" src="chrome://aim/content/prefIM.js"/>
  20.  
  21.   <description id="privacyOfflineIntro" />
  22.   <radiogroup id="privacyMode">
  23.  
  24.   <groupbox id="contact">
  25.     <caption label="&header1.label;"/>
  26.     
  27.     <grid flex="1">
  28.       <columns>
  29.         <column flex="1"/>
  30.         <column flex="1"/>
  31.         <column flex="1"/>
  32.       </columns>
  33.       <rows>
  34.         <row>
  35.           <radio id="allowradio" label="&allow.label;" />
  36.           <spacer flex="1"/>
  37.           <radio id="denyradio" label="&block.label;" />
  38.         </row>
  39.         <row>
  40.           <!-- VISHY since the privacyMode is stored in feedbag, it is confusing to also have it in the prefs file.
  41.           Instead we read and write the feedbag everytime this radio is modified and also at startup -->
  42.           <vbox>
  43.             <menulist id="allowmenulist">
  44.               <menupopup>
  45.                 <menuitem class="small-margin" id="aim_privacy_contact_allowallusers" label="&allowAllUsers.label;" accesskey="&allowAllUsers.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.AllowAll);"/>
  46.                 <menuitem class="small-margin" id="aim_privacy_contact_allowbuddylistusers" label="&allowBuddyUsers.label;" accesskey="&allowBuddyUsers.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.AllowBuddies);"/>
  47.                 <menuitem class="small-margin" id="aim_privacy_contact_allowonlylist" label="&allowOnly.label;" accesskey="&allowOnly.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.AllowList);"/>
  48.               </menupopup>
  49.             </menulist>
  50.           </vbox>
  51.           <spacer flex="1"/>
  52.           <vbox>
  53.             <menulist id="denymenulist">
  54.               <menupopup>
  55.                 <menuitem class="small-margin" id="aim_privacy_contact_blockallusers" label="&blockAllUsers.label;" accesskey="&blockAllUsers.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.DenyAll);"/>
  56.                 <menuitem class="small-margin" id="aim_privacy_contact_blockaimusers" label="&blockAimUsers.label;" accesskey="&blockAimUsers.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.DenyAim);"/>
  57.                 <menuitem class="small-margin" id="aim_privacy_contact_blocklistusers" label="&blockUsersBelow.label;" accesskey="&blockUsersBelow.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.DenyList);"/>
  58.               </menupopup>
  59.             </menulist>
  60.           </vbox>
  61.         </row>
  62.  
  63.         <row>
  64.           <label value="&allowlist.label;" />
  65.           <spacer flex="1"/>
  66.           <label value="&blocklist.label;" />
  67.         </row>
  68.  
  69.         <row>
  70.           <listbox datasources="rdf:null" ref="NC:AIM/Privacy" id="Allow"  flex="1" rows="3" >
  71.             <template>
  72.               <rule>
  73.                 <conditions>
  74.                   <content uri="?uri" />
  75.                   <triple subject="?uri" predicate="http://home.netscape.com/NC-rdf#Allow" object="?child" />
  76.                   <triple subject="?child" predicate="http://home.netscape.com/NC-rdf#ScreenName" object="?ScreenName" />
  77.                 </conditions>
  78.                 <action>
  79.                   <listitem uri="?child" label="?ScreenName"/>
  80.                 </action>
  81.               </rule>
  82.             </template>
  83.           </listbox>
  84.           
  85.           <spacer flex="1"/>
  86.           
  87.           <listbox  datasources="rdf:null" ref="NC:AIM/Privacy" id="Deny"  flex="1" rows="3">
  88.             <template>
  89.               <rule>
  90.                 <conditions>
  91.                   <content uri="?uri" />
  92.                   <triple subject="?uri" predicate="http://home.netscape.com/NC-rdf#Deny" object="?child" />
  93.                   <triple subject="?child" predicate="http://home.netscape.com/NC-rdf#ScreenName" object="?ScreenName" />
  94.                 </conditions>
  95.                 <action>
  96.                   <listitem uri="?child" label="?ScreenName"/>
  97.                 </action>
  98.               </rule>
  99.             </template>
  100.           </listbox>
  101.           
  102.         </row>
  103.         <row>
  104.           <hbox>
  105.             <spacer flex="1"/>
  106.             <button class="push dialog small-margin" id="button1" label="&addNameButton.label;" accesskey="&addNameButton.accesskey;"
  107.                     oncommand="PostGetUserDlg( 'Allow' );"/>
  108.             <button class="push dialog small-margin" id="button2" label="&removeButton.label;" accesskey="&removeButton.accesskey;"
  109.                     oncommand="DeleteFromList( 'Allow' );"/>
  110.             <spacer flex="1"/>
  111.           </hbox>
  112.           
  113.           <spacer flex="1"/>
  114.           
  115.           <hbox>
  116.             <spacer flex="1"/>
  117.             <button class="push dialog small-margin" id="button3" label="&addNameButton.label;" accesskey="&addNameButton2.accesskey;"
  118.                     oncommand="PostGetUserDlg( 'Deny' );"/>
  119.             <button class="push dialog small-margin" id="button4" label="&removeButton.label;" accesskey="&removeButton2.accesskey;"
  120.                     oncommand="DeleteFromList( 'Deny' );"/>
  121.             <spacer flex="1"/>
  122.           </hbox>
  123.         </row>
  124.       </rows>
  125.     </grid>
  126.     
  127.     <hbox>
  128.       <checkbox id="chatInvites" class="small-margin" label="&chatInvites.label;" accesskey="&chatInvites.accesskey;" 
  129.                 pref="true" prefscope="0" preftype="bool"  prefattribute="checked" prefstring="aim.chat.unavailable"
  130.                 oncommand="privacyChatInvites( this.checked );"/> 
  131.     </hbox>
  132.     
  133.  
  134.   </groupbox> 
  135.   </radiogroup>
  136.   
  137.  
  138.   <groupbox id="whocancontact">
  139.     <caption label="&header3.label;"/>
  140.     
  141.     <!-- VISHY since the privacyView is stored in AOL MORF database, it is confusing to also have it in the prefs file.
  142.     Instead we read and write the MORF DB everytime this radio is modified or read -->
  143.     <hbox>
  144.  
  145.       <menulist id="privacyView" class="small-margin">
  146.         <menupopup>
  147.           <menuitem value="3" id="fulldisclosure" label="&myScreenName.label;"
  148.                     oncommand="privacyViewRadio(Components.interfaces.nsIAimAdminRegStatusPref.FullDisclosure);"/>
  149.           <menuitem value="2" id="limiteddisclosure" label="&haveAnAccount.label;"
  150.                     oncommand="privacyViewRadio(Components.interfaces.nsIAimAdminRegStatusPref.LimitedDisclosure);"/>
  151.           <menuitem value="1" id="nodisclosure" label="¬hingAboutMe.label;"
  152.                     oncommand="privacyViewRadio(Components.interfaces.nsIAimAdminRegStatusPref.NoDisclosure);"/>
  153.         </menupopup>
  154.       </menulist>
  155.       
  156.       <spacer flex="1" />
  157.     </hbox>   
  158.   </groupbox>
  159.  
  160.   <groupbox id="whocancontact1">
  161.     <caption label="&header2.label;"/>
  162.     <hbox>
  163.       <checkbox id="idle" class="small-margin" label="&idleTimeCheckbox.label;" accesskey="&idleTimeCheckbox.accesskey;"
  164.                 oncommand="privacyIdle(this.checked);"/> 
  165.  
  166.       <checkbox id="mobile" class="small-margin" label="&showMobile.label;" 
  167.         oncommand="privacyMobile(this.checked);" /> 
  168.  
  169.    </hbox>
  170.    <hbox>
  171.      <checkbox id="showtyping" class="small-margin" label="&showTyping.label;" 
  172.         oncommand="privacyTyping(this.checked);" /> 
  173.    </hbox>
  174.   </groupbox>
  175. </page>
  176.