diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-11-24 11:21:13 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-11-28 17:59:34 +0100 |
commit | 474e534738ae147eec450dfbca5e1ddbc86069cb (patch) | |
tree | f67bc2696c6152f05c91b4a264741e10ebd771bf | |
parent | 9df590be66324884e3e0e4eb9b255cd35103b06b (diff) |
lokdialog: Make the Autofilter popup notify about its creation.
Change-Id: Ib4062fa887b44eb1368205a414f4ac162f648c5c
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 1 | ||||
-rw-r--r-- | vcl/source/window/floatwin.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 243e2ea62ea7..4a716cf536fb 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -681,6 +681,7 @@ void ScGridWindow::LaunchAutoFilterMenu(SCCOL nCol, SCROW nRow) mpAutoFilterPopup.disposeAndClear(); mpAutoFilterPopup.reset(VclPtr<ScCheckListMenuWindow>::Create(this, pDoc)); + mpAutoFilterPopup->SetLOKNotifier(SfxViewShell::Current()); mpAutoFilterPopup->setOKAction(new AutoFilterAction(this, Normal)); mpAutoFilterPopup->setPopupEndAction( new AutoFilterPopupEndAction(this, ScAddress(nCol, nRow, nTab))); diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index 995183ebd5d0..9ce9cd378b59 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -729,6 +729,13 @@ void FloatingWindow::StartPopupMode( const Rectangle& rRect, FloatWinPopupFlags GrabFocus(); } Show( true, ShowFlags::NoActivate ); + + if (const vcl::ILibreOfficeKitNotifier* pNotifier = GetLOKNotifier()) + { + std::vector<vcl::LOKPayloadItem> aItems; + aItems.emplace_back(std::make_pair("size", rRect.GetSize().toString())); + pNotifier->notifyDialog(GetLOKWindowId(), "created", aItems); + } } void FloatingWindow::StartPopupMode( ToolBox* pBox, FloatWinPopupFlags nFlags ) |