summaryrefslogtreecommitdiff
path: root/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/StatisticsDialogs/SamplingDialog.cxx')
-rw-r--r--sc/source/ui/StatisticsDialogs/SamplingDialog.cxx25
1 files changed, 22 insertions, 3 deletions
diff --git a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
index a88faafd1f64..4d1e7a51a97a 100644
--- a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
@@ -60,6 +60,28 @@ ScSamplingDialog::ScSamplingDialog(
GetRangeFromSelection();
}
+ScSamplingDialog::~ScSamplingDialog()
+{
+ dispose();
+}
+
+void ScSamplingDialog::dispose()
+{
+ mpInputRangeLabel.clear();
+ mpInputRangeEdit.clear();
+ mpInputRangeButton.clear();
+ mpOutputRangeLabel.clear();
+ mpOutputRangeEdit.clear();
+ mpOutputRangeButton.clear();
+ mpSampleSize.clear();
+ mpPeriod.clear();
+ mpRandomMethodRadio.clear();
+ mpPeriodicMethodRadio.clear();
+ mpButtonOk.clear();
+ mpActiveEdit.clear();
+ ScAnyRefDlg::dispose();
+}
+
void ScSamplingDialog::Init()
{
mpButtonOk->SetClickHdl( LINK( this, ScSamplingDialog, OkClicked ) );
@@ -98,9 +120,6 @@ void ScSamplingDialog::GetRangeFromSelection()
mpInputRangeEdit->SetText(aCurrentString);
}
-ScSamplingDialog::~ScSamplingDialog()
-{}
-
void ScSamplingDialog::SetActive()
{
if ( mDialogLostFocus )