diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-10-31 22:04:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-01 15:14:33 +0100 |
commit | 7a896f183dca54aa9d8529f5797920cf629f9210 (patch) | |
tree | c4475c2352c5dcab2521709db12199fa7084c2fb /starmath/source/view.cxx | |
parent | 9aa8552bf9168836662b45798e06de4b972550ed (diff) |
use officecfg for Experimental flag
move IsShowOutlineContentVisibilityButton out of header to
avoid having to add extra include paths to all the unit
test makefiles.
Change-Id: I2763390e07cd85b8f09b6f2ad7702039daecb22f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105100
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source/view.cxx')
-rw-r--r-- | starmath/source/view.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index b76012a6b084..638a41b2daa2 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -28,6 +28,7 @@ #include <comphelper/storagehelper.hxx> #include <comphelper/string.hxx> #include <i18nutil/unicode.hxx> +#include <officecfg/Office/Common.hxx> #include <sfx2/dispatch.hxx> #include <sfx2/docfile.hxx> #include <sfx2/docfilt.hxx> @@ -204,9 +205,9 @@ void SmGraphicWindow::MouseMove(const MouseEvent &rMEvt) } } -bool SmGraphicWindow::IsInlineEditEnabled() const +bool SmGraphicWindow::IsInlineEditEnabled() { - return pViewShell->IsInlineEditEnabled(); + return SmViewShell::IsInlineEditEnabled(); } void SmGraphicWindow::GetFocus() @@ -1983,9 +1984,9 @@ void SmViewShell::Notify( SfxBroadcaster& , const SfxHint& rHint ) } } -bool SmViewShell::IsInlineEditEnabled() const +bool SmViewShell::IsInlineEditEnabled() { - return maOpts.IsExperimentalMode(); + return officecfg::Office::Common::Misc::ExperimentalMode::get(); } void SmViewShell::ZoomByItemSet(const SfxItemSet *pSet) |