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

#include <unoobjw.hxx>

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

Public Member Functions

 UnoObjectWrapperRemoteOpt (Reference< XMultiServiceFactory > const &aFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass)
 
 ~UnoObjectWrapperRemoteOpt () override
 
STDMETHOD() GetIDsOfNames (REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgdispid) override
 
STDMETHOD() Invoke (DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pdispparams, VARIANT *pvarResult, EXCEPINFO *pexcepinfo, UINT *puArgErr) override
 
virtual Reference< XInterfacecreateUnoWrapperInstance () override
 
- Public Member Functions inherited from InterfaceOleWrapper
 InterfaceOleWrapper (Reference< XMultiServiceFactory > const &xFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass)
 
 ~InterfaceOleWrapper () override
 
STDMETHOD() QueryInterface (REFIID riid, void **ppvObj) override
 
 STDMETHOD_ (ULONG, AddRef)() override
 
 STDMETHOD_ (ULONG, Release)() override
 
STDMETHOD() GetTypeInfoCount (UINT *pctinfo) override
 
STDMETHOD() GetTypeInfo (UINT itinfo, LCID lcid, ITypeInfo **pptinfo) override
 
STDMETHOD() GetIDsOfNames (REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgdispid) override
 
STDMETHOD() Invoke (DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pdispparams, VARIANT *pvarResult, EXCEPINFO *pexcepinfo, UINT *puArgErr) override
 
virtual HRESULT STDMETHODCALLTYPE GetDispID (BSTR bstrName, DWORD grfdex, DISPID __RPC_FAR *pid) override
 
virtual HRESULT STDMETHODCALLTYPE InvokeEx (DISPID id, LCID lcid, WORD wFlags, DISPPARAMS __RPC_FAR *pdp, VARIANT __RPC_FAR *pvarRes, EXCEPINFO __RPC_FAR *pei, IServiceProvider __RPC_FAR *pspCaller) override
 
virtual HRESULT STDMETHODCALLTYPE DeleteMemberByName (BSTR bstr, DWORD grfdex) override
 
virtual HRESULT STDMETHODCALLTYPE DeleteMemberByDispID (DISPID id) override
 
virtual HRESULT STDMETHODCALLTYPE GetMemberProperties (DISPID id, DWORD grfdexFetch, DWORD __RPC_FAR *pgrfdex) override
 
virtual HRESULT STDMETHODCALLTYPE GetMemberName (DISPID id, BSTR __RPC_FAR *pbstrName) override
 
virtual HRESULT STDMETHODCALLTYPE GetNextDispID (DWORD grfdex, DISPID id, DISPID __RPC_FAR *pid) override
 
virtual HRESULT STDMETHODCALLTYPE GetNameSpaceParent (IUnknown __RPC_FAR *__RPC_FAR *ppunk) override
 
virtual HRESULT STDMETHODCALLTYPE GetClassInfo (ITypeInfo **ppTI) override
 
virtual HRESULT STDMETHODCALLTYPE EnumConnectionPoints (IEnumConnectionPoints **ppEnum) override
 
virtual HRESULT STDMETHODCALLTYPE FindConnectionPoint (REFIID riid, IConnectionPoint **ppCP) override
 
virtual Any SAL_CALL createBridge (const Any &modelDepObject, const Sequence< sal_Int8 > &ProcessId, sal_Int16 sourceModelType, sal_Int16 destModelType) override
 
virtual void SAL_CALL initialize (const Sequence< Any > &aArguments) override
 
STDMETHOD() getWrapperXInterface (Reference< XInterface > *pXInt) override
 
STDMETHOD() getOriginalUnoObject (Reference< XInterface > *pXInt) override
 
STDMETHOD() getOriginalUnoStruct (Any *pStruct) override
 
virtual Reference< XInterfacecreateUnoWrapperInstance () override
 
virtual Reference< XInterfacecreateComWrapperInstance () override
 
const OUString & getImplementationName () const
 
- Public Member Functions inherited from UnoConversionUtilities< InterfaceOleWrapper >
 UnoConversionUtilities (const Reference< XMultiServiceFactory > &smgr)
 
 UnoConversionUtilities (const Reference< XMultiServiceFactory > &xFactory, sal_uInt8 unoWrapperClass, sal_uInt8 comWrapperClass)
 
virtual ~UnoConversionUtilities ()
 
void anyToVariant (VARIANT *pVariant, const Any &rAny)
 converts only into oleautomation types, that is there is no VT_I1, VT_UI2, VT_UI4 a sal_Unicode character is converted into a BSTR. More...
 
void anyToVariant (VARIANT *pVariant, const Any &rAny, VARTYPE type)
 
SAFEARRAY * createUnoSequenceWrapper (const Any &rSeq)
 
SAFEARRAY * createUnoSequenceWrapper (const Any &rSeq, VARTYPE elemtype)
 
void createUnoObjectWrapper (const Any &rObj, VARIANT *pVar)
 
void variantToAny (const VARIANT *pVariant, Any &rAny, bool bReduceValueRange=true)
 
void variantToAny (const VARIANTARG *pArg, Any &rAny, const Type &ptype, bool bReduceValueRange=true)
 This method converts variants arguments in calls from COM -> UNO. More...
 
Any createOleObjectWrapper (VARIANT *pVar, const Type &aType=Type())
 
bool convertValueObject (const VARIANTARG *var, Any &any)
 
void dispatchExObject2Sequence (const VARIANTARG *pvar, Any &anySeq, const Type &type)
 
Sequence< AnycreateOleArrayWrapperOfDim (SAFEARRAY *pArray, unsigned int dimCount, unsigned int actDim, LONG *index, VARTYPE type, const Type &unotype)
 
Sequence< AnycreateOleArrayWrapper (SAFEARRAY *pArray, VARTYPE type, const Type &unotype=Type())
 
VARTYPE mapTypeClassToVartype (TypeClass type)
 
Reference< XSingleServiceFactory > getInvocationFactory (const Any &anyObject)
 
virtual Reference< XInterfacecreateUnoWrapperInstance ()=0
 
virtual Reference< XInterfacecreateComWrapperInstance ()=0
 
Sequence< TypegetImplementedInterfaces (IUnknown *pUnk)
 

Static Protected Member Functions

static HRESULT methodInvoke (DISPID dispidMember, DISPPARAMS *pdispparams, VARIANT *pvarResult, EXCEPINFO *pexcepinfo, unsigned int *puArgErr, Sequence< Any > const &params)
 
- Static Protected Member Functions inherited from UnoConversionUtilities< InterfaceOleWrapper >
static bool incrementMultidimensionalIndex (sal_Int32 dimensions, const sal_Int32 *parDimensionLength, sal_Int32 *parMultidimensionalIndex)
 
static size_t getOleElementSize (VARTYPE type)
 
static Type getElementTypeOfSequence (const Type &seqType)
 

Protected Attributes

BadNameMap m_badNameMap
 
IdToMemberInfoMap m_idToMemberInfoMap
 
DISPID m_currentId
 
- Protected Attributes inherited from InterfaceOleWrapper
Reference< XInvocation > m_xInvocation
 
Reference< XExactName > m_xExactName
 
Reference< XInterfacem_xOrigin
 
NameToIdMap m_nameToDispIdMap
 
std::vector< MemberInfom_MemberInfos
 
VARTYPE m_defaultValueType
 
OUString m_sImplementationName
 
- Protected Attributes inherited from UnoConversionUtilities< InterfaceOleWrapper >
const sal_uInt8 m_nUnoWrapperClass
 
const sal_uInt8 m_nComWrapperClass
 
Reference< XMultiServiceFactory > m_smgr
 
Reference< XMultiServiceFactory > m_smgrRemote
 
Reference< XSingleServiceFactory > m_xInvocationFactoryLocal
 
Reference< XSingleServiceFactory > m_xInvocationFactoryRemote
 

Additional Inherited Members

- Static Public Member Functions inherited from UnoConversionUtilities< InterfaceOleWrapper >
static bool isJScriptArray (const VARIANT *pvar)
 
- Protected Member Functions inherited from InterfaceOleWrapper
virtual HRESULT doInvoke (DISPPARAMS *pdispparams, VARIANT *pvarResult, EXCEPINFO *pexcepinfo, unsigned int *puArgErr, OUString &name, Sequence< Any > &params)
 
virtual HRESULT doGetProperty (DISPPARAMS *pdispparams, VARIANT *pvarResult, EXCEPINFO *pexcepinfo, OUString &name)
 
virtual HRESULT doSetProperty (DISPPARAMS *pdispparams, VARIANT *pvarResult, EXCEPINFO *pexcepinfo, unsigned int *puArgErr, OUString &name, Sequence< Any > const &params)
 
virtual HRESULT InvokeGeneral (DISPID dispidMember, unsigned short wFlags, DISPPARAMS *pdispparams, VARIANT *pvarResult, EXCEPINFO *pexcepinfo, unsigned int *puArgErr, bool &bHandled)
 
void convertDispparamsArgs (DISPID id, unsigned short wFlags, DISPPARAMS *pdispparams, Sequence< Any > &rSeq)
 
bool getInvocationInfoForCall (DISPID id, InvocationInfo &info)
 
- Protected Member Functions inherited from UnoConversionUtilities< InterfaceOleWrapper >
Reference< XInterfacecreateAdapter (const Sequence< Type > &types, const Reference< XInterface > &receiver)
 
void getElementCountAndTypeOfSequence (const Any &rSeq, sal_Int32 dim, Sequence< sal_Int32 > &seqElementCounts, TypeDescription &typeDesc)
 
Reference< XTypeConverter > getTypeConverter ()
 

Detailed Description

Definition at line 226 of file unoobjw.hxx.

Constructor & Destructor Documentation

◆ UnoObjectWrapperRemoteOpt()

UnoObjectWrapperRemoteOpt::UnoObjectWrapperRemoteOpt ( Reference< XMultiServiceFactory > const &  aFactory,
sal_uInt8  unoWrapperClass,
sal_uInt8  comWrapperClass 
)

Definition at line 3045 of file unoobjw.cxx.

Referenced by createUnoWrapperInstance().

◆ ~UnoObjectWrapperRemoteOpt()

UnoObjectWrapperRemoteOpt::~UnoObjectWrapperRemoteOpt ( )
override

Definition at line 3052 of file unoobjw.cxx.

Member Function Documentation

◆ createUnoWrapperInstance()

Reference< XInterface > UnoObjectWrapperRemoteOpt::createUnoWrapperInstance ( )
overridevirtual

◆ GetIDsOfNames()

COM_DECLSPEC_NOTHROW STDMETHODIMP UnoObjectWrapperRemoteOpt::GetIDsOfNames ( REFIID  riid,
LPOLESTR *  rgszNames,
UINT  cNames,
LCID  lcid,
DISPID *  rgdispid 
)
override

◆ Invoke()

COM_DECLSPEC_NOTHROW STDMETHODIMP UnoObjectWrapperRemoteOpt::Invoke ( DISPID  dispidMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pdispparams,
VARIANT *  pvarResult,
EXCEPINFO *  pexcepinfo,
UINT *  puArgErr 
)
override

◆ methodInvoke()

HRESULT UnoObjectWrapperRemoteOpt::methodInvoke ( DISPID  dispidMember,
DISPPARAMS *  pdispparams,
VARIANT *  pvarResult,
EXCEPINFO *  pexcepinfo,
unsigned int puArgErr,
Sequence< Any > const &  params 
)
staticprotected

Definition at line 3360 of file unoobjw.cxx.

Member Data Documentation

◆ m_badNameMap

BadNameMap UnoObjectWrapperRemoteOpt::m_badNameMap
protected

Definition at line 259 of file unoobjw.hxx.

Referenced by GetIDsOfNames(), and Invoke().

◆ m_currentId

DISPID UnoObjectWrapperRemoteOpt::m_currentId
protected

Definition at line 263 of file unoobjw.hxx.

Referenced by GetIDsOfNames().

◆ m_idToMemberInfoMap

IdToMemberInfoMap UnoObjectWrapperRemoteOpt::m_idToMemberInfoMap
protected

Definition at line 261 of file unoobjw.hxx.

Referenced by GetIDsOfNames(), and Invoke().


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