Lines Matching refs:pLink

95 void LinkManager::Remove( SvBaseLink *pLink )  in Remove()  argument
102 if( pLink == *(*ppRef) ) in Remove()
145 sal_Bool LinkManager::Insert( SvBaseLink* pLink ) in Insert() argument
154 if( pLink == *pTmp ) in Insert()
158 SvBaseLinkRef* pTmp = new SvBaseLinkRef( pLink ); in Insert()
159 pLink->SetLinkManager( this ); in Insert()
168 SetUserAllowsLinkUpdate(pLink, GetUserAllowsLinkUpdate(parent)); in Insert()
175 sal_Bool LinkManager::InsertLink( SvBaseLink * pLink, in InsertLink() argument
181 pLink->SetObjType( nObjType ); in InsertLink()
183 pLink->SetName( *pName ); in InsertLink()
184 pLink->SetUpdateMode( nUpdateMode ); in InsertLink()
185 return Insert( pLink ); in InsertLink()
189 sal_Bool LinkManager::InsertDDELink( SvBaseLink * pLink, in InsertDDELink() argument
194 if( !( OBJECT_CLIENT_SO & pLink->GetObjType() ) ) in InsertDDELink()
200 pLink->SetObjType( OBJECT_CLIENT_DDE ); in InsertDDELink()
201 pLink->SetName( sCmd ); in InsertDDELink()
202 return Insert( pLink ); in InsertDDELink()
206 sal_Bool LinkManager::InsertDDELink( SvBaseLink * pLink ) in InsertDDELink() argument
208 DBG_ASSERT( OBJECT_CLIENT_SO & pLink->GetObjType(), "no OBJECT_CLIENT_SO" ); in InsertDDELink()
209 if( !( OBJECT_CLIENT_SO & pLink->GetObjType() ) ) in InsertDDELink()
212 if( pLink->GetObjType() == OBJECT_CLIENT_SO ) in InsertDDELink()
213 pLink->SetObjType( OBJECT_CLIENT_DDE ); in InsertDDELink()
215 return Insert( pLink ); in InsertDDELink()
220 sal_Bool LinkManager::GetDisplayNames( const SvBaseLink * pLink, in GetDisplayNames() argument
227 const String sLNm( pLink->GetLinkSourceName() ); in GetDisplayNames()
230 switch( pLink->GetObjType() ) in GetDisplayNames()
249 sal_uInt16 nObjType = pLink->GetObjType(); in GetDisplayNames()
300 void LinkManager::SetUserAllowsLinkUpdate(SvBaseLink *pLink, sal_Bool allows) in SetUserAllowsLinkUpdate() argument
302 SfxObjectShell* pShell = pLink->GetLinkManager()->GetPersist(); in SetUserAllowsLinkUpdate()
327 SvBaseLink* pLink = *aLinkTbl[ n ]; in UpdateAllLinks() local
328 if( !pLink ) in UpdateAllLinks()
333 aTmpArr.Insert( pLink, aTmpArr.Count() ); in UpdateAllLinks()
338 SvBaseLink* pLink = (SvBaseLink*)aTmpArr[ n ]; in UpdateAllLinks() local
343 if( pLink == *aLinkTbl[ i ] ) in UpdateAllLinks()
353 if( !pLink->IsVisible() || in UpdateAllLinks()
354 ( !bUpdateGrfLinks && OBJECT_CLIENT_GRF == pLink->GetObjType() )) in UpdateAllLinks()
364 SetUserAllowsLinkUpdate(pLink, allows); in UpdateAllLinks()
368 pLink->Update(); in UpdateAllLinks()
379 SvLinkSourceRef LinkManager::CreateObj( SvBaseLink * pLink ) in CreateObj() argument
381 switch( pLink->GetObjType() ) in CreateObj()
548 sal_Bool SvxInternalLink::Connect( sfx2::SvBaseLink* pLink ) in Connect() argument
553 if( pLink->GetLinkManager() && in Connect()
554 pLink->GetLinkManager()->GetDisplayNames( pLink, 0, &sTopic, &sItem ) in Connect()
570 SfxObjectShell* pShell = pLink->GetLinkManager()->GetPersist(); in Connect()
659 SotExchange::GetFormatDataFlavor( pLink->GetContentType(), aFl ); in Connect()
661 pLink->SetObj( pNewSrc ); in Connect()
662 pNewSrc->AddDataAdvise( pLink, aFl.MimeType, in Connect()
663 sfx2::LINKUPDATE_ONCALL == pLink->GetUpdateMode() in Connect()