summaryrefslogtreecommitdiff
path: root/sc/source/ui/app/inputwin.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-12-07 14:42:47 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-02-02 12:39:37 +0100
commitbff5d1a68a8b6f5776c5edb4ef0f919af1194d03 (patch)
tree1e7792cb6ec69380e4b25e22adaad9b84acb0fb8 /sc/source/ui/app/inputwin.cxx
parentebcf824de8101fbbda01ee91010698977041f031 (diff)
disable ScPosWnd completely in LOK mode
366e328dc7f36061971c549c2d33d365026b65ca already mostly disabled it, but the instance was still created, and it sets up listening that results in ScPosWnd::FillRangeNames() getting called on every SfxLokHelper::setView(), which forms the major cost of the view switching. Change-Id: Ic16da4bdfb678d53a79da57e9bbdcb7fc59c576d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126481 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/source/ui/app/inputwin.cxx')
-rw-r--r--sc/source/ui/app/inputwin.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 2de934265b77..c2810113f9c8 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -161,7 +161,7 @@ static VclPtr<ScInputBarGroup> lcl_chooseRuntimeImpl( vcl::Window* pParent, cons
ScInputWindow::ScInputWindow( vcl::Window* pParent, const SfxBindings* pBind ) :
// With WB_CLIPCHILDREN otherwise we get flickering
ToolBox ( pParent, WinBits(WB_CLIPCHILDREN | WB_BORDER | WB_NOSHADOW) ),
- aWndPos ( VclPtr<ScPosWnd>::Create(this) ),
+ aWndPos ( !comphelper::LibreOfficeKit::isActive() ? VclPtr<ScPosWnd>::Create(this) : nullptr ),
mxTextWindow ( lcl_chooseRuntimeImpl( this, pBind ) ),
pInputHdl ( nullptr ),
mpViewShell ( nullptr ),
@@ -589,7 +589,8 @@ void ScInputWindow::SetFuncString( const OUString& rString, bool bDoEdit )
void ScInputWindow::SetPosString( const OUString& rStr )
{
- aWndPos->SetPos( rStr );
+ if (!comphelper::LibreOfficeKit::isActive())
+ aWndPos->SetPos( rStr );
}
void ScInputWindow::SetTextString( const OUString& rString )
@@ -648,7 +649,8 @@ void ScInputWindow::SetSumAssignMode()
void ScInputWindow::SetFormulaMode( bool bSet )
{
- aWndPos->SetFormulaMode(bSet);
+ if (!comphelper::LibreOfficeKit::isActive())
+ aWndPos->SetFormulaMode(bSet);
mxTextWindow->SetFormulaMode(bSet);
}
@@ -713,7 +715,8 @@ void ScInputWindow::SwitchToTextWin()
void ScInputWindow::PosGrabFocus()
{
- aWndPos->GrabFocus();
+ if (!comphelper::LibreOfficeKit::isActive())
+ aWndPos->GrabFocus();
}
void ScInputWindow::EnableButtons( bool bEnable )