summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-02 17:22:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-03 09:52:10 +0200
commit0d868e004f62013ba5fcb9595dbe5c3f18d0623b (patch)
tree956b3689d2be96ce48293da568a0413569a05b50
parentff418ffebbdbef98d346c153bc2315fcdcc97945 (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>
-rw-r--r--dbaccess/source/ui/browser/sbagrid.cxx12
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& )