summaryrefslogtreecommitdiffstats
path: root/svtools/source/misc
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-07-30 11:35:38 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-08-01 16:28:10 +0000
commitce33ac1da4b3345684e69dc0d5adff375fcb4a13 (patch)
tree67d5e3c0375e3f60148b5a10dc2b7c6525619308 /svtools/source/misc
parentunit test for fdo#64753 ( import/export of sheetprotection ) (diff)
downloadcore-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>
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/dialogcontrolling.cxx9
1 files changed, 9 insertions, 0 deletions
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 ) );