[Libreoffice-commits] core.git: dbaccess/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Oct 3 07:52:39 UTC 2018
dbaccess/source/ui/browser/sbagrid.cxx | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
New commits:
commit 0d868e004f62013ba5fcb9595dbe5c3f18d0623b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Oct 2 17:22:17 2018 +0100
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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& )
More information about the Libreoffice-commits
mailing list