summaryrefslogtreecommitdiff
path: root/vcl/source/control/ctrl.cxx
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 /vcl/source/control/ctrl.cxx
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 'vcl/source/control/ctrl.cxx')
-rw-r--r--vcl/source/control/ctrl.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index a807409bdd2d..edf535e2968e 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -296,12 +296,19 @@ void Control::AppendLayoutData( const Control& rSubControl ) const
}
}
-bool Control::ImplCallEventListenersAndHandler( VclEventId nEvent, std::function<void()> const & callHandler )
+void Control::CallEventListeners( VclEventId nEvent, void* pData)
{
VclPtr<Control> xThis(this);
UITestLogger::getInstance().logAction(xThis, nEvent);
- CallEventListeners( nEvent );
+ vcl::Window::CallEventListeners(nEvent, pData);
+}
+
+bool Control::ImplCallEventListenersAndHandler( VclEventId nEvent, std::function<void()> const & callHandler )
+{
+ VclPtr<Control> xThis(this);
+
+ Control::CallEventListeners( nEvent );
if ( !xThis->IsDisposed() )
{