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

#include <jscriptclasses.hxx>

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

Public Member Functions

 JScriptValue ()
 
virtual ~JScriptValue ()
 
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
 
STDMETHOD() Set (VARIANT type, VARIANT value) override
 
STDMETHOD() Get (VARIANT *val) override
 
STDMETHOD() InitOutParam () override
 
STDMETHOD() InitInOutParam (VARIANT type, VARIANT value) override
 
STDMETHOD() IsOutParam (VARIANT_BOOL *flag) override
 
STDMETHOD() IsInOutParam (VARIANT_BOOL *flag) override
 
STDMETHOD() GetValue (BSTR *type, VARIANT *value) override
 

Public Attributes

CComVariant m_varValue
 
CComBSTR m_bstrType
 
bool m_bOutParam: 1
 
bool m_bInOutParam: 1
 

Detailed Description

Definition at line 40 of file jscriptclasses.hxx.

Constructor & Destructor Documentation

◆ JScriptValue()

JScriptValue::JScriptValue ( )

Definition at line 25 of file jscriptclasses.cxx.

◆ ~JScriptValue()

JScriptValue::~JScriptValue ( )
virtual

Definition at line 29 of file jscriptclasses.cxx.

Member Function Documentation

◆ Get()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::Get ( VARIANT *  val)
override

Definition at line 149 of file jscriptclasses.cxx.

References hr, and m_varValue.

Referenced by Invoke().

◆ GetIDsOfNames()

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

Definition at line 49 of file jscriptclasses.cxx.

References name.

◆ GetTypeInfo()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::GetTypeInfo ( UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
override

Definition at line 41 of file jscriptclasses.cxx.

◆ GetTypeInfoCount()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::GetTypeInfoCount ( UINT *  pctinfo)
override

Definition at line 35 of file jscriptclasses.cxx.

◆ GetValue()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::GetValue ( BSTR *  type,
VARIANT *  value 
)
override

Definition at line 198 of file jscriptclasses.cxx.

References hr, m_bstrType, m_varValue, type, and value.

◆ InitInOutParam()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::InitInOutParam ( VARIANT  type,
VARIANT  value 
)
override

Definition at line 169 of file jscriptclasses.cxx.

References m_bInOutParam, m_bOutParam, Set(), type, and value.

Referenced by Invoke().

◆ InitOutParam()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::InitOutParam ( )
override

Definition at line 159 of file jscriptclasses.cxx.

References m_bInOutParam, m_bOutParam, and m_varValue.

Referenced by Invoke().

◆ Invoke()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::Invoke ( DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT *  pVarResult,
EXCEPINFO *  pExcepInfo,
UINT *  puArgErr 
)
override

Definition at line 78 of file jscriptclasses.cxx.

References Get(), InitInOutParam(), InitOutParam(), m_varValue, and Set().

◆ IsInOutParam()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::IsInOutParam ( VARIANT_BOOL *  flag)
override

Definition at line 188 of file jscriptclasses.cxx.

References m_bInOutParam.

◆ IsOutParam()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::IsOutParam ( VARIANT_BOOL *  flag)
override

Definition at line 178 of file jscriptclasses.cxx.

References m_bOutParam.

◆ Set()

COM_DECLSPEC_NOTHROW STDMETHODIMP JScriptValue::Set ( VARIANT  type,
VARIANT  value 
)
override

Definition at line 136 of file jscriptclasses.cxx.

References hr, m_bstrType, m_varValue, type, value, and VT_BSTR.

Referenced by InitInOutParam(), and Invoke().

Member Data Documentation

◆ m_bInOutParam

bool JScriptValue::m_bInOutParam

Definition at line 96 of file jscriptclasses.hxx.

Referenced by InitInOutParam(), InitOutParam(), and IsInOutParam().

◆ m_bOutParam

bool JScriptValue::m_bOutParam

Definition at line 95 of file jscriptclasses.hxx.

Referenced by InitInOutParam(), InitOutParam(), and IsOutParam().

◆ m_bstrType

CComBSTR JScriptValue::m_bstrType

Definition at line 94 of file jscriptclasses.hxx.

Referenced by GetValue(), and Set().

◆ m_varValue

CComVariant JScriptValue::m_varValue

Definition at line 93 of file jscriptclasses.hxx.

Referenced by Get(), GetValue(), InitOutParam(), Invoke(), and Set().


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