tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sd / source / ui / remotecontrol / Listener.hxx
blobeb75ab44b76623cbf92a1c8749eab5f97dbf767a
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 #pragma once
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; }
22 namespace sd {
23 /**
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.
27 class Listener
28 : public comphelper::WeakComponentImplHelper< css::presentation::XSlideShowListener >
30 public:
31 Listener( ::rtl::Reference<Communicator> xServer, sd::Transmitter *aTransmitter );
32 virtual ~Listener() override;
33 void init( const css::uno::Reference< css::presentation::XSlideShowController >& aController );
35 // XAnimationListener
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;
43 // XSlideShowListener
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;
52 // XEventListener
53 virtual void disposing(std::unique_lock<std::mutex>&) override;
54 virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) override;
56 private:
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: */