diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-12 10:04:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-12 10:05:05 +0100 |
commit | 1c363fadccb5b0df92ecf0fa304e547092cba88d (patch) | |
tree | 17e10f6d675b2fee0ab14ec017703506e8823aa8 /sw/source/uibase/uno/unoatxt.cxx | |
parent | b47901e5831e480caacab837b1c8a999ae515c02 (diff) |
Clean up previous commit
Change-Id: I76dbe81308a9a12a04d77a794bb1d11bfb2d5125
Diffstat (limited to 'sw/source/uibase/uno/unoatxt.cxx')
-rw-r--r-- | sw/source/uibase/uno/unoatxt.cxx | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx index d3641ffe8a2a..497b95df2df3 100644 --- a/sw/source/uibase/uno/unoatxt.cxx +++ b/sw/source/uibase/uno/unoatxt.cxx @@ -59,27 +59,6 @@ using namespace ::com::sun::star; -uno::Reference< uno::XInterface > SAL_CALL SwXAutoTextContainer_createInstance( - const uno::Reference< lang::XMultiServiceFactory > & ) throw( uno::Exception ) -{ - //the module may not be loaded - SolarMutexGuard aGuard; - SwGlobals::ensure(); - return (cppu::OWeakObject*)new SwXAutoTextContainer(); -} - -uno::Sequence< OUString > SAL_CALL SwXAutoTextContainer_getSupportedServiceNames() throw() -{ - OUString sService("com.sun.star.text.AutoTextContainer"); - const uno::Sequence< OUString > aSeq( &sService, 1 ); - return aSeq; -} - -OUString SAL_CALL SwXAutoTextContainer_getImplementationName() throw() -{ - return OUString("SwXAutoTextContainer" ); -} - SwXAutoTextContainer::SwXAutoTextContainer() { pGlossaries = ::GetGlossaries(); @@ -220,7 +199,7 @@ void SwXAutoTextContainer::removeByName(const OUString& aGroupName) OUString SwXAutoTextContainer::getImplementationName(void) throw( uno::RuntimeException, std::exception ) { - return SwXAutoTextContainer_getImplementationName(); + return OUString("SwXAutoTextContainer" ); } sal_Bool SwXAutoTextContainer::supportsService(const OUString& rServiceName) throw( uno::RuntimeException, std::exception ) @@ -230,7 +209,9 @@ sal_Bool SwXAutoTextContainer::supportsService(const OUString& rServiceName) thr uno::Sequence< OUString > SwXAutoTextContainer::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) { - return SwXAutoTextContainer_getSupportedServiceNames(); + OUString sService("com.sun.star.text.AutoTextContainer"); + const uno::Sequence< OUString > aSeq( &sService, 1 ); + return aSeq; } namespace |