LibreOffice Module pyuno (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
pyuno::Adapter Class Reference

#include <pyuno_impl.hxx>

Inheritance diagram for pyuno::Adapter:
[legend]
Collaboration diagram for pyuno::Adapter:
[legend]

Public Member Functions

 Adapter (PyRef obj, const css::uno::Sequence< css::uno::Type > &types)
 
const PyRefgetWrappedObject () const
 
const css::uno::Sequence< css::uno::Type > & getWrappedTypes () const
 
virtual ~Adapter () override
 
virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection () override
 
virtual css::uno::Any SAL_CALL invoke (const OUString &aFunctionName, const css::uno::Sequence< css::uno::Any > &aParams, css::uno::Sequence< sal_Int16 > &aOutParamIndex, css::uno::Sequence< css::uno::Any > &aOutParam) override
 
virtual void SAL_CALL setValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getValue (const OUString &aPropertyName) override
 
virtual sal_Bool SAL_CALL hasMethod (const OUString &aName) override
 
virtual sal_Bool SAL_CALL hasProperty (const OUString &aName) override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Private Member Functions

css::uno::Sequence< sal_Int16 > getOutIndexes (const OUString &functionName)
 

Private Attributes

PyRef mWrappedObject
 
PyInterpreterState * mInterpreter
 
css::uno::Sequence< css::uno::Type > mTypes
 
MethodOutIndexMap m_methodOutIndexMap
 

Detailed Description

Definition at line 248 of file pyuno_impl.hxx.

Constructor & Destructor Documentation

◆ Adapter()

pyuno::Adapter::Adapter ( PyRef  obj,
const css::uno::Sequence< css::uno::Type > &  types 
)

Definition at line 55 of file pyuno_adapter.cxx.

◆ ~Adapter()

pyuno::Adapter::~Adapter ( )
overridevirtual

Member Function Documentation

◆ getIntrospection()

Reference< XIntrospectionAccess > pyuno::Adapter::getIntrospection ( )
overridevirtual

Definition at line 96 of file pyuno_adapter.cxx.

◆ getOutIndexes()

Sequence< sal_Int16 > pyuno::Adapter::getOutIndexes ( const OUString &  functionName)
private

◆ getSomething()

sal_Int64 pyuno::Adapter::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Definition at line 75 of file pyuno_adapter.cxx.

References comphelper::getSomethingImpl().

Referenced by invoke().

◆ getUnoTunnelId()

const Sequence< sal_Int8 > & pyuno::Adapter::getUnoTunnelId ( )
static

Definition at line 69 of file pyuno_adapter.cxx.

References comphelper::UnoIdInit::getSeq().

◆ getValue()

Any pyuno::Adapter::getValue ( const OUString &  aPropertyName)
overridevirtual

◆ getWrappedObject()

const PyRef & pyuno::Adapter::getWrappedObject ( ) const
inline

Definition at line 265 of file pyuno_impl.hxx.

References mWrappedObject.

◆ getWrappedTypes()

const css::uno::Sequence< css::uno::Type > & pyuno::Adapter::getWrappedTypes ( ) const
inline

Definition at line 266 of file pyuno_impl.hxx.

References mTypes.

◆ hasMethod()

sal_Bool pyuno::Adapter::hasMethod ( const OUString &  aName)
overridevirtual

Definition at line 391 of file pyuno_adapter.cxx.

References hasProperty().

◆ hasProperty()

sal_Bool pyuno::Adapter::hasProperty ( const OUString &  aName)
overridevirtual

Definition at line 396 of file pyuno_adapter.cxx.

References pyuno::PyRef::get(), pyuno::guard, mInterpreter, mWrappedObject, and TO_ASCII.

Referenced by hasMethod(), and setValue().

◆ invoke()

Any pyuno::Adapter::invoke ( const OUString &  aFunctionName,
const css::uno::Sequence< css::uno::Any > &  aParams,
css::uno::Sequence< sal_Int16 > &  aOutParamIndex,
css::uno::Sequence< css::uno::Any > &  aOutParam 
)
overridevirtual

◆ setValue()

void pyuno::Adapter::setValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Member Data Documentation

◆ m_methodOutIndexMap

MethodOutIndexMap pyuno::Adapter::m_methodOutIndexMap
private

Definition at line 254 of file pyuno_impl.hxx.

Referenced by getOutIndexes().

◆ mInterpreter

PyInterpreterState* pyuno::Adapter::mInterpreter
private

Definition at line 252 of file pyuno_impl.hxx.

Referenced by getValue(), hasProperty(), invoke(), setValue(), and ~Adapter().

◆ mTypes

css::uno::Sequence< css::uno::Type > pyuno::Adapter::mTypes
private

Definition at line 253 of file pyuno_impl.hxx.

Referenced by getOutIndexes(), and getWrappedTypes().

◆ mWrappedObject

PyRef pyuno::Adapter::mWrappedObject
private

Definition at line 251 of file pyuno_impl.hxx.

Referenced by getValue(), getWrappedObject(), hasProperty(), invoke(), setValue(), and ~Adapter().


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