Tag: cws_src680_dba24b
User: fs      
Date: 2007-08-27 10:49:11+0000
Modified:
   dba/dbaccess/source/ui/dlg/adminpages.cxx

Log:
 #i80930# _bRevertValue parameter to fillBool

File Changes:

Directory: /dba/dbaccess/source/ui/dlg/
=======================================

File [changed]: adminpages.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/adminpages.cxx?r1=1.48&r2=1.48.28.1
Delta lines:  +10 -6
--------------------
--- adminpages.cxx      2007-07-06 08:13:14+0000        1.48
+++ adminpages.cxx      2007-08-27 10:49:08+0000        1.48.28.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: adminpages.cxx,v $
  *
- *  $Revision: 1.48 $
+ *  $Revision: 1.48.28.1 $
  *
- *  last change: $Author: rt $ $Date: 2007/07/06 08:13:14 $
+ *  last change: $Author: fs $ $Date: 2007/08/27 10:49:08 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -256,11 +256,15 @@
                return sal_True;
        }
        // 
-----------------------------------------------------------------------
-       void OGenericAdministrationPage::fillBool(SfxItemSet& _rSet,CheckBox* 
_pCheckBox,USHORT _nID,sal_Bool& _bChangedSomething)
+       void OGenericAdministrationPage::fillBool( SfxItemSet& _rSet, CheckBox* 
_pCheckBox, USHORT _nID, sal_Bool& _bChangedSomething, bool _bRevertValue )
        {
-               if( (_pCheckBox != NULL) && (_pCheckBox->GetState() != 
_pCheckBox->GetSavedValue()) )
+               if ( (_pCheckBox != NULL ) && ( _pCheckBox->GetState() != 
_pCheckBox->GetSavedValue() ) )
                {
-                       _rSet.Put(SfxBoolItem(_nID, _pCheckBox->IsChecked()));
+            sal_Bool bValue = _pCheckBox->IsChecked();
+            if ( _bRevertValue )
+                bValue = !bValue;
+
+            _rSet.Put( SfxBoolItem( _nID, bValue ) );
                        _bChangedSomething = sal_True;
                }
        }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to