summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSaurav Chirania <saurav.chir@gmail.com>2018-07-04 13:55:50 +0530
committerSaurav Chirania <saurav.chir@gmail.com>2018-07-06 19:44:40 +0200
commit09e8815066c133b6a53fd5bc2f3d3ab8ad6e4248 (patch)
tree17763596ab313bcc75bfc2b37f177ad228aceb62 /include
parent8801cf6fbe3959cb1485a06fb86a41cc05b28ac6 (diff)
uitest logger: log the events calling CallEventListeners()
Some events directly call CallEventListeners() instead of calling ImplCallEventListenersAndHandler. This patch thus moves logAction to CallEventListeners() Further, this patch adds logging for EditSelectionChanged which is broadcasted using CallEventListeners(). Change-Id: Ib15367688cdbcdb542f6139d270d8d463f214fde Reviewed-on: https://gerrit.libreoffice.org/56952 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/ctrl.hxx2
-rw-r--r--include/vcl/uitest/uiobject.hxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx
index 5529cf86b912..48daf0e5401e 100644
--- a/include/vcl/ctrl.hxx
+++ b/include/vcl/ctrl.hxx
@@ -76,6 +76,8 @@ protected:
VclEventId nEvent, std::function<void()> const & callHandler
);
+ void CallEventListeners( VclEventId nEvent, void* pData = nullptr );
+
/** draws the given text onto the given device
If no reference device is set, the draw request will simply be forwarded to OutputDevice::DrawText. Otherwise,
diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx
index 37f9f883f058..5ff62735ea02 100644
--- a/include/vcl/uitest/uiobject.hxx
+++ b/include/vcl/uitest/uiobject.hxx
@@ -189,6 +189,8 @@ public:
static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
+ virtual OUString get_action(VclEventId nEvent) const override;
+
protected:
virtual OUString get_name() const override;