diff options
author | Henry Castro <hcastro@collabora.com> | 2023-07-18 15:18:41 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2023-08-14 15:43:52 +0200 |
commit | 3089be0b87d02f363b97ccbb473d1798e202425c (patch) | |
tree | 382f1f38a27a3f473155dcc98d075aea3f92afba | |
parent | 99be3fb17a4039f495fbe614b184d555fed558e5 (diff) |
tdf#155799: sc: add getter function "GetEditString"
Useful for QA test queries.
..
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: Ibd3c902405f478032447b10286a788cd0769c855
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155001
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155630
-rw-r--r-- | sc/source/ui/inc/tabvwsh.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsha.cxx | 8 |
2 files changed, 9 insertions, 0 deletions
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(); |