1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xwin.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
36 #include <osl/mutex.hxx>
37 #include <cppuhelper/interfacecontainer.h>
38 #include <cppuhelper/implbase2.hxx>
39 #include <com/sun/star/awt/XWindow.hpp>
40 #include <com/sun/star/awt/XSystemDependentWindowPeer.hpp>
43 class ContainerWindowWrapper
:
44 public ::cppu::WeakImplHelper2
<
45 ::com::sun::star::awt::XWindow
,
46 ::com::sun::star::awt::XSystemDependentWindowPeer
>
50 ContainerWindowWrapper(HWND aHwnd
);
52 ~ ContainerWindowWrapper();
61 ::com::sun::star::uno::RuntimeException
66 const ::com::sun::star::uno::Reference
<
67 ::com::sun::star::lang::XEventListener
>& xListener
70 ::com::sun::star::uno::RuntimeException
75 const ::com::sun::star::uno::Reference
<
76 ::com::sun::star::lang::XEventListener
>& aListener
79 ::com::sun::star::uno::RuntimeException
83 // XSystemDependentWindowPeer
85 virtual ::com::sun::star::uno::Any SAL_CALL
87 const ::com::sun::star::uno::Sequence
< sal_Int8
>& ProcessId
,
91 ::com::sun::star::uno::RuntimeException
105 ::com::sun::star::uno::RuntimeException
);
107 virtual ::com::sun::star::awt::Rectangle SAL_CALL
111 ::com::sun::star::uno::RuntimeException
114 virtual void SAL_CALL
119 ::com::sun::star::uno::RuntimeException
122 virtual void SAL_CALL
127 ::com::sun::star::uno::RuntimeException
130 virtual void SAL_CALL
134 ::com::sun::star::uno::RuntimeException
137 virtual void SAL_CALL
139 const ::com::sun::star::uno::Reference
<
140 ::com::sun::star::awt::XWindowListener
>& xListener
143 ::com::sun::star::uno::RuntimeException
146 virtual void SAL_CALL
147 removeWindowListener(
148 const ::com::sun::star::uno::Reference
<
149 ::com::sun::star::awt::XWindowListener
>& xListener
152 ::com::sun::star::uno::RuntimeException
155 virtual void SAL_CALL
157 const ::com::sun::star::uno::Reference
<
158 ::com::sun::star::awt::XFocusListener
>& xListener
161 ::com::sun::star::uno::RuntimeException
164 virtual void SAL_CALL
166 const ::com::sun::star::uno::Reference
<
167 ::com::sun::star::awt::XFocusListener
>& xListener
170 ::com::sun::star::uno::RuntimeException
173 virtual void SAL_CALL
175 const ::com::sun::star::uno::Reference
<
176 ::com::sun::star::awt::XKeyListener
>& xListener
179 ::com::sun::star::uno::RuntimeException
182 virtual void SAL_CALL
184 const ::com::sun::star::uno::Reference
<
185 ::com::sun::star::awt::XKeyListener
>& xListener
188 ::com::sun::star::uno::RuntimeException
191 virtual void SAL_CALL
193 const ::com::sun::star::uno::Reference
<
194 ::com::sun::star::awt::XMouseListener
>& xListener
197 ::com::sun::star::uno::RuntimeException
200 virtual void SAL_CALL
202 const ::com::sun::star::uno::Reference
<
203 ::com::sun::star::awt::XMouseListener
>& xListener
206 ::com::sun::star::uno::RuntimeException
209 virtual void SAL_CALL
210 addMouseMotionListener(
211 const ::com::sun::star::uno::Reference
<
212 ::com::sun::star::awt::XMouseMotionListener
>& xListener
215 ::com::sun::star::uno::RuntimeException
218 virtual void SAL_CALL
219 removeMouseMotionListener(
220 const ::com::sun::star::uno::Reference
<
221 ::com::sun::star::awt::XMouseMotionListener
>& xListener
224 ::com::sun::star::uno::RuntimeException
227 virtual void SAL_CALL
229 const ::com::sun::star::uno::Reference
<
230 ::com::sun::star::awt::XPaintListener
>& xListener
233 ::com::sun::star::uno::RuntimeException
236 virtual void SAL_CALL
238 const ::com::sun::star::uno::Reference
<
239 ::com::sun::star::awt::XPaintListener
>& xListener
242 ::com::sun::star::uno::RuntimeException
249 cppu::OInterfaceContainerHelper
*m_pDisposeEventListeners
;