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/.
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/frame/XFrame.hpp>
14 #include <com/sun/star/presentation/XSlideShowListener.hpp>
15 #include <com/sun/star/presentation/XSlideShowController.hpp>
17 #include <cppuhelper/compbase1.hxx>
18 #include <cppuhelper/basemutex.hxx>
19 #include <osl/socket.hxx>
21 #include "Communicator.hxx"
22 #include "Transmitter.hxx"
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.
30 : protected ::cppu::BaseMutex
,
31 public ::cppu::WeakComponentImplHelper1
< css::presentation::XSlideShowListener
>
34 Listener( const ::rtl::Reference
<Communicator
>& rServer
, sd::Transmitter
*aTransmitter
);
36 void init( const css::uno::Reference
< css::presentation::XSlideShowController
>& aController
);
39 virtual void SAL_CALL
beginEvent(const css::uno::Reference
<
40 css::animations::XAnimationNode
>& rNode
) throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
41 virtual void SAL_CALL
endEvent( const css::uno::Reference
<
42 css::animations::XAnimationNode
>& rNode
) throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
43 virtual void SAL_CALL
repeat( const css::uno::Reference
<
44 css::animations::XAnimationNode
>& rNode
, ::sal_Int32 Repeat
)
45 throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
48 virtual void SAL_CALL
paused( ) throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
49 virtual void SAL_CALL
resumed( ) throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
50 virtual void SAL_CALL
slideTransitionStarted( ) throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
51 virtual void SAL_CALL
slideTransitionEnded( ) throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
52 virtual void SAL_CALL
slideAnimationsEnded( ) throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
53 virtual void SAL_CALL
slideEnded(sal_Bool bReverse
) throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
54 virtual void SAL_CALL
hyperLinkClicked( const OUString
& hyperLink
)
55 throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
58 virtual void SAL_CALL
disposing() SAL_OVERRIDE
;
59 virtual void SAL_CALL
disposing (
60 const com::sun::star::lang::EventObject
& rEvent
)
61 throw (com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
64 rtl::Reference
<Communicator
> mCommunicator
;
65 sd::Transmitter
*pTransmitter
;
66 css::uno::Reference
< css::presentation::XSlideShowController
> mController
;
69 #endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_LISTENER_HXX
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */