1*08421ca6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*08421ca6SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*08421ca6SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*08421ca6SAndrew Rist  * distributed with this work for additional information
6*08421ca6SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*08421ca6SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*08421ca6SAndrew Rist  * "License"); you may not use this file except in compliance
9*08421ca6SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*08421ca6SAndrew Rist  *
11*08421ca6SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*08421ca6SAndrew Rist  *
13*08421ca6SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*08421ca6SAndrew Rist  * software distributed under the License is distributed on an
15*08421ca6SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*08421ca6SAndrew Rist  * KIND, either express or implied.  See the License for the
17*08421ca6SAndrew Rist  * specific language governing permissions and limitations
18*08421ca6SAndrew Rist  * under the License.
19*08421ca6SAndrew Rist  *
20*08421ca6SAndrew Rist  *************************************************************/
21*08421ca6SAndrew Rist 
22*08421ca6SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #include <com/sun/star/uno/Reference.hxx>
25cdf0e10cSrcweir #include <com/sun/star/embed/XEmbeddedObject.hpp>
26cdf0e10cSrcweir #include <com/sun/star/awt/XCallback.hpp>
27cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <rtl/ref.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir class OleEmbeddedObject;
32cdf0e10cSrcweir 
33cdf0e10cSrcweir #define OLECOMP_ONVIEWCHANGE	1
34cdf0e10cSrcweir #define OLECOMP_ONCLOSE			2
35cdf0e10cSrcweir 
36cdf0e10cSrcweir class MainThreadNotificationRequest :  public cppu::WeakImplHelper1< com::sun::star::awt::XCallback >
37cdf0e10cSrcweir {
38cdf0e10cSrcweir 	OleEmbeddedObject* m_pObject;
39cdf0e10cSrcweir 	::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XEmbeddedObject > m_xObject;
40cdf0e10cSrcweir 
41cdf0e10cSrcweir 	sal_uInt16 m_nNotificationType;
42cdf0e10cSrcweir 	sal_uInt32 m_nAspect;
43cdf0e10cSrcweir 
44cdf0e10cSrcweir public:
45cdf0e10cSrcweir     virtual void SAL_CALL notify (const com::sun::star::uno::Any& rUserData)
46cdf0e10cSrcweir 		throw (com::sun::star::uno::RuntimeException);
47cdf0e10cSrcweir     MainThreadNotificationRequest( const ::rtl::Reference< OleEmbeddedObject >& xObj, sal_uInt16 nNotificationType, sal_uInt32 nAspect = 0 );
48cdf0e10cSrcweir 	~MainThreadNotificationRequest();
49cdf0e10cSrcweir };
50cdf0e10cSrcweir 
51cdf0e10cSrcweir 
52