LibreOffice Module sd (master) 1
ui/presenter/PresenterHelper.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#pragma once
21
22#include <com/sun/star/drawing/XPresenterHelper.hpp>
23#include <com/sun/star/lang/XInitialization.hpp>
24#include <com/sun/star/lang/XServiceInfo.hpp>
26
27namespace com::sun::star::uno { class XComponentContext; }
28
29namespace sd::presenter {
30
32 css::lang::XInitialization,
33 css::lang::XServiceInfo,
34 css::drawing::XPresenterHelper
36
40class PresenterHelper final
42{
43public:
44 explicit PresenterHelper (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
45 virtual ~PresenterHelper() override;
48
49 // XInitialize
50
51 virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments) override;
52
53 OUString SAL_CALL getImplementationName() override;
54 sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
55 css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
56
57 // XPresenterHelper
58
59 virtual css::uno::Reference<css::awt::XWindow> SAL_CALL createWindow (
60 const css::uno::Reference<css::awt::XWindow>& rxParentWindow,
61 sal_Bool bCreateSystemChildWindow,
62 sal_Bool bInitiallyVisible,
63 sal_Bool bEnableChildTransparentMode,
64 sal_Bool bEnableParentClip) override;
65
66 virtual css::uno::Reference<css::rendering::XCanvas> SAL_CALL createSharedCanvas (
67 const css::uno::Reference<css::rendering::XSpriteCanvas>& rxUpdateCanvas,
68 const css::uno::Reference<css::awt::XWindow>& rxUpdateWindow,
69 const css::uno::Reference<css::rendering::XCanvas>& rxSharedCanvas,
70 const css::uno::Reference<css::awt::XWindow>& rxSharedWindow,
71 const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
72
73 virtual css::uno::Reference<css::rendering::XCanvas> SAL_CALL createCanvas (
74 const css::uno::Reference<css::awt::XWindow>& rxWindow,
75 sal_Int16 nRequestedCanvasFeatures,
76 const OUString& rsOptionalCanvasServiceName) override;
77
78 virtual void SAL_CALL toTop (
79 const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
80
81 virtual css::uno::Reference<css::rendering::XBitmap> SAL_CALL loadBitmap (
82 const OUString& rsURL,
83 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas) override;
84
85 virtual void SAL_CALL captureMouse (const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
86
87 virtual void SAL_CALL releaseMouse (const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
88
89 virtual css::awt::Rectangle SAL_CALL getWindowExtentsRelative (
90 const css::uno::Reference<css::awt::XWindow>& rxChildWindow,
91 const css::uno::Reference<css::awt::XWindow>& rxParentWindow) override;
92
93private:
94 css::uno::Reference<css::uno::XComponentContext> mxComponentContext;
95};
96
97} // end of namespace ::sd::presenter
98
99/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Implementation of the XPresenterHelper interface: functionality that can not be implemented in an ext...
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createWindow(const css::uno::Reference< css::awt::XWindow > &rxParentWindow, sal_Bool bCreateSystemChildWindow, sal_Bool bInitiallyVisible, sal_Bool bEnableChildTransparentMode, sal_Bool bEnableParentClip) override
virtual void SAL_CALL captureMouse(const css::uno::Reference< css::awt::XWindow > &rxWindow) override
css::uno::Reference< css::uno::XComponentContext > mxComponentContext
virtual void SAL_CALL releaseMouse(const css::uno::Reference< css::awt::XWindow > &rxWindow) override
PresenterHelper(const PresenterHelper &)=delete
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArguments) override
virtual css::uno::Reference< css::rendering::XCanvas > SAL_CALL createSharedCanvas(const css::uno::Reference< css::rendering::XSpriteCanvas > &rxUpdateCanvas, const css::uno::Reference< css::awt::XWindow > &rxUpdateWindow, const css::uno::Reference< css::rendering::XCanvas > &rxSharedCanvas, const css::uno::Reference< css::awt::XWindow > &rxSharedWindow, const css::uno::Reference< css::awt::XWindow > &rxWindow) override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual css::uno::Reference< css::rendering::XCanvas > SAL_CALL createCanvas(const css::uno::Reference< css::awt::XWindow > &rxWindow, sal_Int16 nRequestedCanvasFeatures, const OUString &rsOptionalCanvasServiceName) override
virtual css::uno::Reference< css::rendering::XBitmap > SAL_CALL loadBitmap(const OUString &rsURL, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas) override
PresenterHelper & operator=(const PresenterHelper &)=delete
PresenterHelper(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual css::awt::Rectangle SAL_CALL getWindowExtentsRelative(const css::uno::Reference< css::awt::XWindow > &rxChildWindow, const css::uno::Reference< css::awt::XWindow > &rxParentWindow) override
OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL toTop(const css::uno::Reference< css::awt::XWindow > &rxWindow) override
comphelper::WeakComponentImplHelper< css::lang::XInitialization, css::lang::XServiceInfo, css::drawing::XPresenterHelper > PresenterHelperInterfaceBase
unsigned char sal_Bool