Back to index

lightning-sunbird  0.9+nobinonly
CBrowserCtlSite.h
Go to the documentation of this file.
00001 // CBrowserCtlSite.h : Declaration of the CBrowserCtlSite
00002 
00003 #ifndef __CBROWSERCTLSITE_H_
00004 #define __CBROWSERCTLSITE_H_
00005 
00006 #include "resource.h"       // main symbols
00007 
00009 // CBrowserCtlSite
00010 class ATL_NO_VTABLE CBrowserCtlSite : 
00011        public CControlSite,
00012        public IDocHostUIHandler,
00013        public IDocHostShowUI
00014 {
00015 public:
00016        CBrowserCtlSite();
00017 
00018 DECLARE_REGISTRY_RESOURCEID(IDR_CBROWSERCTLSITE)
00019 
00020 DECLARE_PROTECT_FINAL_CONSTRUCT()
00021 
00022 BEGIN_COM_MAP(CBrowserCtlSite)
00023        CCONTROLSITE_INTERFACES()
00024        COM_INTERFACE_ENTRY(IDocHostUIHandler)
00025        COM_INTERFACE_ENTRY(IDocHostShowUI)
00026 END_COM_MAP()
00027 
00028        BOOL m_bUseCustomPopupMenu;
00029        BOOL m_bUseCustomDropTarget;
00030 
00031 public:
00032 // IDocHostUIHandler
00033        virtual HRESULT STDMETHODCALLTYPE ShowContextMenu(/* [in] */ DWORD dwID, /* [in] */ POINT __RPC_FAR *ppt, /* [in] */ IUnknown __RPC_FAR *pcmdtReserved, /* [in] */ IDispatch __RPC_FAR *pdispReserved);
00034        virtual HRESULT STDMETHODCALLTYPE GetHostInfo(/* [out][in] */ DOCHOSTUIINFO __RPC_FAR *pInfo);
00035        virtual HRESULT STDMETHODCALLTYPE ShowUI(/* [in] */ DWORD dwID, /* [in] */ IOleInPlaceActiveObject __RPC_FAR *pActiveObject, /* [in] */ IOleCommandTarget __RPC_FAR *pCommandTarget, /* [in] */ IOleInPlaceFrame __RPC_FAR *pFrame, /* [in] */ IOleInPlaceUIWindow __RPC_FAR *pDoc);
00036        virtual HRESULT STDMETHODCALLTYPE HideUI(void);
00037        virtual HRESULT STDMETHODCALLTYPE UpdateUI(void);
00038        virtual HRESULT STDMETHODCALLTYPE EnableModeless(/* [in] */ BOOL fEnable);
00039        virtual HRESULT STDMETHODCALLTYPE OnDocWindowActivate(/* [in] */ BOOL fActivate);
00040        virtual HRESULT STDMETHODCALLTYPE OnFrameWindowActivate(/* [in] */ BOOL fActivate);
00041        virtual HRESULT STDMETHODCALLTYPE ResizeBorder(/* [in] */ LPCRECT prcBorder, /* [in] */ IOleInPlaceUIWindow __RPC_FAR *pUIWindow, /* [in] */ BOOL fRameWindow);
00042        virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator(/* [in] */ LPMSG lpMsg, /* [in] */ const GUID __RPC_FAR *pguidCmdGroup, /* [in] */ DWORD nCmdID);
00043        virtual HRESULT STDMETHODCALLTYPE GetOptionKeyPath(/* [out] */ LPOLESTR __RPC_FAR *pchKey, /* [in] */ DWORD dw);
00044        virtual HRESULT STDMETHODCALLTYPE GetDropTarget(/* [in] */ IDropTarget __RPC_FAR *pDropTarget, /* [out] */ IDropTarget __RPC_FAR *__RPC_FAR *ppDropTarget);
00045        virtual HRESULT STDMETHODCALLTYPE GetExternal(/* [out] */ IDispatch __RPC_FAR *__RPC_FAR *ppDispatch);
00046        virtual HRESULT STDMETHODCALLTYPE TranslateUrl(/* [in] */ DWORD dwTranslate, /* [in] */ OLECHAR __RPC_FAR *pchURLIn, /* [out] */ OLECHAR __RPC_FAR *__RPC_FAR *ppchURLOut);
00047        virtual HRESULT STDMETHODCALLTYPE FilterDataObject(/* [in] */ IDataObject __RPC_FAR *pDO, /* [out] */ IDataObject __RPC_FAR *__RPC_FAR *ppDORet);
00048 
00049 // IDocHostShowUI
00050        virtual HRESULT STDMETHODCALLTYPE ShowMessage(/* [in] */ HWND hwnd, /* [in] */ LPOLESTR lpstrText, /* [in] */ LPOLESTR lpstrCaption, /* [in] */ DWORD dwType, /* [in] */ LPOLESTR lpstrHelpFile, /* [in] */ DWORD dwHelpContext,/* [out] */ LRESULT __RPC_FAR *plResult);
00051        virtual HRESULT STDMETHODCALLTYPE ShowHelp(/* [in] */ HWND hwnd, /* [in] */ LPOLESTR pszHelpFile, /* [in] */ UINT uCommand, /* [in] */ DWORD dwData, /* [in] */ POINT ptMouse, /* [out] */ IDispatch __RPC_FAR *pDispatchObjectHit);
00052 };
00053 
00054 typedef CComObject<CBrowserCtlSite> CBrowserCtlSiteInstance;
00055 
00056 #endif //__CBROWSERCTLSITE_H_