[Libreoffice-commits] online.git: kit/ChildSession.cpp kit/KitHelper.hpp tools/KitClient.cpp
Pranav Kant
pranavk at collabora.co.uk
Mon Oct 2 10:11:20 UTC 2017
kit/ChildSession.cpp | 6 ++++++
kit/KitHelper.hpp | 4 ++++
tools/KitClient.cpp | 2 ++
3 files changed, 12 insertions(+)
New commits:
commit 55de8e6c1b648aab61718fdecea1289fb35e1708
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Wed Aug 16 16:50:58 2017 +0530
lokdialog: Add dialog related callbacks
Change-Id: I5dc54c4bdbaf066b3b089a00fbc89b943e73caae
diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index 56075790..e66af1e4 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -1248,6 +1248,12 @@ void ChildSession::loKitCallback(const int type, const std::string& payload)
case LOK_CALLBACK_RULER_UPDATE:
sendTextFrame("rulerupdate: " + payload);
break;
+ case LOK_CALLBACK_DIALOG:
+ sendTextFrame("dialog: " + payload);
+ break;
+ case LOK_CALLBACK_DIALOG_CHILD:
+ sendTextFrame("dialogchild: " + payload);
+ break;
default:
LOG_ERR("Unknown callback event (" << type << "): " << payload);
}
diff --git a/kit/KitHelper.hpp b/kit/KitHelper.hpp
index efb0d5cb..dccf2741 100644
--- a/kit/KitHelper.hpp
+++ b/kit/KitHelper.hpp
@@ -113,6 +113,10 @@ namespace LOKitHelper
return "INVALIDATE_HEADER";
case LOK_CALLBACK_CELL_ADDRESS:
return "CELL_ADDRESS";
+ case LOK_CALLBACK_DIALOG:
+ return "DIALOG";
+ case LOK_CALLBACK_DIALOG_CHILD:
+ return "DIALOG_CHILD";
}
diff --git a/tools/KitClient.cpp b/tools/KitClient.cpp
index aa2c012f..98ee4d9f 100644
--- a/tools/KitClient.cpp
+++ b/tools/KitClient.cpp
@@ -79,6 +79,8 @@ extern "C"
CASE(INVALIDATE_HEADER);
CASE(CELL_ADDRESS);
CASE(RULER_UPDATE);
+ CASE(DIALOG);
+ CASE(DIALOG_CHILD);
#undef CASE
}
std::cout << " payload: " << payload << std::endl;
More information about the Libreoffice-commits
mailing list