diff options
Diffstat (limited to 'sd/source/ui/presenter/PresenterPreviewCache.cxx')
-rw-r--r-- | sd/source/ui/presenter/PresenterPreviewCache.cxx | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/sd/source/ui/presenter/PresenterPreviewCache.cxx b/sd/source/ui/presenter/PresenterPreviewCache.cxx index da47d90f993f..22bdfa96930e 100644 --- a/sd/source/ui/presenter/PresenterPreviewCache.cxx +++ b/sd/source/ui/presenter/PresenterPreviewCache.cxx @@ -70,26 +70,6 @@ private: void CallListeners (const sal_Int32 nSlideIndex); }; -//===== Service =============================================================== - -Reference<XInterface> SAL_CALL PresenterPreviewCache_createInstance ( - const Reference<XComponentContext>& rxContext) throw (css::uno::Exception) -{ - return Reference<XInterface>(static_cast<XWeak*>(new PresenterPreviewCache(rxContext))); -} - -OUString PresenterPreviewCache_getImplementationName (void) throw(RuntimeException) -{ - return OUString("com.sun.star.comp.Draw.PresenterPreviewCache"); -} - -Sequence<OUString> SAL_CALL PresenterPreviewCache_getSupportedServiceNames (void) - throw (RuntimeException) -{ - static const OUString sServiceName("com.sun.star.drawing.PresenterPreviewCache"); - return Sequence<OUString>(&sServiceName, 1); -} - //===== PresenterPreviewCache ================================================= PresenterPreviewCache::PresenterPreviewCache (const Reference<XComponentContext>& rxContext) @@ -395,4 +375,14 @@ void PresenterPreviewCache::PresenterCacheContext::CallListeners ( } } // end of namespace ::sd::presenter + +extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface* SAL_CALL +com_sun_star_comp_Draw_PresenterPreviewCache_get_implementation(::com::sun::star::uno::XComponentContext* context, + ::com::sun::star::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new sd::presenter::PresenterPreviewCache(context)); +} + + + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |