Lines Matching refs:pObj
168 SdrObject* pObj = 0; in GetPresObj() local
169 while( (pObj = maPresentationShapeList.getNextShape(pObj)) != 0 ) in GetPresObj()
171 SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(*pObj); in GetPresObj()
199 aMatches.push_back( pObj ); in GetPresObj()
699 SdrObject* pObj = (SdrObject*) &rObj; in Changed() local
701 if (pObj) in Changed()
705 if( pObj->GetUserCall() ) in Changed()
714 pUndoManager->AddUndoAction( new UndoObjectUserCall(*pObj) ); in Changed()
717 pObj->SetUserCall(0); in Changed()
786 SdrObject *pObj=NULL; in CreateTitleAndLayout() local
787 while( (pObj = pMasterPage->GetPresObj(PRESOBJ_HANDOUT)) != 0 ) in CreateTitleAndLayout()
789 pMasterPage->RemoveObject(pObj->GetOrdNum()); in CreateTitleAndLayout()
793 pUndoManager->AddUndoAction(pModel->GetSdrUndoFactory().CreateUndoDeleteObject(*pObj)); in CreateTitleAndLayout()
797 SdrObject::Free( pObj ); // memory leak i120050 in CreateTitleAndLayout()
1393 SdrObject* pObj = 0; in findAutoLayoutShapesImpl() local
1394 while( (pObj = rPage.GetPresObj( eKind, PresObjIndex[eKind], true )) != 0 ) in findAutoLayoutShapesImpl()
1398 if( !bSwitchLayout || !pObj->IsEmptyPresObj() ) in findAutoLayoutShapesImpl()
1400 rShapes[i] = pObj; in findAutoLayoutShapesImpl()
1405 if( !pObj ) in findAutoLayoutShapesImpl()
1419 SdrObject* pObj = 0; in findAutoLayoutShapesImpl() local
1426 pObj = rPage.GetObj(nShapeIndex++); in findAutoLayoutShapesImpl()
1428 if( pObj->IsEmptyPresObj() ) in findAutoLayoutShapesImpl()
1431 if( pObj->GetObjInventor() != SdrInventor ) in findAutoLayoutShapesImpl()
1435 if( std::find( rShapes.begin(), rShapes.end(), pObj ) != rShapes.end() ) in findAutoLayoutShapesImpl()
1438 …bool bPresStyle = pObj->GetStyleSheet() && (pObj->GetStyleSheet()->GetFamily() == SD_STYLE_FAMILY_… in findAutoLayoutShapesImpl()
1439 SdrObjKind eSdrObjKind = static_cast< SdrObjKind >( pObj->GetObjIdentifier() ); in findAutoLayoutShapesImpl()
1463 SdrOle2Obj* pOle2 = dynamic_cast< SdrOle2Obj* >( pObj ); in findAutoLayoutShapesImpl()
1475 GetEmbeddedObject( static_cast< SdrOle2Obj* >( pObj )->GetPersistName() ); in findAutoLayoutShapesImpl()
1500 SdrOle2Obj* pOle2 = dynamic_cast< SdrOle2Obj* >( pObj ); in findAutoLayoutShapesImpl()
1534 rShapes[i] = pObj; in findAutoLayoutShapesImpl()
1575 …SdrObject* pObj = InsertAutoLayoutShape( aLayoutShapes[i], eKind, aDescriptor.mbVertical[i], aRect… in SetAutoLayout() local
1576 if( pObj ) in SetAutoLayout()
1577 aUsedPresentationObjects.insert(pObj); // remember that we used this empty shape in SetAutoLayout()
1583 SdrObject* pObj = maPresentationShapeList.getNextShape(0); in SetAutoLayout() local
1585 while( pObj ) in SetAutoLayout()
1587 SdrObject* pNext = maPresentationShapeList.getNextShape(pObj); in SetAutoLayout()
1588 if( aUsedPresentationObjects.count(pObj) == 0 ) in SetAutoLayout()
1591 if( pObj->IsEmptyPresObj() ) in SetAutoLayout()
1594 pUndoManager->AddUndoAction(pModel->GetSdrUndoFactory().CreateUndoDeleteObject(*pObj)); in SetAutoLayout()
1596 RemoveObject( pObj->GetOrdNum() ); in SetAutoLayout()
1599 SdrObject::Free( pObj ); in SetAutoLayout()
1615 pObj = pNext; in SetAutoLayout()
1624 void SdPage::NbcInsertObject(SdrObject* pObj, sal_uLong nPos, const SdrInsertReason* pReason) in NbcInsertObject() argument
1626 FmFormPage::NbcInsertObject(pObj, nPos, pReason); in NbcInsertObject()
1628 ((SdDrawDocument*) pModel)->InsertObject(pObj, this); in NbcInsertObject()
1630 SdrLayerID nId = pObj->GetLayer(); in NbcInsertObject()
1634 pObj->NbcSetLayer( 2 ); // wrong layer. corrected to BackgroundObj layer in NbcInsertObject()
1639 pObj->NbcSetLayer( 0 ); // wrong layer. corrected to layout layer in NbcInsertObject()
1816 SdrObject* pObj = NULL; in ScaleObjects() local
1876 pObj = GetObj(nObj); in ScaleObjects()
1878 if (mbMaster && IsPresObj(pObj)) in ScaleObjects()
1884 if (pObj) in ScaleObjects()
1887 Point aTopLeft(pObj->GetCurrentBoundRect().TopLeft()); in ScaleObjects()
1889 if (!pObj->IsEdgeObj()) in ScaleObjects()
1900 pObj->Resize(aRefPnt, aFractX, aFractY); in ScaleObjects()
1904 SdrObjKind eObjKind = (SdrObjKind) pObj->GetObjIdentifier(); in ScaleObjects()
1915 if (pObj == GetPresObj(PRESOBJ_TITLE, nIndexTitle)) in ScaleObjects()
1947 else if (pObj == GetPresObj(PRESOBJ_OUTLINE, nIndexOutline)) in ScaleObjects()
2008 else if (pObj == GetPresObj(PRESOBJ_NOTES, nIndexNotes)) in ScaleObjects()
2014 sal_uLong nHeight = pObj->GetLogicRect().GetSize().Height(); in ScaleObjects()
2026 pObj->ISA(SdrTextObj) && in ScaleObjects()
2027 pObj->GetOutlinerParaObject() ) in ScaleObjects()
2032 sal_uLong nScriptType = pObj->GetOutlinerParaObject()->GetTextObject().GetScriptType(); in ScaleObjects()
2040 sal_uInt32 nFontHeight = ((SvxFontHeightItem&)pObj->GetMergedItem(nWhich)).GetHeight(); in ScaleObjects()
2043 pObj->SetMergedItem(SvxFontHeightItem(nNewFontHeight, 100, nWhich)); in ScaleObjects()
2048 if (mbScaleObjects && !pObj->IsEdgeObj()) in ScaleObjects()
2064 pObj->NbcMove(aVec); in ScaleObjects()
2067 pObj->SetChanged(); in ScaleObjects()
2068 pObj->BroadcastObjectChange(); in ScaleObjects()
2219 SdrObject* SdPage::InsertAutoLayoutShape( SdrObject* pObj, PresObjKind eObjKind, bool bVertical, Re… in InsertAutoLayoutShape() argument
2224 if (!pObj && bInit) in InsertAutoLayoutShape()
2226 pObj = CreatePresObj(eObjKind, bVertical, aRect); in InsertAutoLayoutShape()
2228 else if ( pObj && (pObj->GetUserCall() || bInit) ) in InsertAutoLayoutShape()
2232 pObj = convertPresentationObjectImpl( *this, pObj, eObjKind, bVertical, aRect ); in InsertAutoLayoutShape()
2236 pUndoManager->AddUndoAction( pModel->GetSdrUndoFactory().CreateUndoGeoObject( *pObj ) ); in InsertAutoLayoutShape()
2237 …pUndoManager->AddUndoAction( pModel->GetSdrUndoFactory().CreateUndoAttrObject( *pObj, sal_True, sa… in InsertAutoLayoutShape()
2238 pUndoManager->AddUndoAction( new UndoObjectUserCall( *pObj ) ); in InsertAutoLayoutShape()
2242 ( /*(SdrGrafObj*)*/ pObj)->AdjustToMaxRect( aRect ); in InsertAutoLayoutShape()
2246 pObj->SetUserCall(this); in InsertAutoLayoutShape()
2248 SdrTextObj* pTextObject = dynamic_cast< SdrTextObj* >(pObj); in InsertAutoLayoutShape()
2299 if(pObj && bInit ) in InsertAutoLayoutShape()
2301 if( !IsPresObj( pObj ) ) in InsertAutoLayoutShape()
2304 pUndoManager->AddUndoAction( new UndoObjectPresentationKind( *pObj ) ); in InsertAutoLayoutShape()
2306 InsertPresObj( pObj, eObjKind ); in InsertAutoLayoutShape()
2312 SfxItemSet aNewSet(pObj->GetMergedItemSet()); in InsertAutoLayoutShape()
2320 pObj->SetMergedItemSet(aNewSet); in InsertAutoLayoutShape()
2324 …if ( pObj && (pObj->GetUserCall() || bInit) && ( pObj->IsEmptyPresObj() || !pObj->ISA(SdrGrafObj) … in InsertAutoLayoutShape()
2325 pObj->AdjustToMaxRect( aRect ); in InsertAutoLayoutShape()
2327 return pObj; in InsertAutoLayoutShape()
2335 PresObjKind SdPage::GetPresObjKind(SdrObject* pObj) const in GetPresObjKind()
2338 if( (pObj != 0) && (maPresentationShapeList.hasShape(*pObj)) ) in GetPresObjKind()
2340 SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(*pObj); in GetPresObjKind()
2348 bool SdPage::IsPresObj(const SdrObject* pObj) in IsPresObj() argument
2350 return pObj && maPresentationShapeList.hasShape( const_cast<SdrObject&>(*pObj) ); in IsPresObj()
2353 void SdPage::RemovePresObj(const SdrObject* pObj) in RemovePresObj() argument
2355 if( pObj && maPresentationShapeList.hasShape(const_cast<SdrObject&>(*pObj)) ) in RemovePresObj()
2357 SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(const_cast<SdrObject&>(*pObj)); in RemovePresObj()
2360 maPresentationShapeList.removeShape(const_cast<SdrObject&>(*pObj)); in RemovePresObj()
2364 void SdPage::InsertPresObj(SdrObject* pObj, PresObjKind eKind ) in InsertPresObj() argument
2366 DBG_ASSERT( pObj, "sd::SdPage::InsertPresObj(), invalid presentation object inserted!" ); in InsertPresObj()
2367 DBG_ASSERT( !IsPresObj(pObj), "sd::SdPage::InsertPresObj(), presentation object inserted twice!" ); in InsertPresObj()
2368 if( pObj ) in InsertPresObj()
2370 SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(*pObj, true); in InsertPresObj()
2373 maPresentationShapeList.addShape(*pObj); in InsertPresObj()
2381 void SdPage::SetObjText(SdrTextObj* pObj, SdrOutliner* pOutliner, PresObjKind eObjKind, const Strin… in SetObjText() argument
2383 if ( pObj ) in SetObjText()
2385 DBG_ASSERT( pObj->ISA(SdrTextObj), "SetObjText: Kein SdrTextObj!" ); in SetObjText()
2410 pOutl->SetStyleSheet(0, pObj->GetStyleSheet()); in SetObjText()
2497 pOutl->SetPaperSize( pObj->GetLogicRect().GetSize() ); in SetObjText()
2502 ( (SdrTextObj*) pObj)->SetOutlinerParaObject( pOutl->CreateParaObject() ); in SetObjText()
2820 SdrObject* pObj = rOriginal.GetViewContact().TryToGetSdrObject(); in checkVisibility() local
2821 if( pObj == NULL ) in checkVisibility()
2830 if( (bIsPrinting || !bEdit || bIsInsidePageObj ) && pObj->IsEmptyPresObj() ) in checkVisibility()
2832 …if( (pObj->GetObjInventor() != SdrInventor) || ( (pObj->GetObjIdentifier() != OBJ_RECT) && (pObj->… in checkVisibility()
2836 if( ( pObj->GetObjInventor() == SdrInventor ) && ( pObj->GetObjIdentifier() == OBJ_TEXT ) ) in checkVisibility()
2838 const SdPage* pCheckPage = dynamic_cast< const SdPage* >(pObj->GetPage()); in checkVisibility()
2842 PresObjKind eKind = pCheckPage->GetPresObjKind(pObj); in checkVisibility()
2883 if( ( pObj->GetObjInventor() == SdrInventor ) && ( pObj->GetObjIdentifier() == OBJ_PAGE ) ) in checkVisibility()
2885 if( pObj->GetPage() && pObj->GetPage()->IsMasterPage() ) in checkVisibility()
2892 bool SdPage::RestoreDefaultText( SdrObject* pObj ) in RestoreDefaultText() argument
2896 SdrTextObj* pTextObj = dynamic_cast< SdrTextObj* >( pObj ); in RestoreDefaultText()