LibreOffice Module sdext (master)  1
PresenterCurrentSlideObserver.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERCURRENTSLIDEOBSERVER_HXX
21 #define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERCURRENTSLIDEOBSERVER_HXX
22 
23 #include "PresenterController.hxx"
24 #include <com/sun/star/presentation/XSlideShowController.hpp>
25 #include <cppuhelper/compbase.hxx>
26 #include <cppuhelper/basemutex.hxx>
27 #include <rtl/ref.hxx>
28 
29 namespace sdext::presenter {
30 
31 typedef ::cppu::WeakComponentImplHelper <
32  css::presentation::XSlideShowListener
34 
43  : protected ::cppu::BaseMutex,
45 {
46 public:
48  const ::rtl::Reference<PresenterController>& rxPresenterController,
49  const css::uno::Reference<css::presentation::XSlideShowController>& rxSlideShowController);
50  virtual ~PresenterCurrentSlideObserver() override;
51 
52  virtual void SAL_CALL disposing() override;
53 
54  // XSlideShowListener
55  virtual void SAL_CALL paused( ) override;
56  virtual void SAL_CALL resumed( ) override;
57  virtual void SAL_CALL slideTransitionStarted( ) override;
58  virtual void SAL_CALL slideTransitionEnded( ) override;
59  virtual void SAL_CALL slideAnimationsEnded( ) override;
60  virtual void SAL_CALL slideEnded(sal_Bool bReverse) override;
61  virtual void SAL_CALL hyperLinkClicked( const OUString& hyperLink ) override;
62 
63  // XAnimationListener
64  virtual void SAL_CALL beginEvent( const css::uno::Reference< css::animations::XAnimationNode >& Node ) override;
65  virtual void SAL_CALL endEvent( const css::uno::Reference< css::animations::XAnimationNode >& Node ) override;
66  virtual void SAL_CALL repeat( const css::uno::Reference< css::animations::XAnimationNode >& Node, ::sal_Int32 Repeat ) override;
67 
68  // XEventListener
69  virtual void SAL_CALL disposing (
70  const css::lang::EventObject& rEvent) override;
71 
72 private:
74  css::uno::Reference<css::presentation::XSlideShowController> mxSlideShowController;
75 };
76 
77 } // end of namespace ::sdext::presenter
78 
79 #endif
80 
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::presentation::XSlideShowController > mxSlideShowController
PresenterCurrentSlideObserver(const ::rtl::Reference< PresenterController > &rxPresenterController, const css::uno::Reference< css::presentation::XSlideShowController > &rxSlideShowController)
virtual void SAL_CALL slideEnded(sal_Bool bReverse) override
virtual void SAL_CALL endEvent(const css::uno::Reference< css::animations::XAnimationNode > &Node) override
virtual void SAL_CALL repeat(const css::uno::Reference< css::animations::XAnimationNode > &Node,::sal_Int32 Repeat) override
unsigned char sal_Bool
::rtl::Reference< PresenterController > mpPresenterController
::cppu::WeakComponentImplHelper< css::presentation::XSlideShowListener > PresenterCurrentSlideObserverInterfaceBase
virtual void SAL_CALL beginEvent(const css::uno::Reference< css::animations::XAnimationNode > &Node) override
Check periodically the slide show controller and the frame::XController whether the current slide has...
virtual void SAL_CALL hyperLinkClicked(const OUString &hyperLink) override