Lines Matching refs:pElem

67 	SbxVariable* pElem = NULL;  in FindElement()  local
71 pElem = new SbxVariable; in FindElement()
99 pElem = pMeth->GetStatics()->Find( aName, SbxCLASS_DONTCARE ); in FindElement()
102 if ( !pElem ) in FindElement()
103 pElem = refLocals->Find( aName, SbxCLASS_DONTCARE ); in FindElement()
105 if( !pElem ) in FindElement()
110 pElem = pObj->Find( aName, SbxCLASS_DONTCARE ); in FindElement()
113 if( bLocal && pElem ) // Local as flag for global search in FindElement()
115 if( pElem->IsSet( SBX_PRIVATE ) ) in FindElement()
118 if( pInst_ && pInst_->IsCompatibility() && pObj != pElem->GetParent() ) in FindElement()
119 pElem = NULL; // Found but in wrong module! in FindElement()
127 if( bLocal && !pElem ) in FindElement()
136 pElem = rBasic.VBAFind( aName, SbxCLASS_DONTCARE ); in FindElement()
137 if ( pElem ) in FindElement()
140 pElem = getVBAConstant( aName ); in FindElement()
143 if( !pElem ) in FindElement()
150 pElem = new SbxVariable( t ); in FindElement()
153 pElem->SbxVariable::Put( aRes ); in FindElement()
161 if( pElem ) in FindElement()
164 pElem->SetFlag( SBX_DONTSTORE ); in FindElement()
165 pElem->SetFlag( SBX_NO_MODIFY); in FindElement()
170 pElem->SetName( aName ); in FindElement()
171 refLocals->Put( pElem, refLocals->Count() ); in FindElement()
175 if( !pElem ) in FindElement()
198 pElem = xDummyVar; in FindElement()
209 pElem = StepSTATIC_Impl( aName, t ); in FindElement()
210 if ( !pElem ) in FindElement()
213 pElem = new SbxVariable( t ); in FindElement()
215 pElem->SetFlag( SBX_FIXED ); in FindElement()
216 pElem->SetName( aName ); in FindElement()
217 refLocals->Put( pElem, refLocals->Count() ); in FindElement()
224 SetupArgs( pElem, nOp1 ); in FindElement()
228 if( pElem->IsA( TYPE(SbxMethod) ) ) in FindElement()
231 SbxDataType t2 = pElem->GetType(); in FindElement()
233 if( !( pElem->GetFlags() & SBX_FIXED ) ) in FindElement()
237 pElem->SetType( t ), bSet = sal_True; in FindElement()
240 SbxVariableRef refTemp = pElem; in FindElement()
244 sal_uInt16 nSavFlags = pElem->GetFlags(); in FindElement()
245 pElem->SetFlag( SBX_READWRITE | SBX_NO_BROADCAST ); in FindElement()
246 pElem->SbxValue::Clear(); in FindElement()
247 pElem->SetFlags( nSavFlags ); in FindElement()
254 SbxVariable* pNew = new SbxMethod( *((SbxMethod*)pElem) ); // das ist der Call! in FindElement()
257 pElem->SetParameters(0); // sonst bleibt Ref auf sich selbst in FindElement()
262 pElem->SetType( t2 ); in FindElement()
263 pElem = pNew; in FindElement()
269 else if( bVBAEnabled && pElem->ISA(SbUnoProperty) && pElem->GetParameters() ) in FindElement()
272 SbxVariableRef refTemp = pElem; in FindElement()
275 SbxVariable* pNew = new SbxVariable( *((SbxVariable*)pElem) ); // das ist der Call! in FindElement()
276 pElem->SetParameters( NULL ); // sonst bleibt Ref auf sich selbst in FindElement()
277 pElem = pNew; in FindElement()
280 return CheckArray( pElem ); in FindElement()
289 SbxVariable* pElem = NULL; in FindElementExtern() local
295 pElem = refLocals->Find( rName, SbxCLASS_DONTCARE ); in FindElementExtern()
298 if ( !pElem && pMeth ) in FindElementExtern()
304 pElem = pMod->Find(aMethName, SbxCLASS_DONTCARE); in FindElementExtern()
308 if( !pElem && pMeth ) in FindElementExtern()
323 pElem = new SbxVariable( SbxSTRING ); in FindElementExtern()
324pElem->PutString( String( RTL_CONSTASCII_USTRINGPARAM("<missing parameter>" ) ) ); in FindElementExtern()
328 pElem = refParams->Get( j ); in FindElementExtern()
338 if( !pElem ) in FindElementExtern()
343 pElem = pMod->Find( rName, SbxCLASS_DONTCARE ); in FindElementExtern()
346 return pElem; in FindElementExtern()
484 SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem ) in CheckArray() argument
488 if( pElem->GetType() & SbxARRAY ) in CheckArray()
490 SbxBase* pElemObj = pElem->GetObject(); in CheckArray()
492 pPar = pElem->GetParameters(); in CheckArray()
498 pElem = pDimArray->Get( pPar ); in CheckArray()
508 pElem = new SbxVariable; in CheckArray()
511 pElem = pArray->Get( pPar->Get( 1 )->GetInteger() ); in CheckArray()
520 …else if( pElem->GetType() == SbxOBJECT && (!pElem->ISA(SbxMethod) || (bVBAEnabled && !pElem->IsBro… in CheckArray()
522 pPar = pElem->GetParameters(); in CheckArray()
526 SbxBaseRef pObj = (SbxBase*)pElem->GetObject(); in CheckArray()
547 return pElem; in CheckArray()
568 pElem = new SbxVariable( SbxVARIANT ); in CheckArray()
576 pElem->PutObject( xWrapper ); in CheckArray()
580 pElem->PutObject( NULL ); in CheckArray()
603 pElem = pNew; in CheckArray()
615 pElem = new SbxVariable( SbxVARIANT ); in CheckArray()
616 pPar->Put( pElem, 0 ); in CheckArray()
622 SbxArray* pParam = pElem->GetParameters(); in CheckArray()
623 if( pParam != NULL && !pElem->IsSet( SBX_VAR_TO_DIM ) ) in CheckArray()
629 return pElem; in CheckArray()