summaryrefslogtreecommitdiff
path: root/framework/inc/services
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-07-08 18:13:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-08 21:12:50 +0200
commit1a90b1aa64866950cf9ad7032a8240b0c072e671 (patch)
treed631076faab6a50ca801c5bb39145a2a6b0705da /framework/inc/services
parent224160656d549b5b1891edd1b3cee251b754e69b (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc/services')
-rw-r--r--framework/inc/services/mediatypedetectionhelper.hxx27
1 files changed, 5 insertions, 22 deletions
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