diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-11-27 19:23:22 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-11-28 19:49:27 +0100 |
commit | eba961f518774d467b03c5a77828a2a7c21b42ed (patch) | |
tree | ae65a0d16ae85e5a4227e7a8b34f9df115ba94bb /include | |
parent | 57c0ccf77627b485e8ed05cad295c4eef5eb16e4 (diff) |
lokdialog: Move the LOKWindowId <-> VclPtr<Window> mapping to Window.
This allows registering & de-registering of non-sfx windows too, and makes the
Calc autofilter popup to appear.
Change-Id: I7cbbe94d208115aabcb6fa5f964646c7b7ce4c93
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/viewsh.hxx | 5 | ||||
-rw-r--r-- | include/vcl/ITiledRenderable.hxx | 6 | ||||
-rw-r--r-- | include/vcl/window.hxx | 6 |
3 files changed, 6 insertions, 11 deletions
diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx index e37c5137e381..5bfea3a81dcf 100644 --- a/include/sfx2/viewsh.hxx +++ b/include/sfx2/viewsh.hxx @@ -157,7 +157,6 @@ friend class SfxPrinterController; VclPtr<vcl::Window> pWindow; bool bNoNewWindow; bool mbPrinterSettingsModified; - std::vector<std::pair<vcl::LOKWindowId, VclPtr<Dialog> > > maOpenedDialogs; protected: virtual void Activate(bool IsMDIActivate) override; @@ -227,10 +226,6 @@ public: virtual SfxShell* GetFormShell() { return nullptr; }; virtual const SfxShell* GetFormShell() const { return nullptr; }; - void RegisterDlg(vcl::LOKWindowId nDialogId, VclPtr<Dialog> pDlg); - VclPtr<Dialog> GetOpenedDlg(vcl::LOKWindowId nDialogId); - void UnregisterDlg(vcl::LOKWindowId nDialogId); - // ILibreOfficeKitNotifier virtual void notifyWindow(vcl::LOKWindowId nLOKWindowId, const OUString& rAction, const std::vector<vcl::LOKPayloadItem>& rPayload = std::vector<vcl::LOKPayloadItem>()) const override; virtual void notifyWindowChild(vcl::LOKWindowId nLOKWindowId, const OUString& rAction, const Point& rPos) const override; diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx index b57ed35ae7e9..ae3ba9e76c3c 100644 --- a/include/vcl/ITiledRenderable.hxx +++ b/include/vcl/ITiledRenderable.hxx @@ -241,12 +241,6 @@ public: { return OUString(); } - - /** - * Find the window/dialog with the right ID for tunneling of windows, - * dialogs or pop-ups. - */ - virtual VclPtr<Window> findWindow(vcl::LOKWindowId nLOKWindowId) const = 0; }; } // namespace vcl diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index f4e154816f3d..fa75822c563e 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -1209,6 +1209,12 @@ public: const vcl::ILibreOfficeKitNotifier* GetLOKNotifier() const; vcl::LOKWindowId GetLOKWindowId() const; + /// 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); + /// Dialog / window tunneling related methods. virtual void paintDialog(VirtualDevice& rDevice); Size PaintActiveFloatingWindow(VirtualDevice& rDevice) const; |