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 .
20 #ifndef SD_PRESENTER_PRESENTER_HELPER_HXX
21 #define SD_PRESENTER_PRESENTER_HELPER_HXX
23 #include <com/sun/star/drawing/XPresenterHelper.hpp>
24 #include <com/sun/star/lang/XInitialization.hpp>
25 #include <com/sun/star/uno/XComponentContext.hpp>
26 #include <cppuhelper/basemutex.hxx>
27 #include <cppuhelper/compbase2.hxx>
28 #include <boost/noncopyable.hpp>
30 namespace sd
{ namespace presenter
{
33 typedef ::cppu::WeakComponentImplHelper2
<
34 css::lang::XInitialization
,
35 css::drawing::XPresenterHelper
36 > PresenterHelperInterfaceBase
;
39 /** Implementation of the XPresenterHelper interface: functionality that can
40 not be implemented in an extension.
43 : private ::boost::noncopyable
,
44 private ::cppu::BaseMutex
,
45 public PresenterHelperInterfaceBase
48 PresenterHelper (const css::uno::Reference
<css::uno::XComponentContext
>& rxContext
);
49 virtual ~PresenterHelper (void);
53 virtual void SAL_CALL
initialize (const css::uno::Sequence
<css::uno::Any
>& rArguments
)
54 throw(css::uno::Exception
,css::uno::RuntimeException
);
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
)
65 throw (css::uno::RuntimeException
);
67 virtual css::uno::Reference
<css::rendering::XCanvas
> SAL_CALL
createSharedCanvas (
68 const css::uno::Reference
<css::rendering::XSpriteCanvas
>& rxUpdateCanvas
,
69 const css::uno::Reference
<css::awt::XWindow
>& rxUpdateWindow
,
70 const css::uno::Reference
<css::rendering::XCanvas
>& rxSharedCanvas
,
71 const css::uno::Reference
<css::awt::XWindow
>& rxSharedWindow
,
72 const css::uno::Reference
<css::awt::XWindow
>& rxWindow
)
73 throw (css::uno::RuntimeException
);
75 virtual css::uno::Reference
<css::rendering::XCanvas
> SAL_CALL
createCanvas (
76 const css::uno::Reference
<css::awt::XWindow
>& rxWindow
,
77 sal_Int16 nRequestedCanvasFeatures
,
78 const OUString
& rsOptionalCanvasServiceName
)
79 throw (css::uno::RuntimeException
);
81 virtual void SAL_CALL
toTop (
82 const css::uno::Reference
<css::awt::XWindow
>& rxWindow
)
83 throw (css::uno::RuntimeException
);
85 virtual css::uno::Reference
<css::rendering::XBitmap
> SAL_CALL
loadBitmap (
86 const OUString
& rsURL
,
87 const css::uno::Reference
<css::rendering::XCanvas
>& rxCanvas
)
88 throw (css::uno::RuntimeException
);
90 virtual void SAL_CALL
captureMouse (const css::uno::Reference
<css::awt::XWindow
>& rxWindow
)
91 throw (css::uno::RuntimeException
);
93 virtual void SAL_CALL
releaseMouse (const css::uno::Reference
<css::awt::XWindow
>& rxWindow
)
94 throw (css::uno::RuntimeException
);
96 virtual css::awt::Rectangle SAL_CALL
getWindowExtentsRelative (
97 const css::uno::Reference
<css::awt::XWindow
>& rxChildWindow
,
98 const css::uno::Reference
<css::awt::XWindow
>& rxParentWindow
)
99 throw (css::uno::RuntimeException
);
102 css::uno::Reference
<css::uno::XComponentContext
> mxComponentContext
;
105 } } // end of namespace ::sd::presenter
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */