summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-23 13:20:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-23 15:52:33 +0200
commit03a970babc2df4957051af996d8a426e4d94f17d (patch)
tree2033da86e13872bb128500f3826a10417510a321 /sfx2/source/dialog
parent93e234c45c62af9d57041de676d888f7695ac0e8 (diff)
rename SfxTabDialogController::ActivatePageHdlHdl contents and make virtual
Change-Id: I9ba605f83a5841319770ff1a6d52fb8200486c23 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140488 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index fb025ac21b6e..1dda5b9f3eb5 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -510,7 +510,11 @@ IMPL_LINK_NOARG(SfxTabDialogController, BaseFmtHdl, weld::Button&, void)
}
IMPL_LINK(SfxTabDialogController, ActivatePageHdl, const OString&, rPage, void)
+{
+ ActivatePage(rPage);
+}
+void SfxTabDialogController::ActivatePage(const OString& rPage)
/* [Description]
Handler that is called by StarView for switching to a different page.
@@ -545,7 +549,11 @@ IMPL_LINK(SfxTabDialogController, ActivatePageHdl, const OString&, rPage, void)
}
IMPL_LINK(SfxTabDialogController, DeactivatePageHdl, const OString&, rPage, bool)
+{
+ return DeactivatePage(rPage);
+}
+bool SfxTabDialogController::DeactivatePage(const OString& rPage)
/* [Description]
Handler that is called by StarView before leaving a page.
@@ -997,7 +1005,7 @@ void SfxTabDialogController::Start_Impl()
m_xTabCtrl->set_current_page(aDlgOpt.GetPageID());
}
- ActivatePageHdl(m_xTabCtrl->get_current_page_ident());
+ ActivatePage(m_xTabCtrl->get_current_page_ident());
m_pImpl->bStarted = true;
}
@@ -1015,7 +1023,7 @@ void SfxTabDialogController::SetCurPageId(const OString& rIdent)
void SfxTabDialogController::ShowPage(const OString& rIdent)
{
SetCurPageId(rIdent);
- ActivatePageHdl(rIdent);
+ ActivatePage(rIdent);
}
OString SfxTabDialogController::GetCurPageId() const