diff options
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 9 | ||||
-rw-r--r-- | sw/source/uibase/docvw/edtwin2.cxx | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 6658bde6af7f..62bd2a3c66cf 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -58,6 +58,7 @@ #include <vcl/settings.hxx> #include <vcl/svapp.hxx> #include <tools/urlobj.hxx> +#include <tools/json_writer.hxx> #include <formula/formulahelper.hxx> #include <formula/funcvarargs.h> #include <LibreOfficeKit/LibreOfficeKitEnums.h> @@ -1277,7 +1278,13 @@ void ScInputHandler::ShowArgumentsTip( OUString& rSelText ) const SfxViewShell* pViewShell = SfxViewShell::Current(); if (comphelper::LibreOfficeKit::isActive() && pViewShell->isLOKDesktop()) - pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TOOLTIP, aNew.toUtf8()); + { + tools::JsonWriter writer; + writer.put("type", "formulausage"); + writer.put("text", aNew); + OString sFunctionUsageTip = writer.finishAndGetAsOString(); + pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TOOLTIP, sFunctionUsageTip); + } } } } diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx index b6dcfdbeb70e..07bf72ff4b99 100644 --- a/sw/source/uibase/docvw/edtwin2.cxx +++ b/sw/source/uibase/docvw/edtwin2.cxx @@ -315,6 +315,7 @@ static OString getTooltipPayload(const OUString& tooltip, const SwRect& rect) { tools::JsonWriter writer; { + writer.put("type", "generaltooltip"); writer.put("text", tooltip); writer.put("rectangle", rect.SVRect().toString()); } |