diff options
author | Noel Grandin <noel@peralex.com> | 2013-03-20 09:22:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-04-08 13:53:03 +0200 |
commit | 34da7fbcc643ad209290c6da456dbfb17aeb9ac0 (patch) | |
tree | 585dc1b17dadd4913aee79ec74c3f0d0b41b27fa /cui | |
parent | fdo#46808, convert xforms::XForms to new style (diff) | |
download | core-34da7fbcc643ad209290c6da456dbfb17aeb9ac0.tar.gz core-34da7fbcc643ad209290c6da456dbfb17aeb9ac0.zip |
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')
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 20 |
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() ) |