summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2018-10-19 22:33:24 +0200
committerMichael Meeks <michael.meeks@collabora.com>2019-09-24 21:17:41 +0200
commit282a61d7932fda2cd5062f72446c79d26c43c594 (patch)
tree6fb23286af3653106b55dda2d448cd8d6163703d /sc/source/ui/app
parent522b81899594be04cc975b65bb04f5a58378b20d (diff)
Formula editing when switching tabs
Change-Id: Ia6e1617ee7f02227bf15277cf25865134dfd1f2a Reviewed-on: https://gerrit.libreoffice.org/79465 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/inputhdl.cxx12
-rw-r--r--sc/source/ui/app/scmod.cxx6
2 files changed, 0 insertions, 18 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 2e9fcee02f2b..b7f61da9fcc7 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -2501,18 +2501,6 @@ void ScInputHandler::UpdateFormulaMode()
(rText[0] == '=' || rText[0] == '+' || rText[0] == '-');
}
- // formula mode in online is not usable in collaborative mode,
- // this is a workaround for disabling formula mode in online
- // when there is more than a single view
- if (comphelper::LibreOfficeKit::isActive()
- && SfxViewShell::GetActiveShells(/*only visible shells*/ false) > 1)
- {
- // we look for not visible shells, too, since this method can be
- // invoked by a TabViewShell ctor and at such a stage the view
- // is not yet visible,
- bIsFormula = false;
- }
-
if ( bIsFormula )
{
if (!bFormulaMode)
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index d725651089ed..d8eb515e8eda 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1619,12 +1619,6 @@ bool ScModule::IsFormulaMode()
// Just keep function autopilot here for references to other documents
bool bIsFormula = false;
- // formula mode in online is not usable in collaborative mode,
- // this is a workaround for disabling formula mode in online
- // when there is more than a single view
- if (comphelper::LibreOfficeKit::isActive() && SfxViewShell::GetActiveShells() > 1)
- return false;
-
if ( m_nCurRefDlgId )
{
SfxChildWindow* pChildWnd = nullptr;