LibreOffice Module cli_ure (master) 1
|
Classes | |
struct | Bridge |
An instance of Bridge represents exactly one mapping therefore either m_cli2uno or m_uno2cli is valid. More... | |
struct | BridgeRuntimeError |
class | Cli_environment |
struct | CliEnvHolder |
struct | CliProxy |
struct | Constants |
union | largest |
struct | Mapping |
struct | rtl_mem |
class | TypeDescr |
class | UnoInterfaceInfo |
class | UnoInterfaceProxy |
Functions | |
System::Type | loadCliType (System::String ^ typeName) |
System::Type | mapUnoType (typelib_TypeDescription const *pTD) |
System::Type | mapUnoType (typelib_TypeDescriptionReference const *pTD) |
typelib_TypeDescriptionReference * | mapCliType (System::Type^ cliType) |
Returns an acquired td. More... | |
OUString | mapCliString (System::String ^ data) |
System::String | mapUnoString (rtl_uString const *data) |
Maps uno types to dot net types. More... | |
System::String | mapUnoTypeName (rtl_uString const *typeName) |
Otherwise a leading "unoidl." is removed. More... | |
void SAL_CALL | Mapping_acquire (uno_Mapping *mapping) SAL_THROW_EXTERN_C() |
void SAL_CALL | Mapping_release (uno_Mapping *mapping) SAL_THROW_EXTERN_C() |
void SAL_CALL | Mapping_cli2uno (uno_Mapping *mapping, void **ppOut, void *pIn, typelib_InterfaceTypeDescription *td) SAL_THROW_EXTERN_C() |
void SAL_CALL | Mapping_uno2cli (uno_Mapping *mapping, void **ppOut, void *pIn, typelib_InterfaceTypeDescription *td) SAL_THROW_EXTERN_C() |
void SAL_CALL | Bridge_free (uno_Mapping *mapping) SAL_THROW_EXTERN_C() |
void SAL_CALL | cli_env_disposing (uno_Environment *uno_cli_env) SAL_THROW_EXTERN_C() |
SAL_DLLPUBLIC_EXPORT void SAL_CALL | uno_initEnvironment (uno_Environment *uno_cli_env) SAL_THROW_EXTERN_C() |
SAL_DLLPUBLIC_EXPORT void SAL_CALL | uno_ext_getMapping (uno_Mapping **ppMapping, uno_Environment *pFrom, uno_Environment *pTo) SAL_THROW_EXTERN_C() |
System::String | mapUnoPolymorphicName (System::String^ unoName) |
For example, there is a uno type com.sun.star.Foo<char, long>. More... | |
OUString | mapCliTypeName (System::String^ typeName) |
System::String | mapCliPolymorphicName (System::String^ unoName) |
For example, there is a type name such as com.sun.star.Foo<System.Char, System.Int32>. More... | |
System::String | mapPolymorphicName (System::String^ unoName, bool bCliToUno) |
std::unique_ptr< rtl_mem > | seq_allocate (sal_Int32 nElements, sal_Int32 nSize) |
System::Type | loadCliType (rtl_uString *unoName) |
void SAL_CALL cli_uno::Bridge_free | ( | uno_Mapping * | mapping | ) |
Definition at line 146 of file cli_bridge.cxx.
References cli_uno::Mapping::m_bridge, and SAL_THROW_EXTERN_C.
Referenced by cli_uno::Bridge::acquire(), and uno_ext_getMapping().
void SAL_CALL cli_uno::cli_env_disposing | ( | uno_Environment * | uno_cli_env | ) |
Definition at line 241 of file cli_bridge.cxx.
References SAL_THROW_EXTERN_C.
Referenced by uno_initEnvironment().
|
inline |
Definition at line 136 of file cli_data.cxx.
References loadCliType(), and mapUnoTypeName().
System::Type cli_uno::loadCliType | ( | System::String ^ | typeName | ) |
Definition at line 141 of file cli_data.cxx.
References uno.PolymorphicType::GetType(), i, index, and mapCliString().
Referenced by cli_uno::UnoInterfaceProxy::Invoke(), loadCliType(), cli_uno::Bridge::map_to_cli(), and mapUnoType().
|
inline |
For example, there is a type name such as com.sun.star.Foo<System.Char, System.Int32>.
The values in the type list are CLI types and are replaced by uno types, such as char, long, etc. The prefix unoidl remains.
Definition at line 542 of file cli_data.cxx.
References mapPolymorphicName().
Referenced by mapCliTypeName().
OUString cli_uno::mapCliString | ( | System::String ^ | data | ) |
Definition at line 715 of file cli_data.cxx.
Referenced by cli_uno::UnoInterfaceProxy::addUnoInterface(), cli_uno::Bridge::call_cli(), cli_uno::UnoInterfaceProxy::CanCastTo(), cli_proxy_dispatch(), cli_uno::UnoInterfaceProxy::Invoke(), loadCliType(), cli_uno::CliProxy::makeMethodInfos(), cli_uno::Bridge::map_cli2uno(), cli_uno::Bridge::map_to_uno(), mapCliType(), mapCliTypeName(), and mapPolymorphicName().
typelib_TypeDescriptionReference * cli_uno::mapCliType | ( | System::Type^ | cliType | ) |
Returns an acquired td.
Definition at line 312 of file cli_data.cxx.
References mapCliString(), mapCliTypeName(), NULL, uno.PolymorphicType::PolymorphicName, cli_uno::Constants::sAny, cli_uno::Constants::sType, cli_uno::Constants::sVoid, typelib_static_type_getByTypeClass(), typelib_typedescription_getByName(), typelib_typedescription_release(), and typelib_typedescriptionreference_acquire().
Referenced by cli_uno::Bridge::call_cli(), and cli_uno::Bridge::map_to_uno().
OUString cli_uno::mapCliTypeName | ( | System::String^ | typeName | ) |
Definition at line 616 of file cli_data.cxx.
References i, mapCliPolymorphicName(), mapCliString(), cli_uno::Constants::sAny, cli_uno::Constants::sBoolean, cli_uno::Constants::sByte, cli_uno::Constants::sChar, cli_uno::Constants::sDouble, cli_uno::Constants::sInt16, cli_uno::Constants::sInt32, cli_uno::Constants::sInt64, sName, cli_uno::Constants::sObject, cli_uno::Constants::sSingle, cli_uno::Constants::sString, cli_uno::Constants::sType, cli_uno::Constants::sUInt16, cli_uno::Constants::sUInt32, cli_uno::Constants::sUInt64, cli_uno::Constants::sVoid, typeName, cli_uno::Constants::usAny, cli_uno::Constants::usBool, cli_uno::Constants::usBrackets, cli_uno::Constants::usByte, cli_uno::Constants::usChar, cli_uno::Constants::usDouble, cli_uno::Constants::usFloat, cli_uno::Constants::usHyper, cli_uno::Constants::usLong, cli_uno::Constants::usShort, cli_uno::Constants::usString, cli_uno::Constants::usType, cli_uno::Constants::usUHyper, cli_uno::Constants::usULong, cli_uno::Constants::usUShort, cli_uno::Constants::usVoid, and cli_uno::Constants::usXInterface.
Referenced by mapCliType(), and mapPolymorphicName().
void SAL_CALL cli_uno::Mapping_acquire | ( | uno_Mapping * | mapping | ) |
Definition at line 42 of file cli_bridge.cxx.
References cli_uno::Bridge::acquire(), cli_uno::Mapping::m_bridge, and SAL_THROW_EXTERN_C.
Referenced by cli_uno::Bridge::Bridge().
void SAL_CALL cli_uno::Mapping_cli2uno | ( | uno_Mapping * | mapping, |
void ** | ppOut, | ||
void * | pIn, | ||
typelib_InterfaceTypeDescription * | td | ||
) |
Definition at line 57 of file cli_bridge.cxx.
References err, cli_uno::Mapping::m_bridge, cli_uno::Bridge::map_cli2uno(), SAL_THROW_EXTERN_C, and SAL_WARN.
Referenced by cli_uno::Bridge::Bridge().
void SAL_CALL cli_uno::Mapping_release | ( | uno_Mapping * | mapping | ) |
Definition at line 49 of file cli_bridge.cxx.
References cli_uno::Mapping::m_bridge, cli_uno::Bridge::release(), and SAL_THROW_EXTERN_C.
Referenced by cli_uno::Bridge::Bridge().
void SAL_CALL cli_uno::Mapping_uno2cli | ( | uno_Mapping * | mapping, |
void ** | ppOut, | ||
void * | pIn, | ||
typelib_InterfaceTypeDescription * | td | ||
) |
Definition at line 91 of file cli_bridge.cxx.
References err, cli_uno::Mapping::m_bridge, cli_uno::Bridge::map_uno2cli(), NULL, SAL_THROW_EXTERN_C, and SAL_WARN.
Referenced by cli_uno::Bridge::Bridge().
System::String cli_uno::mapPolymorphicName | ( | System::String^ | unoName, |
bool | bCliToUno | ||
) |
Definition at line 547 of file cli_data.cxx.
References index, mapCliString(), mapCliTypeName(), and mapUnoTypeName().
Referenced by mapCliPolymorphicName(), and mapUnoPolymorphicName().
|
inline |
For example, there is a uno type com.sun.star.Foo<char, long>.
The values in the type list are uno types and are replaced by cli types, such as System.Char, System.Int32, etc. The prefix unoidl is not added.
Definition at line 530 of file cli_data.cxx.
References mapPolymorphicName().
Referenced by mapUnoTypeName().
|
inline |
Maps uno types to dot net types.
If uno_data is null then the type description is converted to System::Type
Definition at line 709 of file cli_data.cxx.
Referenced by cli_uno::UnoInterfaceProxy::!UnoInterfaceProxy(), cli_uno::UnoInterfaceProxy::create(), cli_uno::CliProxy::create(), cli_uno::CliProxy::getMethodInfo(), cli_uno::UnoInterfaceProxy::Invoke(), cli_uno::Bridge::map_to_cli(), cli_uno::Bridge::map_to_uno(), cli_uno::Bridge::map_uno2cli(), and mapUnoTypeName().
System::Type cli_uno::mapUnoType | ( | typelib_TypeDescription const * | pTD | ) |
Definition at line 186 of file cli_data.cxx.
References mapUnoType().
Referenced by cli_proxy_dispatch(), cli_uno::CliProxy::CliProxy(), cli_uno::CliProxy::create(), cli_uno::Bridge::map_to_cli(), cli_uno::Bridge::map_uno2cli(), mapUnoType(), cli_uno::UnoInterfaceInfo::UnoInterfaceInfo(), and cli_uno::CliProxy::~CliProxy().
System::Type cli_uno::mapUnoType | ( | typelib_TypeDescriptionReference const * | pTD | ) |
Definition at line 191 of file cli_data.cxx.
References loadCliType(), cli_uno::Constants::sArBoolean, cli_uno::Constants::sArByte, cli_uno::Constants::sArChar, cli_uno::Constants::sArDouble, cli_uno::Constants::sArInt16, cli_uno::Constants::sArInt32, cli_uno::Constants::sArInt64, cli_uno::Constants::sArSingle, cli_uno::Constants::sArString, cli_uno::Constants::sArType, cli_uno::Constants::sArUInt16, cli_uno::Constants::sArUInt32, and cli_uno::Constants::sArUInt64.
System::String cli_uno::mapUnoTypeName | ( | rtl_uString const * | typeName | ) |
Otherwise a leading "unoidl." is removed.
Definition at line 455 of file cli_data.cxx.
References index, mapUnoPolymorphicName(), mapUnoString(), cli_uno::Constants::sAny, cli_uno::Constants::sBoolean, cli_uno::Constants::sBrackets, cli_uno::Constants::sByte, cli_uno::Constants::sChar, cli_uno::Constants::sDouble, cli_uno::Constants::sInt16, cli_uno::Constants::sInt32, cli_uno::Constants::sInt64, sName, cli_uno::Constants::sObject, cli_uno::Constants::sSingle, cli_uno::Constants::sString, cli_uno::Constants::sType, cli_uno::Constants::sUInt16, cli_uno::Constants::sUInt32, cli_uno::Constants::sUInt64, cli_uno::Constants::sUnoidl, cli_uno::Constants::sVoid, typeName, cli_uno::Constants::usAny, cli_uno::Constants::usBool, cli_uno::Constants::usByte, cli_uno::Constants::usChar, cli_uno::Constants::usDouble, cli_uno::Constants::usFloat, cli_uno::Constants::usHyper, cli_uno::Constants::usLong, cli_uno::Constants::usShort, cli_uno::Constants::usString, cli_uno::Constants::usType, cli_uno::Constants::usUHyper, cli_uno::Constants::usULong, cli_uno::Constants::usUShort, cli_uno::Constants::usVoid, and cli_uno::Constants::usXInterface.
Referenced by loadCliType(), and mapPolymorphicName().
|
inline |
Definition at line 53 of file cli_data.cxx.
References cli_uno::rtl_mem::allocate(), nElements, p, and SAL_SEQUENCE_HEADER_SIZE.
Referenced by cli_uno::Bridge::map_to_uno().
SAL_DLLPUBLIC_EXPORT void SAL_CALL cli_uno::uno_ext_getMapping | ( | uno_Mapping ** | ppMapping, |
uno_Environment * | pFrom, | ||
uno_Environment * | pTo | ||
) |
Definition at line 275 of file cli_bridge.cxx.
References Bridge_free(), err, cli_uno::Bridge::m_cli2uno, cli_uno::Bridge::m_uno2cli, SAL_THROW_EXTERN_C, SAL_WARN, and uno_registerMapping().
SAL_DLLPUBLIC_EXPORT void SAL_CALL cli_uno::uno_initEnvironment | ( | uno_Environment * | uno_cli_env | ) |
Definition at line 248 of file cli_bridge.cxx.
References Add, cli_env_disposing(), cli_uno::CliEnvHolder::g_cli_env, and SAL_THROW_EXTERN_C.