LibreOffice Module basic (master) 1
Classes | Typedefs | Functions | Variables
runtime.cxx File Reference
#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>
Include dependency graph for runtime.cxx:

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)
 
StarBASICGetCurrentBasic (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 Documentation

◆ DimAsNewRecoverHash

typedef std::unordered_map< SbxVariable*, DimAsNewRecoverItem, SbxVariablePtrHash > DimAsNewRecoverHash

Definition at line 1782 of file runtime.cxx.

Function Documentation

◆ checkUnoStructCopy()

static bool checkUnoStructCopy ( bool  bVBA,
SbxVariableRef const &  refVal,
SbxVariableRef const &  refVar 
)
static

◆ GetCurrentBasic()

StarBASIC * GetCurrentBasic ( StarBASIC pRTBasic)

◆ implCopyDimArray()

static void implCopyDimArray ( SbxDimArray pNewArray,
SbxDimArray pOldArray,
sal_Int32  nMaxDimIndex,
sal_Int32  nActualDim,
sal_Int32 *  pActualIndices,
sal_Int32 *  pLowerBounds,
sal_Int32 *  pUpperBounds 
)
static

◆ implRestorePreservedArray()

static bool implRestorePreservedArray ( SbxDimArray pNewArray,
SbxArrayRef rrefRedimpArray,
bool *  pbWasError = nullptr 
)
static

◆ lcl_clearImpl()

static void lcl_clearImpl ( SbxVariableRef const &  refVar,
SbxDataType const &  eType 
)
static

Definition at line 2338 of file runtime.cxx.

References eType, and Fixed.

Referenced by SbiRuntime::DimImpl(), and lcl_eraseImpl().

◆ lcl_eraseImpl()

static void lcl_eraseImpl ( SbxVariableRef const &  refVar,
bool  bVBAEnabled 
)
static

◆ removeDimAsNewRecoverItem()

void removeDimAsNewRecoverItem ( SbxVariable pVar)

Definition at line 1790 of file runtime.cxx.

Referenced by SbxVariable::~SbxVariable().

◆ setBasicWatchMode()

void setBasicWatchMode ( bool  bOn)

Definition at line 485 of file runtime.cxx.

References bWatchMode.

Variable Documentation

◆ bWatchMode

bool bWatchMode = false
static

Definition at line 483 of file runtime.cxx.

Referenced by SbiInstance::Error(), SbiInstance::ErrorVB(), and setBasicWatchMode().

◆ pCollectionStr

constexpr OUStringLiteral pCollectionStr = u"Collection"
constexpr

Definition at line 1803 of file runtime.cxx.

Referenced by SbiRuntime::StepSET_Impl().