LibreOffice Module basic (master) 1
|
#include <basic/sbxobj.hxx>
#include <basic/sbxmeth.hxx>
#include <sbxprop.hxx>
#include <sbxfac.hxx>
#include <basic/sbx.hxx>
#include <com/sun/star/beans/XMaterialHolder.hpp>
#include <com/sun/star/beans/XExactName.hpp>
#include <com/sun/star/beans/XIntrospectionAccess.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/script/XInvocation.hpp>
#include <com/sun/star/reflection/XIdlClass.hpp>
#include <com/sun/star/reflection/XServiceTypeDescription2.hpp>
#include <rtl/ustring.hxx>
#include <o3tl/string_view.hxx>
#include <string_view>
#include <unordered_map>
#include <utility>
#include <vector>
#include <map>
Go to the source code of this file.
Classes | |
class | StructRefInfo |
class | SbUnoStructRefObject |
struct | SbUnoStructRefObject::caseLessComp |
class | SbUnoObject |
class | SbUnoMethod |
class | SbUnoProperty |
class | SbUnoFactory |
class | SbUnoClass |
class | SbUnoService |
class | SbUnoServiceCtor |
class | SbUnoSingleton |
class | SbUnoAnyObject |
class | AutomationNamedArgsSbxArray |
class | BasicCollection |
class | VBAConstantHelper |
Typedefs | |
typedef tools::SvRef< SbUnoObject > | SbUnoObjectRef |
typedef tools::SvRef<SbUnoObject> SbUnoObjectRef |
Definition at line 145 of file sbunoobj.hxx.
bool checkUnoObjectType | ( | SbUnoObject & | refVal, |
const OUString & | aClass | ||
) |
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 154 of file sbunoobj.cxx.
Referenced by ClearUnoObjectsInRTL_Impl().
void clearUnoMethodsForBasic | ( | StarBASIC const * | pBasic | ) |
Definition at line 155 of file sbunoobj.cxx.
Referenced by StarBASIC::~StarBASIC().
css::uno::Reference< css::uno::XInterface > createComListener | ( | const css::uno::Any & | aControlAny, |
const OUString & | aVBAType, | ||
std::u16string_view | aPrefix, | ||
const SbxObjectRef & | xScopeObj | ||
) |
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().
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().
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().
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().
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 css::uno::Reference< css::lang::XComponent > & | xComponent, |
StarBASIC * | pBasic | ||
) |
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().