summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-20 09:22:06 +0200
committerNoel Grandin <noel@peralex.com>2013-04-08 13:53:03 +0200
commit34da7fbcc643ad209290c6da456dbfb17aeb9ac0 (patch)
tree585dc1b17dadd4913aee79ec74c3f0d0b41b27fa /cui/source
parent332b42860ed5503f4661d38e2745191b7039c275 (diff)
fdo#46808, convert embed::MSOLEObjectSystemCreator to new style
the service already existed, it just needed an IDL file Change-Id: Iccd283f3537f8c8d57b2c2d68609dd9ef025da0b
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/dialogs/insdlg.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx
index 80c91331f4f9..08f8dd395ff0 100644
--- a/cui/source/dialogs/insdlg.cxx
+++ b/cui/source/dialogs/insdlg.cxx
@@ -17,19 +17,20 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <com/sun/star/beans/XPropertySet.hpp>
+#include <com/sun/star/beans/PropertyValue.hpp>
+#include <com/sun/star/embed/EmbedStates.hpp>
+#include <com/sun/star/embed/XInsertObjectDialog.hpp>
+#include <com/sun/star/embed/MSOLEObjectSystemCreator.hpp>
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#include <com/sun/star/lang/XInitialization.hpp>
+#include <com/sun/star/task/InteractionHandler.hpp>
+#include <com/sun/star/ucb/CommandAbortedException.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
#include <com/sun/star/ui/dialogs/FilePicker.hpp>
#include <com/sun/star/ui/dialogs/XFilterManager.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/lang/XInitialization.hpp>
#include <comphelper/processfactory.hxx>
-#include <com/sun/star/embed/EmbedStates.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/embed/XInsertObjectDialog.hpp>
-#include <com/sun/star/ucb/CommandAbortedException.hpp>
-#include <com/sun/star/task/InteractionHandler.hpp>
#include "insdlg.hxx"
#include <dialmgr.hxx>
@@ -227,8 +228,7 @@ short SvInsertOleDlg::Execute()
try
{
uno::Reference < embed::XInsertObjectDialog > xDialogCreator(
- ::comphelper::getProcessServiceFactory()->createInstance(
- "com.sun.star.embed.MSOLEObjectSystemCreator" ),
+ embed::MSOLEObjectSystemCreator::create( ::comphelper::getProcessComponentContext() ),
uno::UNO_QUERY );
if ( xDialogCreator.is() )