diff options
author | Henry Castro <hcastro@collabora.com> | 2016-11-24 07:09:38 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2016-11-28 02:26:23 +0000 |
commit | 2db42ab241d0852d89a470b18727c22d0fc06745 (patch) | |
tree | 40af961c0846fdd68a657938d5d1fd61f3c69024 /desktop | |
parent | e2d5f1ba3fd0db00276cf48b0d9be9b16dcbf7a0 (diff) |
sw lok: notify repair when exist a conflict of multiple users undo/redo
Change-Id: I026f4df6239fa87ee191f92127f9fa98ac2993eb
Reviewed-on: https://gerrit.libreoffice.org/31161
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 2ecfddcecd88..fa3446e39b41 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -329,6 +329,11 @@ static boost::property_tree::ptree unoAnyToPropertyTree(const uno::Any& anyItem) if (aType == "string") aTree.put("value", anyItem.get<OUString>().toUtf8().getStr()); + else if (aType == "unsigned long") + aTree.put("value", OString::number(anyItem.get<sal_uInt32>()).getStr()); + else if (aType == "long") + aTree.put("value", OString::number(anyItem.get<sal_Int32>()).getStr()); + // TODO: Add more as required return aTree; @@ -1806,8 +1811,7 @@ public: aTree.put("success", bSuccess); } - // TODO UNO Any rEvent.Result -> JSON - // aTree.put("result": "..."); + aTree.add_child("result", unoAnyToPropertyTree(rEvent.Result)); std::stringstream aStream; boost::property_tree::write_json(aStream, aTree); |