1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
34 #include <osl/mutex.hxx>
35 #include <cppuhelper/interfacecontainer.h>
36 #include <cppuhelper/implbase2.hxx>
37 #include <com/sun/star/awt/XWindow.hpp>
38 #include <com/sun/star/awt/XSystemDependentWindowPeer.hpp>
41 class ContainerWindowWrapper
:
42 public ::cppu::WeakImplHelper2
<
43 ::com::sun::star::awt::XWindow
,
44 ::com::sun::star::awt::XSystemDependentWindowPeer
>
48 ContainerWindowWrapper(HWND aHwnd
);
50 ~ ContainerWindowWrapper();
59 ::com::sun::star::uno::RuntimeException
64 const ::com::sun::star::uno::Reference
<
65 ::com::sun::star::lang::XEventListener
>& xListener
68 ::com::sun::star::uno::RuntimeException
73 const ::com::sun::star::uno::Reference
<
74 ::com::sun::star::lang::XEventListener
>& aListener
77 ::com::sun::star::uno::RuntimeException
81 // XSystemDependentWindowPeer
83 virtual ::com::sun::star::uno::Any SAL_CALL
85 const ::com::sun::star::uno::Sequence
< sal_Int8
>& ProcessId
,
89 ::com::sun::star::uno::RuntimeException
103 ::com::sun::star::uno::RuntimeException
);
105 virtual ::com::sun::star::awt::Rectangle SAL_CALL
109 ::com::sun::star::uno::RuntimeException
112 virtual void SAL_CALL
117 ::com::sun::star::uno::RuntimeException
120 virtual void SAL_CALL
125 ::com::sun::star::uno::RuntimeException
128 virtual void SAL_CALL
132 ::com::sun::star::uno::RuntimeException
135 virtual void SAL_CALL
137 const ::com::sun::star::uno::Reference
<
138 ::com::sun::star::awt::XWindowListener
>& xListener
141 ::com::sun::star::uno::RuntimeException
144 virtual void SAL_CALL
145 removeWindowListener(
146 const ::com::sun::star::uno::Reference
<
147 ::com::sun::star::awt::XWindowListener
>& xListener
150 ::com::sun::star::uno::RuntimeException
153 virtual void SAL_CALL
155 const ::com::sun::star::uno::Reference
<
156 ::com::sun::star::awt::XFocusListener
>& xListener
159 ::com::sun::star::uno::RuntimeException
162 virtual void SAL_CALL
164 const ::com::sun::star::uno::Reference
<
165 ::com::sun::star::awt::XFocusListener
>& xListener
168 ::com::sun::star::uno::RuntimeException
171 virtual void SAL_CALL
173 const ::com::sun::star::uno::Reference
<
174 ::com::sun::star::awt::XKeyListener
>& xListener
177 ::com::sun::star::uno::RuntimeException
180 virtual void SAL_CALL
182 const ::com::sun::star::uno::Reference
<
183 ::com::sun::star::awt::XKeyListener
>& xListener
186 ::com::sun::star::uno::RuntimeException
189 virtual void SAL_CALL
191 const ::com::sun::star::uno::Reference
<
192 ::com::sun::star::awt::XMouseListener
>& xListener
195 ::com::sun::star::uno::RuntimeException
198 virtual void SAL_CALL
200 const ::com::sun::star::uno::Reference
<
201 ::com::sun::star::awt::XMouseListener
>& xListener
204 ::com::sun::star::uno::RuntimeException
207 virtual void SAL_CALL
208 addMouseMotionListener(
209 const ::com::sun::star::uno::Reference
<
210 ::com::sun::star::awt::XMouseMotionListener
>& xListener
213 ::com::sun::star::uno::RuntimeException
216 virtual void SAL_CALL
217 removeMouseMotionListener(
218 const ::com::sun::star::uno::Reference
<
219 ::com::sun::star::awt::XMouseMotionListener
>& xListener
222 ::com::sun::star::uno::RuntimeException
225 virtual void SAL_CALL
227 const ::com::sun::star::uno::Reference
<
228 ::com::sun::star::awt::XPaintListener
>& xListener
231 ::com::sun::star::uno::RuntimeException
234 virtual void SAL_CALL
236 const ::com::sun::star::uno::Reference
<
237 ::com::sun::star::awt::XPaintListener
>& xListener
240 ::com::sun::star::uno::RuntimeException
247 cppu::OInterfaceContainerHelper
*m_pDisposeEventListeners
;
255 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */