LibreOffice Module sd (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
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/util/XCacheInfo.hpp>
30#include <rtl/ref.hxx>
31
32namespace sdext::presenter {
33
34typedef ::cppu::WeakComponentImplHelper <
35 css::lang::XInitialization,
36 css::lang::XServiceInfo,
37 css::util::XCacheInfo,
38 css::frame::XDispatchProvider
40
42
44 : protected ::cppu::BaseMutex,
46{
47public:
49 virtual ~PresenterProtocolHandler() override;
50
51 void SAL_CALL disposing() override;
52
53 // XInitialization
54
55 virtual void SAL_CALL initialize(
56 const css::uno::Sequence<css::uno::Any>& aArguments) override;
57
58 OUString SAL_CALL getImplementationName() override;
59
60 sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
61
62 css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
63
64 // XDispatchProvider
65
66 virtual css::uno::Reference<css::frame::XDispatch > SAL_CALL
68 const css::util::URL& aURL,
69 const OUString& aTargetFrameName,
70 sal_Int32 nSearchFlags ) override;
71
72 virtual css::uno::Sequence<css::uno::Reference<css::frame::XDispatch> > SAL_CALL
74 const css::uno::Sequence< css::frame::DispatchDescriptor>& rDescriptors) override;
75
77 sal_Bool SAL_CALL isCachingAllowed() override { return false; }
78
79private:
80 class Dispatch;
82
84 void ThrowIfDisposed() const;
85};
86
87}
88
89#endif
90
91/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
The controller of the presenter screen is responsible for telling the individual views which slides t...
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch(const css::util::URL &aURL, const OUString &aTargetFrameName, sal_Int32 nSearchFlags) override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
::rtl::Reference< PresenterController > mpPresenterController
sal_Bool SAL_CALL isCachingAllowed() override
See XCacheInfo::IsCachingAllowed().
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches(const css::uno::Sequence< css::frame::DispatchDescriptor > &rDescriptors) override
URL aURL
Sequence< PropertyValue > aArguments
::cppu::WeakComponentImplHelper< css::lang::XInitialization, css::lang::XServiceInfo, css::util::XCacheInfo, css::frame::XDispatchProvider > PresenterProtocolHandlerInterfaceBase
unsigned char sal_Bool