diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-30 11:35:38 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-08-01 16:28:10 +0000 |
commit | ce33ac1da4b3345684e69dc0d5adff375fcb4a13 (patch) | |
tree | 67d5e3c0375e3f60148b5a10dc2b7c6525619308 | |
parent | unit test for fdo#64753 ( import/export of sheetprotection ) (diff) | |
download | core-ce33ac1da4b3345684e69dc0d5adff375fcb4a13.tar.gz core-ce33ac1da4b3345684e69dc0d5adff375fcb4a13.zip |
Add enableOnRadioCheck for 2 dependent windows.
This is needed for the embedded db selector that is
to be added to the database setup wizard.
Change-Id: I5bbf4bf51472ca84c678b97991b9763fc062a88f
Reviewed-on: https://gerrit.libreoffice.org/5198
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
-rw-r--r-- | include/svtools/dialogcontrolling.hxx | 1 | ||||
-rw-r--r-- | svtools/source/misc/dialogcontrolling.cxx | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/svtools/dialogcontrolling.hxx b/include/svtools/dialogcontrolling.hxx index 56d31d4e7161..95153eaa4cdf 100644 --- a/include/svtools/dialogcontrolling.hxx +++ b/include/svtools/dialogcontrolling.hxx @@ -157,6 +157,7 @@ namespace svt disabled when it's unchecked */ void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow ); + void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2 ); void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3 ); void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5 ); diff --git a/svtools/source/misc/dialogcontrolling.cxx b/svtools/source/misc/dialogcontrolling.cxx index 52b8656fa6e1..e89a97ca0307 100644 --- a/svtools/source/misc/dialogcontrolling.cxx +++ b/svtools/source/misc/dialogcontrolling.cxx @@ -181,6 +181,15 @@ namespace svt } //--------------------------------------------------------------------- + void ControlDependencyManager::enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2 ) + { + PDialogController pController( new RadioDependentEnabler( _rRadio ) ); + pController->addDependentWindow( _rDependentWindow1 ); + pController->addDependentWindow( _rDependentWindow2 ); + m_pImpl->aControllers.push_back( pController ); + } + + //--------------------------------------------------------------------- void ControlDependencyManager::enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3 ) { PDialogController pController( new RadioDependentEnabler( _rRadio ) ); |