summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-12 16:57:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-13 08:12:45 +0100
commitd59987b164bc32efe8f99ad49c139b4fc7ca3c2f (patch)
tree765652d6e940a5bdf43322ed54aa2f4c14116418 /chart2
parentb4641df5de7842d6a8fc2c4f839214bf01160c8c (diff)
loplugin:expandablemethods
Change-Id: I333d91ea5ce78c82e9bb107f934614efc7bfb8f7 Reviewed-on: https://gerrit.libreoffice.org/85078 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/dlg_DataEditor.cxx7
-rw-r--r--chart2/source/controller/dialogs/dlg_DataSource.cxx14
-rw-r--r--chart2/source/controller/inc/dlg_DataEditor.hxx1
-rw-r--r--chart2/source/controller/inc/dlg_DataSource.hxx3
4 files changed, 3 insertions, 22 deletions
diff --git a/chart2/source/controller/dialogs/dlg_DataEditor.cxx b/chart2/source/controller/dialogs/dlg_DataEditor.cxx
index a9fdf71a96e0..5e7c939a2262 100644
--- a/chart2/source/controller/dialogs/dlg_DataEditor.cxx
+++ b/chart2/source/controller/dialogs/dlg_DataEditor.cxx
@@ -139,16 +139,11 @@ void DataEditor::SetReadOnly( bool bReadOnly )
IMPL_LINK_NOARG(DataEditor, CloseHdl, weld::Button&, void)
{
- bool bApplied = ApplyChangesToModel();
+ bool bApplied = m_xBrwData->EndEditing(); // apply changes to model
if (bApplied)
m_xDialog->response(RET_CLOSE);
}
-bool DataEditor::ApplyChangesToModel()
-{
- return m_xBrwData->EndEditing();
-}
-
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/dlg_DataSource.cxx b/chart2/source/controller/dialogs/dlg_DataSource.cxx
index 7d5c4670b81c..46faf3b8774b 100644
--- a/chart2/source/controller/dialogs/dlg_DataSource.cxx
+++ b/chart2/source/controller/dialogs/dlg_DataSource.cxx
@@ -142,16 +142,6 @@ IMPL_LINK_NOARG(DataSourceDialog, DeactivatePageHdl, const OString&, bool)
return m_bTogglingEnabled;
}
-void DataSourceDialog::DisableTabToggling()
-{
- m_bTogglingEnabled = false;
-}
-
-void DataSourceDialog::EnableTabToggling()
-{
- m_bTogglingEnabled = true;
-}
-
void DataSourceDialog::setInvalidPage(BuilderPage* pTabPage)
{
if (pTabPage == m_xRangeChooserTabPage.get())
@@ -169,7 +159,7 @@ void DataSourceDialog::setInvalidPage(BuilderPage* pTabPage)
m_xTabControl->set_current_page(1);
else if( m_bDataSourceTabIsValid )
m_xTabControl->set_current_page(0);
- DisableTabToggling();
+ m_bTogglingEnabled = false;
}
}
@@ -183,7 +173,7 @@ void DataSourceDialog::setValidPage(BuilderPage* pTabPage)
if (m_bRangeChooserTabIsValid && m_bDataSourceTabIsValid)
{
m_xBtnOK->set_sensitive(true);
- EnableTabToggling();
+ m_bTogglingEnabled = true;
}
}
diff --git a/chart2/source/controller/inc/dlg_DataEditor.hxx b/chart2/source/controller/inc/dlg_DataEditor.hxx
index f4682ab43212..2d36f38df7bf 100644
--- a/chart2/source/controller/inc/dlg_DataEditor.hxx
+++ b/chart2/source/controller/inc/dlg_DataEditor.hxx
@@ -47,7 +47,6 @@ public:
DECL_LINK(CloseHdl, weld::Button&, void);
void SetReadOnly( bool bReadOnly );
- bool ApplyChangesToModel();
private:
bool m_bReadOnly;
diff --git a/chart2/source/controller/inc/dlg_DataSource.hxx b/chart2/source/controller/inc/dlg_DataSource.hxx
index 58965cb967f0..ca8777568826 100644
--- a/chart2/source/controller/inc/dlg_DataSource.hxx
+++ b/chart2/source/controller/inc/dlg_DataSource.hxx
@@ -57,9 +57,6 @@ public:
virtual void setValidPage( BuilderPage * pTabPage ) override;
private:
- void DisableTabToggling();
- void EnableTabToggling();
-
DECL_LINK(ActivatePageHdl, const OString&, void);
DECL_LINK(DeactivatePageHdl, const OString&, bool);