summaryrefslogtreecommitdiff
path: root/framework
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 /framework
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 'framework')
-rw-r--r--framework/source/services/license.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/framework/source/services/license.cxx b/framework/source/services/license.cxx
index 689917006e03..9600598ae2dc 100644
--- a/framework/source/services/license.cxx
+++ b/framework/source/services/license.cxx
@@ -32,6 +32,7 @@
#include <com/sun/star/configuration/theDefaultProvider.hpp>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/util/XChangesBatch.hpp>
+#include <com/sun/star/office/Quickstart.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/lang/XComponent.hpp>
@@ -293,18 +294,9 @@ css::uno::Any SAL_CALL License::execute(const css::uno::Sequence< css::beans::Na
Reference< XChangesBatch >(pset, UNO_QUERY_THROW)->commitChanges();
// enable quickstarter
- sal_Bool bQuickstart( sal_True );
- sal_Bool bAutostart( sal_True );
- Sequence< Any > aSeq( 2 );
- aSeq[0] <<= bQuickstart;
- aSeq[1] <<= bAutostart;
Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext();
- Reference < XInitialization > xQuickstart(
- xContext->getServiceManager()->createInstanceWithContext("com.sun.star.office.Quickstart", xContext),
- UNO_QUERY );
- if ( xQuickstart.is() )
- xQuickstart->initialize( aSeq );
+ css::office::Quickstart::createAutoStart(xContext, true/*Quickstart*/, true/*Autostart*/);
aRet <<= sal_True;
}