|
LibreOffice Module basic (master) 1
|
#include <stdlib.h>#include <algorithm>#include <string_view>#include <unordered_map>#include <com/sun/star/beans/XPropertySet.hpp>#include <com/sun/star/container/XEnumerationAccess.hpp>#include <com/sun/star/container/XIndexAccess.hpp>#include <com/sun/star/script/XDefaultMethod.hpp>#include <com/sun/star/uno/Any.hxx>#include <com/sun/star/util/SearchAlgorithms2.hpp>#include <comphelper/processfactory.hxx>#include <comphelper/string.hxx>#include <o3tl/safeint.hxx>#include <sal/log.hxx>#include <tools/wldcrd.hxx>#include <comphelper/diagnose_ex.hxx>#include <utility>#include <vcl/svapp.hxx>#include <vcl/settings.hxx>#include <rtl/math.hxx>#include <rtl/ustrbuf.hxx>#include <rtl/character.hxx>#include <svl/numformat.hxx>#include <svl/zforlist.hxx>#include <i18nutil/searchopt.hxx>#include <unotools/syslocale.hxx>#include <unotools/textsearch.hxx>#include <basic/sbuno.hxx>#include <codegen.hxx>#include "comenumwrapper.hxx"#include "ddectrl.hxx"#include "dllmgr.hxx"#include <errobject.hxx>#include <image.hxx>#include <iosys.hxx>#include <opcodes.hxx>#include <runtime.hxx>#include <sb.hxx>#include <sbintern.hxx>#include <sbprop.hxx>#include <sbunoobj.hxx>#include <basic/codecompletecache.hxx>#include <memory>Go to the source code of this file.
Classes | |
| struct | SbiArgv |
| struct | SbiGosub |
Typedefs | |
| typedef std::unordered_map< SbxVariable *, DimAsNewRecoverItem, SbxVariablePtrHash > | DimAsNewRecoverHash |
Functions | |
| static void | lcl_clearImpl (SbxVariableRef const &refVar, SbxDataType const &eType) |
| static void | lcl_eraseImpl (SbxVariableRef const &refVar, bool bVBAEnabled) |
| void | setBasicWatchMode (bool bOn) |
| StarBASIC * | GetCurrentBasic (StarBASIC *pRTBasic) |
| static bool | checkUnoStructCopy (bool bVBA, SbxVariableRef const &refVal, SbxVariableRef const &refVar) |
| void | removeDimAsNewRecoverItem (SbxVariable *pVar) |
| static void | implCopyDimArray (SbxDimArray *pNewArray, SbxDimArray *pOldArray, sal_Int32 nMaxDimIndex, sal_Int32 nActualDim, sal_Int32 *pActualIndices, sal_Int32 *pLowerBounds, sal_Int32 *pUpperBounds) |
| static bool | implRestorePreservedArray (SbxDimArray *pNewArray, SbxArrayRef &rrefRedimpArray, bool *pbWasError=nullptr) |
Variables | |
| static bool | bWatchMode = false |
| constexpr OUStringLiteral | pCollectionStr = u"Collection" |
| typedef std::unordered_map< SbxVariable*, DimAsNewRecoverItem, SbxVariablePtrHash > DimAsNewRecoverHash |
Definition at line 1782 of file runtime.cxx.
|
static |
Definition at line 1613 of file runtime.cxx.
References Any, ERRCODE_BASIC_NOT_OPTIONAL, ERRCODE_NONE, tools::SvRef< typename T >::get(), SbxObject::GetClassName(), SbxBase::GetError(), SbxVariable::GetName(), SbUnoStructRefObject::getStructInfo(), SbUnoStructRefObject::getUnoAny(), SbUnoObject::getUnoAny(), tools::SvRef< typename T >::is(), SbiRuntime::IsMissing(), SbxBase::ResetError(), SbxEMPTY, SbxERROR, SbxOBJECT, SbxObject::SetClassName(), SbxBase::SetError(), StructRefInfo::setValue(), and sName.
Referenced by SbiRuntime::StepPUT(), and SbiRuntime::StepSET_Impl().
Definition at line 552 of file runtime.cxx.
References StarBASIC::GetActiveModule(), and SbxVariable::GetParent().
Referenced by SbiInstance::Abort(), and SbiRuntime::StepSTMNT().
|
static |
Definition at line 2210 of file runtime.cxx.
References SbxDimArray::Get(), SvRefBase::GetRefCount(), implCopyDimArray(), and SbxDimArray::Put().
Referenced by implCopyDimArray(), and implRestorePreservedArray().
|
static |
Definition at line 2233 of file runtime.cxx.
References tools::SvRef< typename T >::clear(), ERRCODE_BASIC_OUT_OF_RANGE, StarBASIC::Error(), tools::SvRef< typename T >::get(), SbxDimArray::GetDim(), SbxDimArray::GetDims(), i, implCopyDimArray(), and SbxDimArray::Put().
Referenced by SbiRuntime::StepDCREATE_IMPL(), and SbiRuntime::StepREDIMP().
|
static |
Definition at line 2338 of file runtime.cxx.
Referenced by SbiRuntime::DimImpl(), and lcl_eraseImpl().
|
static |
Definition at line 2347 of file runtime.cxx.
References SbxArray::Clear(), SbxDimArray::Clear(), eType, SbxDimArray::hasFixedSize(), lcl_clearImpl(), SbxARRAY, and SbxEMPTY.
Referenced by SbiRuntime::DimImpl(), and SbiRuntime::StepERASE().
| void removeDimAsNewRecoverItem | ( | SbxVariable * | pVar | ) |
Definition at line 1790 of file runtime.cxx.
Referenced by SbxVariable::~SbxVariable().
| void setBasicWatchMode | ( | bool | bOn | ) |
Definition at line 485 of file runtime.cxx.
References bWatchMode.
|
static |
Definition at line 483 of file runtime.cxx.
Referenced by SbiInstance::Error(), SbiInstance::ErrorVB(), and setBasicWatchMode().
|
constexpr |
Definition at line 1803 of file runtime.cxx.
Referenced by SbiRuntime::StepSET_Impl().