LibreOffice Module extensions (master) 1
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
CSOActiveX Class Reference

#include <SOActiveX.h>

Inheritance diagram for CSOActiveX:
[legend]
Collaboration diagram for CSOActiveX:
[legend]

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
 
SODispatchInterceptormpDispatchInterceptor
 
SOVersion mnVersion
 
BOOL mbReadyForActivation
 
CComPtr< IDispatch > mpDispTempFile
 
bool mbDrawLocked
 

Detailed Description

Definition at line 49 of file SOActiveX.h.

Constructor & Destructor Documentation

◆ CSOActiveX()

CSOActiveX::CSOActiveX ( )

Definition at line 136 of file SOActiveX.cxx.

References FALSE, hr, mpDispFactory, mPWinClass, OutputError_Impl(), STAROFFICE_WINDOWCLASS, and TRUE.

◆ ~CSOActiveX()

CSOActiveX::~CSOActiveX ( )
override

Definition at line 167 of file SOActiveX.cxx.

References Cleanup().

Member Function Documentation

◆ CallbackCreateXInputStream()

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().

◆ CallDispatchMethod()

HRESULT CSOActiveX::CallDispatchMethod ( OLECHAR const *  sUrl,
CComVariant *  sArgNames,
CComVariant *  sArgVal,
unsigned int  count 
)

◆ CallLoadComponentFromURL1PBool()

HRESULT CSOActiveX::CallLoadComponentFromURL1PBool ( OLECHAR const *  sUrl,
OLECHAR const *  sArgName,
BOOL  sArgVal 
)

◆ Cleanup()

HRESULT CSOActiveX::Cleanup ( )

◆ CreateFrameOldWay()

HRESULT CSOActiveX::CreateFrameOldWay ( HWND  hwnd,
int  width,
int  height 
)

◆ GetUnoStruct()

HRESULT CSOActiveX::GetUnoStruct ( OLECHAR const *  sStructName,
CComPtr< IDispatch > &  pdispResult 
)

◆ GetURL()

HRESULT CSOActiveX::GetURL ( const OLECHAR *  url,
const OLECHAR *  target 
)

Definition at line 1137 of file SOActiveX.cxx.

References mWebBrowser2.

Referenced by SODispatchInterceptor::dispatch().

◆ GetUrlStruct()

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().

◆ GetVersionConnected()

SOVersion CSOActiveX::GetVersionConnected ( )

◆ InitNew()

COM_DECLSPEC_NOTHROW STDMETHODIMP CSOActiveX::InitNew ( )
override

Definition at line 284 of file SOActiveX.cxx.

References GetVersionConnected(), mbLoad, mnVersion, and TRUE.

◆ Invoke()

COM_DECLSPEC_NOTHROW STDMETHODIMP CSOActiveX::Invoke ( DISPID  dispidMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT *  pvarResult,
EXCEPINFO *  pExcepInfo,
UINT *  puArgErr 
)
staticoverride

Definition at line 1111 of file SOActiveX.cxx.

References Cleanup(), and Invoke().

Referenced by Invoke().

◆ Load() [1/2]

COM_DECLSPEC_NOTHROW STDMETHODIMP CSOActiveX::Load ( LPPROPERTYBAG  pPropBag,
LPERRORLOG  pErrorLog 
)
override

◆ Load() [2/2]

COM_DECLSPEC_NOTHROW STDMETHODIMP CSOActiveX::Load ( LPSTREAM  pStm)
override

Definition at line 291 of file SOActiveX.cxx.

References GetVersionConnected(), mbLoad, mnVersion, and TRUE.

◆ LoadURLToFrame()

HRESULT CSOActiveX::LoadURLToFrame ( )

◆ OnDraw()

HRESULT CSOActiveX::OnDraw ( ATL_DRAWINFO &  di)
override

Definition at line 1067 of file SOActiveX.cxx.

References RECT.

◆ OnDrawAdvanced()

HRESULT CSOActiveX::OnDrawAdvanced ( ATL_DRAWINFO &  di)
override

◆ SetLayoutManagerProps()

HRESULT CSOActiveX::SetLayoutManagerProps ( )

Definition at line 436 of file SOActiveX.cxx.

References GetPropertiesFromIDisp(), hr, mpDispFrame, PutPropertiesToIDisp(), and VT_BOOL.

Referenced by CreateFrameOldWay().

◆ TerminateOffice()

HRESULT CSOActiveX::TerminateOffice ( )

Definition at line 252 of file SOActiveX.cxx.

References ExecuteFunc(), GetIDispByFunc(), hr, mpDispFactory, VT_ARRAY, and VT_VARIANT.

Referenced by Cleanup().

Member Data Documentation

◆ mbDrawLocked

bool CSOActiveX::mbDrawLocked
protected

Definition at line 90 of file SOActiveX.h.

Referenced by OnDrawAdvanced().

◆ mbLoad

BOOL CSOActiveX::mbLoad
protected

Definition at line 78 of file SOActiveX.h.

Referenced by CallbackCreateXInputStream(), InitNew(), Load(), and OnDrawAdvanced().

◆ mbReadyForActivation

BOOL CSOActiveX::mbReadyForActivation
protected

Definition at line 87 of file SOActiveX.h.

Referenced by CallbackCreateXInputStream(), Cleanup(), Load(), and OnDrawAdvanced().

◆ mbViewOnly

BOOL CSOActiveX::mbViewOnly
protected

Definition at line 79 of file SOActiveX.h.

Referenced by Load(), and LoadURLToFrame().

◆ mCookie

DWORD CSOActiveX::mCookie
protected

Definition at line 71 of file SOActiveX.h.

◆ mCurFileUrl

CComBSTR CSOActiveX::mCurFileUrl
protected

Definition at line 77 of file SOActiveX.h.

Referenced by Load(), LoadURLToFrame(), and OnDrawAdvanced().

◆ mnVersion

SOVersion CSOActiveX::mnVersion
protected

Definition at line 85 of file SOActiveX.h.

Referenced by InitNew(), Load(), and OnDrawAdvanced().

◆ mOffWin

HWND CSOActiveX::mOffWin
protected

Definition at line 82 of file SOActiveX.h.

Referenced by Cleanup(), and OnDrawAdvanced().

◆ mParentWin

HWND CSOActiveX::mParentWin
protected

Definition at line 81 of file SOActiveX.h.

Referenced by OnDrawAdvanced().

◆ mpDispatchInterceptor

SODispatchInterceptor* CSOActiveX::mpDispatchInterceptor
protected

Definition at line 84 of file SOActiveX.h.

Referenced by Cleanup(), and LoadURLToFrame().

◆ mpDispFactory

CComPtr<IDispatch> CSOActiveX::mpDispFactory
protected

◆ mpDispFrame

CComPtr<IDispatch> CSOActiveX::mpDispFrame
protected

◆ mpDispTempFile

CComPtr<IDispatch> CSOActiveX::mpDispTempFile
protected

Definition at line 88 of file SOActiveX.h.

Referenced by CallbackCreateXInputStream(), Cleanup(), and LoadURLToFrame().

◆ mpDispWin

CComPtr<IDispatch> CSOActiveX::mpDispWin
protected

Definition at line 76 of file SOActiveX.h.

Referenced by CreateFrameOldWay(), and OnDrawAdvanced().

◆ mpInstanceLocker

CComPtr<IDispatch> CSOActiveX::mpInstanceLocker
protected

Definition at line 75 of file SOActiveX.h.

Referenced by Cleanup(), and CreateFrameOldWay().

◆ mPWinClass

WNDCLASSW CSOActiveX::mPWinClass
protected

Definition at line 80 of file SOActiveX.h.

Referenced by CSOActiveX().

◆ mWebBrowser2

CComPtr<IWebBrowser2> CSOActiveX::mWebBrowser2
protected

Definition at line 70 of file SOActiveX.h.

Referenced by GetURL().


The documentation for this class was generated from the following files: