diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-02 17:22:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-03 09:52:10 +0200 |
commit | 0d868e004f62013ba5fcb9595dbe5c3f18d0623b (patch) | |
tree | 956b3689d2be96ce48293da568a0413569a05b50 /dbaccess | |
parent | ff418ffebbdbef98d346c153bc2315fcdcc97945 (diff) |
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 <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
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& ) |