diff options
author | Chris Sherlock <chris.sherlock@collabora.com> | 2015-02-18 23:18:59 +1100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-02-19 18:15:31 +0000 |
commit | b8a5e0cd17d53b787762f9827939c02ff25b92a5 (patch) | |
tree | f339967ecc215865640424ab6f316114c47440fd /writerfilter/source/filter/ImportFilter.cxx | |
parent | d74f5f8633d6fe39011d5a613e1dc62402e7a4e7 (diff) |
writerfilter: use constructor for writerfilter module
Change-Id: Iada80d2c6989de2811cf35cb288a430e2eeba8e9
Reviewed-on: https://gerrit.libreoffice.org/14536
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'writerfilter/source/filter/ImportFilter.cxx')
-rw-r--r-- | writerfilter/source/filter/ImportFilter.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/writerfilter/source/filter/ImportFilter.cxx b/writerfilter/source/filter/ImportFilter.cxx index 35f6402f81cc..5d43ff5e2ef0 100644 --- a/writerfilter/source/filter/ImportFilter.cxx +++ b/writerfilter/source/filter/ImportFilter.cxx @@ -298,14 +298,6 @@ uno::Sequence< OUString > WriterFilter_getSupportedServiceNames( ) throw (uno:: return aRet; } -uno::Reference< uno::XInterface > WriterFilter_createInstance( const uno::Reference< uno::XComponentContext >& xContext) - throw( uno::Exception ) -{ - return (cppu::OWeakObject*) new WriterFilter( xContext ); -} - - - OUString WriterFilter::getImplementationName( ) throw (uno::RuntimeException, std::exception) { return WriterFilter_getImplementationName(); @@ -352,4 +344,11 @@ void WriterFilter::putPropertiesToDocumentGrabBag( const comphelper::SequenceAsH } } +extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface* SAL_CALL +com_sun_star_comp_Writer_WriterFilter_get_implementation(::com::sun::star::uno::XComponentContext* component, + ::com::sun::star::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new WriterFilter(component)); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |