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 <osl/interlck.h>
25cdf0e10cSrcweir #include <osl/mutex.hxx>
26cdf0e10cSrcweir #include <platform.h>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir class OleComponent;
29cdf0e10cSrcweir class OleWrapperClientSite : public IOleClientSite
30cdf0e10cSrcweir {
31cdf0e10cSrcweir 	osl::Mutex m_aMutex;
32cdf0e10cSrcweir 	oslInterlockedCount m_nRefCount;
33cdf0e10cSrcweir 	OleComponent* m_pOleComp;
34cdf0e10cSrcweir 
35cdf0e10cSrcweir public:
36cdf0e10cSrcweir 	OleWrapperClientSite( OleComponent* pOleComp );
37cdf0e10cSrcweir 	virtual ~OleWrapperClientSite(void);
38cdf0e10cSrcweir 
39cdf0e10cSrcweir 	void disconnectOleComponent();
40cdf0e10cSrcweir 
41cdf0e10cSrcweir 	STDMETHODIMP QueryInterface(REFIID, void**);
42cdf0e10cSrcweir 	STDMETHODIMP_(ULONG) AddRef(void);
43cdf0e10cSrcweir 	STDMETHODIMP_(ULONG) Release(void);
44cdf0e10cSrcweir 
45cdf0e10cSrcweir 	STDMETHODIMP SaveObject(void);
46cdf0e10cSrcweir 	STDMETHODIMP GetMoniker(DWORD, DWORD, LPMONIKER *);
47cdf0e10cSrcweir 	STDMETHODIMP GetContainer(LPOLECONTAINER *);
48cdf0e10cSrcweir 	STDMETHODIMP ShowObject(void);
49cdf0e10cSrcweir 	STDMETHODIMP OnShowWindow(BOOL);
50cdf0e10cSrcweir 	STDMETHODIMP RequestNewObjectLayout(void);
51cdf0e10cSrcweir };
52cdf0e10cSrcweir 
53