summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2017-10-01 11:11:18 -0400
committerJan Holesovsky <kendy@collabora.com>2017-10-03 10:07:55 +0200
commit7197e1072076ce8054932dd4856a4d017e843fc6 (patch)
tree4907b6779995f4024c1dfe3fdb9d52a7fe604467 /sfx2
parentc04499bce3783b39b3636db4ff8b2807424ee497 (diff)
lok: handle .uno:LanguageStatus command
Contains also: LOK: getSpellLanguages() is not necessary in comphelper in the end. Change-Id: I3828113bce3b7d32e90e461a299986e363115a83
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 23002fe9dcc7..72edd1fabd15 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1155,6 +1155,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;