[Libreoffice-commits] core.git: Branch 'feature/lok_dialog-backport' - vcl/source
Jan Holesovsky
kendy at collabora.com
Mon Dec 4 16:32:51 UTC 2017
vcl/source/window/floatwin.cxx | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
New commits:
commit c9d1df376a949a2edf7d0cea7c695b9ff213d8f0
Author: Jan Holesovsky <kendy at collabora.com>
Date: Mon Dec 4 17:30:45 2017 +0100
lokdialog: Make the Autofilter popup work in Calc.
For the moment we treat it as a 'dialog', but maybe we'll need a separate
window type for this later.
Change-Id: I21bff0b50b5f3e9f51d323600f7ba6d37c16bc9b
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index ce289a804e50..4c2eae984c54 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -621,8 +621,18 @@ void FloatingWindow::StateChanged( StateChangedType nType )
SetLOKNotifier(pNotifier);
std::vector<vcl::LOKPayloadItem> aItems;
- aItems.emplace_back(std::make_pair("type", "child"));
- aItems.emplace_back(std::make_pair("parentId", OString::number(pParent->GetLOKWindowId())));
+ if (pParent == this)
+ {
+ // we are a toplevel window, let's so far pretend to be a
+ // dialog - but maybe we'll need a separate type for this
+ // later
+ aItems.emplace_back(std::make_pair("type", "dialog"));
+ }
+ else
+ {
+ aItems.emplace_back(std::make_pair("type", "child"));
+ aItems.emplace_back(std::make_pair("parentId", OString::number(pParent->GetLOKWindowId())));
+ }
aItems.emplace_back(std::make_pair("size", GetSizePixel().toString()));
aItems.emplace_back(std::make_pair("position", mpImplData->maPos.toString()));
pNotifier->notifyWindow(GetLOKWindowId(), "created", aItems);
More information about the Libreoffice-commits
mailing list