diff options
Diffstat (limited to 'embeddedobj/source/msole/xdialogcreator.hxx')
-rw-r--r-- | embeddedobj/source/msole/xdialogcreator.hxx | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/embeddedobj/source/msole/xdialogcreator.hxx b/embeddedobj/source/msole/xdialogcreator.hxx index 128c099d23aa..f1f96287956c 100644 --- a/embeddedobj/source/msole/xdialogcreator.hxx +++ b/embeddedobj/source/msole/xdialogcreator.hxx @@ -24,6 +24,7 @@ #include <com/sun/star/embed/XEmbedObjectClipboardCreator.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <com/sun/star/uno/XComponentContext.hpp> #include <cppuhelper/implbase.hxx> #include <osl/diagnose.h> @@ -34,25 +35,16 @@ class MSOLEDialogObjectCreator : public ::cppu::WeakImplHelper< css::embed::XEmbedObjectClipboardCreator, css::lang::XServiceInfo > { - css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory; + css::uno::Reference< css::uno::XComponentContext > m_xContext; public: explicit MSOLEDialogObjectCreator( - const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ) - : m_xFactory( xFactory ) + const css::uno::Reference< css::uno::XComponentContext >& xContext ) + : m_xContext( xContext ) { - OSL_ENSURE( xFactory.is(), "No service manager is provided!" ); + OSL_ENSURE( xContext.is(), "No service manager is provided!" ); } - static css::uno::Sequence< OUString > impl_staticGetSupportedServiceNames(); - - static OUString impl_staticGetImplementationName(); - - static css::uno::Reference< css::uno::XInterface > - impl_staticCreateSelfInstance( - const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ); - - // XInsertObjectDialog virtual css::embed::InsertedObjectInfo SAL_CALL createInstanceByDialog( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override; |