bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sd / source / ui / remotecontrol / Listener.hxx
blobad75d6e1cd18abc78fef38143139b50636c7f896
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
9 #ifndef INCLUDED_SD_SOURCE_UI_REMOTECONTROL_LISTENER_HXX
10 #define INCLUDED_SD_SOURCE_UI_REMOTECONTROL_LISTENER_HXX
12 #include <sal/config.h>
13 #include <com/sun/star/presentation/XSlideShowListener.hpp>
15 #include <rtl/ref.hxx>
16 #include <cppuhelper/compbase.hxx>
17 #include <cppuhelper/basemutex.hxx>
18 #include <com/sun/star/uno/Reference.hxx>
20 namespace com { namespace sun { namespace star { namespace presentation { class XSlideShowController; } } } }
21 namespace sd { class Communicator; }
22 namespace sd { class Transmitter; }
24 namespace sd {
25 /**
26 * Slide show listener. This class can also be used for anything else that is
27 * specific to the lifetime of one slideshow while a client is connected.
29 class Listener
30 : protected ::cppu::BaseMutex,
31 public ::cppu::WeakComponentImplHelper< css::presentation::XSlideShowListener >
33 public:
34 Listener( const ::rtl::Reference<Communicator>& rServer, sd::Transmitter *aTransmitter );
35 virtual ~Listener() override;
36 void init( const css::uno::Reference< css::presentation::XSlideShowController >& aController );
38 // XAnimationListener
39 virtual void SAL_CALL beginEvent(const css::uno::Reference<
40 css::animations::XAnimationNode >& rNode ) override;
41 virtual void SAL_CALL endEvent( const css::uno::Reference<
42 css::animations::XAnimationNode >& rNode ) override;
43 virtual void SAL_CALL repeat( const css::uno::Reference<
44 css::animations::XAnimationNode >& rNode, ::sal_Int32 Repeat ) override;
46 // XSlideShowListener
47 virtual void SAL_CALL paused( ) override;
48 virtual void SAL_CALL resumed( ) override;
49 virtual void SAL_CALL slideTransitionStarted( ) override;
50 virtual void SAL_CALL slideTransitionEnded( ) override;
51 virtual void SAL_CALL slideAnimationsEnded( ) override;
52 virtual void SAL_CALL slideEnded(sal_Bool bReverse) override;
53 virtual void SAL_CALL hyperLinkClicked( const OUString& hyperLink ) override;
55 // XEventListener
56 virtual void SAL_CALL disposing() override;
57 virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) override;
59 private:
60 rtl::Reference<Communicator> mCommunicator;
61 sd::Transmitter *pTransmitter;
62 css::uno::Reference< css::presentation::XSlideShowController > mController;
65 #endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_LISTENER_HXX
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */