summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-20 13:54:20 +0200
committerNoel Grandin <noel@peralex.com>2013-05-21 08:23:59 +0200
commit5ab3015aaec7bea309721fcf04af06c8c1519fcb (patch)
tree9740f1aed062c472d43d8c6cc3a17ad4081848fb /basctl
parentbe50ad28f5bbdaeff527f646481ce263843c2401 (diff)
fdo#46808, Clean up old usages of ExtToolkit
This service no longer exists in LO, and no-one seems to know what this service was, so convert it to use the awt::Toolkit service, since that service returns the interface the code expects. Change-Id: I761effbd49a9a3a15ec9c8716c72d4220a3e987e
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/dlged/dlged.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index 5bad05d4d4af..8e55c02387c2 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -32,9 +32,10 @@
#include "localizationmgr.hxx"
#include "baside3.hxx"
-#include <com/sun/star/awt/XDialog.hpp>
+#include <com/sun/star/awt/Toolkit.hpp>
#include <com/sun/star/awt/UnoControlDialog.hpp>
#include <com/sun/star/awt/UnoControlDialogModel.hpp>
+#include <com/sun/star/awt/XDialog.hpp>
#include <com/sun/star/resource/StringResource.hpp>
#include <com/sun/star/util/XCloneable.hpp>
#include <com/sun/star/util/NumberFormatsSupplier.hpp>
@@ -89,7 +90,6 @@ DlgEdHint::~DlgEdHint()
void DlgEditor::ShowDialog()
{
- uno::Reference< lang::XMultiServiceFactory > xMSF = getProcessServiceFactory();
uno::Reference< uno::XComponentContext > xContext = getProcessComponentContext();
// create a dialog
@@ -137,7 +137,7 @@ void DlgEditor::ShowDialog()
xDlg->setModel( xDlgMod );
// create a peer
- uno::Reference< awt::XToolkit> xToolkit( xMSF->createInstance( "com.sun.star.awt.ExtToolkit" ), uno::UNO_QUERY );
+ uno::Reference< awt::XToolkit> xToolkit = awt::Toolkit::create( xContext );
xDlg->createPeer( xToolkit, rWindow.GetComponentInterface() );
uno::Reference< awt::XDialog > xD( xDlg, uno::UNO_QUERY );