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.hxx | |
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.hxx')
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx index 8eb9dc7a5976..b1703930c584 100644 --- a/sc/source/ui/attrdlg/scdlgfact.hxx +++ b/sc/source/ui/attrdlg/scdlgfact.hxx @@ -30,6 +30,7 @@ #include <delcldlg.hxx> #include <dpgroupdlg.hxx> #include <filldlg.hxx> +#include <gototabdlg.hxx> #include <groupdlg.hxx> #include <linkarea.hxx> #include <lbseldlg.hxx> @@ -517,6 +518,22 @@ public: virtual std::vector<sal_Int32> GetSelectedRows() const override; }; +class AbstractScGoToTabDlg_Impl : public AbstractScGoToTabDlg +{ + std::shared_ptr<ScGoToTabDlg> m_xDlg; +public: + explicit AbstractScGoToTabDlg_Impl(std::shared_ptr<ScGoToTabDlg> p) + : m_xDlg(std::move(p)) + { + } + virtual short Execute() override; + virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override; + virtual void Insert( const OUString& rString, bool bSelected ) override; + virtual void SetDescription(const OUString& rTitle, const OUString& rEntryLabel, const OUString& rListLabel, + const OString& rDlgHelpId, const OString& rEnHelpId, const OString& rLbHelpId) override; + virtual OUString GetSelectedEntry() const override; +}; + class AbstractScSortWarningDlg_Impl : public AbstractScSortWarningDlg { std::unique_ptr<ScSortWarningDlg> m_xDlg; @@ -739,6 +756,7 @@ public: virtual VclPtr<AbstractScNewScenarioDlg> CreateScNewScenarioDlg(weld::Window* pParent, const OUString& rName, bool bEdit, bool bSheetProtected) override; virtual VclPtr<AbstractScShowTabDlg> CreateScShowTabDlg(weld::Window* pParent) override; + virtual VclPtr<AbstractScGoToTabDlg> CreateScGoToTabDlg(weld::Window* pParent) override; virtual VclPtr<AbstractScStringInputDlg> CreateScStringInputDlg(weld::Window* pParent, const OUString& rTitle, |