LibreOffice Module basic (master) 1
|
#include <sal/config.h>
#include <o3tl/any.hxx>
#include <o3tl/safeint.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <comphelper/errcode.hxx>
#include <svl/hint.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <comphelper/interfacecontainer4.hxx>
#include <comphelper/extract.hxx>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/weakref.hxx>
#include <rtl/math.hxx>
#include <rtl/ustrbuf.hxx>
#include <com/sun/star/script/ArrayWrapper.hpp>
#include <com/sun/star/script/CannotConvertException.hpp>
#include <com/sun/star/script/NativeObjectWrapper.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/DeploymentException.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/PropertyConcept.hpp>
#include <com/sun/star/beans/MethodConcept.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/theIntrospection.hpp>
#include <com/sun/star/script/BasicErrorException.hpp>
#include <com/sun/star/script/InvocationAdapterFactory.hpp>
#include <com/sun/star/script/XAllListener.hpp>
#include <com/sun/star/script/Converter.hpp>
#include <com/sun/star/script/XDefaultProperty.hpp>
#include <com/sun/star/script/XDirectInvocation.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/reflection/XIdlArray.hpp>
#include <com/sun/star/reflection/XIdlReflection.hpp>
#include <com/sun/star/reflection/XServiceConstructorDescription.hpp>
#include <com/sun/star/reflection/XSingletonTypeDescription.hpp>
#include <com/sun/star/reflection/theCoreReflection.hpp>
#include <com/sun/star/bridge/oleautomation/NamedArgument.hpp>
#include <com/sun/star/bridge/oleautomation/Date.hpp>
#include <com/sun/star/bridge/oleautomation/Decimal.hpp>
#include <com/sun/star/bridge/oleautomation/Currency.hpp>
#include <com/sun/star/bridge/oleautomation/XAutomationObject.hpp>
#include <com/sun/star/script/XAutomationInvocation.hpp>
#include <rtlproto.hxx>
#include <basic/sbstar.hxx>
#include <basic/sbuno.hxx>
#include <basic/sberrors.hxx>
#include <sbunoobj.hxx>
#include <sbintern.hxx>
#include <runtime.hxx>
#include <algorithm>
#include <math.h>
#include <memory>
#include <string_view>
#include <unordered_map>
#include <com/sun/star/reflection/XTypeDescriptionEnumerationAccess.hpp>
#include <com/sun/star/reflection/XConstantsTypeDescription.hpp>
Go to the source code of this file.
Typedefs | |
typedef std::vector< ObjectItem > | NativeObjectWrapperVector |
typedef std::vector< WeakReference< XComponent > > | ComponentRefVector |
typedef std::vector< StarBasicDisposeItem * > | DisposeItemVector |
Functions | |
SbxVariable * | getDefaultProp (SbxVariable *pRef) |
void | SetSbUnoObjectDfltPropName (SbxObject *pObj) |
static Reference< XIdlReflection > | getCoreReflection_Impl () |
static Reference< XHierarchicalNameAccess > const & | getCoreReflection_HierarchicalNameAccess_Impl () |
static Reference< XHierarchicalNameAccess > const & | getTypeProvider_Impl () |
static Reference< XTypeConverter > const & | getTypeConverter_Impl () |
SbUnoObject * | createOLEObject_Impl (const OUString &aType) |
static void | implAppendExceptionMsg (OUStringBuffer &_inout_rBuffer, const Exception &_e, std::u16string_view _rExceptionType, sal_Int32 _nLevel) |
static OUString | implGetExceptionMsg (const Exception &e, std::u16string_view aExceptionType_) |
static OUString | implGetExceptionMsg (const Any &_rCaughtException) |
static Any | convertAny (const Any &rVal, const Type &aDestType) |
static Reference< XIdlClass > | TypeToIdlClass (const Type &rType) |
template<class EXCEPTION > | |
static OUString | implGetExceptionMsg (const EXCEPTION &e) |
static void | implHandleBasicErrorException (BasicErrorException const &e) |
static void | implHandleWrappedTargetException (const Any &_rWrappedTargetException) |
static void | implHandleAnyException (const Any &_rCaughtException) |
void | clearNativeObjectWrapperVector () |
static sal_uInt32 | lcl_registerNativeObjectWrapper (SbxObject *pNativeObj) |
static SbxObject * | lcl_getNativeObject (sal_uInt32 nIndex) |
static SbxDataType | unoToSbxType (TypeClass eType) |
static SbxDataType | unoToSbxType (const Reference< XIdlClass > &xIdlClass) |
static void | implSequenceToMultiDimArray (SbxDimArray *&pArray, Sequence< sal_Int32 > &indices, Sequence< sal_Int32 > &sizes, const Any &aValue, sal_Int32 dimension, bool bIsZeroIndex, Type const *pType) |
void | unoToSbxValue (SbxVariable *pVar, const Any &aValue) |
static Type | getUnoTypeForSbxBaseType (SbxDataType eType) |
static Type | getUnoTypeForSbxValue (const SbxValue *pVal) |
static Any | sbxToUnoValueImpl (const SbxValue *pVar, bool bBlockConversionToSmallestType=false) |
static Any | implRekMultiDimArrayToSequence (SbxDimArray *pArray, const Type &aElemType, sal_Int32 nMaxDimIndex, sal_Int32 nActualDim, sal_Int32 *pActualIndices, sal_Int32 *pLowerBounds, sal_Int32 *pUpperBounds) |
Any | sbxToUnoValue (const SbxValue *pVar) |
static bool | implGetTypeByName (const OUString &rName, Type &rRetType) |
Any | sbxToUnoValue (const SbxValue *pVar, const Type &rType, Property const *pUnoProperty) |
static void | processAutomationParams (SbxArray *pParams, Sequence< Any > &args, sal_uInt32 nParamCount) |
static Any | invokeAutomationMethod (const OUString &Name, Sequence< Any > const &args, SbxArray *pParams, sal_uInt32 nParamCount, Reference< XInvocation > const &rxInvocation, INVOKETYPE invokeType) |
static OUString | Impl_GetInterfaceInfo (const Reference< XInterface > &x, const Reference< XIdlClass > &xClass, sal_uInt16 nRekLevel) |
static OUString | getDbgObjectNameImpl (SbUnoObject &rUnoObj) |
static OUString | getDbgObjectName (SbUnoObject &rUnoObj) |
OUString | getBasicObjectTypeName (SbxObject *pObj) |
bool | checkUnoObjectType (SbUnoObject &rUnoObj, const OUString &rClass) |
static OUString | Impl_GetSupportedInterfaces (SbUnoObject &rUnoObj) |
static OUString | Dbg_SbxDataType2String (SbxDataType eType) |
static OUString | Impl_DumpProperties (SbUnoObject &rUnoObj) |
static OUString | Impl_DumpMethods (SbUnoObject &rUnoObj) |
void | clearUnoMethodsForBasic (StarBASIC const *pBasic) |
void | clearUnoMethods () |
static SbUnoObjectRef | Impl_CreateUnoStruct (const OUString &aClassName) |
SbxObjectRef | GetSbUnoObject (const OUString &aName, const Any &aUnoObj_) |
void | createAllObjectProperties (SbxObject *pObj) |
void | RTL_Impl_CreateUnoStruct (SbxArray &rPar) |
void | RTL_Impl_CreateUnoService (SbxArray &rPar) |
void | RTL_Impl_CreateUnoServiceWithArguments (SbxArray &rPar) |
void | RTL_Impl_GetProcessServiceManager (SbxArray &rPar) |
void | RTL_Impl_HasInterfaces (SbxArray &rPar) |
void | RTL_Impl_IsUnoStruct (SbxArray &rPar) |
void | RTL_Impl_EqualUnoObjects (SbxArray &rPar) |
static Reference< XTypeDescriptionEnumeration > | getTypeDescriptorEnumeration (const OUString &sSearchRoot, const Sequence< TypeClass > &types, TypeDescriptionSearchDepth depth) |
SbUnoClass * | findUnoClass (const OUString &rName) |
SbUnoService * | findUnoService (const OUString &rName) |
SbUnoSingleton * | findUnoSingleton (const OUString &rName) |
static Reference< XInterface > | createAllListenerAdapter (const Reference< XInvocationAdapterFactory2 > &xInvocationAdapterFactory, const Reference< XIdlClass > &xListenerType, const Reference< XAllListener > &xListener, const Any &Helper) |
void | SbRtl_CreateUnoListener (StarBASIC *pBasic, SbxArray &rPar, bool) |
void | RTL_Impl_GetDefaultContext (SbxArray &rPar) |
void | RTL_Impl_CreateUnoValue (SbxArray &rPar) |
Reference< XInterface > | createComListener (const Any &aControlAny, const OUString &aVBAType, std::u16string_view aPrefix, const SbxObjectRef &xScopeObj) |
static DisposeItemVector::iterator | lcl_findItemForBasic (StarBASIC const *pBasic) |
static StarBasicDisposeItem * | lcl_getOrCreateItemForBasic (StarBASIC *pBasic) |
void | registerComponentToBeDisposedForBasic (const Reference< XComponent > &xComponent, StarBASIC *pBasic) |
void | registerComListenerVariableForBasic (SbxVariable *pVar, StarBASIC *pBasic) |
void | disposeComVariablesForBasic (StarBASIC const *pBasic) |
bool | handleToStringForCOMObjects (SbxObject *pObj, SbxValue *pVal) |
Variables | |
constexpr OUStringLiteral | ID_DBG_SUPPORTEDINTERFACES = u"Dbg_SupportedInterfaces" |
constexpr OUStringLiteral | ID_DBG_PROPERTIES = u"Dbg_Properties" |
constexpr OUStringLiteral | ID_DBG_METHODS = u"Dbg_Methods" |
char const | aSeqLevelStr [] = "[]" |
static SbUnoMethod * | pFirst = nullptr |
static DisposeItemVector | GaDisposeItemVector |
typedef std::vector< WeakReference< XComponent > > ComponentRefVector |
Definition at line 4389 of file sbunoobj.cxx.
typedef std::vector< StarBasicDisposeItem* > DisposeItemVector |
Definition at line 4408 of file sbunoobj.cxx.
typedef std::vector< ObjectItem > NativeObjectWrapperVector |
Definition at line 448 of file sbunoobj.cxx.
bool checkUnoObjectType | ( | SbUnoObject & | rUnoObj, |
const OUString & | rClass | ||
) |
Definition at line 1644 of file sbunoobj.cxx.
References Any, SbUnoObject::getUnoAny(), SbiRuntime::isVBAEnabled(), TypeToIdlClass(), and xInvocation.
Referenced by SbiRuntime::checkClass_Impl().
void clearNativeObjectWrapperVector | ( | ) |
Definition at line 456 of file sbunoobj.cxx.
Referenced by SbModule::Run().
void clearUnoMethods | ( | ) |
Definition at line 2470 of file sbunoobj.cxx.
Referenced by ClearUnoObjectsInRTL_Impl().
void clearUnoMethodsForBasic | ( | StarBASIC const * | pBasic | ) |
Definition at line 2429 of file sbunoobj.cxx.
Referenced by StarBASIC::~StarBASIC().
|
static |
Definition at line 320 of file sbunoobj.cxx.
References Any, ERRCODE_BASIC_EXCEPTION, StarBASIC::Error(), getTypeConverter_Impl(), implGetExceptionMsg(), u, and xConverter.
Referenced by RTL_Impl_CreateUnoValue().
|
static |
Definition at line 3891 of file sbunoobj.cxx.
Referenced by SbRtl_CreateUnoListener().
void createAllObjectProperties | ( | SbxObject * | pObj | ) |
Definition at line 2888 of file sbunoobj.cxx.
References SbUnoStructRefObject::createAllProperties(), and SbUnoObject::createAllProperties().
Reference< XInterface > createComListener | ( | const Any & | aControlAny, |
const OUString & | aVBAType, | ||
std::u16string_view | aPrefix, | ||
const SbxObjectRef & | xScopeObj | ||
) |
Definition at line 4361 of file sbunoobj.cxx.
References Any, args, Exception, comphelper::getProcessComponentContext(), and implHandleAnyException().
Referenced by SbiRuntime::StepSET_Impl().
SbUnoObject * createOLEObject_Impl | ( | const OUString & | aType | ) |
Definition at line 234 of file sbunoobj.cxx.
References Any, SbUnoObject::getDefaultPropName(), comphelper::getProcessComponentContext(), SbxObject::SetDfltProperty(), xFactory, and xSMgr.
Referenced by SbOLEFactory::CreateObject().
|
static |
Definition at line 1782 of file sbunoobj.cxx.
References eType, SbxARRAY, SbxBYTE, SbxCARRAY, SbxCHAR, SbxCoreSTRING, SbxCURRENCY, SbxDATAOBJECT, SbxDATE, SbxDECIMAL, SbxDIMARRAY, SbxDOUBLE, SbxEMPTY, SbxERROR, SbxHRESULT, SbxINT, SbxINTEGER, SbxLONG, SbxLPSTR, SbxLPWSTR, SbxNULL, SbxOBJECT, SbxPOINTER, SbxSALINT64, SbxSALUINT64, SbxSINGLE, SbxSTRING, SbxUINT, SbxULONG, SbxUSERDEF, SbxUSHORT, SbxVARIANT, and SbxVOID.
Referenced by Impl_DumpMethods(), SbUnoStructRefObject::Impl_DumpProperties(), and Impl_DumpProperties().
void disposeComVariablesForBasic | ( | StarBASIC const * | pBasic | ) |
Definition at line 4444 of file sbunoobj.cxx.
References SbxVariable::ClearComListener(), SbxArray::Count(), GaDisposeItemVector, SbxArray::Get(), i, lcl_findItemForBasic(), nCount, and pItem.
Referenced by StarBASIC::~StarBASIC().
SbUnoClass * findUnoClass | ( | const OUString & | rName | ) |
Definition at line 3298 of file sbunoobj.cxx.
References Any, and getTypeProvider_Impl().
Referenced by SbUnoClass::Find(), and SbiRuntime::FindElement().
SbUnoService * findUnoService | ( | const OUString & | rName | ) |
Definition at line 3448 of file sbunoobj.cxx.
References Any, and getTypeProvider_Impl().
Referenced by SbUnoClass::Find().
SbUnoSingleton * findUnoSingleton | ( | const OUString & | rName | ) |
Definition at line 3681 of file sbunoobj.cxx.
References Any, and getTypeProvider_Impl().
Referenced by SbUnoClass::Find().
OUString getBasicObjectTypeName | ( | SbxObject * | pObj | ) |
Definition at line 1612 of file sbunoobj.cxx.
References getDbgObjectNameImpl().
|
static |
Definition at line 167 of file sbunoobj.cxx.
References getCoreReflection_Impl(), and xCoreReflection.
Referenced by Impl_CreateUnoStruct().
|
static |
Definition at line 160 of file sbunoobj.cxx.
References comphelper::getProcessComponentContext().
Referenced by SbUnoClass::Find(), getCoreReflection_HierarchicalNameAccess_Impl(), Impl_CreateUnoStruct(), RTL_Impl_HasInterfaces(), SbRtl_CreateUnoListener(), and TypeToIdlClass().
|
static |
Definition at line 1597 of file sbunoobj.cxx.
References aName, and getDbgObjectNameImpl().
Referenced by Impl_DumpMethods(), Impl_DumpProperties(), and Impl_GetSupportedInterfaces().
|
static |
Definition at line 1580 of file sbunoobj.cxx.
References aName, Any, SbxObject::GetClassName(), and SbUnoObject::getUnoAny().
Referenced by getBasicObjectTypeName(), and getDbgObjectName().
SbxVariable * getDefaultProp | ( | SbxVariable * | pRef | ) |
Definition at line 126 of file sbunoobj.cxx.
References SbxValue::GetObject(), SbxVariable::GetType(), and SbxOBJECT.
Referenced by SbiRuntime::CheckArray(), SbiRuntime::StepCompare(), SbiRuntime::StepPUT(), SbiRuntime::StepSET_Impl(), and SbiRuntime::TOSMakeTemp().
SbxObjectRef GetSbUnoObject | ( | const OUString & | aName, |
const Any & | aUnoObj_ | ||
) |
Definition at line 2882 of file sbunoobj.cxx.
References aName.
Referenced by BasicManager::SetGlobalUNOConstant().
|
static |
Definition at line 210 of file sbunoobj.cxx.
References comphelper::getProcessComponentContext(), and xTypeConverter.
Referenced by convertAny().
|
static |
Definition at line 3192 of file sbunoobj.cxx.
References getTypeProvider_Impl().
Referenced by VBAConstantHelper::init().
|
static |
Definition at line 184 of file sbunoobj.cxx.
References comphelper::getProcessComponentContext().
Referenced by findUnoClass(), findUnoService(), findUnoSingleton(), getTypeDescriptorEnumeration(), implGetTypeByName(), and RTL_Impl_CreateUnoValue().
|
static |
Definition at line 817 of file sbunoobj.cxx.
References eType, cppu::UnoType< typename T >::get(), GetSbData(), SbiInstance::IsCompatibility(), SbiGlobals::pInst, SbxBYTE, SbxCHAR, SbxCURRENCY, SbxDATE, SbxDECIMAL, SbxDOUBLE, SbxINT, SbxINTEGER, SbxLONG, SbxNULL, SbxSINGLE, SbxSTRING, SbxUINT, SbxULONG, SbxUSHORT, and SbxVARIANT.
Referenced by getUnoTypeForSbxValue().
Definition at line 853 of file sbunoobj.cxx.
References any, aSeqLevelStr, cppu::UnoType< typename T >::get(), tools::SvRef< typename T >::get(), SbxValue::GetByte(), SbxValue::GetObject(), getUnoTypeForSbxBaseType(), getUnoTypeForSbxValue(), i, tools::SvRef< typename T >::is(), SbxBYTE, SbxOBJECT, and SbxUSHORT.
Referenced by getUnoTypeForSbxValue(), and sbxToUnoValueImpl().
Definition at line 4554 of file sbunoobj.cxx.
References SbxObject::Find(), tools::SvRef< typename T >::is(), SbUnoObject::isNativeCOMObject(), Method, and SbxValue::Put().
Referenced by SbxValue::TheRealValue().
|
static |
Definition at line 2837 of file sbunoobj.cxx.
References Any, eType, getCoreReflection_HierarchicalNameAccess_Impl(), getCoreReflection_Impl(), and xCoreReflection.
Referenced by SbUnoFactory::CreateObject(), and RTL_Impl_CreateUnoStruct().
|
static |
Definition at line 1900 of file sbunoobj.cxx.
References SbxArray::Count(), Dbg_SbxDataType2String(), eType, SbxArray::Get(), getDbgObjectName(), SbxValue::GetFullType(), SbUnoObject::getIntrospectionAccess(), SbUnoObject::getInvocation(), SbxObject::GetMethods(), SbxVariable::GetName(), i, SbxARRAY, SbxOBJECT, and unoToSbxType().
Referenced by SbUnoObject::Notify().
|
static |
Definition at line 1826 of file sbunoobj.cxx.
References SbxArray::Count(), Dbg_SbxDataType2String(), eType, SbxArray::Get(), getDbgObjectName(), SbxValue::GetFullType(), SbUnoObject::getIntrospectionAccess(), SbUnoObject::getInvocation(), SbxVariable::GetName(), SbxObject::GetProperties(), i, Property, props, SbxARRAY, SbxOBJECT, and unoToSbxType().
Referenced by SbUnoObject::Notify().
|
static |
Definition at line 1544 of file sbunoobj.cxx.
References cppu::UnoType< typename T >::get(), i, Impl_GetInterfaceInfo(), TypeToIdlClass(), and x.
Referenced by Impl_GetInterfaceInfo(), and Impl_GetSupportedInterfaces().
|
static |
Definition at line 1731 of file sbunoobj.cxx.
References Any, getDbgObjectName(), SbUnoObject::getUnoAny(), ID_DBG_SUPPORTEDINTERFACES, Impl_GetInterfaceInfo(), TypeToIdlClass(), and x.
Referenced by SbUnoObject::Notify().
|
static |
Definition at line 283 of file sbunoobj.cxx.
Referenced by implGetExceptionMsg(), and implHandleWrappedTargetException().
|
static |
Definition at line 309 of file sbunoobj.cxx.
References implGetExceptionMsg().
|
static |
Definition at line 355 of file sbunoobj.cxx.
References getTypeName(), and implGetExceptionMsg().
|
static |
Definition at line 302 of file sbunoobj.cxx.
References implAppendExceptionMsg().
Referenced by convertAny(), SbUnoObject::doIntrospection(), SbUnoObject::Find(), implGetExceptionMsg(), implHandleAnyException(), implRekMultiDimArrayToSequence(), RTL_Impl_CreateUnoValue(), and sbxToUnoValue().
|
static |
Definition at line 1144 of file sbunoobj.cxx.
References Any, and getTypeProvider_Impl().
Referenced by RTL_Impl_CreateUnoValue(), and sbxToUnoValue().
|
static |
Definition at line 415 of file sbunoobj.cxx.
References ERRCODE_BASIC_EXCEPTION, StarBASIC::Error(), implGetExceptionMsg(), implHandleBasicErrorException(), and implHandleWrappedTargetException().
Referenced by createComListener(), SbModule::createCOMWrapperForIface(), SbUnoObject::Find(), SbUnoClass::Find(), SbUnoObject::Notify(), SbUnoService::Notify(), RTL_Impl_CreateUnoService(), and RTL_Impl_CreateUnoServiceWithArguments().
|
static |
Definition at line 360 of file sbunoobj.cxx.
References StarBASIC::Error(), and StarBASIC::GetSfxFromVBError().
Referenced by implHandleAnyException().
|
static |
Definition at line 366 of file sbunoobj.cxx.
References Any, ERRCODE_BASIC_EXCEPTION, StarBASIC::Error(), StarBASIC::GetSfxFromVBError(), and implAppendExceptionMsg().
Referenced by implHandleAnyException().
|
static |
Definition at line 1075 of file sbunoobj.cxx.
References Any, aSeqLevelStr, ERRCODE_BASIC_EXCEPTION, ERRCODE_BASIC_OUT_OF_RANGE, StarBASIC::Error(), SbxDimArray::Get(), i, implGetExceptionMsg(), implRekMultiDimArrayToSequence(), sbxToUnoValue(), and TypeToIdlClass().
Referenced by implRekMultiDimArrayToSequence(), and sbxToUnoValue().
|
static |
Definition at line 526 of file sbunoobj.cxx.
References Any, ERRCODE_BASIC_INVALID_OBJECT, StarBASIC::Error(), implSequenceToMultiDimArray(), index, SbxDimArray::Put(), TypeToIdlClass(), SbxDimArray::unoAddDim(), unoToSbxType(), and unoToSbxValue().
Referenced by implSequenceToMultiDimArray(), and unoToSbxValue().
|
static |
Definition at line 1506 of file sbunoobj.cxx.
References Any, args, SbxArray::Get(), o3tl::make_unsigned(), Name, and unoToSbxValue().
Referenced by SbUnoObject::Notify().
|
static |
Definition at line 4412 of file sbunoobj.cxx.
References GaDisposeItemVector, and pItem.
Referenced by disposeComVariablesForBasic(), and lcl_getOrCreateItemForBasic().
|
static |
Definition at line 468 of file sbunoobj.cxx.
References tools::SvRef< typename T >::get(), and nIndex.
Referenced by unoToSbxValue().
|
static |
Definition at line 4418 of file sbunoobj.cxx.
References GaDisposeItemVector, lcl_findItemForBasic(), and pItem.
Referenced by registerComListenerVariableForBasic(), and registerComponentToBeDisposedForBasic().
|
static |
|
static |
Definition at line 1451 of file sbunoobj.cxx.
References Any, args, SbxArray::Get(), AutomationNamedArgsSbxArray::getNames(), GetSbData(), i, SbiInstance::IsCompatibility(), SbiGlobals::pInst, and sbxToUnoValueImpl().
Referenced by SbUnoObject::Notify().
void registerComListenerVariableForBasic | ( | SbxVariable * | pVar, |
StarBASIC * | pBasic | ||
) |
Definition at line 4437 of file sbunoobj.cxx.
References SbxArray::Count(), lcl_getOrCreateItemForBasic(), pItem, and SbxArray::Put().
Referenced by SbxVariable::operator=(), SbxVariable::SbxVariable(), and SbxVariable::SetComListener().
void registerComponentToBeDisposedForBasic | ( | const Reference< XComponent > & | xComponent, |
StarBASIC * | pBasic | ||
) |
Definition at line 4430 of file sbunoobj.cxx.
References lcl_getOrCreateItemForBasic(), and pItem.
Referenced by SbModule::createCOMWrapperForIface(), and SbUserFormModule::InitObject().
void RTL_Impl_CreateUnoService | ( | SbxArray & | rPar | ) |
Definition at line 2929 of file sbunoobj.cxx.
References Any, SbxArray::Count(), ERRCODE_BASIC_BAD_ARGUMENT, StarBASIC::Error(), Exception, tools::SvRef< typename T >::get(), SbxArray::Get(), SbxValue::GetOUString(), comphelper::getProcessServiceFactory(), implHandleAnyException(), and xFactory.
void RTL_Impl_CreateUnoServiceWithArguments | ( | SbxArray & | rPar | ) |
Definition at line 2974 of file sbunoobj.cxx.
References Any, SbxArray::Count(), ERRCODE_BASIC_BAD_ARGUMENT, StarBASIC::Error(), Exception, tools::SvRef< typename T >::get(), SbxArray::Get(), SbxValue::GetOUString(), comphelper::getProcessServiceFactory(), implHandleAnyException(), sbxToUnoValue(), and xFactory.
void RTL_Impl_CreateUnoStruct | ( | SbxArray & | rPar | ) |
Definition at line 2906 of file sbunoobj.cxx.
References SbxArray::Count(), ERRCODE_BASIC_BAD_ARGUMENT, StarBASIC::Error(), tools::SvRef< typename T >::get(), SbxArray::Get(), SbxValue::GetOUString(), Impl_CreateUnoStruct(), and tools::SvRef< typename T >::is().
void RTL_Impl_CreateUnoValue | ( | SbxArray & | rPar | ) |
Definition at line 4074 of file sbunoobj.cxx.
References Any, convertAny(), SbxArray::Count(), ERRCODE_BASIC_BAD_ARGUMENT, ERRCODE_BASIC_EXCEPTION, StarBASIC::Error(), tools::SvRef< typename T >::get(), SbxArray::Get(), SbxValue::GetObject(), SbxValue::GetOUString(), getTypeProvider_Impl(), implGetExceptionMsg(), implGetTypeByName(), SbxOBJECT, SbxSTRING, sbxToUnoValueImpl(), and u.
void RTL_Impl_EqualUnoObjects | ( | SbxArray & | rPar | ) |
Definition at line 3127 of file sbunoobj.cxx.
References Any, SbxArray::Count(), ERRCODE_BASIC_BAD_ARGUMENT, StarBASIC::Error(), tools::SvRef< typename T >::get(), and SbxArray::Get().
void RTL_Impl_GetDefaultContext | ( | SbxArray & | rPar | ) |
Definition at line 4061 of file sbunoobj.cxx.
References Any, tools::SvRef< typename T >::get(), SbxArray::Get(), and comphelper::getProcessComponentContext().
void RTL_Impl_GetProcessServiceManager | ( | SbxArray & | rPar | ) |
Definition at line 3023 of file sbunoobj.cxx.
References Any, tools::SvRef< typename T >::get(), SbxArray::Get(), comphelper::getProcessServiceFactory(), and xFactory.
void RTL_Impl_HasInterfaces | ( | SbxArray & | rPar | ) |
Definition at line 3035 of file sbunoobj.cxx.
References Any, SbxArray::Count(), ERRCODE_BASIC_BAD_ARGUMENT, StarBASIC::Error(), tools::SvRef< typename T >::get(), SbxArray::Get(), getCoreReflection_Impl(), SbxValue::GetObject(), SbxValue::GetOUString(), i, x, and xCoreReflection.
void RTL_Impl_IsUnoStruct | ( | SbxArray & | rPar | ) |
Definition at line 3093 of file sbunoobj.cxx.
References Any, SbxArray::Count(), ERRCODE_BASIC_BAD_ARGUMENT, StarBASIC::Error(), eType, tools::SvRef< typename T >::get(), and SbxArray::Get().
Definition at line 4003 of file sbunoobj.cxx.
References Any, SbxArray::Count(), createAllListenerAdapter(), ERRCODE_BASIC_BAD_ARGUMENT, StarBASIC::Error(), SbxArray::Get(), getCoreReflection_Impl(), SbxValue::GetOUString(), comphelper::getProcessComponentContext(), StarBASIC::getUnoListeners(), and xCoreReflection.
Any sbxToUnoValue | ( | const SbxValue * | pVar | ) |
Definition at line 1137 of file sbunoobj.cxx.
References Any, and sbxToUnoValueImpl().
Referenced by StarBASIC::GetModelFromBasic(), implRekMultiDimArrayToSequence(), SbUnoStructRefObject::Notify(), SbUnoObject::Notify(), SbUnoService::Notify(), SbUnoSingleton::Notify(), RTL_Impl_CreatePropertySet(), RTL_Impl_CreateUnoServiceWithArguments(), sbxToUnoValue(), sbxToUnoValueImpl(), and BasicManager::SetGlobalUNOConstant().
Definition at line 1166 of file sbunoobj.cxx.
References Any, ERRCODE_BASIC_EXCEPTION, ERRCODE_BASIC_MATH_OVERFLOW, ERRCODE_BASIC_OUT_OF_RANGE, StarBASIC::Error(), eType, SbxValue::fillAutomationDecimal(), tools::SvRef< typename T >::get(), SbxValue::GetBool(), SbxValue::GetChar(), SbxValue::GetDate(), SbxValue::GetDouble(), SbxValue::GetInt64(), SbxValue::GetInteger(), SbxValue::GetLong(), SbxValue::GetObject(), SbxValue::GetOUString(), GetSbData(), SbxValue::GetSingle(), SbxValue::GetUInt64(), SbxValue::GetULong(), SbxValue::GetUShort(), i, implGetExceptionMsg(), implGetTypeByName(), implRekMultiDimArrayToSequence(), int2enum(), SbiInstance::IsCompatibility(), SbxValue::IsEmpty(), SbxValue::IsNull(), SbiGlobals::pInst, SbxOBJECT, SbxSTRING, sbxToUnoValue(), sbxToUnoValueImpl(), typelib_typedescription_getByName(), and TypeToIdlClass().
|
static |
Definition at line 984 of file sbunoobj.cxx.
References Any, SbModule::createCOMWrapperForIface(), d, eType, cppu::UnoType< typename T >::get(), tools::SvRef< typename T >::get(), SbxValue::GetDouble(), SbxValue::GetInteger(), SbxValue::GetLong(), SbxValue::GetObject(), getUnoTypeForSbxValue(), tools::SvRef< typename T >::is(), lcl_registerNativeObjectWrapper(), n, nIndex, SbxMAXINT, SbxMAXLNG, SbxMAXUINT, SbxMININT, SbxOBJECT, and sbxToUnoValue().
Referenced by SbUnoObject::Notify(), processAutomationParams(), RTL_Impl_CreateUnoValue(), and sbxToUnoValue().
void SetSbUnoObjectDfltPropName | ( | SbxObject * | pObj | ) |
Definition at line 145 of file sbunoobj.cxx.
References SbUnoObject::getDefaultPropName().
Definition at line 348 of file sbunoobj.cxx.
References getCoreReflection_Impl().
Referenced by checkUnoObjectType(), Impl_GetInterfaceInfo(), Impl_GetSupportedInterfaces(), implRekMultiDimArrayToSequence(), implSequenceToMultiDimArray(), sbxToUnoValue(), and unoToSbxValue().
|
static |
Definition at line 515 of file sbunoobj.cxx.
References eType, SbxVOID, and unoToSbxType().
|
static |
Definition at line 480 of file sbunoobj.cxx.
References eType, SbxARRAY, SbxCHAR, SbxDOUBLE, SbxINTEGER, SbxLONG, SbxOBJECT, SbxSALINT64, SbxSALUINT64, SbxSINGLE, SbxSTRING, SbxULONG, SbxUSHORT, SbxVARIANT, and SbxVOID.
Referenced by SbUnoStructRefObject::Find(), SbUnoObject::Find(), Impl_DumpMethods(), Impl_DumpProperties(), SbUnoStructRefObject::implCreateAll(), SbUnoObject::implCreateAll(), implSequenceToMultiDimArray(), unoToSbxType(), and unoToSbxValue().
void unoToSbxValue | ( | SbxVariable * | pVar, |
const Any & | aValue | ||
) |
Definition at line 610 of file sbunoobj.cxx.
References Any, enum2int(), Fixed, tools::SvRef< typename T >::get(), SbUnoObject::getDefaultPropName(), SbxBase::GetFlags(), GetSbData(), SbUnoObject::getUnoAny(), i, implSequenceToMultiDimArray(), SbiInstance::IsCompatibility(), lcl_getNativeObject(), nIndex, SbiGlobals::pInst, SbxValue::PutBool(), SbxValue::PutChar(), SbxValue::PutCurrency(), SbxValue::PutDate(), SbxValue::PutDecimal(), SbxValue::PutDouble(), SbxValue::PutEmpty(), SbxValue::PutInt64(), SbxValue::PutInteger(), SbxValue::PutLong(), SbxValue::PutObject(), SbxValue::PutSingle(), SbxValue::PutString(), SbxValue::PutUInt64(), SbxValue::PutULong(), SbxValue::PutUShort(), SbxBase::ResetFlag(), SbxObject::SetDfltProperty(), SbxBase::SetFlags(), TypeToIdlClass(), unoToSbxType(), and unoToSbxValue().
Referenced by SbUnoObject::Find(), SbUnoClass::Find(), VBAConstantHelper::getVBAConstant(), implSequenceToMultiDimArray(), invokeAutomationMethod(), SbUnoStructRefObject::Notify(), SbUnoObject::Notify(), SbUnoService::Notify(), SbUnoSingleton::Notify(), RTL_Impl_CreateUnoDialog(), SbiRuntime::StepTESTFOR(), and unoToSbxValue().
char const aSeqLevelStr[] = "[]" |
Definition at line 107 of file sbunoobj.cxx.
Referenced by getUnoTypeForSbxValue(), and implRekMultiDimArrayToSequence().
|
static |
Definition at line 4410 of file sbunoobj.cxx.
Referenced by disposeComVariablesForBasic(), lcl_findItemForBasic(), and lcl_getOrCreateItemForBasic().
|
constexpr |
Definition at line 105 of file sbunoobj.cxx.
Referenced by SbUnoStructRefObject::Find(), SbUnoObject::Find(), SbUnoStructRefObject::implCreateDbgProperties(), and SbUnoObject::implCreateDbgProperties().
|
constexpr |
Definition at line 104 of file sbunoobj.cxx.
Referenced by SbUnoStructRefObject::Find(), SbUnoObject::Find(), SbUnoStructRefObject::implCreateDbgProperties(), and SbUnoObject::implCreateDbgProperties().
|
constexpr |
Definition at line 103 of file sbunoobj.cxx.
Referenced by SbUnoStructRefObject::Find(), SbUnoObject::Find(), Impl_GetSupportedInterfaces(), SbUnoStructRefObject::implCreateDbgProperties(), SbUnoObject::implCreateDbgProperties(), and SbUnoStructRefObject::Notify().
|
static |
Definition at line 2427 of file sbunoobj.cxx.
Referenced by SbUnoMethod::SbUnoMethod(), and SbUnoMethod::~SbUnoMethod().