Lines Matching refs:pPickObj
95 SdrObject* pPickObj = pObj; in InsertGraphic() local
104 if( !pPickObj && pPV ) in InsertGraphic()
107 PickObj(rPos, getHitTolLog(), pPickObj, pPageView); in InsertGraphic()
110 const bool bIsGraphic(0 != dynamic_cast< SdrGrafObj* >(pPickObj)); in InsertGraphic()
112 if(pPickObj in InsertGraphic()
114 && !(pPickObj->IsEmptyPresObj() ) in InsertGraphic()
115 && pPickObj->IsClosedObj() in InsertGraphic()
116 && !dynamic_cast< SdrOle2Obj* >(pPickObj)) in InsertGraphic()
123 AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*pPickObj)); in InsertGraphic()
131 pPickObj->SetMergedItemSetAndBroadcast(aSet); in InsertGraphic()
134 && pPickObj in InsertGraphic()
136 …&& (bIsGraphic || (pPickObj->IsEmptyPresObj() && !bOnMaster))) // #121603# Do not use pObj, it may… in InsertGraphic()
142 SdPage* pPage = (SdPage*) pPickObj->GetPage(); in InsertGraphic()
147 pNewGrafObj = (SdrGrafObj*) pPickObj->Clone(); in InsertGraphic()
152 pNewGrafObj = new SdrGrafObj( rGraphic, pPickObj->GetLogicRect() ); in InsertGraphic()
164 if (pPage && pPage->IsPresObj(pPickObj)) in InsertGraphic()
168 pNewGrafObj->SetUserCall(pPickObj->GetUserCall()); in InsertGraphic()
174 ReplaceObjectAtView(pPickObj, *pPV, pNewGrafObj); // maybe ReplaceObjectAtView in InsertGraphic()
221 …if( ( mnAction & DND_ACTION_MOVE ) && pPickObj && (pPickObj->IsEmptyPresObj() || pPickObj->GetUser… in InsertGraphic()
223 SdPage* pP = static_cast< SdPage* >( pPickObj->GetPage() ); in InsertGraphic()
226 bIsPresTarget = pP->IsPresObj(pPickObj); in InsertGraphic()
229 if( ( mnAction & DND_ACTION_MOVE ) && pPickObj && !bIsPresTarget ) in InsertGraphic()
235 Rectangle aPickObjRect(pPickObj->GetCurrentBoundRect()); in InsertGraphic()
251 pNewGrafObj->NbcSetLayer(pPickObj->GetLayer()); in InsertGraphic()
257 AddUndo(mpDoc->GetSdrUndoFactory().CreateUndoDeleteObject(*pPickObj)); in InsertGraphic()
259 pP->RemoveObject(pPickObj->GetOrdNum()); in InsertGraphic()
267 SdrObject::Free(pPickObj); in InsertGraphic()
295 SdrObject* pPickObj = GetEmptyPresentationObject( PRESOBJ_MEDIA ); in InsertMediaURL() local
303 if( !pPickObj && pPV ) in InsertMediaURL()
306 PickObj(rPos, getHitTolLog(), pPickObj, pPageView); in InsertMediaURL()
309 if( mnAction == DND_ACTION_LINK && pPickObj && pPV && pPickObj->ISA( SdrMediaObj ) ) in InsertMediaURL()
311 pNewMediaObj = static_cast< SdrMediaObj* >( pPickObj->Clone() ); in InsertMediaURL()
315 ReplaceObjectAtView(pPickObj, *pPV, pNewMediaObj); in InsertMediaURL()
321 if( pPickObj ) in InsertMediaURL()
322 aRect = pPickObj->GetLogicRect(); in InsertMediaURL()
328 if( pPickObj ) in InsertMediaURL()
330 SdPage* pPage = static_cast< SdPage* >(pPickObj->GetPage()); in InsertMediaURL()
331 bIsPres = pPage && pPage->IsPresObj(pPickObj); in InsertMediaURL()
338 if( pPickObj ) in InsertMediaURL()
339 ReplaceObjectAtView(pPickObj, *pPV, pNewMediaObj); in InsertMediaURL()
345 if( pPickObj ) in InsertMediaURL()
347 pNewMediaObj->AdjustToMaxRect( pPickObj->GetLogicRect() ); in InsertMediaURL()
349 pNewMediaObj->SetUserCall(pPickObj->GetUserCall()); in InsertMediaURL()