1 /*****************************************************************************
\r
2 * oleinplaceactiveobject.h: ActiveX control for VLC
\r
3 *****************************************************************************
\r
4 * Copyright (C) 2005 VideoLAN
\r
6 * Authors: Damien Fouilleul <Damien.Fouilleul@laposte.net>
\r
8 * This program is free software; you can redistribute it and/or modify
\r
9 * it under the terms of the GNU General Public License as published by
\r
10 * the Free Software Foundation; either version 2 of the License, or
\r
11 * (at your option) any later version.
\r
13 * This program is distributed in the hope that it will be useful,
\r
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
16 * GNU General Public License for more details.
\r
18 * You should have received a copy of the GNU General Public License
\r
19 * along with this program; if not, write to the Free Software
\r
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
\r
21 *****************************************************************************/
\r
23 #ifndef __OLEINPLACEACTIVEOBJECT_H__
\r
24 #define __OLEINPLACEACTIVEOBJECT_H__
\r
28 class VLCOleInPlaceActiveObject : public IOleInPlaceActiveObject
\r
33 VLCOleInPlaceActiveObject(VLCPlugin *p_instance) : _p_instance(p_instance) {};
\r
34 virtual ~VLCOleInPlaceActiveObject() {};
\r
37 STDMETHODIMP QueryInterface(REFIID riid, void **ppv)
\r
40 && (IID_IUnknown == riid)
\r
41 && (IID_IOleWindow == riid)
\r
42 && (IID_IOleInPlaceActiveObject == riid) )
\r
45 *ppv = reinterpret_cast<LPVOID>(this);
\r
48 return _p_instance->QueryInterface(riid, ppv);
\r
51 STDMETHODIMP_(ULONG) AddRef(void) { return _p_instance->AddRef(); };
\r
52 STDMETHODIMP_(ULONG) Release(void) { return _p_instance->Release(); };
\r
54 // IOleWindow methods
\r
55 STDMETHODIMP GetWindow(HWND *);
\r
56 STDMETHODIMP ContextSensitiveHelp(BOOL);
\r
58 // IOleInPlaceActiveObject methods
\r
59 STDMETHODIMP EnableModeless(BOOL);
\r
60 STDMETHODIMP TranslateAccelerator(LPMSG);
\r
61 STDMETHODIMP OnFrameWindowActivate(BOOL);
\r
62 STDMETHODIMP OnDocWindowActivate(BOOL);
\r
63 STDMETHODIMP ResizeBorder(LPCRECT, LPOLEINPLACEUIWINDOW, BOOL);
\r
67 VLCPlugin *_p_instance;
\r