diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-12-04 17:55:21 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-12-06 12:16:22 +0100 |
commit | 5df0f751d8b117eeb9b1df8d1bc34e36659d1492 (patch) | |
tree | bc005ca9fe6dec2ddef0368db1a5a92fd1090564 /include/vcl/window.hxx | |
parent | 86393f03702fd4c695612754fa89f80dac69eab9 (diff) |
lokdialog: Window* -> VclPtr<Window>, and a small simplification.
Change-Id: I853e2d6ec2e55c78894a9942aa201763a57fe195
Reviewed-on: https://gerrit.libreoffice.org/45900
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include/vcl/window.hxx')
-rw-r--r-- | include/vcl/window.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 9af0a918435f..f02acf125d23 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -1207,13 +1207,15 @@ public: void SetLOKNotifier(const vcl::ILibreOfficeKitNotifier* pNotifier); const vcl::ILibreOfficeKitNotifier* GetLOKNotifier() const; vcl::LOKWindowId GetLOKWindowId() const; - vcl::Window* GetParentWithLOKNotifier(); + + /// Find the nearest parent with LOK Notifier; can be itself if this Window has LOK notifier set. + VclPtr<vcl::Window> GetParentWithLOKNotifier(); /// Indicate that LOK is not going to use this dialog any more. void ReleaseLOKNotifier(); /// Find an existing Window based on the LOKWindowId. - static VclPtr<Window> FindLOKWindow(vcl::LOKWindowId nWindowId); + static VclPtr<vcl::Window> FindLOKWindow(vcl::LOKWindowId nWindowId); /// Dialog / window tunneling related methods. Size PaintActiveFloatingWindow(VirtualDevice& rDevice) const; |