summaryrefslogtreecommitdiff
path: root/sc/source/ui/StatisticsDialogs
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-09 11:41:20 +0200
committerNoel Grandin <noel@peralex.com>2015-09-10 11:38:30 +0200
commitf4e951a61a20edd6efbd244966e851aa378e66ad (patch)
treef4879e437b88432069001e7e3dadd2649cd33a14 /sc/source/ui/StatisticsDialogs
parent823150ff153a6e02781b1b2b09ea6eb528111d2e (diff)
convert Link<> to typed
Change-Id: I603463d0486d4d0f21ebbdc6eca900db58bb090f
Diffstat (limited to 'sc/source/ui/StatisticsDialogs')
-rw-r--r--sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx11
-rw-r--r--sc/source/ui/StatisticsDialogs/SamplingDialog.cxx10
-rw-r--r--sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx4
-rw-r--r--sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx4
4 files changed, 16 insertions, 13 deletions
diff --git a/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx b/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx
index ddd48bdcfc19..3eb3ba010983 100644
--- a/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx
@@ -113,7 +113,7 @@ ScAnalysisOfVarianceDialog::ScAnalysisOfVarianceDialog(
mpSingleFactorRadio->Check();
mpTwoFactorRadio->Check(false);
- FactorChanged(NULL);
+ FactorChanged();
}
ScAnalysisOfVarianceDialog::~ScAnalysisOfVarianceDialog()
@@ -140,7 +140,12 @@ sal_Int16 ScAnalysisOfVarianceDialog::GetUndoNameId()
return STR_ANALYSIS_OF_VARIANCE_UNDO_NAME;
}
-IMPL_LINK_NOARG( ScAnalysisOfVarianceDialog, FactorChanged )
+IMPL_LINK_NOARG_TYPED( ScAnalysisOfVarianceDialog, FactorChanged, RadioButton&, void )
+{
+ FactorChanged();
+}
+
+void ScAnalysisOfVarianceDialog::FactorChanged()
{
if (mpSingleFactorRadio->IsChecked())
{
@@ -156,8 +161,6 @@ IMPL_LINK_NOARG( ScAnalysisOfVarianceDialog, FactorChanged )
mpRowsPerSampleField->Enable(false); // Rows per sample not yet implemented
meFactor = TWO_FACTOR;
}
-
- return 0;
}
void ScAnalysisOfVarianceDialog::RowColumn(ScRangeList& rRangeList, AddressWalkerWriter& aOutput, FormulaTemplate& aTemplate,
diff --git a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
index 4afc721cd27d..0d71b2687490 100644
--- a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
@@ -116,7 +116,7 @@ void ScSamplingDialog::Init()
mpOutputRangeEdit->GrabFocus();
mpPeriodicMethodRadio->Check();
- ToggleSamplingMethod(NULL);
+ ToggleSamplingMethod();
}
void ScSamplingDialog::GetRangeFromSelection()
@@ -323,7 +323,12 @@ IMPL_LINK_NOARG(ScSamplingDialog, SamplingSizeValueModified)
return 0;
}
-IMPL_LINK_NOARG(ScSamplingDialog, ToggleSamplingMethod)
+IMPL_LINK_NOARG_TYPED(ScSamplingDialog, ToggleSamplingMethod, RadioButton&, void)
+{
+ ToggleSamplingMethod();
+}
+
+void ScSamplingDialog::ToggleSamplingMethod()
{
if (mpRandomMethodRadio->IsChecked())
{
@@ -335,7 +340,6 @@ IMPL_LINK_NOARG(ScSamplingDialog, ToggleSamplingMethod)
mpPeriod->Enable(true);
mpSampleSize->Enable(false);
}
- return 0;
}
IMPL_LINK_NOARG(ScSamplingDialog, RefInputModifyHandler)
diff --git a/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx b/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx
index 536bdc42a0f6..c676bda90320 100644
--- a/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx
@@ -219,14 +219,12 @@ IMPL_LINK_NOARG( ScStatisticsInputOutputDialog, LoseFocusHandler )
return 0;
}
-IMPL_LINK_NOARG( ScStatisticsInputOutputDialog, GroupByChanged )
+IMPL_LINK_NOARG_TYPED( ScStatisticsInputOutputDialog, GroupByChanged, RadioButton&, void )
{
if (mpGroupByColumnsRadio->IsChecked())
mGroupedBy = BY_COLUMN;
else if (mpGroupByRowsRadio->IsChecked())
mGroupedBy = BY_ROW;
-
- return 0;
}
IMPL_LINK_NOARG( ScStatisticsInputOutputDialog, RefInputModifyHandler )
diff --git a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
index 9b629cfd6245..44fdfecc3cc0 100644
--- a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
@@ -242,14 +242,12 @@ IMPL_LINK_NOARG( ScStatisticsTwoVariableDialog, LoseFocusHandler )
return 0;
}
-IMPL_LINK_NOARG( ScStatisticsTwoVariableDialog, GroupByChanged )
+IMPL_LINK_NOARG_TYPED( ScStatisticsTwoVariableDialog, GroupByChanged, RadioButton&, void )
{
if (mpGroupByColumnsRadio->IsChecked())
mGroupedBy = BY_COLUMN;
else if (mpGroupByRowsRadio->IsChecked())
mGroupedBy = BY_ROW;
-
- return 0;
}
IMPL_LINK_NOARG( ScStatisticsTwoVariableDialog, RefInputModifyHandler )