summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-14 19:40:37 +0000
committerSzymon Kłos <szymon.klos@collabora.com>2021-05-25 12:12:26 +0200
commit8154c343214190a6b34d1ed040729407449dc598 (patch)
treec7de316b45b371566222d5dfbf5547c618aa01a0 /editeng
parent42e5f4ec8526ffade60d8fa984bedcb3446b0817 (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit.cxx8
-rw-r--r--editeng/source/editeng/impedit.hxx1
2 files changed, 9 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 28c98f4b84b2..edb7cd228151 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 );