User: hr Date: 2007-11-01 15:08:26+0000 Modified: dba/dbaccess/source/ui/dlg/adminpages.cxx
Log: INTEGRATION: CWS dba24b (1.48.28); FILE MERGED 2007/08/27 10:49:08 fs 1.48.28.1: #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.49 Delta lines: +7 -3 ------------------- --- adminpages.cxx 2007-07-06 08:13:14+0000 1.48 +++ adminpages.cxx 2007-11-01 15:08:22+0000 1.49 @@ -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]
