Kaydet (Commit) bfcf57de authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#117470 reuse parent window of colorwindow...

as parent of color selector window

Change-Id: Id96c9eed21c4e99b9e48ab44bab862fea9fd380a
Reviewed-on: https://gerrit.libreoffice.org/53972Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst b68daa69
......@@ -64,6 +64,7 @@ private:
OUString maCommand;
Link<const NamedColor&, void> maSelectedLink;
VclPtr<vcl::Window> mxParentWindow;
std::shared_ptr<PaletteManager> mxPaletteManager;
BorderColorStatus& mrBorderColorStatus;
......
......@@ -1256,6 +1256,7 @@ SvxColorWindow::SvxColorWindow(const OUString& rCommand,
ToolbarPopup( rFrame, pParentWindow, "palette_popup_window", "svx/ui/colorwindow.ui" ),
theSlotId( nSlotId ),
maCommand( rCommand ),
mxParentWindow(pParentWindow),
mxPaletteManager( rPaletteManager ),
mrBorderColorStatus( rBorderColorStatus ),
maColorSelectFunction(aFunction)
......@@ -1374,6 +1375,7 @@ void SvxColorWindow::dispose()
mpButtonNoneColor.clear();
mpButtonPicker.clear();
mpAutomaticSeparator.clear();
mxParentWindow.clear();
ToolbarPopup::dispose();
}
......@@ -1505,8 +1507,7 @@ IMPL_LINK_NOARG(SvxColorWindow, OpenPickerClickHdl, Button*, void)
if ( IsInPopupMode() )
EndPopupMode();
const css::uno::Reference<css::awt::XWindow> xParent(mxFrame->getContainerWindow(), uno::UNO_QUERY);
mxPaletteManager->PopupColorPicker(VCLUnoHelper::GetWindow(xParent), maCommand, GetSelectEntryColor().first);
mxPaletteManager->PopupColorPicker(mxParentWindow, maCommand, GetSelectEntryColor().first);
}
void SvxColorWindow::StartSelection()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment