LibreOffice Module sdext (master)  1
PresenterProtocolHandler.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_PRESENTERPROTOCOLHANDLER_HXX
21 #define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERPROTOCOLHANDLER_HXX
22 
23 #include <cppuhelper/compbase.hxx>
24 #include <cppuhelper/basemutex.hxx>
25 #include <com/sun/star/frame/XDispatchProvider.hpp>
26 #include <com/sun/star/frame/XDispatch.hpp>
27 #include <com/sun/star/lang/XInitialization.hpp>
28 #include <com/sun/star/lang/XServiceInfo.hpp>
29 #include <com/sun/star/uno/XComponentContext.hpp>
30 #include <rtl/ref.hxx>
31 
32 namespace sdext::presenter {
33 
34 typedef ::cppu::WeakComponentImplHelper <
35  css::lang::XInitialization,
36  css::lang::XServiceInfo,
37  css::frame::XDispatchProvider
39 
41 
43  : protected ::cppu::BaseMutex,
45 {
46 public:
48  virtual ~PresenterProtocolHandler() override;
49 
50  void SAL_CALL disposing() override;
51 
52  // XInitialization
53 
54  virtual void SAL_CALL initialize(
55  const css::uno::Sequence<css::uno::Any>& aArguments) override;
56 
57  OUString SAL_CALL getImplementationName() override;
58 
59  sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
60 
61  css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
62 
63  // XDispatchProvider
64 
65  virtual css::uno::Reference<css::frame::XDispatch > SAL_CALL
67  const css::util::URL& aURL,
68  const OUString& aTargetFrameName,
69  sal_Int32 nSearchFlags ) override;
70 
71  virtual css::uno::Sequence<css::uno::Reference<css::frame::XDispatch> > SAL_CALL
73  const css::uno::Sequence< css::frame::DispatchDescriptor>& rDescriptors) override;
74 
75 private:
76  class Dispatch;
78 
80  void ThrowIfDisposed() const;
81 };
82 
83 }
84 
85 #endif
86 
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
URL aURL
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Sequence< PropertyValue > aArguments
The controller of the presenter screen is responsible for telling the individual views which slides t...
unsigned char sal_Bool
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch(const css::util::URL &aURL, const OUString &aTargetFrameName, sal_Int32 nSearchFlags) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
::rtl::Reference< PresenterController > mpPresenterController
::cppu::WeakComponentImplHelper< css::lang::XInitialization, css::lang::XServiceInfo, css::frame::XDispatchProvider > PresenterProtocolHandlerInterfaceBase
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches(const css::uno::Sequence< css::frame::DispatchDescriptor > &rDescriptors) override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override