1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
22 #include <com/sun/star/drawing/XPresenterHelper.hpp>
23 #include <com/sun/star/lang/XInitialization.hpp>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <comphelper/compbase.hxx>
27 namespace com::sun::star::uno
{ class XComponentContext
; }
29 namespace sd::presenter
{
31 typedef comphelper::WeakComponentImplHelper
<
32 css::lang::XInitialization
,
33 css::lang::XServiceInfo
,
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 final
41 : public PresenterHelperInterfaceBase
44 explicit PresenterHelper (const css::uno::Reference
<css::uno::XComponentContext
>& rxContext
);
45 virtual ~PresenterHelper() override
;
46 PresenterHelper(const PresenterHelper
&) = delete;
47 PresenterHelper
& operator=(const PresenterHelper
&) = delete;
51 virtual void SAL_CALL
initialize (const css::uno::Sequence
<css::uno::Any
>& rArguments
) override
;
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
;
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
;
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
;
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
;
78 virtual void SAL_CALL
toTop (
79 const css::uno::Reference
<css::awt::XWindow
>& rxWindow
) override
;
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
;
85 virtual void SAL_CALL
captureMouse (const css::uno::Reference
<css::awt::XWindow
>& rxWindow
) override
;
87 virtual void SAL_CALL
releaseMouse (const css::uno::Reference
<css::awt::XWindow
>& rxWindow
) override
;
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
;
94 css::uno::Reference
<css::uno::XComponentContext
> mxComponentContext
;
97 } // end of namespace ::sd::presenter
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */