diff options
author | Laurent BP <laurent.balland-poirier@laposte.net> | 2022-05-16 22:47:25 +0200 |
---|---|---|
committer | Laurent Balland-Poirier <laurent.balland@mailo.fr> | 2022-06-07 13:43:20 +0200 |
commit | d93e9430bfbf6fa8a679ea2d4d98f955774026f6 (patch) | |
tree | 6d6e6a4f48cd9fb1134989fbf9f3b879e67e8d77 /sc/source/ui/attrdlg/scdlgfact.cxx | |
parent | 19a6adddec0f5a6ee771939a17f85bdde4a44ce3 (diff) |
tdf#129674 Add GoTo Sheet command
Insert command in menu Sheet > Navigate
(alongs with To Previous/Next Sheet)
Use .uno:JumpToTable command from Navigator
Use its own Go To Sheet dialog
Add a Search entry to type partial name of sheet
Menu translation missing?
Change-Id: I16b8b56a688c8396159617f04a2a7e034721ce31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134714
Tested-by: Jenkins
Reviewed-by: Laurent Balland-Poirier <laurent.balland@mailo.fr>
Diffstat (limited to 'sc/source/ui/attrdlg/scdlgfact.cxx')
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.cxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx index 909d9fd85a43..8b59e672ca12 100644 --- a/sc/source/ui/attrdlg/scdlgfact.cxx +++ b/sc/source/ui/attrdlg/scdlgfact.cxx @@ -275,6 +275,16 @@ bool AbstractScShowTabDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContex return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn); } +short AbstractScGoToTabDlg_Impl::Execute() +{ + return m_xDlg->run(); +} + +bool AbstractScGoToTabDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) +{ + return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn); +} + short AbstractScSortWarningDlg_Impl::Execute() { return m_xDlg->run(); @@ -839,6 +849,23 @@ OUString AbstractScShowTabDlg_Impl::GetEntry(sal_Int32 nPos) const return m_xDlg->GetEntry(nPos); } +void AbstractScGoToTabDlg_Impl::Insert( const OUString& rString, bool bSelected ) +{ + m_xDlg->Insert(rString, bSelected); +} + +void AbstractScGoToTabDlg_Impl::SetDescription( + const OUString& rTitle, const OUString& rEntryLabel, const OUString& rListLabel, + const OString& rDlgHelpId, const OString& rEnHelpId, const OString& rLbHelpId ) +{ + m_xDlg->SetDescription( rTitle, rEntryLabel, rListLabel, rDlgHelpId, rEnHelpId, rLbHelpId ); +} + +OUString AbstractScGoToTabDlg_Impl::GetSelectedEntry() const +{ + return m_xDlg->GetSelectedEntry(); +} + short AbstractScStringInputDlg_Impl::Execute() { return m_xDlg->run(); @@ -1183,6 +1210,11 @@ VclPtr<AbstractScShowTabDlg> ScAbstractDialogFactory_Impl::CreateScShowTabDlg(we return VclPtr<AbstractScShowTabDlg_Impl>::Create(std::make_shared<ScShowTabDlg>(pParent)); } +VclPtr<AbstractScGoToTabDlg> ScAbstractDialogFactory_Impl::CreateScGoToTabDlg(weld::Window* pParent) +{ + return VclPtr<AbstractScGoToTabDlg_Impl>::Create(std::make_shared<ScGoToTabDlg>(pParent)); +} + VclPtr<AbstractScStringInputDlg> ScAbstractDialogFactory_Impl::CreateScStringInputDlg(weld::Window* pParent, const OUString& rTitle, const OUString& rEditTitle, const OUString& rDefault, const OString& rHelpId, const OString& rEditHelpId) |