32#include <so_activex.h>
50 public CComObjectRootEx<CComSingleThreadModel>,
51 public IDispatchImpl<ISOActiveX, &IID_ISOActiveX, &LIBID_SO_ACTIVEXLib>,
52 public CComControl<CSOActiveX>,
53 public IPersistStreamInitImpl<CSOActiveX>,
54 public IOleControlImpl<CSOActiveX>,
55 public IOleObjectImpl<CSOActiveX>,
56 public IOleInPlaceActiveObjectImpl<CSOActiveX>,
57 public IViewObjectExImpl<CSOActiveX>,
58 public IOleInPlaceObjectWindowlessImpl<CSOActiveX>,
60 public CComCoClass<CSOActiveX, &CLSID_SOActiveX>,
62 public IPersistPropertyBagImpl< CSOActiveX >,
63 public IProvideClassInfo2Impl< &CLSID_SOActiveX,
64 &DIID__ISOActiveXEvents,
65 &LIBID_SO_ACTIVEXLib >,
66 public IObjectSafetyImpl< CSOActiveX,
67 INTERFACESAFE_FOR_UNTRUSTED_DATA >
98DECLARE_PROTECT_FINAL_CONSTRUCT()
102 COM_INTERFACE_ENTRY(IDispatch)
103 COM_INTERFACE_ENTRY(IViewObjectEx)
104 COM_INTERFACE_ENTRY(IViewObject2)
105 COM_INTERFACE_ENTRY(IViewObject)
106 COM_INTERFACE_ENTRY(IOleInPlaceObjectWindowless)
107 COM_INTERFACE_ENTRY(IOleInPlaceObject)
108 COM_INTERFACE_ENTRY2(IOleWindow, IOleInPlaceObjectWindowless)
109 COM_INTERFACE_ENTRY(IOleInPlaceActiveObject)
110 COM_INTERFACE_ENTRY(IOleControl)
111 COM_INTERFACE_ENTRY(IOleObject)
112 COM_INTERFACE_ENTRY(IPersistStreamInit)
113 COM_INTERFACE_ENTRY2(IPersist, IPersistStreamInit)
115 COM_INTERFACE_ENTRY(IProvideClassInfo)
116 COM_INTERFACE_ENTRY(IProvideClassInfo2)
117 COM_INTERFACE_ENTRY(IPersistPropertyBag)
118 COM_INTERFACE_ENTRY(IObjectSafety)
120#pragma clang diagnostic push
121#pragma clang diagnostic ignored "-Winconsistent-missing-override"
125#pragma clang diagnostic pop
129#pragma clang diagnostic push
130#pragma clang diagnostic ignored "-Winvalid-offsetof"
135 PROP_DATA_ENTRY(
"_cx", m_sizeExtent.cx, VT_UI4)
136 PROP_DATA_ENTRY(
"_cy", m_sizeExtent.cy, VT_UI4)
142#pragma clang diagnostic pop
146END_CONNECTION_POINT_MAP()
149#pragma clang diagnostic push
150#pragma clang diagnostic ignored "-Winconsistent-missing-override"
154#pragma clang diagnostic pop
156 CHAIN_MSG_MAP(CComControl<CSOActiveX>)
157 DEFAULT_REFLECTION_HANDLER()
167 static DECLARE_VIEW_STATUS(VIEWSTATUS_SOLIDBKGND | VIEWSTATUS_OPAQUE)
172 STDMETHOD(SetClientSite)( IOleClientSite* aClientSite ) override;
173 STDMETHOD(Invoke)( DISPID dispidMember,
177 DISPPARAMS* pDispParams,
179 EXCEPINFO* pExcepInfo,
180 UINT* puArgErr) override;
181 STDMETHOD(Load) ( LPPROPERTYBAG pPropBag, LPERRORLOG pErrorLog ) override;
182 STDMETHOD(Load) ( LPSTREAM pStm ) override;
183 STDMETHOD(InitNew) () override;
184 HRESULT OnDrawAdvanced(ATL_DRAWINFO& di) override;
185 HRESULT OnDraw(ATL_DRAWINFO& di) override;
187 HRESULT SetLayoutManagerProps();
188 HRESULT CreateFrameOldWay( HWND hwnd,
int width,
int height );
189 HRESULT GetUnoStruct( OLECHAR const * sStructName, CComPtr<IDispatch>& pdispResult );
190 HRESULT LoadURLToFrame();
191 HRESULT CallDispatchMethod( OLECHAR const * sUrl, CComVariant* sArgNames, CComVariant* sArgVal,
unsigned int count );
192 HRESULT CallLoadComponentFromURL1PBool( OLECHAR const * sUrl, OLECHAR const * sArgName,
BOOL sArgVal );
193 HRESULT GetUrlStruct( OLECHAR const * sUrl, CComPtr<IDispatch>& pdispUrl );
195 HRESULT TerminateOffice();
196 HRESULT GetURL( const OLECHAR* url,
197 const OLECHAR* target );
199 void CallbackCreateXInputStream( CBindStatusCallback<
CSOActiveX>* pbsc,
BYTE* pBytes, DWORD dwSize );
CComPtr< IDispatch > mpInstanceLocker
SODispatchInterceptor * mpDispatchInterceptor
CComPtr< IDispatch > mpDispFactory
CComPtr< IDispatch > mpDispTempFile
CComPtr< IWebBrowser2 > mWebBrowser2
CComPtr< IDispatch > mpDispFrame
CComPtr< IDispatch > mpDispWin
BOOL mbReadyForActivation
const wchar_t *typedef BOOL