dbaccess/source/ui/browser/sbagrid.cxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
New commits: commit 0d868e004f62013ba5fcb9595dbe5c3f18d0623b Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Oct 2 17:22:17 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Oct 3 09:52:10 2018 +0200 Related: tdf#93372 pass in parent to base's table format dialog Change-Id: I06a39b6517aabac321c45b1a3ab92f13903b9daa Reviewed-on: https://gerrit.libreoffice.org/61265 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 5f86a96ef6d7..18ede36a635a 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -60,6 +60,7 @@ #include <svl/itempool.hxx> #include <svl/itemset.hxx> #include <svl/rngitem.hxx> +#include <toolkit/helper/vclunohelper.hxx> #include <vcl/waitobj.hxx> @@ -877,7 +878,16 @@ void SbaGridControl::SetBrowserAttrs() try { Reference< XComponentContext > xContext = getContext(); - Reference< XExecutableDialog > xExecute = ControlFontDialog::createWithGridModel( xContext, xGridModel); + css::beans::PropertyValue aArg; + css::uno::Sequence<css::uno::Any> aArguments(2); + aArg.Name = "IntrospectedObject"; + aArg.Value <<= xGridModel; + aArguments[0] <<= aArg; + aArg.Name = "ParentWindow"; + aArg.Value <<= VCLUnoHelper::GetInterface(this); + aArguments[1] <<= aArg; + Reference<XExecutableDialog> xExecute(xContext->getServiceManager()->createInstanceWithArgumentsAndContext("com.sun.star.form.ControlFontDialog", + aArguments, xContext), css::uno::UNO_QUERY_THROW); xExecute->execute(); } catch( const Exception& ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits