summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2023-07-18 15:18:41 -0400
committerTomaž Vajngerl <quikee@gmail.com>2023-08-08 16:44:31 +0200
commit3273d44baaf0679a19527e953809b9d61d8e2201 (patch)
tree06fd6b471ae87de4d1e6f57f040936dc7a49f690 /sc
parenta58b3984c1ad05d77eaefd424da12d9b833f76b8 (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/+/154600 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/tabvwsh.hxx1
-rw-r--r--sc/source/ui/view/tabvwsha.cxx8
2 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index 06e9f31e19cb..3c80dbc1995d 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -236,6 +236,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 c07a070e08ef..dd73c21a5076 100644
--- a/sc/source/ui/view/tabvwsha.cxx
+++ b/sc/source/ui/view/tabvwsha.cxx
@@ -631,6 +631,14 @@ void ScTabViewShell::ExecuteCellFormatDlg(SfxRequest& rReq, const OUString &rNam
});
}
+const OUString* ScTabViewShell::GetEditString() const
+{
+ if (mpInputHandler)
+ return &mpInputHandler->GetEditString();
+
+ return nullptr;
+}
+
bool ScTabViewShell::IsRefInputMode() const
{
ScModule* pScMod = SC_MOD();