sc/source/ui/inc/tabvwsh.hxx | 1 + sc/source/ui/view/tabvwsha.cxx | 8 ++++++++ 2 files changed, 9 insertions(+)
New commits: commit 3089be0b87d02f363b97ccbb473d1798e202425c Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue Jul 18 15:18:41 2023 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Mon Aug 14 15:43:52 2023 +0200 tdf#155799: sc: add getter function "GetEditString" Useful for QA test queries. .. Signed-off-by: Henry Castro <hcas...@collabora.com> Change-Id: Ibd3c902405f478032447b10286a788cd0769c855 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155001 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155630 diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx index 2aba65effefa..2db85dfa543e 100644 --- a/sc/source/ui/inc/tabvwsh.hxx +++ b/sc/source/ui/inc/tabvwsh.hxx @@ -237,6 +237,7 @@ public: const ScInputHandler* GetInputHandler() const { return mpInputHandler.get(); } ScInputHandler* GetInputHandler() { return mpInputHandler.get(); } + const OUString* GetEditString() const; void UpdateInputHandler( bool bForce = false, bool bStopEditing = true ); void UpdateInputHandlerCellAdjust( SvxCellHorJustify eJust ); bool TabKeyInput(const KeyEvent& rKEvt); diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx index 5ce345e97fea..f17a55237e4e 100644 --- a/sc/source/ui/view/tabvwsha.cxx +++ b/sc/source/ui/view/tabvwsha.cxx @@ -615,6 +615,14 @@ void ScTabViewShell::ExecuteCellFormatDlg(SfxRequest& rReq, const OString &rName }); } +const OUString* ScTabViewShell::GetEditString() const +{ + if (mpInputHandler) + return &mpInputHandler->GetEditString(); + + return nullptr; +} + bool ScTabViewShell::IsRefInputMode() const { ScModule* pScMod = SC_MOD();