bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sd / source / ui / presenter / PresenterHelper.hxx
blob837c04abdb42930451371392b206c94384885b14
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SD_SOURCE_UI_PRESENTER_PRESENTERHELPER_HXX
21 #define INCLUDED_SD_SOURCE_UI_PRESENTER_PRESENTERHELPER_HXX
23 #include <com/sun/star/drawing/XPresenterHelper.hpp>
24 #include <com/sun/star/lang/XInitialization.hpp>
25 #include <cppuhelper/basemutex.hxx>
26 #include <cppuhelper/compbase.hxx>
28 namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
30 namespace sd { namespace presenter {
32 typedef ::cppu::WeakComponentImplHelper<
33 css::lang::XInitialization,
34 css::drawing::XPresenterHelper
35 > PresenterHelperInterfaceBase;
37 /** Implementation of the XPresenterHelper interface: functionality that can
38 not be implemented in an extension.
40 class PresenterHelper
41 : private ::cppu::BaseMutex,
42 public PresenterHelperInterfaceBase
44 public:
45 explicit PresenterHelper (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
46 virtual ~PresenterHelper() override;
47 PresenterHelper(const PresenterHelper&) = delete;
48 PresenterHelper& operator=(const PresenterHelper&) = delete;
50 // XInitialize
52 virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments) override;
54 // XPresenterHelper
56 virtual css::uno::Reference<css::awt::XWindow> SAL_CALL createWindow (
57 const css::uno::Reference<css::awt::XWindow>& rxParentWindow,
58 sal_Bool bCreateSystemChildWindow,
59 sal_Bool bInitiallyVisible,
60 sal_Bool bEnableChildTransparentMode,
61 sal_Bool bEnableParentClip) override;
63 virtual css::uno::Reference<css::rendering::XCanvas> SAL_CALL createSharedCanvas (
64 const css::uno::Reference<css::rendering::XSpriteCanvas>& rxUpdateCanvas,
65 const css::uno::Reference<css::awt::XWindow>& rxUpdateWindow,
66 const css::uno::Reference<css::rendering::XCanvas>& rxSharedCanvas,
67 const css::uno::Reference<css::awt::XWindow>& rxSharedWindow,
68 const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
70 virtual css::uno::Reference<css::rendering::XCanvas> SAL_CALL createCanvas (
71 const css::uno::Reference<css::awt::XWindow>& rxWindow,
72 sal_Int16 nRequestedCanvasFeatures,
73 const OUString& rsOptionalCanvasServiceName) override;
75 virtual void SAL_CALL toTop (
76 const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
78 virtual css::uno::Reference<css::rendering::XBitmap> SAL_CALL loadBitmap (
79 const OUString& rsURL,
80 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas) override;
82 virtual void SAL_CALL captureMouse (const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
84 virtual void SAL_CALL releaseMouse (const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
86 virtual css::awt::Rectangle SAL_CALL getWindowExtentsRelative (
87 const css::uno::Reference<css::awt::XWindow>& rxChildWindow,
88 const css::uno::Reference<css::awt::XWindow>& rxParentWindow) override;
90 private:
91 css::uno::Reference<css::uno::XComponentContext> mxComponentContext;
94 } } // end of namespace ::sd::presenter
96 #endif
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */