From 1a90b1aa64866950cf9ad7032a8240b0c072e671 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 8 Jul 2020 18:13:39 +0200 Subject: framework: create instances with uno constructors See tdf#74608 for motivation Change-Id: I6237016000dc05eacb14e59815b53cd44fbfce0c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98384 Tested-by: Jenkins Reviewed-by: Noel Grandin --- .../inc/services/mediatypedetectionhelper.hxx | 27 ++++------------------ 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'framework/inc/services') diff --git a/framework/inc/services/mediatypedetectionhelper.hxx b/framework/inc/services/mediatypedetectionhelper.hxx index 8dd5653011e0..0f1e9d5753a5 100644 --- a/framework/inc/services/mediatypedetectionhelper.hxx +++ b/framework/inc/services/mediatypedetectionhelper.hxx @@ -47,30 +47,13 @@ class MediaTypeDetectionHelper final : public ::cppu::WeakImplHelper< css::util: public: - // constructor / destructor - - /*-**************************************************************************************************** - @short standard ctor - @descr These initialize a new instance of this class with all needed information for work. - @param "xFactory", reference to factory which has created our owner(!). We can use these to create new uno-services. - *//*-*****************************************************************************************************/ - - MediaTypeDetectionHelper( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ); - - /*-**************************************************************************************************** - @short standard destructor - @descr This method destruct an instance of this class and clear some member. - *//*-*****************************************************************************************************/ - + MediaTypeDetectionHelper(); virtual ~MediaTypeDetectionHelper() override; - // XInterface, XTypeProvider, XServiceInfo - - DECLARE_XSERVICEINFO_NOFACTORY - /* Helper for registry */ - /// @throws css::uno::Exception - static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ); - static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ); + /* interface XServiceInfo */ + virtual OUString SAL_CALL getImplementationName() override; + virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; // XStringMapping -- cgit