xref: /AOO41X/main/embedserv/source/inc/iipaobj.hxx (revision a20fd0235fcbf78445e601ac6722c1cb957ac17f)
1*a20fd023SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*a20fd023SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*a20fd023SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*a20fd023SAndrew Rist  * distributed with this work for additional information
6*a20fd023SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*a20fd023SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*a20fd023SAndrew Rist  * "License"); you may not use this file except in compliance
9*a20fd023SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*a20fd023SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*a20fd023SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*a20fd023SAndrew Rist  * software distributed under the License is distributed on an
15*a20fd023SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*a20fd023SAndrew Rist  * KIND, either express or implied.  See the License for the
17*a20fd023SAndrew Rist  * specific language governing permissions and limitations
18*a20fd023SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*a20fd023SAndrew Rist  *************************************************************/
21*a20fd023SAndrew Rist 
22*a20fd023SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _IIPAOBJ_HXX_
25cdf0e10cSrcweir #define _IIPAOBJ_HXX_
26cdf0e10cSrcweir #if defined(_MSC_VER) && (_MSC_VER > 1310)
27cdf0e10cSrcweir #pragma warning(disable : 4917 4555)
28cdf0e10cSrcweir #endif
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #include "stdafx.h"
31cdf0e10cSrcweir #include <oleidl.h>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir #include <osl/interlck.h>
34cdf0e10cSrcweir #include <rtl/ref.hxx>
35cdf0e10cSrcweir class EmbedDocument_Impl;
36cdf0e10cSrcweir class DocumentHolder;
37cdf0e10cSrcweir 
38cdf0e10cSrcweir class CIIAObj
39cdf0e10cSrcweir     : public IOleInPlaceActiveObject
40cdf0e10cSrcweir {
41cdf0e10cSrcweir 
42cdf0e10cSrcweir public:
43cdf0e10cSrcweir 
44cdf0e10cSrcweir 	CIIAObj( DocumentHolder * );
45cdf0e10cSrcweir     virtual ~CIIAObj();
46cdf0e10cSrcweir 
47cdf0e10cSrcweir     /* IUnknown methods */
48cdf0e10cSrcweir     STDMETHODIMP QueryInterface(REFIID, LPVOID FAR * ppvObj);
49cdf0e10cSrcweir     STDMETHODIMP_(ULONG) AddRef(void);
50cdf0e10cSrcweir     STDMETHODIMP_(ULONG) Release(void);
51cdf0e10cSrcweir 
52cdf0e10cSrcweir     /* IOleInPlaceActiveObject methods */
53cdf0e10cSrcweir     STDMETHODIMP GetWindow(HWND *);
54cdf0e10cSrcweir     STDMETHODIMP ContextSensitiveHelp(BOOL);
55cdf0e10cSrcweir     STDMETHODIMP TranslateAccelerator(LPMSG);
56cdf0e10cSrcweir     STDMETHODIMP OnFrameWindowActivate(BOOL);
57cdf0e10cSrcweir     STDMETHODIMP OnDocWindowActivate(BOOL);
58cdf0e10cSrcweir     STDMETHODIMP ResizeBorder(LPCRECT, LPOLEINPLACEUIWINDOW
59cdf0e10cSrcweir                               , BOOL);
60cdf0e10cSrcweir     STDMETHODIMP EnableModeless(BOOL);
61cdf0e10cSrcweir 
62cdf0e10cSrcweir 
63cdf0e10cSrcweir private:
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 	oslInterlockedCount					m_refCount;
66cdf0e10cSrcweir     ::rtl::Reference< DocumentHolder >  m_rDocHolder;
67cdf0e10cSrcweir };
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 
70cdf0e10cSrcweir #endif