Lines Matching refs:pObj
172 SdrObject* pObj = 0; in GetPresObj() local
173 while( (pObj = maPresentationShapeList.getNextShape(pObj)) != 0 ) in GetPresObj()
175 SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(*pObj); in GetPresObj()
203 aMatches.push_back( pObj ); in GetPresObj()
707 SdrObject* pObj = (SdrObject*) &rObj; in Changed() local
709 if (pObj) in Changed()
713 if( pObj->GetUserCall() ) in Changed()
722 pUndoManager->AddUndoAction( new UndoObjectUserCall(*pObj) ); in Changed()
725 pObj->SetUserCall(0); in Changed()
796 SdrObject *pObj=NULL; in CreateTitleAndLayout() local
797 while( (pObj = pMasterPage->GetPresObj(PRESOBJ_HANDOUT)) != 0 ) in CreateTitleAndLayout()
799 pMasterPage->RemoveObject(pObj->GetOrdNum()); in CreateTitleAndLayout()
803 pUndoManager->AddUndoAction(pModel->GetSdrUndoFactory().CreateUndoDeleteObject(*pObj)); in CreateTitleAndLayout()
807 SdrObject::Free( pObj ); // memory leak i120050 in CreateTitleAndLayout()
1409 SdrObject* pObj = 0; in findAutoLayoutShapesImpl() local
1410 while( (pObj = rPage.GetPresObj( eKind, PresObjIndex[eKind], true )) != 0 ) in findAutoLayoutShapesImpl()
1414 if( !bSwitchLayout || !pObj->IsEmptyPresObj() ) in findAutoLayoutShapesImpl()
1416 rShapes[i] = pObj; in findAutoLayoutShapesImpl()
1421 if( !pObj ) in findAutoLayoutShapesImpl()
1435 SdrObject* pObj = 0; in findAutoLayoutShapesImpl() local
1442 pObj = rPage.GetObj(nShapeIndex++); in findAutoLayoutShapesImpl()
1444 if( pObj->IsEmptyPresObj() ) in findAutoLayoutShapesImpl()
1447 if( pObj->GetObjInventor() != SdrInventor ) in findAutoLayoutShapesImpl()
1451 if( std::find( rShapes.begin(), rShapes.end(), pObj ) != rShapes.end() ) in findAutoLayoutShapesImpl()
1454 …bool bPresStyle = pObj->GetStyleSheet() && (pObj->GetStyleSheet()->GetFamily() == SD_STYLE_FAMILY_… in findAutoLayoutShapesImpl()
1455 SdrObjKind eSdrObjKind = static_cast< SdrObjKind >( pObj->GetObjIdentifier() ); in findAutoLayoutShapesImpl()
1479 SdrOle2Obj* pOle2 = dynamic_cast< SdrOle2Obj* >( pObj ); in findAutoLayoutShapesImpl()
1491 GetEmbeddedObject( static_cast< SdrOle2Obj* >( pObj )->GetPersistName() ); in findAutoLayoutShapesImpl()
1516 SdrOle2Obj* pOle2 = dynamic_cast< SdrOle2Obj* >( pObj ); in findAutoLayoutShapesImpl()
1550 rShapes[i] = pObj; in findAutoLayoutShapesImpl()
1591 …SdrObject* pObj = InsertAutoLayoutShape( aLayoutShapes[i], eKind, aDescriptor.mbVertical[i], aRect… in SetAutoLayout() local
1592 if( pObj ) in SetAutoLayout()
1593 aUsedPresentationObjects.insert(pObj); // remember that we used this empty shape in SetAutoLayout()
1599 SdrObject* pObj = maPresentationShapeList.getNextShape(0); in SetAutoLayout() local
1601 while( pObj ) in SetAutoLayout()
1603 SdrObject* pNext = maPresentationShapeList.getNextShape(pObj); in SetAutoLayout()
1604 if( aUsedPresentationObjects.count(pObj) == 0 ) in SetAutoLayout()
1607 if( pObj->IsEmptyPresObj() ) in SetAutoLayout()
1610 pUndoManager->AddUndoAction(pModel->GetSdrUndoFactory().CreateUndoDeleteObject(*pObj)); in SetAutoLayout()
1612 RemoveObject( pObj->GetOrdNum() ); in SetAutoLayout()
1615 SdrObject::Free( pObj ); in SetAutoLayout()
1631 pObj = pNext; in SetAutoLayout()
1642 void SdPage::NbcInsertObject(SdrObject* pObj, sal_uLong nPos, const SdrInsertReason* pReason) in NbcInsertObject() argument
1644 FmFormPage::NbcInsertObject(pObj, nPos, pReason); in NbcInsertObject()
1646 ((SdDrawDocument*) pModel)->InsertObject(pObj, this); in NbcInsertObject()
1648 SdrLayerID nId = pObj->GetLayer(); in NbcInsertObject()
1652 pObj->NbcSetLayer( 2 ); // wrong layer. corrected to BackgroundObj layer in NbcInsertObject()
1657 pObj->NbcSetLayer( 0 ); // wrong layer. corrected to layout layer in NbcInsertObject()
1854 SdrObject* pObj = NULL; in ScaleObjects() local
1914 pObj = GetObj(nObj); in ScaleObjects()
1916 if (mbMaster && IsPresObj(pObj)) in ScaleObjects()
1922 if (pObj) in ScaleObjects()
1925 Point aTopLeft(pObj->GetCurrentBoundRect().TopLeft()); in ScaleObjects()
1927 if (!pObj->IsEdgeObj()) in ScaleObjects()
1938 pObj->Resize(aRefPnt, aFractX, aFractY); in ScaleObjects()
1942 SdrObjKind eObjKind = (SdrObjKind) pObj->GetObjIdentifier(); in ScaleObjects()
1953 if (pObj == GetPresObj(PRESOBJ_TITLE, nIndexTitle)) in ScaleObjects()
1985 else if (pObj == GetPresObj(PRESOBJ_OUTLINE, nIndexOutline)) in ScaleObjects()
2046 else if (pObj == GetPresObj(PRESOBJ_NOTES, nIndexNotes)) in ScaleObjects()
2052 sal_uLong nHeight = pObj->GetLogicRect().GetSize().Height(); in ScaleObjects()
2064 pObj->ISA(SdrTextObj) && in ScaleObjects()
2065 pObj->GetOutlinerParaObject() ) in ScaleObjects()
2070 sal_uLong nScriptType = pObj->GetOutlinerParaObject()->GetTextObject().GetScriptType(); in ScaleObjects()
2078 sal_uInt32 nFontHeight = ((SvxFontHeightItem&)pObj->GetMergedItem(nWhich)).GetHeight(); in ScaleObjects()
2081 pObj->SetMergedItem(SvxFontHeightItem(nNewFontHeight, 100, nWhich)); in ScaleObjects()
2086 if (mbScaleObjects && !pObj->IsEdgeObj()) in ScaleObjects()
2102 pObj->NbcMove(aVec); in ScaleObjects()
2105 pObj->SetChanged(); in ScaleObjects()
2106 pObj->BroadcastObjectChange(); in ScaleObjects()
2257 SdrObject* SdPage::InsertAutoLayoutShape( SdrObject* pObj, PresObjKind eObjKind, bool bVertical, Re… in InsertAutoLayoutShape() argument
2262 if (!pObj && bInit) in InsertAutoLayoutShape()
2264 pObj = CreatePresObj(eObjKind, bVertical, aRect); in InsertAutoLayoutShape()
2266 else if ( pObj && (pObj->GetUserCall() || bInit) ) in InsertAutoLayoutShape()
2270 pObj = convertPresentationObjectImpl( *this, pObj, eObjKind, bVertical, aRect ); in InsertAutoLayoutShape()
2274 pUndoManager->AddUndoAction( pModel->GetSdrUndoFactory().CreateUndoGeoObject( *pObj ) ); in InsertAutoLayoutShape()
2275 …pUndoManager->AddUndoAction( pModel->GetSdrUndoFactory().CreateUndoAttrObject( *pObj, sal_True, sa… in InsertAutoLayoutShape()
2276 pUndoManager->AddUndoAction( new UndoObjectUserCall( *pObj ) ); in InsertAutoLayoutShape()
2280 ( /*(SdrGrafObj*)*/ pObj)->AdjustToMaxRect( aRect ); in InsertAutoLayoutShape()
2284 pObj->SetUserCall(this); in InsertAutoLayoutShape()
2286 SdrTextObj* pTextObject = dynamic_cast< SdrTextObj* >(pObj); in InsertAutoLayoutShape()
2337 if(pObj && bInit ) in InsertAutoLayoutShape()
2339 if( !IsPresObj( pObj ) ) in InsertAutoLayoutShape()
2342 pUndoManager->AddUndoAction( new UndoObjectPresentationKind( *pObj ) ); in InsertAutoLayoutShape()
2344 InsertPresObj( pObj, eObjKind ); in InsertAutoLayoutShape()
2350 SfxItemSet aNewSet(pObj->GetMergedItemSet()); in InsertAutoLayoutShape()
2358 pObj->SetMergedItemSet(aNewSet); in InsertAutoLayoutShape()
2362 …if ( pObj && (pObj->GetUserCall() || bInit) && ( pObj->IsEmptyPresObj() || !pObj->ISA(SdrGrafObj) … in InsertAutoLayoutShape()
2363 pObj->AdjustToMaxRect( aRect ); in InsertAutoLayoutShape()
2365 return pObj; in InsertAutoLayoutShape()
2375 PresObjKind SdPage::GetPresObjKind(SdrObject* pObj) const in GetPresObjKind()
2378 if( (pObj != 0) && (maPresentationShapeList.hasShape(*pObj)) ) in GetPresObjKind()
2380 SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(*pObj); in GetPresObjKind()
2388 bool SdPage::IsPresObj(const SdrObject* pObj) in IsPresObj() argument
2390 return pObj && maPresentationShapeList.hasShape( const_cast<SdrObject&>(*pObj) ); in IsPresObj()
2393 void SdPage::RemovePresObj(const SdrObject* pObj) in RemovePresObj() argument
2395 if( pObj && maPresentationShapeList.hasShape(const_cast<SdrObject&>(*pObj)) ) in RemovePresObj()
2397 SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(const_cast<SdrObject&>(*pObj)); in RemovePresObj()
2400 maPresentationShapeList.removeShape(const_cast<SdrObject&>(*pObj)); in RemovePresObj()
2404 void SdPage::InsertPresObj(SdrObject* pObj, PresObjKind eKind ) in InsertPresObj() argument
2406 DBG_ASSERT( pObj, "sd::SdPage::InsertPresObj(), invalid presentation object inserted!" ); in InsertPresObj()
2407 DBG_ASSERT( !IsPresObj(pObj), "sd::SdPage::InsertPresObj(), presentation object inserted twice!" ); in InsertPresObj()
2408 if( pObj ) in InsertPresObj()
2410 SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(*pObj, true); in InsertPresObj()
2413 maPresentationShapeList.addShape(*pObj); in InsertPresObj()
2423 void SdPage::SetObjText(SdrTextObj* pObj, SdrOutliner* pOutliner, PresObjKind eObjKind, const Strin… in SetObjText() argument
2425 if ( pObj ) in SetObjText()
2427 DBG_ASSERT( pObj->ISA(SdrTextObj), "SetObjText: Kein SdrTextObj!" ); in SetObjText()
2452 pOutl->SetStyleSheet(0, pObj->GetStyleSheet()); in SetObjText()
2539 pOutl->SetPaperSize( pObj->GetLogicRect().GetSize() ); in SetObjText()
2544 ( (SdrTextObj*) pObj)->SetOutlinerParaObject( pOutl->CreateParaObject() ); in SetObjText()
2874 SdrObject* pObj = rOriginal.GetViewContact().TryToGetSdrObject(); in checkVisibility() local
2875 if( pObj == NULL ) in checkVisibility()
2884 if( (bIsPrinting || !bEdit || bIsInsidePageObj ) && pObj->IsEmptyPresObj() ) in checkVisibility()
2886 …if( (pObj->GetObjInventor() != SdrInventor) || ( (pObj->GetObjIdentifier() != OBJ_RECT) && (pObj->… in checkVisibility()
2890 if( ( pObj->GetObjInventor() == SdrInventor ) && ( pObj->GetObjIdentifier() == OBJ_TEXT ) ) in checkVisibility()
2892 const SdPage* pCheckPage = dynamic_cast< const SdPage* >(pObj->GetPage()); in checkVisibility()
2896 PresObjKind eKind = pCheckPage->GetPresObjKind(pObj); in checkVisibility()
2937 if( ( pObj->GetObjInventor() == SdrInventor ) && ( pObj->GetObjIdentifier() == OBJ_PAGE ) ) in checkVisibility()
2939 if( pObj->GetPage() && pObj->GetPage()->IsMasterPage() ) in checkVisibility()
2946 bool SdPage::RestoreDefaultText( SdrObject* pObj ) in RestoreDefaultText() argument
2950 SdrTextObj* pTextObj = dynamic_cast< SdrTextObj* >( pObj ); in RestoreDefaultText()