summaryrefslogtreecommitdiffstats
path: root/writerperfect/source/draw/FreehandImportFilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerperfect/source/draw/FreehandImportFilter.cxx')
-rw-r--r--writerperfect/source/draw/FreehandImportFilter.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/writerperfect/source/draw/FreehandImportFilter.cxx b/writerperfect/source/draw/FreehandImportFilter.cxx
index 941be250875a..0427c907d6a3 100644
--- a/writerperfect/source/draw/FreehandImportFilter.cxx
+++ b/writerperfect/source/draw/FreehandImportFilter.cxx
@@ -45,7 +45,7 @@ throw (RuntimeException)
return OUString("com.sun.star.comp.Draw.FreehandImportFilter");
}
-Sequence< OUString > SAL_CALL FreehandImportFilter_getSupportedServiceNames()
+Sequence< OUString > FreehandImportFilter_getSupportedServiceNames()
throw (RuntimeException)
{
Sequence < OUString > aRet(2);
@@ -55,12 +55,6 @@ throw (RuntimeException)
return aRet;
}
-Reference< XInterface > SAL_CALL FreehandImportFilter_createInstance(const Reference< XComponentContext > &rContext)
-throw(Exception)
-{
- return static_cast<cppu::OWeakObject *>(new FreehandImportFilter(rContext));
-}
-
// XServiceInfo
OUString SAL_CALL FreehandImportFilter::getImplementationName()
throw (RuntimeException, std::exception)
@@ -78,4 +72,13 @@ throw (RuntimeException, std::exception)
return FreehandImportFilter_getSupportedServiceNames();
}
+extern "C"
+SAL_DLLPUBLIC_EXPORT css::uno::XInterface *SAL_CALL
+com_sun_star_comp_Draw_FreehandImportFilter_get_implementation(
+ css::uno::XComponentContext *const context,
+ const css::uno::Sequence<css::uno::Any> &)
+{
+ return cppu::acquire(new FreehandImportFilter(context));
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */