From 2555441f3f694af11d0d7b220b12ae25f43a6a5a Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Tue, 26 Jan 2021 16:35:10 +0100 Subject: fontwork: insert in the center of LOK view Change-Id: Iabde4ee927546b0e396c4fbd6d0099fa82240166 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109968 Tested-by: Jenkins CollaboraOffice Reviewed-by: Jan Holesovsky --- sc/source/ui/inc/tabvwsh.hxx | 2 ++ sc/source/ui/view/tabvwsh4.cxx | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'sc') diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx index cffc7cf1bb3c..60cd3d4848ea 100644 --- a/sc/source/ui/inc/tabvwsh.hxx +++ b/sc/source/ui/inc/tabvwsh.hxx @@ -402,6 +402,8 @@ public: void InitFormEditData(); void ClearFormEditData(); ScFormEditData* GetFormEditData() { return mpFormEditData.get(); } + + virtual tools::Rectangle getLOKVisibleArea() const override; }; #endif diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index ee279ceec064..66da8b55e6d0 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -1829,4 +1829,9 @@ ScNavigatorSettings* ScTabViewShell::GetNavigatorSettings() return pNavSettings.get(); } +tools::Rectangle ScTabViewShell::getLOKVisibleArea() const +{ + return GetViewData().getLOKVisibleArea(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit