1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 #include <sal/config.h>
12 #include <com/sun/star/presentation/XSlideShowListener.hpp>
14 #include <rtl/ref.hxx>
15 #include <comphelper/compbase.hxx>
16 #include <com/sun/star/uno/Reference.hxx>
18 namespace com::sun::star::presentation
{ class XSlideShowController
; }
19 namespace sd
{ class Communicator
; }
20 namespace sd
{ class Transmitter
; }
24 * Slide show listener. This class can also be used for anything else that is
25 * specific to the lifetime of one slideshow while a client is connected.
28 : public comphelper::WeakComponentImplHelper
< css::presentation::XSlideShowListener
>
31 Listener( ::rtl::Reference
<Communicator
> xServer
, sd::Transmitter
*aTransmitter
);
32 virtual ~Listener() override
;
33 void init( const css::uno::Reference
< css::presentation::XSlideShowController
>& aController
);
36 virtual void SAL_CALL
beginEvent(const css::uno::Reference
<
37 css::animations::XAnimationNode
>& rNode
) override
;
38 virtual void SAL_CALL
endEvent( const css::uno::Reference
<
39 css::animations::XAnimationNode
>& rNode
) override
;
40 virtual void SAL_CALL
repeat( const css::uno::Reference
<
41 css::animations::XAnimationNode
>& rNode
, ::sal_Int32 Repeat
) override
;
44 virtual void SAL_CALL
paused( ) override
;
45 virtual void SAL_CALL
resumed( ) override
;
46 virtual void SAL_CALL
slideTransitionStarted( ) override
;
47 virtual void SAL_CALL
slideTransitionEnded( ) override
;
48 virtual void SAL_CALL
slideAnimationsEnded( ) override
;
49 virtual void SAL_CALL
slideEnded(sal_Bool bReverse
) override
;
50 virtual void SAL_CALL
hyperLinkClicked( const OUString
& hyperLink
) override
;
53 virtual void disposing(std::unique_lock
<std::mutex
>&) override
;
54 virtual void SAL_CALL
disposing (const css::lang::EventObject
& rEvent
) override
;
57 rtl::Reference
<Communicator
> mCommunicator
;
58 sd::Transmitter
*pTransmitter
;
59 css::uno::Reference
< css::presentation::XSlideShowController
> mController
;
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */