diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-23 19:44:15 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-23 20:51:12 +0000 |
commit | 0792e97bd7ea6f23c908bdebc4826b08c6265d55 (patch) | |
tree | 894b40b13a5d9aff3ebb119dad6b06c6e275be7c /include | |
parent | ba203843f5a209cb48e2d6f4ec4e3649982185ea (diff) |
VclPtr - add compat methods for old-style focus / notification.
The previous code would only invoke Window:: methods by the time we
hit the destructor; do the same to avoid fixing more scattered
crashers for now.
Change-Id: Ibdcd1290309bb7fc31a44d534c52d357da022591
Reviewed-on: https://gerrit.libreoffice.org/15880
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/window.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 919bd3121ab5..f1d7a92a0718 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -774,6 +774,14 @@ public: virtual bool Notify( NotifyEvent& rNEvt ); virtual vcl::Window* GetPreferredKeyInputWindow(); + // These methods call the relevant virtual method when not in/post dispose + void CompatGetFocus(); + void CompatLoseFocus(); + void CompatStateChanged( StateChangedType nStateChange ); + void CompatDataChanged( const DataChangedEvent& rDCEvt ); + bool CompatPreNotify( NotifyEvent& rNEvt ); + bool CompatNotify( NotifyEvent& rNEvt ); + void AddEventListener( const Link<>& rEventListener ); void RemoveEventListener( const Link<>& rEventListener ); void AddChildEventListener( const Link<>& rEventListener ); |