LibreOffice Module basic (master) 1
|
#include <sbxcore.hxx>
Public Member Functions | |
void | SetFlags (SbxFlagBits n) |
SbxFlagBits | GetFlags () const |
void | SetFlag (SbxFlagBits n) |
void | ResetFlag (SbxFlagBits n) |
bool | IsSet (SbxFlagBits n) const |
bool | IsReset (SbxFlagBits n) const |
bool | CanRead () const |
bool | CanWrite () const |
bool | IsModified () const |
bool | IsHidden () const |
bool | IsVisible () const |
virtual bool | IsFixed () const |
virtual void | SetModified (bool) |
virtual SbxDataType | GetType () const |
virtual void | Clear ()=0 |
std::pair< bool, sal_uInt32 > | Store (SvStream &) |
virtual bool | LoadCompleted () |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Static Public Member Functions | |
static SbxBaseRef | Load (SvStream &) |
static ErrCode const & | GetError () |
static OUString const & | GetErrorMsg () |
static void | SetError (ErrCode) |
static void | SetError (ErrCode, const OUString &) |
static bool | IsError () |
static void | ResetError () |
static void | AddFactory (SbxFactory *) |
static void | RemoveFactory (SbxFactory const *) |
static SbxBaseRef | Create (sal_uInt16, sal_uInt32) |
static SbxObjectRef | CreateObject (const OUString &) |
Protected Member Functions | |
SbxBase () | |
SbxBase (const SbxBase &) | |
SbxBase & | operator= (const SbxBase &) |
virtual | ~SbxBase () override |
virtual sal_uInt16 | GetVersion () const =0 |
virtual sal_uInt16 | GetSbxId () const =0 |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Protected Attributes | |
SbxFlagBits | nFlags |
Private Member Functions | |
virtual bool | LoadData (SvStream &, sal_uInt16)=0 |
virtual std::pair< bool, sal_uInt32 > | StoreData (SvStream &) const =0 |
Definition at line 48 of file sbxcore.hxx.
|
protected |
Definition at line 55 of file sbxbase.cxx.
|
protected |
Definition at line 60 of file sbxbase.cxx.
References nFlags.
|
overrideprotectedvirtual |
Definition at line 66 of file sbxbase.cxx.
|
static |
Definition at line 134 of file sbxbase.cxx.
References GetSbxData_Impl(), and SbxAppData::m_Factories.
Referenced by SbiStdObject::SbiStdObject(), and StarBASIC::StarBASIC().
|
inline |
Definition at line 120 of file sbxcore.hxx.
Referenced by SbMethod::Broadcast(), SbxVariable::Broadcast(), SbxValue::Compare(), SbxValue::Compute(), SbxValue::Get(), SbxValue::ImpIsNumeric(), SbxValue::SbxValue(), and SbxVariable::SbxVariable().
|
inline |
Definition at line 123 of file sbxcore.hxx.
References IsSet(), and Write.
Referenced by SbMethod::Broadcast(), SbxVariable::Broadcast(), SbxValue::Compute(), SbxValue::Convert(), SbxValue::operator=(), SbxValue::Put(), SbxValue::Scan(), and SbxValue::SetType().
|
pure virtual |
Implemented in BasicCollection, SbModule, StarBASIC, SbxArray, SbxDimArray, SbxCollection, SbxMethod, SbxObject, and SbxValue.
References Create(), GetError(), Load, SetError(), and Store().
|
static |
Definition at line 150 of file sbxbase.cxx.
References GetSbxData_Impl(), SbxAppData::m_Factories, SAL_WARN_IF, SBXCR_SBX, SbxEMPTY, SBXID_ARRAY, SBXID_COLLECTION, SBXID_DIMARRAY, SBXID_FIXCOLLECTION, SBXID_METHOD, SBXID_OBJECT, SBXID_PROPERTY, SBXID_VALUE, and SBXID_VARIABLE.
Referenced by Load().
|
static |
Definition at line 185 of file sbxbase.cxx.
References GetSbxData_Impl(), SbxAppData::m_Factories, and SAL_WARN_IF.
Referenced by SbxObject::Make(), SbiRuntime::StepCREATE(), and SbiRuntime::StepDCREATE_IMPL().
|
static |
Definition at line 96 of file sbxbase.cxx.
References SbxAppData::eErrCode, and GetSbxData_Impl().
Referenced by StarBASIC::Call(), SbMethod::Call(), checkUnoStructCopy(), SbxValue::Compare(), SbxValue::Compute(), BasicManager::ExecuteMacro(), SbxValue::Get(), SbiParser::Parse(), SbxValue::Put(), SbModule::Run(), SbiRuntime::Step(), SbiRuntime::StepINPUT(), and StarBASIC::~StarBASIC().
|
static |
Definition at line 101 of file sbxbase.cxx.
References SbxAppData::aErrorMsg, and GetSbxData_Impl().
Referenced by StarBASIC::Call().
|
inline |
Definition at line 105 of file sbxcore.hxx.
References nFlags.
Referenced by SbMethod::Broadcast(), SbxVariable::Broadcast(), SbiParser::DefType(), Element(), SbxObject::Find(), StarBASIC::Find(), SbiRuntime::FindElement(), SbiImage::Load(), SbxValue::PutStringExt(), SbModule::Run(), SbiImage::Save(), SbiRuntime::SetIsMissing(), Store(), SbxVariable::StoreData(), and unoToSbxValue().
|
protectedpure virtual |
References IsHidden(), and SetFlags().
Referenced by Store().
|
virtual |
Reimplemented in SbxArray, SbxObject, SbxValue, and SbxVariable.
Definition at line 76 of file sbxbase.cxx.
References SbxEMPTY.
Referenced by SbxVariable::GetType(), SbxValue::IsBool(), SbxValue::IsCurrency(), SbxValue::IsDouble(), SbxValue::IsEmpty(), SbxValue::IsErr(), SbxValue::IsInteger(), SbxValue::IsLong(), SbxValue::IsNull(), SbxValue::IsObject(), SbxValue::IsString(), and SbxValue::operator=().
|
protectedpure virtual |
Referenced by Store().
|
static |
Definition at line 123 of file sbxbase.cxx.
References SbxAppData::eErrCode, ERRCODE_NONE, and GetSbxData_Impl().
Referenced by SbxValue::Compute(), SbxValue::Get(), SbxValue::Put(), and SbiRuntime::StepTESTFOR().
|
virtual |
Reimplemented in SbxValue.
Definition at line 81 of file sbxbase.cxx.
|
inline |
Definition at line 129 of file sbxcore.hxx.
|
inline |
Definition at line 126 of file sbxcore.hxx.
References IsSet(), and Modified.
Referenced by StarBASIC::Insert().
|
inline |
Definition at line 117 of file sbxcore.hxx.
References n, nFlags, and NONE.
Referenced by IsVisible().
|
inline |
Definition at line 114 of file sbxcore.hxx.
References n, nFlags, and NONE.
Referenced by SbMethod::Broadcast(), SbxVariable::Broadcast(), CanRead(), CanWrite(), SbiRuntime::CheckArray(), SbxObject::Find(), SbModule::Find(), SbiRuntime::FindElement(), StarBASIC::Insert(), IsFixed(), IsHidden(), IsModified(), StarBASIC::LoadData(), SetModified(), SbxVariable::SetModified(), SbiRuntime::StepGLOBAL(), SbiRuntime::StepPUBLIC_Impl(), and SbxVariable::~SbxVariable().
|
inline |
Definition at line 132 of file sbxcore.hxx.
References Invisible, and IsReset().
Referenced by StarBASIC::Find().
|
static |
Definition at line 212 of file sbxbase.cxx.
References Create(), DBG_ASSERT, nFlags, p, SvStream::ReadUInt16(), SvStream::ReadUInt32(), rStrm, SvStream::Seek(), SvStream::SetError(), SVSTREAM_FILEFORMAT_ERROR, and SvStream::Tell().
Referenced by implCreateDialog(), BasicManager::ImplLoadBasic(), LoadArray(), StarBASIC::LoadData(), and SbxValue::LoadData().
|
virtual |
Reimplemented in SbModule.
Definition at line 277 of file sbxbase.cxx.
|
privatepure virtual |
Implemented in SbJScriptModule, SbMethod, SbModule, StarBASIC, SbxArray, SbxDimArray, SbxCollection, SbxStdCollection, SbxObject, SbxValue, and SbxVariable.
Definition at line 70 of file sbxbase.cxx.
References nFlags.
|
static |
Definition at line 139 of file sbxbase.cxx.
References GetSbxData_Impl(), IsSbxData_Impl(), and SbxAppData::m_Factories.
Referenced by SbiStdObject::~SbiStdObject(), and StarBASIC::~StarBASIC().
|
static |
Definition at line 128 of file sbxbase.cxx.
References SbxAppData::aErrorMsg, SbxAppData::eErrCode, ERRCODE_NONE, and GetSbxData_Impl().
Referenced by StarBASIC::Call(), SbMethod::Call(), checkUnoStructCopy(), SbxValue::Compare(), SbModule::Compile(), SbxValue::Compute(), SbxValue::Get(), SbModule::GetCodeCompleteDataFromParse(), SbiParser::Parse(), SbxValue::Put(), SbxValue::PutStringExt(), SbModule::Run(), SbiRuntime::Step(), SbiRuntime::StepINPUT(), and StarBASIC::~StarBASIC().
|
inline |
Definition at line 111 of file sbxcore.hxx.
References nFlags.
Referenced by SbxValue::Convert(), SbiParser::DefEnum(), SbiParser::DefType(), SbxObject::Find(), StarBASIC::Find(), SbiRuntime::FindElement(), SbxObject::FindVar(), SbModule::GetMethod(), BasicCollection::Initialize(), SbxCollection::Initialize(), SbiImage::Load(), SbxValue::LoadData(), SbModule::Run(), SetModified(), SbxValue::SetType(), SbiRuntime::StepARGTYP(), SbiRuntime::StepArith(), SbiRuntime::StepFIND_CM(), SbiRuntime::StepGLOBAL(), SbiRuntime::StepPARAM(), SbiRuntime::StepPUBLIC_Impl(), SbxVariable::StoreData(), unoToSbxValue(), and SbxObject::~SbxObject().
|
static |
Definition at line 116 of file sbxbase.cxx.
References SbxAppData::eErrCode, ERRCODE_NONE, and GetSbxData_Impl().
Referenced by Assign(), SbxObject::Call(), checkUnoStructCopy(), SbxCollection::CollAdd(), SbxStdCollection::CollAdd(), BasicCollection::CollAdd(), SbxCollection::CollItem(), BasicCollection::CollItem(), SbxCollection::CollRemove(), SbxStdCollection::CollRemove(), BasicCollection::CollRemove(), SbxValue::Compare(), SbxValue::Compute(), SbxValue::Convert(), DoubleTo(), Element(), SbxObject::Execute(), SbxObject::FindQualified(), SbxValue::Get(), ImpGetBool(), ImpGetByte(), ImpGetChar(), ImpGetCurrency(), ImpGetDate(), ImpGetDecimal(), ImpGetDouble(), ImpGetInt64(), ImpGetInteger(), ImpGetLong(), ImpGetSingle(), ImpGetString(), ImpGetUInt64(), ImpGetULong(), ImpGetUShort(), SbxValue::ImpIsNumeric(), ImpPutBool(), ImpPutByte(), ImpPutChar(), ImpPutCurrency(), ImpPutDate(), ImpPutDecimal(), ImpPutDouble(), ImpPutInt64(), ImpPutInteger(), ImpPutLong(), ImpPutSingle(), ImpPutString(), ImpPutUInt64(), ImpPutULong(), ImpPutUShort(), ImpSalUInt64ToDouble(), ImpStringToCurrency(), SbxStdCollection::Insert(), SbModule::Notify(), SbxStdCollection::operator=(), SbxValue::operator=(), SbxValue::Put(), QualifiedName(), SbxValue::SbxValue(), SbxValue::Scan(), SbxValue::SetType(), SbiRuntime::StepCompare(), SbiRuntime::StepTESTFOR(), Symbol(), SbxValue::TheRealValue(), and StarBASIC::~StarBASIC().
|
static |
Definition at line 106 of file sbxbase.cxx.
References SbxAppData::aErrorMsg, SbxAppData::eErrCode, ERRCODE_NONE, and GetSbxData_Impl().
|
inline |
Definition at line 108 of file sbxcore.hxx.
Referenced by BasicManager::BasicManager(), SbMethod::Broadcast(), SbxVariable::Broadcast(), BasicManager::CreateLib(), BasicManager::CreateLibForLibContainer(), SbiParser::DefEnum(), Element(), SbModule::Find(), StarBASIC::Find(), SbiRuntime::FindElement(), SbModule::GetMethod(), SbModule::GetProperty(), BasicManager::ImpCreateStdLib(), basic::ImplRepository::impl_createManagerForModel(), SbiRuntime::implHandleSbxFlags(), BasicCollection::Initialize(), SbxCollection::Initialize(), SbMethod::LoadData(), SbModule::LoadData(), StarBASIC::LoadData(), SbxValue::PutStringExt(), SbModule::Run(), SbiCodeGen::Save(), SbMethod::SbMethod(), SbModule::SbModule(), SbxArray::SbxArray(), SbxValue::SbxValue(), SetModified(), SbiRuntime::SetParameters(), StarBASIC::StarBASIC(), SbiRuntime::StepARGTYP(), SbiRuntime::StepBYVAL(), SbiRuntime::StepFIND_CM(), SbiRuntime::StepGLOBAL(), SbiRuntime::StepPUBLIC_Impl(), SbxVariable::StoreData(), StringToByteArray(), SbiRuntime::TOSMakeTemp(), and SbxValue::~SbxValue().
|
inline |
Definition at line 102 of file sbxcore.hxx.
Referenced by SbMethod::Broadcast(), SbxVariable::Broadcast(), SbiParser::DefType(), Element(), SbxObject::Find(), SbiStdObject::Find(), SbiRuntime::FindElement(), SbModule::GetIfaceMapperMethod(), SbModule::GetMethod(), SbiImage::Load(), SbxValue::PutStringExt(), SbxVariable::StoreData(), and unoToSbxValue().
|
virtual |
Reimplemented in SbiStdObject, StarBASIC, and SbxVariable.
Definition at line 86 of file sbxbase.cxx.
References IsSet(), Modified, NoModify, ResetFlag(), and SetFlag().
Referenced by SbxValue::Convert(), SbxValue::PutEmpty(), SbxValue::PutNull(), StarBASIC::SetModified(), and SbxVariable::SetModified().
std::pair< bool, sal_uInt32 > SbxBase::Store | ( | SvStream & | rStrm | ) |
Definition at line 252 of file sbxbase.cxx.
References B_IMG_VERSION_12, DontStore, ERRCODE_NONE, SvStream::GetError(), GetFlags(), GetSbxId(), GetVersion(), nFlags, NONE, nVersion, rStrm, SBXCR_SBX, SvStream::Seek(), StoreData(), SvStream::Tell(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
Referenced by implGetDialogData(), and SbxValue::StoreData().
|
privatepure virtual |
Implemented in SbJScriptModule, SbMethod, SbModule, StarBASIC, SbxArray, SbxDimArray, SbxStdCollection, SbxObject, SbxValue, and SbxVariable.
Referenced by Store().
|
protected |
Definition at line 53 of file sbxcore.hxx.
Referenced by GetFlags(), IsReset(), IsSet(), Load(), operator=(), ResetFlag(), SbxBase(), SetFlag(), SetFlags(), and Store().