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 INCLUDED_EMBEDSERV_SOURCE_INC_XWIN_HXX
21 #define INCLUDED_EMBEDSERV_SOURCE_INC_XWIN_HXX
25 #include <osl/mutex.hxx>
26 #include <comphelper/interfacecontainer2.hxx>
27 #include <cppuhelper/implbase.hxx>
28 #include <com/sun/star/awt/XWindow.hpp>
29 #include <com/sun/star/awt/XSystemDependentWindowPeer.hpp>
32 class ContainerWindowWrapper
:
33 public ::cppu::WeakImplHelper
<
35 css::awt::XSystemDependentWindowPeer
>
39 ContainerWindowWrapper(HWND aHwnd
);
41 ~ ContainerWindowWrapper();
50 css::uno::RuntimeException
55 const css::uno::Reference
< css::lang::XEventListener
>& xListener
58 css::uno::RuntimeException
63 const css::uno::Reference
< css::lang::XEventListener
>& aListener
66 css::uno::RuntimeException
70 // XSystemDependentWindowPeer
72 virtual css::uno::Any SAL_CALL
74 const css::uno::Sequence
< sal_Int8
>& ProcessId
,
78 css::uno::RuntimeException
92 css::uno::RuntimeException
);
94 virtual css::awt::Rectangle SAL_CALL
98 css::uno::RuntimeException
101 virtual void SAL_CALL
106 css::uno::RuntimeException
109 virtual void SAL_CALL
114 css::uno::RuntimeException
117 virtual void SAL_CALL
121 css::uno::RuntimeException
124 virtual void SAL_CALL
126 const css::uno::Reference
< css::awt::XWindowListener
>& xListener
129 css::uno::RuntimeException
132 virtual void SAL_CALL
133 removeWindowListener(
134 const css::uno::Reference
< css::awt::XWindowListener
>& xListener
137 css::uno::RuntimeException
140 virtual void SAL_CALL
142 const css::uno::Reference
< css::awt::XFocusListener
>& xListener
145 css::uno::RuntimeException
148 virtual void SAL_CALL
150 const css::uno::Reference
< css::awt::XFocusListener
>& xListener
153 css::uno::RuntimeException
156 virtual void SAL_CALL
158 const css::uno::Reference
<
159 css::awt::XKeyListener
>& xListener
162 css::uno::RuntimeException
165 virtual void SAL_CALL
167 const css::uno::Reference
< css::awt::XKeyListener
>& xListener
170 css::uno::RuntimeException
173 virtual void SAL_CALL
175 const css::uno::Reference
< css::awt::XMouseListener
>& xListener
178 css::uno::RuntimeException
181 virtual void SAL_CALL
183 const css::uno::Reference
<
184 css::awt::XMouseListener
>& xListener
187 css::uno::RuntimeException
190 virtual void SAL_CALL
191 addMouseMotionListener(
192 const css::uno::Reference
<
193 css::awt::XMouseMotionListener
>& xListener
196 css::uno::RuntimeException
199 virtual void SAL_CALL
200 removeMouseMotionListener(
201 const css::uno::Reference
< css::awt::XMouseMotionListener
>& xListener
204 css::uno::RuntimeException
207 virtual void SAL_CALL
209 const css::uno::Reference
< css::awt::XPaintListener
>& xListener
212 css::uno::RuntimeException
215 virtual void SAL_CALL
217 const css::uno::Reference
< css::awt::XPaintListener
>& xListener
220 css::uno::RuntimeException
227 comphelper::OInterfaceContainerHelper2
*m_pDisposeEventListeners
;
235 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */