From 012f153259d7541604ba78f1cb0b4b2df968672d Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 19 Sep 2017 16:47:17 +0200 Subject: [PATCH] lok: Expose the automatic spell checking state in the UI. Change-Id: I5c22ff70d3895b0f4a86eb8be85dde971604874a Reviewed-on: https://gerrit.libreoffice.org/42480 Reviewed-by: Jan Holesovsky Tested-by: Jan Holesovsky --- desktop/source/lib/init.cxx | 1 + sfx2/source/control/unoctitm.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index f9a825564c88..e195ae5a0430 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1556,6 +1556,7 @@ static void doc_iniUnoCommands () OUString(".uno:RowColSelCount"), OUString(".uno:StatusPageStyle"), OUString(".uno:InsertMode"), + OUString(".uno:SpellOnline"), OUString(".uno:StatusSelectionMode"), OUString(".uno:StateTableCell"), OUString(".uno:StatusBarFunc"), diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 433dfbbf66ea..3556a9c4acb2 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -997,6 +997,7 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c aEvent.FeatureURL.Path == "OutlineFont" || aEvent.FeatureURL.Path == "RightPara" || aEvent.FeatureURL.Path == "Shadowed" || + aEvent.FeatureURL.Path == "SpellOnline" || aEvent.FeatureURL.Path == "SubScript" || aEvent.FeatureURL.Path == "SuperScript" || aEvent.FeatureURL.Path == "Strikeout" ||