Lines Matching refs:refVar

337 inline void checkUnoStructCopy( SbxVariableRef& refVal, SbxVariableRef& refVar )  in checkUnoStructCopy()  argument
339 SbxDataType eVarType = refVar->GetType(); in checkUnoStructCopy()
348 if( refVar->ISA(SbProcedureProperty) ) in checkUnoStructCopy()
351 SbxObjectRef xVarObj = (SbxObject*)refVar->GetObject(); in checkUnoStructCopy()
364 refVar->PutObject( pNewUnoObj ); in checkUnoStructCopy()
376 SbxVariableRef refVar = PopVar(); in StepPUT() local
380 if( (SbxVariable*) refVar == (SbxVariable*) pMeth ) in StepPUT()
383 n = refVar->GetFlags(); in StepPUT()
384 refVar->SetFlag( SBX_WRITE ); in StepPUT()
394 if ( refVar->GetType() == SbxOBJECT ) in StepPUT()
396 SbxVariable* pDflt = getDefaultProp( refVar ); in StepPUT()
398 refVar = pDflt; in StepPUT()
408 *refVar = *refVal; in StepPUT()
410 if ( !bVBAEnabled || ( bVBAEnabled && refVar->GetType() != SbxEMPTY ) ) in StepPUT()
412 checkUnoStructCopy( refVal, refVar ); in StepPUT()
414 refVar->SetFlags( n ); in StepPUT()
465 void SbiRuntime::StepSET_Impl( SbxVariableRef& refVal, SbxVariableRef& refVar, bool bHandleDefaultP… in StepSET_Impl() argument
470 SbxDataType eVarType = refVar->GetType(); in StepSET_Impl()
471 if( !bHandleDefaultProp && eVarType != SbxOBJECT && !(eVarType & SbxARRAY) && refVar->IsFixed() ) in StepSET_Impl()
516 if( (SbxVariable*) refVar == (SbxVariable*) pMeth ) in StepSET_Impl()
519 n = refVar->GetFlags(); in StepSET_Impl()
520 refVar->SetFlag( SBX_WRITE ); in StepSET_Impl()
522 SbProcedureProperty* pProcProperty = PTR_CAST(SbProcedureProperty,(SbxVariable*)refVar); in StepSET_Impl()
532 if ( refVar->GetType() == SbxOBJECT ) in StepSET_Impl()
534 SbxVariable* pDflt = getDefaultProp( refVar ); in StepSET_Impl()
537 refVar = pDflt; in StepSET_Impl()
549 pObj = PTR_CAST(SbxObject,(SbxVariable*)refVar); in StepSET_Impl()
553 if ( !pObj && refVar->GetType() == SbxOBJECT ) in StepSET_Impl()
555 SbxBase* pObjVarObj = refVar->GetObject(); in StepSET_Impl()
568 sal_Bool bDimAsNew = bVBAEnabled && refVar->IsSet( SBX_DIM_AS_NEW ); in StepSET_Impl()
571 xPrevVarObj = refVar->GetObject(); in StepSET_Impl()
574 sal_Bool bWithEvents = refVar->IsSet( SBX_WITH_EVENTS ); in StepSET_Impl()
584 String aDeclareClassName = refVar->GetDeclareClassName(); in StepSET_Impl()
586 ::rtl::OUString aPrefix = refVar->GetName(); in StepSET_Impl()
587 SbxObjectRef xScopeObj = refVar->GetParent(); in StepSET_Impl()
594 *refVar = *refVal; in StepSET_Impl()
598 *refVar = *refVal; in StepSET_Impl()
603 if( !refVar->ISA(SbxObject) ) in StepSET_Impl()
611 DimAsNewRecoverHash::iterator it = GaDimAsNewRecoverHash.find( refVar ); in StepSET_Impl()
620 refVar->PutObject( pNewObj ); in StepSET_Impl()
627 refVar->PutObject( pNewCollection ); in StepSET_Impl()
648 GaDimAsNewRecoverHash[refVar] = in StepSET_Impl()
653 GaDimAsNewRecoverHash[refVar] = in StepSET_Impl()
668 if ( !bHandleDefaultProp || ( bHandleDefaultProp && ( refVar->GetType() != SbxEMPTY ) ) ) in StepSET_Impl()
670 checkUnoStructCopy( refVal, refVar ); in StepSET_Impl()
672 refVar->SetFlags( n ); in StepSET_Impl()
679 SbxVariableRef refVar = PopVar(); in StepSET() local
680 StepSET_Impl( refVal, refVar, bVBAEnabled ); // this is really assigment in StepSET()
686 SbxVariableRef refVar = PopVar(); in StepVBASET() local
688 StepSET_Impl( refVal, refVar, false ); // set obj = something in StepVBASET()
696 SbxVariableRef refVar = PopVar(); in StepLSET() local
697 if( refVar->GetType() != SbxSTRING in StepLSET()
703 sal_uInt16 n = refVar->GetFlags(); in StepLSET()
704 if( (SbxVariable*) refVar == (SbxVariable*) pMeth ) in StepLSET()
705 refVar->SetFlag( SBX_WRITE ); in StepLSET()
706 String aRefVarString = refVar->GetString(); in StepLSET()
723 refVar->PutString( aNewStr ); in StepLSET()
724 refVar->SetFlags( n ); in StepLSET()
732 SbxVariableRef refVar = PopVar(); in StepRSET() local
733 if( refVar->GetType() != SbxSTRING in StepRSET()
739 sal_uInt16 n = refVar->GetFlags(); in StepRSET()
740 if( (SbxVariable*) refVar == (SbxVariable*) pMeth ) in StepRSET()
741 refVar->SetFlag( SBX_WRITE ); in StepRSET()
742 String aRefVarString = refVar->GetString(); in StepRSET()
754 refVar->PutString(aRefVarString); in StepRSET()
756 refVar->SetFlags( n ); in StepRSET()
765 SbxVariableRef refVar = PopVar(); in StepPUTC() local
766 refVar->SetFlag( SBX_WRITE ); in StepPUTC()
767 *refVar = *refVal; in StepPUTC()
768 refVar->ResetFlag( SBX_WRITE ); in StepPUTC()
769 refVar->SetFlag( SBX_CONST ); in StepPUTC()
777 SbxVariableRef refVar = PopVar(); in StepDIM() local
778 DimImpl( refVar ); in StepDIM()
782 void SbiRuntime::DimImpl( SbxVariableRef refVar ) in DimImpl() argument
784 SbxArray* pDims = refVar->GetParameters(); in DimImpl()
791 SbxDataType eType = refVar->IsFixed() ? refVar->GetType() : SbxVARIANT; in DimImpl()
796 refVar->ResetFlag( SBX_VAR_TO_DIM ); in DimImpl()
815 sal_uInt16 nSavFlags = refVar->GetFlags(); in DimImpl()
816 refVar->ResetFlag( SBX_FIXED ); in DimImpl()
817 refVar->PutObject( pArray ); in DimImpl()
818 refVar->SetFlags( nSavFlags ); in DimImpl()
819 refVar->SetParameters( NULL ); in DimImpl()
863 SbxVariableRef refVar = PopVar(); in StepREDIMP() local
864 DimImpl( refVar ); in StepREDIMP()
869 SbxBase* pElemObj = refVar->GetObject(); in StepREDIMP()
950 SbxVariableRef refVar = PopVar(); in StepREDIMP_ERASE() local
951 SbxDataType eType = refVar->GetType(); in StepREDIMP_ERASE()
954 SbxBase* pElemObj = refVar->GetObject(); in StepREDIMP_ERASE()
962 sal_uInt16 nSavFlags = refVar->GetFlags(); in StepREDIMP_ERASE()
963 refVar->ResetFlag( SBX_FIXED ); in StepREDIMP_ERASE()
964 refVar->SetType( SbxDataType(eType & 0x0FFF) ); in StepREDIMP_ERASE()
965 refVar->SetFlags( nSavFlags ); in StepREDIMP_ERASE()
966 refVar->Clear(); in StepREDIMP_ERASE()
969 if( refVar->IsFixed() ) in StepREDIMP_ERASE()
970 refVar->Clear(); in StepREDIMP_ERASE()
972 refVar->SetType( SbxEMPTY ); in StepREDIMP_ERASE()
975 void lcl_clearImpl( SbxVariableRef& refVar, SbxDataType& eType ) in lcl_clearImpl() argument
977 sal_uInt16 nSavFlags = refVar->GetFlags(); in lcl_clearImpl()
978 refVar->ResetFlag( SBX_FIXED ); in lcl_clearImpl()
979 refVar->SetType( SbxDataType(eType & 0x0FFF) ); in lcl_clearImpl()
980 refVar->SetFlags( nSavFlags ); in lcl_clearImpl()
981 refVar->Clear(); in lcl_clearImpl()
984 void lcl_eraseImpl( SbxVariableRef& refVar, bool bVBAEnabled ) in lcl_eraseImpl() argument
986 SbxDataType eType = refVar->GetType(); in lcl_eraseImpl()
991 SbxBase* pElemObj = refVar->GetObject(); in lcl_eraseImpl()
1019 lcl_clearImpl( refVar, eType ); in lcl_eraseImpl()
1022 if( refVar->IsFixed() ) in lcl_eraseImpl()
1023 refVar->Clear(); in lcl_eraseImpl()
1025 refVar->SetType( SbxEMPTY ); in lcl_eraseImpl()
1033 SbxVariableRef refVar = PopVar(); in StepERASE() local
1034 lcl_eraseImpl( refVar, bVBAEnabled ); in StepERASE()
1039 SbxVariableRef refVar = PopVar(); in StepERASE_CLEAR() local
1040 lcl_eraseImpl( refVar, bVBAEnabled ); in StepERASE_CLEAR()
1041 SbxDataType eType = refVar->GetType(); in StepERASE_CLEAR()
1042 lcl_clearImpl( refVar, eType ); in StepERASE_CLEAR()
1049 SbxVariableRef refVar = PopVar(); in StepARRAYACCESS() local
1050 refVar->SetParameters( refArgv ); in StepARRAYACCESS()
1052 PushVar( CheckArray( refVar ) ); in StepARRAYACCESS()
1245 pForStk->refVar->Compute( SbxPLUS, *pForStk->refInc ); in StepNEXT()