diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-10 12:18:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-04-11 09:56:44 +0200 |
commit | 74e3e2449c30eb84503408103bafc2a84cf0cb77 (patch) | |
tree | 1856d9d93bd9f46a80a9e05bd550cb1e56fb349d /sc/source/ui | |
parent | f4a0c9d9728499176460f8641d3c4edd3a31fdb4 (diff) |
rename ScStatisticsTwoVariableDialogController back...
to ScStatisticsTwoVariableDialog
Change-Id: Id4a2ac62f212fb9356f052461485e6e517a1ed3f
Reviewed-on: https://gerrit.libreoffice.org/70541
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/StatisticsDialogs/FTestDialog.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/StatisticsDialogs/RegressionDialog.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx | 48 | ||||
-rw-r--r-- | sc/source/ui/StatisticsDialogs/TTestDialog.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/StatisticsDialogs/ZTestDialog.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/FTestDialog.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/RegressionDialog.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/StatisticsTwoVariableDialog.hxx | 6 | ||||
-rw-r--r-- | sc/source/ui/inc/TTestDialog.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/ZTestDialog.hxx | 2 |
10 files changed, 35 insertions, 35 deletions
diff --git a/sc/source/ui/StatisticsDialogs/FTestDialog.cxx b/sc/source/ui/StatisticsDialogs/FTestDialog.cxx index 10e523e28173..f39b84359925 100644 --- a/sc/source/ui/StatisticsDialogs/FTestDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/FTestDialog.cxx @@ -19,7 +19,7 @@ ScFTestDialog::ScFTestDialog( SfxBindings* pSfxBindings, SfxChildWindow* pChildWindow, weld::Window* pParent, ScViewData* pViewData ) : - ScStatisticsTwoVariableDialogController( + ScStatisticsTwoVariableDialog( pSfxBindings, pChildWindow, pParent, pViewData, "modules/scalc/ui/ttestdialog.ui", "TTestDialog" ) { diff --git a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx index 02b57e2e75db..b150e8d8b5ff 100644 --- a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx @@ -133,7 +133,7 @@ static size_t lcl_GetNumRowsColsInRange(const ScRange& rRange, bool bRows) ScRegressionDialog::ScRegressionDialog( SfxBindings* pSfxBindings, SfxChildWindow* pChildWindow, weld::Window* pParent, ScViewData* pViewData ) - : ScStatisticsTwoVariableDialogController( + : ScStatisticsTwoVariableDialog( pSfxBindings, pChildWindow, pParent, pViewData, "modules/scalc/ui/regressiondialog.ui", "RegressionDialog") , mbUnivariate(true) diff --git a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx index 07cb21b60b90..9618474beaf2 100644 --- a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx @@ -18,7 +18,7 @@ #include <StatisticsTwoVariableDialog.hxx> -ScStatisticsTwoVariableDialogController::ScStatisticsTwoVariableDialogController( +ScStatisticsTwoVariableDialog::ScStatisticsTwoVariableDialog( SfxBindings* pSfxBindings, SfxChildWindow* pChildWindow, weld::Window* pParent, ScViewData* pViewData, const OUString& rUIXMLDescription, const OString& rID) : ScAnyRefDlgController(pSfxBindings, pChildWindow, pParent, rUIXMLDescription, rID) @@ -58,50 +58,50 @@ ScStatisticsTwoVariableDialogController::ScStatisticsTwoVariableDialogController GetRangeFromSelection(); } -ScStatisticsTwoVariableDialogController::~ScStatisticsTwoVariableDialogController() +ScStatisticsTwoVariableDialog::~ScStatisticsTwoVariableDialog() { } -void ScStatisticsTwoVariableDialogController::Init() +void ScStatisticsTwoVariableDialog::Init() { - mxButtonOk->connect_clicked( LINK( this, ScStatisticsTwoVariableDialogController, OkClicked ) ); + mxButtonOk->connect_clicked( LINK( this, ScStatisticsTwoVariableDialog, OkClicked ) ); mxButtonOk->set_sensitive(false); - Link<formula::WeldRefEdit&,void> aEditLink = LINK( this, ScStatisticsTwoVariableDialogController, GetEditFocusHandler ); + Link<formula::WeldRefEdit&,void> aEditLink = LINK( this, ScStatisticsTwoVariableDialog, GetEditFocusHandler ); mxVariable1RangeEdit->SetGetFocusHdl( aEditLink ); mxVariable2RangeEdit->SetGetFocusHdl( aEditLink ); mxOutputRangeEdit->SetGetFocusHdl( aEditLink ); - Link<formula::WeldRefButton&,void> aButtonLink = LINK( this, ScStatisticsTwoVariableDialogController, GetButtonFocusHandler ); + Link<formula::WeldRefButton&,void> aButtonLink = LINK( this, ScStatisticsTwoVariableDialog, GetButtonFocusHandler ); mxVariable1RangeButton->SetGetFocusHdl( aButtonLink ); mxVariable2RangeButton->SetGetFocusHdl( aButtonLink ); mxOutputRangeButton->SetGetFocusHdl( aButtonLink ); - aEditLink = LINK( this, ScStatisticsTwoVariableDialogController, LoseEditFocusHandler ); + aEditLink = LINK( this, ScStatisticsTwoVariableDialog, LoseEditFocusHandler ); mxVariable1RangeEdit->SetLoseFocusHdl( aEditLink ); mxVariable2RangeEdit->SetLoseFocusHdl( aEditLink ); mxOutputRangeEdit->SetLoseFocusHdl( aEditLink ); - aButtonLink = LINK( this, ScStatisticsTwoVariableDialogController, LoseButtonFocusHandler ); + aButtonLink = LINK( this, ScStatisticsTwoVariableDialog, LoseButtonFocusHandler ); mxVariable1RangeButton->SetLoseFocusHdl( aButtonLink ); mxVariable2RangeButton->SetLoseFocusHdl( aButtonLink ); mxOutputRangeButton->SetLoseFocusHdl( aButtonLink ); - Link<formula::WeldRefEdit&,void> aLink2 = LINK( this, ScStatisticsTwoVariableDialogController, RefInputModifyHandler); + Link<formula::WeldRefEdit&,void> aLink2 = LINK( this, ScStatisticsTwoVariableDialog, RefInputModifyHandler); mxVariable1RangeEdit->SetModifyHdl( aLink2); mxVariable2RangeEdit->SetModifyHdl( aLink2); mxOutputRangeEdit->SetModifyHdl( aLink2); mxOutputRangeEdit->GrabFocus(); - mxGroupByColumnsRadio->connect_toggled( LINK( this, ScStatisticsTwoVariableDialogController, GroupByChanged ) ); - mxGroupByRowsRadio->connect_toggled( LINK( this, ScStatisticsTwoVariableDialogController, GroupByChanged ) ); + mxGroupByColumnsRadio->connect_toggled( LINK( this, ScStatisticsTwoVariableDialog, GroupByChanged ) ); + mxGroupByRowsRadio->connect_toggled( LINK( this, ScStatisticsTwoVariableDialog, GroupByChanged ) ); mxGroupByColumnsRadio->set_active(true); mxGroupByRowsRadio->set_active(false); } -void ScStatisticsTwoVariableDialogController::GetRangeFromSelection() +void ScStatisticsTwoVariableDialog::GetRangeFromSelection() { OUString aCurrentString; @@ -128,7 +128,7 @@ void ScStatisticsTwoVariableDialogController::GetRangeFromSelection() } } -void ScStatisticsTwoVariableDialogController::SetActive() +void ScStatisticsTwoVariableDialog::SetActive() { if ( mDialogLostFocus ) { @@ -143,7 +143,7 @@ void ScStatisticsTwoVariableDialogController::SetActive() RefInputDone(); } -void ScStatisticsTwoVariableDialogController::SetReference( const ScRange& rReferenceRange, ScDocument* pDocument ) +void ScStatisticsTwoVariableDialog::SetReference( const ScRange& rReferenceRange, ScDocument* pDocument ) { if ( mpActiveEdit != nullptr ) { @@ -179,13 +179,13 @@ void ScStatisticsTwoVariableDialogController::SetReference( const ScRange& rRefe ValidateDialogInput(); } -IMPL_LINK_NOARG( ScStatisticsTwoVariableDialogController, OkClicked, weld::Button&, void ) +IMPL_LINK_NOARG( ScStatisticsTwoVariableDialog, OkClicked, weld::Button&, void ) { CalculateInputAndWriteToOutput(); response(RET_OK); } -IMPL_LINK(ScStatisticsTwoVariableDialogController, GetEditFocusHandler, formula::WeldRefEdit&, rCtrl, void) +IMPL_LINK(ScStatisticsTwoVariableDialog, GetEditFocusHandler, formula::WeldRefEdit&, rCtrl, void) { mpActiveEdit = nullptr; if (&rCtrl == mxVariable1RangeEdit.get()) @@ -205,7 +205,7 @@ IMPL_LINK(ScStatisticsTwoVariableDialogController, GetEditFocusHandler, formula: mpActiveEdit->SelectAll(); } -IMPL_LINK( ScStatisticsTwoVariableDialogController, GetButtonFocusHandler, formula::WeldRefButton&, rCtrl, void ) +IMPL_LINK( ScStatisticsTwoVariableDialog, GetButtonFocusHandler, formula::WeldRefButton&, rCtrl, void ) { mpActiveEdit = nullptr; if (&rCtrl == mxVariable1RangeButton.get()) @@ -225,17 +225,17 @@ IMPL_LINK( ScStatisticsTwoVariableDialogController, GetButtonFocusHandler, formu mpActiveEdit->SelectAll(); } -IMPL_LINK_NOARG( ScStatisticsTwoVariableDialogController, LoseEditFocusHandler, formula::WeldRefEdit&, void ) +IMPL_LINK_NOARG( ScStatisticsTwoVariableDialog, LoseEditFocusHandler, formula::WeldRefEdit&, void ) { mDialogLostFocus = !m_xDialog->has_toplevel_focus(); } -IMPL_LINK_NOARG( ScStatisticsTwoVariableDialogController, LoseButtonFocusHandler, formula::WeldRefButton&, void ) +IMPL_LINK_NOARG( ScStatisticsTwoVariableDialog, LoseButtonFocusHandler, formula::WeldRefButton&, void ) { mDialogLostFocus = !m_xDialog->has_toplevel_focus(); } -IMPL_LINK_NOARG(ScStatisticsTwoVariableDialogController, GroupByChanged, weld::ToggleButton&, void) +IMPL_LINK_NOARG(ScStatisticsTwoVariableDialog, GroupByChanged, weld::ToggleButton&, void) { if (mxGroupByColumnsRadio->get_active()) mGroupedBy = BY_COLUMN; @@ -245,7 +245,7 @@ IMPL_LINK_NOARG(ScStatisticsTwoVariableDialogController, GroupByChanged, weld::T ValidateDialogInput(); } -IMPL_LINK_NOARG( ScStatisticsTwoVariableDialogController, RefInputModifyHandler, formula::WeldRefEdit&, void ) +IMPL_LINK_NOARG( ScStatisticsTwoVariableDialog, RefInputModifyHandler, formula::WeldRefEdit&, void ) { if ( mpActiveEdit ) { @@ -313,7 +313,7 @@ IMPL_LINK_NOARG( ScStatisticsTwoVariableDialogController, RefInputModifyHandler, ValidateDialogInput(); } -void ScStatisticsTwoVariableDialogController::CalculateInputAndWriteToOutput() +void ScStatisticsTwoVariableDialog::CalculateInputAndWriteToOutput() { OUString aUndo(ScResId(GetUndoNameId())); ScDocShell* pDocShell = mViewData->GetDocShell(); @@ -326,12 +326,12 @@ void ScStatisticsTwoVariableDialogController::CalculateInputAndWriteToOutput() pDocShell->PostPaint( aOutputRange, PaintPartFlags::Grid ); } -bool ScStatisticsTwoVariableDialogController::InputRangesValid() +bool ScStatisticsTwoVariableDialog::InputRangesValid() { return mVariable1Range.IsValid() && mVariable2Range.IsValid() && mOutputAddress.IsValid(); } -void ScStatisticsTwoVariableDialogController::ValidateDialogInput() +void ScStatisticsTwoVariableDialog::ValidateDialogInput() { // Enable OK button if all inputs are ok. mxButtonOk->set_sensitive(InputRangesValid()); diff --git a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx index a9c39a6cb374..c3fcda8f4d3e 100644 --- a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx @@ -19,7 +19,7 @@ ScTTestDialog::ScTTestDialog( SfxBindings* pSfxBindings, SfxChildWindow* pChildWindow, weld::Window* pParent, ScViewData* pViewData ) : - ScStatisticsTwoVariableDialogController( + ScStatisticsTwoVariableDialog( pSfxBindings, pChildWindow, pParent, pViewData, "modules/scalc/ui/ttestdialog.ui", "TTestDialog") { diff --git a/sc/source/ui/StatisticsDialogs/ZTestDialog.cxx b/sc/source/ui/StatisticsDialogs/ZTestDialog.cxx index f03f8a41a7bf..ef36fb1cccfc 100644 --- a/sc/source/ui/StatisticsDialogs/ZTestDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/ZTestDialog.cxx @@ -19,7 +19,7 @@ ScZTestDialog::ScZTestDialog( SfxBindings* pSfxBindings, SfxChildWindow* pChildWindow, weld::Window* pParent, ScViewData* pViewData ) : - ScStatisticsTwoVariableDialogController( + ScStatisticsTwoVariableDialog( pSfxBindings, pChildWindow, pParent, pViewData, "modules/scalc/ui/ztestdialog.ui", "ZTestDialog") { diff --git a/sc/source/ui/inc/FTestDialog.hxx b/sc/source/ui/inc/FTestDialog.hxx index f75bff68ed2d..77d5b4102569 100644 --- a/sc/source/ui/inc/FTestDialog.hxx +++ b/sc/source/ui/inc/FTestDialog.hxx @@ -13,7 +13,7 @@ #include "StatisticsTwoVariableDialog.hxx" -class ScFTestDialog : public ScStatisticsTwoVariableDialogController +class ScFTestDialog : public ScStatisticsTwoVariableDialog { public: ScFTestDialog( diff --git a/sc/source/ui/inc/RegressionDialog.hxx b/sc/source/ui/inc/RegressionDialog.hxx index 6f689d80c321..22c1640eb3a8 100644 --- a/sc/source/ui/inc/RegressionDialog.hxx +++ b/sc/source/ui/inc/RegressionDialog.hxx @@ -13,7 +13,7 @@ #include "StatisticsTwoVariableDialog.hxx" -class ScRegressionDialog : public ScStatisticsTwoVariableDialogController +class ScRegressionDialog : public ScStatisticsTwoVariableDialog { bool mbUnivariate; size_t mnNumIndependentVars; diff --git a/sc/source/ui/inc/StatisticsTwoVariableDialog.hxx b/sc/source/ui/inc/StatisticsTwoVariableDialog.hxx index a3e90f78055e..bf4db74c2fd6 100644 --- a/sc/source/ui/inc/StatisticsTwoVariableDialog.hxx +++ b/sc/source/ui/inc/StatisticsTwoVariableDialog.hxx @@ -17,7 +17,7 @@ #include <vcl/fixed.hxx> -class ScStatisticsTwoVariableDialogController : public ScAnyRefDlgController +class ScStatisticsTwoVariableDialog : public ScAnyRefDlgController { public: enum GroupedBy { @@ -25,12 +25,12 @@ public: BY_ROW }; - ScStatisticsTwoVariableDialogController( + ScStatisticsTwoVariableDialog( SfxBindings* pB, SfxChildWindow* pCW, weld::Window* pParent, ScViewData* pViewData, const OUString& rUIXMLDescription, const OString& rID); - virtual ~ScStatisticsTwoVariableDialogController() override; + virtual ~ScStatisticsTwoVariableDialog() override; virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) override; virtual void SetActive() override; diff --git a/sc/source/ui/inc/TTestDialog.hxx b/sc/source/ui/inc/TTestDialog.hxx index 623be738884c..cea829c70035 100644 --- a/sc/source/ui/inc/TTestDialog.hxx +++ b/sc/source/ui/inc/TTestDialog.hxx @@ -13,7 +13,7 @@ #include "StatisticsTwoVariableDialog.hxx" -class ScTTestDialog : public ScStatisticsTwoVariableDialogController +class ScTTestDialog : public ScStatisticsTwoVariableDialog { public: ScTTestDialog( diff --git a/sc/source/ui/inc/ZTestDialog.hxx b/sc/source/ui/inc/ZTestDialog.hxx index 529dd3f9d850..ae60b8341ce2 100644 --- a/sc/source/ui/inc/ZTestDialog.hxx +++ b/sc/source/ui/inc/ZTestDialog.hxx @@ -13,7 +13,7 @@ #include "StatisticsTwoVariableDialog.hxx" -class ScZTestDialog : public ScStatisticsTwoVariableDialogController +class ScZTestDialog : public ScStatisticsTwoVariableDialog { public: ScZTestDialog( |