summaryrefslogtreecommitdiff
path: root/reportdesign/source/filter/xml/dbloader2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/filter/xml/dbloader2.cxx')
-rw-r--r--reportdesign/source/filter/xml/dbloader2.cxx23
1 files changed, 9 insertions, 14 deletions
diff --git a/reportdesign/source/filter/xml/dbloader2.cxx b/reportdesign/source/filter/xml/dbloader2.cxx
index 92fcdc8f0342..67ba9b489470 100644
--- a/reportdesign/source/filter/xml/dbloader2.cxx
+++ b/reportdesign/source/filter/xml/dbloader2.cxx
@@ -77,16 +77,10 @@ OUString SAL_CALL ORptTypeDetection::detect( Sequence< css::beans::PropertyValue
return OUString();
}
-Reference< XInterface >
- ORptTypeDetection::create(Reference< XComponentContext > const & xContext)
-{
- return *(new ORptTypeDetection(xContext));
-}
-
// XServiceInfo
OUString SAL_CALL ORptTypeDetection::getImplementationName()
{
- return getImplementationName_Static();
+ return "com.sun.star.comp.report.ORptTypeDetection";
}
@@ -99,18 +93,19 @@ sal_Bool SAL_CALL ORptTypeDetection::supportsService(const OUString& ServiceName
// XServiceInfo
Sequence< OUString > SAL_CALL ORptTypeDetection::getSupportedServiceNames()
{
- return getSupportedServiceNames_Static();
+ return { "com.sun.star.document.ExtendedTypeDetection" };
}
-// ORegistryServiceManager_Static
-Sequence< OUString > ORptTypeDetection::getSupportedServiceNames_Static()
+
+}//rptxml
+
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
+reportdesign_ORptTypeDetection_get_implementation(
+ css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
{
- Sequence<OUString> aSNS { "com.sun.star.document.ExtendedTypeDetection" };
- return aSNS;
+ return cppu::acquire(new rptxml::ORptTypeDetection(context));
}
-}//rptxml
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */