diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-08-02 10:22:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-08-02 15:04:55 +0200 |
commit | a6ed90b37cabd339aa1b364762e5e49fd9067848 (patch) | |
tree | 9887d514760baef194fb4df37d8731075a82ca02 /dbaccess | |
parent | d5220a535400440c657dc3000a7e078f17112861 (diff) |
drop some newly unused functions
Change-Id: I2ee32a9fdac6ff85927a5755ce341a591a462544
Reviewed-on: https://gerrit.libreoffice.org/76849
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/adminpages.cxx | 37 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/adminpages.hxx | 3 |
2 files changed, 0 insertions, 40 deletions
diff --git a/dbaccess/source/ui/dlg/adminpages.cxx b/dbaccess/source/ui/dlg/adminpages.cxx index 58464f36643c..22486900faf3 100644 --- a/dbaccess/source/ui/dlg/adminpages.cxx +++ b/dbaccess/source/ui/dlg/adminpages.cxx @@ -203,27 +203,6 @@ namespace dbaui { return true; } - void OGenericAdministrationPage::fillBool( SfxItemSet& _rSet, CheckBox const * _pCheckBox, sal_uInt16 _nID, bool& _bChangedSomething, bool _bRevertValue ) - { - if ( _pCheckBox && _pCheckBox->IsValueChangedFromSaved() ) - { - bool bValue = _pCheckBox->IsChecked(); - if ( _bRevertValue ) - bValue = !bValue; - - if ( _pCheckBox->IsTriStateEnabled() ) - { - OptionalBoolItem aValue( _nID ); - if ( _pCheckBox->GetState() != TRISTATE_INDET ) - aValue.SetValue( bValue ); - _rSet.Put( aValue ); - } - else - _rSet.Put( SfxBoolItem( _nID, bValue ) ); - - _bChangedSomething = true; - } - } void OGenericAdministrationPage::fillBool( SfxItemSet& _rSet, const weld::CheckButton* pCheckBox, sal_uInt16 _nID, bool bOptionalBool, bool& _bChangedSomething, bool _bRevertValue ) { if (pCheckBox && pCheckBox->get_state_changed_from_saved()) @@ -245,14 +224,6 @@ namespace dbaui _bChangedSomething = true; } } - void OGenericAdministrationPage::fillInt32(SfxItemSet& _rSet, NumericField const * _pEdit, sal_uInt16 _nID, bool& _bChangedSomething) - { - if( _pEdit && _pEdit->IsValueChangedFromSaved() ) - { - _rSet.Put(SfxInt32Item(_nID, static_cast<sal_Int32>(_pEdit->GetValue()))); - _bChangedSomething = true; - } - } void OGenericAdministrationPage::fillInt32(SfxItemSet& _rSet, const weld::SpinButton* pEdit, sal_uInt16 _nID, bool& _bChangedSomething) { if (pEdit && pEdit->get_value_changed_from_saved()) @@ -261,14 +232,6 @@ namespace dbaui _bChangedSomething = true; } } - void OGenericAdministrationPage::fillString(SfxItemSet& _rSet, Edit const * _pEdit, sal_uInt16 _nID, bool& _bChangedSomething) - { - if( _pEdit && _pEdit->IsValueChangedFromSaved() ) - { - _rSet.Put(SfxStringItem(_nID, _pEdit->GetText())); - _bChangedSomething = true; - } - } void OGenericAdministrationPage::fillString(SfxItemSet& _rSet, const weld::Entry* pEdit, sal_uInt16 _nID, bool& _bChangedSomething) { if (pEdit && pEdit->get_value_changed_from_saved()) diff --git a/dbaccess/source/ui/dlg/adminpages.hxx b/dbaccess/source/ui/dlg/adminpages.hxx index 1bd217274066..6900f1f7cc2f 100644 --- a/dbaccess/source/ui/dlg/adminpages.hxx +++ b/dbaccess/source/ui/dlg/adminpages.hxx @@ -222,7 +222,6 @@ namespace dbaui @param _bRevertValue set to <TRUE/> if the display value should be reverted before putting it into the set */ - static void fillBool(SfxItemSet& _rSet, CheckBox const * _pCheckBox, sal_uInt16 _nID, bool& _bChangedSomething, bool _bRevertValue = false); static void fillBool(SfxItemSet& _rSet, const weld::CheckButton* pCheckBox, sal_uInt16 _nID, bool bOptionalBool, bool& _bChangedSomething, bool _bRevertValue = false); /** fills the int value into the item set when the value changed. @@ -235,7 +234,6 @@ namespace dbaui @param _bChangedSomething <TRUE/> if something changed otherwise <FALSE/> */ - static void fillInt32(SfxItemSet& _rSet,NumericField const * _pEdit,sal_uInt16 _nID, bool& _bChangedSomething); static void fillInt32(SfxItemSet& _rSet,const weld::SpinButton* pEdit,sal_uInt16 _nID, bool& _bChangedSomething); /** fills the String value into the item set when the value changed. @@ -248,7 +246,6 @@ namespace dbaui @param _bChangedSomething <TRUE/> if something changed otherwise <FALSE/> */ - static void fillString(SfxItemSet& _rSet,Edit const * _pEdit,sal_uInt16 _nID, bool& _bChangedSomething); static void fillString(SfxItemSet& _rSet,const weld::Entry* pEdit,sal_uInt16 _nID, bool& _bChangedSomething); static void fillString(SfxItemSet& _rSet,const dbaui::OConnectionURLEdit* pEdit,sal_uInt16 _nID, bool& _bChangedSomething); |