editeng/source/editeng/impedit.cxx | 8 ++++++++ editeng/source/editeng/impedit.hxx | 1 + 2 files changed, 9 insertions(+)
New commits: commit 78d1a773fe3ca3c9bf6c8ded913f4db9731d1618 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Dec 14 19:40:37 2020 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Dec 15 09:48:21 2020 +0100 get parent for welded menu and location to pop it up Change-Id: I654f6edc4b8bdb0e38f70757b970893980b09638 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107728 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 03615ca3e465..20dce95424a9 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -35,6 +35,7 @@ #include <vcl/inputctx.hxx> #include <vcl/transfer.hxx> #include <vcl/svapp.hxx> +#include <vcl/weldutils.hxx> #include <sot/exchange.hxx> #include <sot/formats.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> @@ -822,6 +823,13 @@ OutputDevice& ImpEditView::GetOutputDevice() const return *pOutWin; } +weld::Widget* ImpEditView::GetPopupParent(tools::Rectangle& rRect) const +{ + if (EditViewCallbacks* pCallbacks = getEditViewCallbacks()) + return pCallbacks->EditViewPopupParent(); + return weld::GetPopupParent(*pOutWin, rRect); +} + void ImpEditView::SetOutputArea( const tools::Rectangle& rRect ) { const OutputDevice& rOutDev = GetOutputDevice(); diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 3adffe49b1eb..45088dc9bedf 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -393,6 +393,7 @@ public: void ScrollStateChange(); OutputDevice& GetOutputDevice() const; + weld::Widget* GetPopupParent(tools::Rectangle& rRect) const; vcl::Window* GetWindow() const { return pOutWin; } void SetSelectionMode( EESelectionMode eMode ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits