summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-30 15:57:26 +0200
committerNoel Grandin <noel@peralex.com>2013-06-03 10:00:01 +0200
commit1f79707438d84ba639a2c601ae9d25c4647d37f6 (patch)
treea52374a4ce43de7d0814325bf72074f3998e3598 /cui
parentd7fa9ca787ee0ec5d0b9f2989f547ff37791afc6 (diff)
fdo#46808, Convert office::Quickstart service to new style
Service already existed, just needed an IDL file. Change-Id: Ief5563e53c7331b65dd429079180c4eed2f2c071
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optgdlg.cxx16
1 files changed, 4 insertions, 12 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 18fe2b0f3715..cc0824c82b62 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -80,6 +80,7 @@
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/container/XSet.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
+#include <com/sun/star/office/Quickstart.hpp>
#include <vcl/svapp.hxx>
@@ -1267,18 +1268,9 @@ sal_Bool OfaLanguagesTabPage::FillItemSet( SfxItemSet& rSet )
// tell quickstarter to stop being a veto listener
- Reference< XMultiServiceFactory > theMSF(
- comphelper::getProcessServiceFactory());
- Reference< XInitialization > xInit(theMSF->createInstance(
- OUString("com.sun.star.office.Quickstart")), UNO_QUERY);
- if (xInit.is())
- {
- Sequence< Any > args(3);
- args[0] = makeAny(sal_False); // will be ignored
- args[1] = makeAny(sal_False); // will be ignored
- args[2] = makeAny(sal_False); // disable veto
- xInit->initialize(args);
- }
+ Reference< XComponentContext > xContext(
+ comphelper::getProcessComponentContext());
+ css::office::Quickstart::createAndSetVeto(xContext, false, false, false/*DisableVeto*/);
}
}
catch (const Exception& e)