summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLImport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/chart/SchXMLImport.cxx')
-rw-r--r--xmloff/source/chart/SchXMLImport.cxx16
1 files changed, 4 insertions, 12 deletions
diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx
index 354e4ae4cf85..25cf41deb021 100644
--- a/xmloff/source/chart/SchXMLImport.cxx
+++ b/xmloff/source/chart/SchXMLImport.cxx
@@ -582,19 +582,11 @@ void SAL_CALL SchXMLImport::setTargetDocument(const uno::Reference<lang::XCompon
// first version: everything comes from one storage
-Sequence< OUString > SchXMLImport_getSupportedServiceNames() throw()
+extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
+com_sun_star_comp_Chart_XMLOasisImporter_get_implementation(uno::XComponentContext* pCtx,
+ uno::Sequence<uno::Any> const& /*rSeq*/)
{
- return Sequence< OUString > { "com.sun.star.comp.Chart.XMLOasisImporter" };
-}
-
-OUString SchXMLImport_getImplementationName() throw()
-{
- return "SchXMLImport";
-}
-
-Reference< uno::XInterface > SchXMLImport_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr)
-{
- return static_cast<cppu::OWeakObject*>(new SchXMLImport( comphelper::getComponentContext(rSMgr), SchXMLImport_getImplementationName(), SvXMLImportFlags::ALL));
+ return cppu::acquire(new SchXMLImport(pCtx, "SchXMLImport", SvXMLImportFlags::ALL));
}
// multiple storage version: one for content / styles / meta