summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2017-10-01 11:11:18 -0400
committerHenry Castro <hcastro@collabora.com>2017-10-02 01:33:47 +0200
commitb3de468de84289f06a5eec858ba6493b2c9f408d (patch)
treeae77936e0f076696eba18026ee4b3e0ad06cccbb /sfx2
parenta2a3e06a29077d4274dc15eea28a01afe22e3658 (diff)
lok: handle .uno:LanguageStatus command
Change-Id: I3828113bce3b7d32e90e461a299986e363115a83 Reviewed-on: https://gerrit.libreoffice.org/43002 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 3556a9c4acb2..c609bf21bbd5 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1159,6 +1159,14 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c
aBuffer.append(OUString::number(aSize.Width) + " x " + OUString::number(aSize.Height));
}
}
+ else if (aEvent.FeatureURL.Path == "LanguageStatus")
+ {
+ css::uno::Sequence< OUString > aSeq;
+ if (aEvent.IsEnabled && (aEvent.State >>= aSeq))
+ {
+ aBuffer.append(aSeq[0]);
+ }
+ }
else
{
return;