|
LibreOffice Module extensions (master) 1
|
#include <SOActiveX.h>
Public Member Functions | |
| CSOActiveX () | |
| ~CSOActiveX () override | |
| STDMETHOD() | Load (LPPROPERTYBAG pPropBag, LPERRORLOG pErrorLog) override |
| STDMETHOD() | Load (LPSTREAM pStm) override |
| STDMETHOD() | InitNew () override |
| HRESULT | OnDrawAdvanced (ATL_DRAWINFO &di) override |
| HRESULT | OnDraw (ATL_DRAWINFO &di) override |
| HRESULT | SetLayoutManagerProps () |
| HRESULT | CreateFrameOldWay (HWND hwnd, int width, int height) |
| HRESULT | GetUnoStruct (OLECHAR const *sStructName, CComPtr< IDispatch > &pdispResult) |
| HRESULT | LoadURLToFrame () |
| HRESULT | CallDispatchMethod (OLECHAR const *sUrl, CComVariant *sArgNames, CComVariant *sArgVal, unsigned int count) |
| HRESULT | CallLoadComponentFromURL1PBool (OLECHAR const *sUrl, OLECHAR const *sArgName, BOOL sArgVal) |
| HRESULT | GetUrlStruct (OLECHAR const *sUrl, CComPtr< IDispatch > &pdispUrl) |
| HRESULT | Cleanup () |
| HRESULT | TerminateOffice () |
| HRESULT | GetURL (const OLECHAR *url, const OLECHAR *target) |
| void | CallbackCreateXInputStream (CBindStatusCallback< CSOActiveX > *pbsc, BYTE *pBytes, DWORD dwSize) |
| SOVersion | GetVersionConnected () |
Static Public Member Functions | |
| static DECLARE_VIEW_STATUS(VIEWSTATUS_SOLIDBKGND|VIEWSTATUS_OPAQUE) public STDMETHOD() | Invoke (DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pvarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) override |
Protected Attributes | |
| CComPtr< IWebBrowser2 > | mWebBrowser2 |
| DWORD | mCookie |
| CComPtr< IDispatch > | mpDispFactory |
| CComPtr< IDispatch > | mpDispFrame |
| CComPtr< IDispatch > | mpInstanceLocker |
| CComPtr< IDispatch > | mpDispWin |
| CComBSTR | mCurFileUrl |
| BOOL | mbLoad |
| BOOL | mbViewOnly |
| WNDCLASSW | mPWinClass |
| HWND | mParentWin |
| HWND | mOffWin |
| SODispatchInterceptor * | mpDispatchInterceptor |
| SOVersion | mnVersion |
| BOOL | mbReadyForActivation |
| CComPtr< IDispatch > | mpDispTempFile |
| bool | mbDrawLocked |
Definition at line 49 of file SOActiveX.h.
| CSOActiveX::CSOActiveX | ( | ) |
Definition at line 136 of file SOActiveX.cxx.
References FALSE, hr, mpDispFactory, mPWinClass, OutputError_Impl(), STAROFFICE_WINDOWCLASS, and TRUE.
|
override |
Definition at line 167 of file SOActiveX.cxx.
References Cleanup().
| void CSOActiveX::CallbackCreateXInputStream | ( | CBindStatusCallback< CSOActiveX > * | pbsc, |
| BYTE * | pBytes, | ||
| DWORD | dwSize | ||
| ) |
Definition at line 699 of file SOActiveX.cxx.
References ExecuteFunc(), GetIDispByFunc(), hr, mbLoad, mbReadyForActivation, mpDispFactory, mpDispTempFile, TRUE, VT_ARRAY, and VT_I1.
Referenced by Load().
| HRESULT CSOActiveX::CallDispatchMethod | ( | OLECHAR const * | sUrl, |
| CComVariant * | sArgNames, | ||
| CComVariant * | sArgVal, | ||
| unsigned int | count | ||
| ) |
Definition at line 649 of file SOActiveX.cxx.
References count, ExecuteFunc(), GetIDispByFunc(), GetUnoStruct(), GetUrlStruct(), hr, LONG, mpDispFrame, PutPropertiesToIDisp(), and VT_ARRAY.
Referenced by LoadURLToFrame().
| HRESULT CSOActiveX::CallLoadComponentFromURL1PBool | ( | OLECHAR const * | sUrl, |
| OLECHAR const * | sArgName, | ||
| BOOL | sArgVal | ||
| ) |
Definition at line 618 of file SOActiveX.cxx.
References ExecuteFunc(), GetUnoStruct(), hr, LONG, mpDispFrame, PutPropertiesToIDisp(), VT_ARRAY, and VT_BOOL.
| HRESULT CSOActiveX::Cleanup | ( | ) |
Definition at line 173 of file SOActiveX.cxx.
References SODispatchInterceptor::ClearParent(), ExecuteFunc(), FALSE, GetIDispByFunc(), hr, LONG, mbReadyForActivation, mOffWin, mpDispatchInterceptor, mpDispFactory, mpDispFrame, mpDispTempFile, mpInstanceLocker, TerminateOffice(), VT_ARRAY, VT_BOOL, and VT_VARIANT.
Referenced by Invoke(), and ~CSOActiveX().
Definition at line 461 of file SOActiveX.cxx.
References ExecuteFunc(), GetIDispByFunc(), GetUnoStruct(), hr, LONG, mpDispFactory, mpDispFrame, mpDispWin, mpInstanceLocker, PutPropertiesToIDisp(), SetLayoutManagerProps(), TRUE, VT_ARRAY, and VT_VARIANT.
Referenced by OnDrawAdvanced().
| HRESULT CSOActiveX::GetUnoStruct | ( | OLECHAR const * | sStructName, |
| CComPtr< IDispatch > & | pdispResult | ||
| ) |
Definition at line 396 of file SOActiveX.cxx.
References GetIDispByFunc(), and mpDispFactory.
Referenced by CallDispatchMethod(), CallLoadComponentFromURL1PBool(), CreateFrameOldWay(), and GetUrlStruct().
| HRESULT CSOActiveX::GetURL | ( | const OLECHAR * | url, |
| const OLECHAR * | target | ||
| ) |
Definition at line 1137 of file SOActiveX.cxx.
References mWebBrowser2.
Referenced by SODispatchInterceptor::dispatch().
| HRESULT CSOActiveX::GetUrlStruct | ( | OLECHAR const * | sUrl, |
| CComPtr< IDispatch > & | pdispUrl | ||
| ) |
Definition at line 402 of file SOActiveX.cxx.
References ExecuteFunc(), GetIDispByFunc(), GetUnoStruct(), hr, mpDispFactory, VT_BOOL, and VT_BYREF.
Referenced by CallDispatchMethod().
| SOVersion CSOActiveX::GetVersionConnected | ( | ) |
Definition at line 840 of file SOActiveX.cxx.
References ExecuteFunc(), GetIDispByFunc(), hr, LONG, mpDispFactory, OO_10, OO_11, OO_UNKNOWN, SO_52, SO_60, SO_61, SO_NOT_DETECTED, SO_UNKNOWN, VT_ARRAY, VT_BSTR, and VT_VARIANT.
|
override |
Definition at line 284 of file SOActiveX.cxx.
References GetVersionConnected(), mbLoad, mnVersion, and TRUE.
|
staticoverride |
Definition at line 1111 of file SOActiveX.cxx.
References Cleanup(), and Invoke().
Referenced by Invoke().
|
override |
Definition at line 302 of file SOActiveX.cxx.
References aPropNames, CallbackCreateXInputStream(), FALSE, GetVersionConnected(), hr, mbLoad, mbReadyForActivation, mbViewOnly, mCurFileUrl, mnVersion, mpDispFactory, TRUE, and VT_BSTR.
|
override |
Definition at line 291 of file SOActiveX.cxx.
References GetVersionConnected(), mbLoad, mnVersion, and TRUE.
| HRESULT CSOActiveX::LoadURLToFrame | ( | ) |
Definition at line 771 of file SOActiveX.cxx.
References CallDispatchMethod(), ExecuteFunc(), GetIDispByFunc(), hr, mbViewOnly, mCurFileUrl, mpDispatchInterceptor, mpDispFrame, mpDispTempFile, nCount, PutPropertiesToIDisp(), SODispatchInterceptor::SetParent(), and VT_BOOL.
Referenced by OnDrawAdvanced().
|
override |
Definition at line 1067 of file SOActiveX.cxx.
References RECT.
|
override |
Definition at line 950 of file SOActiveX.cxx.
References CreateFrameOldWay(), ExecuteFunc(), FALSE, hr, LoadURLToFrame(), mbDrawLocked, mbLoad, mbReadyForActivation, mCurFileUrl, mnVersion, mOffWin, mParentWin, mpDispFrame, mpDispWin, OutputError_Impl(), RECT, SO_NOT_DETECTED, STAROFFICE_WINDOWCLASS, and VT_BOOL.
| HRESULT CSOActiveX::SetLayoutManagerProps | ( | ) |
Definition at line 436 of file SOActiveX.cxx.
References GetPropertiesFromIDisp(), hr, mpDispFrame, PutPropertiesToIDisp(), and VT_BOOL.
Referenced by CreateFrameOldWay().
| HRESULT CSOActiveX::TerminateOffice | ( | ) |
Definition at line 252 of file SOActiveX.cxx.
References ExecuteFunc(), GetIDispByFunc(), hr, mpDispFactory, VT_ARRAY, and VT_VARIANT.
Referenced by Cleanup().
|
protected |
Definition at line 90 of file SOActiveX.h.
Referenced by OnDrawAdvanced().
|
protected |
Definition at line 78 of file SOActiveX.h.
Referenced by CallbackCreateXInputStream(), InitNew(), Load(), and OnDrawAdvanced().
|
protected |
Definition at line 87 of file SOActiveX.h.
Referenced by CallbackCreateXInputStream(), Cleanup(), Load(), and OnDrawAdvanced().
|
protected |
Definition at line 79 of file SOActiveX.h.
Referenced by Load(), and LoadURLToFrame().
|
protected |
Definition at line 71 of file SOActiveX.h.
|
protected |
Definition at line 77 of file SOActiveX.h.
Referenced by Load(), LoadURLToFrame(), and OnDrawAdvanced().
|
protected |
Definition at line 85 of file SOActiveX.h.
Referenced by InitNew(), Load(), and OnDrawAdvanced().
|
protected |
Definition at line 82 of file SOActiveX.h.
Referenced by Cleanup(), and OnDrawAdvanced().
|
protected |
Definition at line 81 of file SOActiveX.h.
Referenced by OnDrawAdvanced().
|
protected |
Definition at line 84 of file SOActiveX.h.
Referenced by Cleanup(), and LoadURLToFrame().
|
protected |
Definition at line 73 of file SOActiveX.h.
Referenced by CallbackCreateXInputStream(), Cleanup(), CreateFrameOldWay(), CSOActiveX(), GetUnoStruct(), GetUrlStruct(), GetVersionConnected(), Load(), and TerminateOffice().
|
protected |
Definition at line 74 of file SOActiveX.h.
Referenced by CallDispatchMethod(), CallLoadComponentFromURL1PBool(), Cleanup(), CreateFrameOldWay(), LoadURLToFrame(), OnDrawAdvanced(), and SetLayoutManagerProps().
|
protected |
Definition at line 88 of file SOActiveX.h.
Referenced by CallbackCreateXInputStream(), Cleanup(), and LoadURLToFrame().
|
protected |
Definition at line 76 of file SOActiveX.h.
Referenced by CreateFrameOldWay(), and OnDrawAdvanced().
|
protected |
Definition at line 75 of file SOActiveX.h.
Referenced by Cleanup(), and CreateFrameOldWay().
|
protected |
Definition at line 80 of file SOActiveX.h.
Referenced by CSOActiveX().
|
protected |
Definition at line 70 of file SOActiveX.h.
Referenced by GetURL().