Lines Matching refs:pVar

150 		SbxVariable* pVar = p->GetVar();  in SFX_NOTIFY()  local
153 XubString aVarName( pVar->GetName() ); in SFX_NOTIFY()
159 pVar->PutString( GetName() ); in SFX_NOTIFY()
161 SetName( pVar->GetString() ); in SFX_NOTIFY()
169 pVar->PutObject( p_ ); in SFX_NOTIFY()
345 SbxArray* SbxObject::FindVar( SbxVariable* pVar, sal_uInt16& nArrayIdx ) in FindVar() argument
348 if( pVar ) switch( pVar->GetClass() ) in FindVar()
362 SbxVariable* pOld = pArray->Find( pVar->GetName(), pVar->GetClass() ); in FindVar()
417 SbxVariable* pVar = NULL; in Make() local
422 pVar = new SbxProperty( rName, dt ); in Make()
425 pVar = new SbxMethod( rName, dt, bIsRuntimeFunction ); in Make()
428 pVar = CreateObject( rName ); in Make()
432 pVar->SetParent( this ); in Make()
433 pArray->Put( pVar, pArray->Count() ); in Make()
436 StartListening( pVar->GetBroadcaster(), sal_True ); in Make()
438 return pVar; in Make()
466 SbxObject* pVar = CreateObject( rClass ); in MakeObject() local
467 if( pVar ) in MakeObject()
469 pVar->SetName( rName ); in MakeObject()
470 pVar->SetParent( this ); in MakeObject()
471 pObjs->Put( pVar, pObjs->Count() ); in MakeObject()
474 StartListening( pVar->GetBroadcaster(), sal_True ); in MakeObject()
477 return pVar; in MakeObject()
480 void SbxObject::Insert( SbxVariable* pVar ) in Insert() argument
483 SbxArray* pArray = FindVar( pVar, nIdx ); in Insert()
497 if( pOld == pVar ) in Insert()
515 if( pVar->GetClass() == SbxCLASS_PROPERTY ) in Insert()
518 pDfltProp = (SbxProperty*) pVar; in Insert()
522 StartListening( pVar->GetBroadcaster(), sal_True ); in Insert()
523 pArray->Put( pVar, nIdx ); in Insert()
524 if( pVar->GetParent() != this ) in Insert()
525 pVar->SetParent( this ); in Insert()
531 XubString aVarName( pVar->GetName() ); in Insert()
532 if ( !aVarName.Len() && pVar->ISA(SbxObject) ) in Insert()
533 aVarName = PTR_CAST(SbxObject,pVar)->GetClassName(); in Insert()
537 ( pVar->GetClass() >= SbxCLASS_DONTCARE && in Insert()
538 pVar->GetClass() <= SbxCLASS_OBJECT ) in Insert()
539 ? pCls[ pVar->GetClass()-1 ] : "Unknown class", aNameStr1.GetBuffer(), aNameStr1.GetBuffer() ); in Insert()
546 void SbxObject::QuickInsert( SbxVariable* pVar ) in QuickInsert() argument
549 if( pVar ) in QuickInsert()
551 switch( pVar->GetClass() ) in QuickInsert()
563 StartListening( pVar->GetBroadcaster(), sal_True ); in QuickInsert()
564 pArray->Put( pVar, pArray->Count() ); in QuickInsert()
565 if( pVar->GetParent() != this ) in QuickInsert()
566 pVar->SetParent( this ); in QuickInsert()
571 XubString aVarName( pVar->GetName() ); in QuickInsert()
572 if ( !aVarName.Len() && pVar->ISA(SbxObject) ) in QuickInsert()
573 aVarName = PTR_CAST(SbxObject,pVar)->GetClassName(); in QuickInsert()
577 ( pVar->GetClass() >= SbxCLASS_DONTCARE && in QuickInsert()
578 pVar->GetClass() <= SbxCLASS_OBJECT ) in QuickInsert()
579 ? pCls[ pVar->GetClass()-1 ] : "Unknown class", aNameStr1.GetBuffer(), aNameStr1.GetBuffer() ); in QuickInsert()
585 void SbxObject::VCPtrInsert( SbxVariable* pVar ) in VCPtrInsert() argument
588 if( pVar ) in VCPtrInsert()
590 switch( pVar->GetClass() ) in VCPtrInsert()
602 StartListening( pVar->GetBroadcaster(), sal_True ); in VCPtrInsert()
603 pArray->Put( pVar, pArray->Count() ); in VCPtrInsert()
604 if( pVar->GetParent() != this ) in VCPtrInsert()
605 pVar->SetParent( this ); in VCPtrInsert()
616 void SbxObject::Remove( SbxVariable* pVar ) in Remove() argument
619 SbxArray* pArray = FindVar( pVar, nIdx ); in Remove()
623 XubString aVarName( pVar->GetName() ); in Remove()
624 if ( !aVarName.Len() && pVar->ISA(SbxObject) ) in Remove()
625 aVarName = PTR_CAST(SbxObject,pVar)->GetClassName(); in Remove()
643 void SbxObject::VCPtrRemove( SbxVariable* pVar ) in VCPtrRemove() argument
647 SbxArray* pArray = VCPtrFindVar( pVar, nIdx ); in VCPtrRemove()
664 SbxArray* SbxObject::VCPtrFindVar( SbxVariable* pVar, sal_uInt16& nArrayIdx ) in VCPtrFindVar() argument
667 if( pVar ) switch( pVar->GetClass() ) in VCPtrFindVar()
682 if( (SbxVariable*) rRef == pVar ) in VCPtrFindVar()
693 void SbxObject::SetPos( SbxVariable* pVar, sal_uInt16 nPos ) in SetPos() argument
696 SbxArray* pArray = FindVar( pVar, nIdx ); in SetPos()
720 SbxVariable* pVar = r; in LoadArray() local
721 if( pVar ) in LoadArray()
723 pVar->SetParent( pThis ); in LoadArray()
724 pThis->StartListening( pVar->GetBroadcaster(), sal_True ); in LoadArray()
943 SbxVariable* pVar = r; in Dump() local
944 if( pVar ) in Dump()
948 aLine += pVar->GetName( SbxNAME_SHORT_TYPES ); in Dump()
950 if( CollectAttrs( pVar, aAttrs2 ) ) in Dump()
952 if( !pVar->IsA( TYPE(SbxMethod) ) ) in Dump()
957 if ( pVar->GetValues_Impl().eType == SbxOBJECT && in Dump()
958 pVar->GetValues_Impl().pObj && in Dump()
959 pVar->GetValues_Impl().pObj != this && in Dump()
960 pVar->GetValues_Impl().pObj != GetParent() ) in Dump()
963 ((SbxObject*) pVar->GetValues_Impl().pObj)->Dump( rStrm, bFill ); in Dump()
976 SbxVariable* pVar = r; in Dump() local
977 if( pVar ) in Dump()
981 aLine += pVar->GetName( SbxNAME_SHORT_TYPES ); in Dump()
983 if( CollectAttrs( pVar, aAttrs3 ) ) in Dump()
985 if( !pVar->IsA( TYPE(SbxProperty) ) ) in Dump()
990 if ( pVar->GetValues_Impl().eType == SbxOBJECT && in Dump()
991 pVar->GetValues_Impl().pObj && in Dump()
992 pVar->GetValues_Impl().pObj != this && in Dump()
993 pVar->GetValues_Impl().pObj != GetParent() ) in Dump()
996 ((SbxObject*) pVar->GetValues_Impl().pObj)->Dump( rStrm, bFill ); in Dump()
1010 SbxVariable* pVar = r; in Dump() local
1011 if ( pVar ) in Dump()
1014 if ( pVar->ISA(SbxObject) ) in Dump()
1015 ((SbxObject*) pVar)->Dump( rStrm, bFill ); in Dump()
1016 else if ( pVar->ISA(SbxVariable) ) in Dump()
1017 ((SbxVariable*) pVar)->Dump( rStrm, bFill ); in Dump()
1128 SbxVariable *pVar = rVars.GetObject(n); in GarbageCollection()
1129 SbxObject *pObj = PTR_CAST(SbxObject, pVar); in GarbageCollection()
1130 sal_uInt16 nFlags = pVar->GetFlags(); in GarbageCollection()
1131 pVar->SetFlag(SBX_NO_BROADCAST); in GarbageCollection()
1134 else if ( !pVar->GetParent() || !pVar->GetParent()->ISA(SbxObject) ) in GarbageCollection()
1135 pVar->Dump(aStream); in GarbageCollection()
1136 pVar->SetFlags(nFlags); in GarbageCollection()