summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh1.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-07-16 19:06:50 +0200
committerTomaž Vajngerl <quikee@gmail.com>2013-07-19 16:57:37 +0200
commitf2c9aa43666101c6970ea33f50fb4e780b99b97c (patch)
treebadef17067ab93d4f2f65ab013040eb92beee2a8 /sc/source/ui/view/cellsh1.cxx
parentd2734a6ae65dc655787ba5a48d1fb5f44905a937 (diff)
fdo#66477 Add sampling feature to calc
Initial implementation of SamplingDialog. Change-Id: If26e8561705229f83777fb50d53c86b9fe056ffa
Diffstat (limited to 'sc/source/ui/view/cellsh1.cxx')
-rw-r--r--sc/source/ui/view/cellsh1.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index daac7ec9ca4b..15953b3f3e2f 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -905,7 +905,16 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
break;
case SID_OPENDLG_RANDOM_NUMBER_GENERATOR:
{
- sal_uInt16 nId = ScRandomNumberGeneratorDialogWrapper::GetChildWindowId();
+ sal_uInt16 nId = ScRandomNumberGeneratorDialogWrapper::GetChildWindowId();
+ SfxViewFrame* pViewFrm = pTabViewShell->GetViewFrame();
+ SfxChildWindow* pWnd = pViewFrm->GetChildWindow( nId );
+
+ pScMod->SetRefDialog( nId, pWnd ? false : sal_True );
+ }
+ break;
+ case SID_SAMPLING_DIALOG:
+ {
+ sal_uInt16 nId = ScSamplingDialogWrapper::GetChildWindowId();
SfxViewFrame* pViewFrm = pTabViewShell->GetViewFrame();
SfxChildWindow* pWnd = pViewFrm->GetChildWindow( nId );