summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2018-06-16 13:23:08 +0200
committerArmin Le Grand <Armin.Le.Grand@cib.de>2018-06-16 17:29:52 +0200
commit099eef24da24d638fdf2c747d28040c9b3a30780 (patch)
treea636f31a48033b3164db59e057ce68d22c708edb /sw/source
parenta4cd8bfea486327279d6d2a3bacc3e06e5df2745 (diff)
AW080: Continued cleanups/remaps/corrections
Change-Id: I953f29e6a8d398e00884a600d6f4ceba880489a5 Reviewed-on: https://gerrit.libreoffice.org/55913 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/access/accmap.cxx4
-rw-r--r--sw/source/core/doc/docdraw.cxx6
-rw-r--r--sw/source/core/doc/docfly.cxx2
-rw-r--r--sw/source/core/draw/dcontact.cxx10
-rw-r--r--sw/source/core/draw/dview.cxx2
-rw-r--r--sw/source/core/frmedt/fecopy.cxx8
-rw-r--r--sw/source/core/frmedt/feshview.cxx16
-rw-r--r--sw/source/core/unocore/unodraw.cxx14
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx6
-rw-r--r--sw/source/filter/ww8/ww8graf2.cxx4
-rw-r--r--sw/source/filter/xml/swxml.cxx2
11 files changed, 37 insertions, 37 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 9ea331e1e2b6..3ab340928a27 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -2610,9 +2610,9 @@ void SwAccessibleMap::InvalidateCursorPosition( const SwFrame *pFrame )
::rtl::Reference < ::accessibility::AccessibleShape > pAccShapeImpl = GetContextImpl(pObj,nullptr,false);
if (!pAccShapeImpl.is())
{
- while (pObj && pObj->GetUpGroup())
+ while (pObj && pObj->getParentSdrObjectFromSdrObject())
{
- pObj = pObj->GetUpGroup();
+ pObj = pObj->getParentSdrObjectFromSdrObject();
}
if (pObj != nullptr)
{
diff --git a/sw/source/core/doc/docdraw.cxx b/sw/source/core/doc/docdraw.cxx
index 5ea865f618d1..a2b251843439 100644
--- a/sw/source/core/doc/docdraw.cxx
+++ b/sw/source/core/doc/docdraw.cxx
@@ -202,7 +202,7 @@ SwDrawContact* SwDoc::GroupSelection( SdrView& rDrawView )
const SdrMarkList &rMrkList = rDrawView.GetMarkedObjectList();
SdrObject *pObj = rMrkList.GetMark( 0 )->GetMarkedSdrObj();
- bool bNoGroup = ( nullptr == pObj->GetUpGroup() );
+ bool bNoGroup = ( nullptr == pObj->getParentSdrObjectFromSdrObject() );
SwDrawContact* pNewContact = nullptr;
if( bNoGroup )
{
@@ -317,7 +317,7 @@ void SwDoc::UnGroupSelection( SdrView& rDrawView )
{
pFormatsAndObjs = new std::vector< std::pair< SwDrawFrameFormat*, SdrObject* > >[nMarkCount];
SdrObject *pMyObj = rMrkList.GetMark( 0 )->GetMarkedSdrObj();
- if( !pMyObj->GetUpGroup() )
+ if( !pMyObj->getParentSdrObjectFromSdrObject() )
{
for ( size_t i = 0; i < nMarkCount; ++i )
{
@@ -429,7 +429,7 @@ bool SwDoc::DeleteSelection( SwDrawView& rDrawView )
if( rMrkList.GetMarkCount() && bDelMarked )
{
SdrObject *pObj = rMrkList.GetMark( 0 )->GetMarkedSdrObj();
- if( !pObj->GetUpGroup() )
+ if( !pObj->getParentSdrObjectFromSdrObject() )
{
SwUndoDrawDelete *const pUndo =
(!GetIDocumentUndoRedo().DoesUndo())
diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx
index 457229b88f66..06eff1e33958 100644
--- a/sw/source/core/doc/docfly.cxx
+++ b/sw/source/core/doc/docfly.cxx
@@ -726,7 +726,7 @@ bool SwDoc::ChgAnchor( const SdrMarkList& _rMrkList,
OSL_ENSURE( getIDocumentLayoutAccess().GetCurrentLayout(), "No layout!" );
if ( !_rMrkList.GetMarkCount() ||
- _rMrkList.GetMark( 0 )->GetMarkedSdrObj()->GetUpGroup() )
+ _rMrkList.GetMark( 0 )->GetMarkedSdrObj()->getParentSdrObjectFromSdrObject() )
{
return false;
}
diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx
index 41cd1ebef26f..132d8f83662e 100644
--- a/sw/source/core/draw/dcontact.cxx
+++ b/sw/source/core/draw/dcontact.cxx
@@ -175,7 +175,7 @@ SwRect GetBoundRectOfAnchoredObj( const SdrObject* pObj )
SwContact* GetUserCall( const SdrObject* pObj )
{
SdrObject *pTmp;
- while ( !pObj->GetUserCall() && nullptr != (pTmp = pObj->GetUpGroup()) )
+ while ( !pObj->GetUserCall() && nullptr != (pTmp = pObj->getParentSdrObjectFromSdrObject()) )
pObj = pTmp;
assert((!pObj->GetUserCall() || nullptr != dynamic_cast<const SwContact*>(pObj->GetUserCall())) &&
"<::GetUserCall(..)> - wrong type of found object user call." );
@@ -1223,12 +1223,12 @@ void SwDrawContact::Changed_( const SdrObject& rObj,
// If drawing object is a member of a group, the adjustment
// of the positioning and the alignment attributes has to
// be done for the top group object.
- if ( rObj.GetUpGroup() )
+ if ( rObj.getParentSdrObjectFromSdrObject() )
{
- const SdrObject* pGroupObj = rObj.GetUpGroup();
- while ( pGroupObj->GetUpGroup() )
+ const SdrObject* pGroupObj = rObj.getParentSdrObjectFromSdrObject();
+ while ( pGroupObj->getParentSdrObjectFromSdrObject() )
{
- pGroupObj = pGroupObj->GetUpGroup();
+ pGroupObj = pGroupObj->getParentSdrObjectFromSdrObject();
}
// use geometry of drawing object
aObjRect = pGroupObj->GetSnapRect();
diff --git a/sw/source/core/draw/dview.cxx b/sw/source/core/draw/dview.cxx
index 60511cda2594..94c384b57486 100644
--- a/sw/source/core/draw/dview.cxx
+++ b/sw/source/core/draw/dview.cxx
@@ -429,7 +429,7 @@ void SwDrawView::ObjOrderChanged( SdrObject* pObj, size_t nOldPos,
size_t nNewPos )
{
// nothing to do for group members
- if ( pObj->GetUpGroup() )
+ if ( pObj->getParentSdrObjectFromSdrObject() )
{
return;
}
diff --git a/sw/source/core/frmedt/fecopy.cxx b/sw/source/core/frmedt/fecopy.cxx
index a834f4b9cdd2..e814863e8279 100644
--- a/sw/source/core/frmedt/fecopy.cxx
+++ b/sw/source/core/frmedt/fecopy.cxx
@@ -190,7 +190,7 @@ void SwFEShell::Copy( SwDoc* pClpDoc, const OUString* pNewClpText )
SdrObject *pObj = rMrkList.GetMark( i )->GetMarkedSdrObj();
if( Imp()->GetDrawView()->IsGroupEntered() ||
- ( !pObj->GetUserCall() && pObj->GetUpGroup()) )
+ ( !pObj->GetUserCall() && pObj->getParentSdrObjectFromSdrObject()) )
{
SfxItemSet aSet( pClpDoc->GetAttrPool(), aFrameFormatSetRange );
@@ -377,7 +377,7 @@ bool SwFEShell::CopyDrawSel( SwFEShell* pDestShell, const Point& rSttPt,
if( bRet )
{
if( pSrcDrwView->IsGroupEntered() ||
- ( !pObj->GetUserCall() && pObj->GetUpGroup()) )
+ ( !pObj->GetUserCall() && pObj->getParentSdrObjectFromSdrObject()) )
{
SfxItemSet aSet( pDestDoc->GetAttrPool(),aFrameFormatSetRange);
aSet.Put( aAnchor );
@@ -927,7 +927,7 @@ bool SwFEShell::Paste( SwDoc* pClpDoc )
Imp()->GetDrawView()->InsertObjectAtView( pNew, *Imp()->GetPageView() );
Point aGrpAnchor( 0, 0 );
- SdrObjList* pList = pNew->getParentOfSdrObject();
+ SdrObjList* pList = pNew->getParentSdrObjListFromSdrObject();
if ( pList )
{
SdrObjGroup* pOwner(dynamic_cast< SdrObjGroup* >(pList->getSdrObjectFromSdrObjList()));
@@ -1275,7 +1275,7 @@ static void lcl_ConvertSdrOle2ObjsToSdrGrafObjs( SdrModel& _rModel )
if( pOle2Obj )
{
// found an ole2 shape
- SdrObjList* pObjList = pOle2Obj->getParentOfSdrObject();
+ SdrObjList* pObjList = pOle2Obj->getParentSdrObjListFromSdrObject();
// get its graphic
Graphic aGraphic;
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index 4d4f00718cb4..d6c53ed68834 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -1202,7 +1202,7 @@ bool SwFEShell::IsObjSameLevelWithMarked(const SdrObject* pObj) const
if (pM)
{
SdrObject* pMarkObj = pM->GetMarkedSdrObj();
- if (pMarkObj && pMarkObj->GetUpGroup() == pObj->GetUpGroup())
+ if (pMarkObj && pMarkObj->getParentSdrObjectFromSdrObject() == pObj->getParentSdrObjectFromSdrObject())
return true;
}
}
@@ -1229,7 +1229,7 @@ void SwFEShell::EndTextEdit()
pTmp = pObj;
pUserCall->Changed( *pTmp, SdrUserCallType::Resize, pTmp->GetLastBoundRect() );
}
- if ( !pObj->GetUpGroup() )
+ if ( !pObj->getParentSdrObjectFromSdrObject() )
{
if ( SdrEndTextEditKind::ShouldBeDeleted == pView->SdrEndTextEdit(true) )
{
@@ -1504,7 +1504,7 @@ const SdrObject* SwFEShell::GetBestObject( bool bNext, GotoObjFlags eType, bool
// If an object inside a group is selected, we want to
// iterate over the group members.
if ( ! pStartObj->GetUserCall() )
- pList = pStartObj->getParentOfSdrObject();
+ pList = pStartObj->getParentSdrObjListFromSdrObject();
}
else
{
@@ -1767,10 +1767,10 @@ bool SwFEShell::ImpEndCreate()
return false;
}
- if( rSdrObj.GetUpGroup() )
+ if( rSdrObj.getParentSdrObjectFromSdrObject() )
{
Point aTmpPos( rSdrObj.GetSnapRect().TopLeft() );
- Point aNewAnchor( rSdrObj.GetUpGroup()->GetAnchorPos() );
+ Point aNewAnchor( rSdrObj.getParentSdrObjectFromSdrObject()->GetAnchorPos() );
// OD 2004-04-05 #i26791# - direct object positioning for group members
rSdrObj.NbcSetRelativePos( aTmpPos - aNewAnchor );
rSdrObj.NbcSetAnchorPos( aNewAnchor );
@@ -2255,7 +2255,7 @@ void SwFEShell::ChgAnchor( RndStdIds eAnchorId, bool bSameOnly, bool bPosCorr )
OSL_ENSURE( Imp()->HasDrawView(), "ChgAnchor without DrawView?" );
const SdrMarkList &rMrkList = Imp()->GetDrawView()->GetMarkedObjectList();
if( rMrkList.GetMarkCount() &&
- !rMrkList.GetMark( 0 )->GetMarkedSdrObj()->GetUpGroup() )
+ !rMrkList.GetMark( 0 )->GetMarkedSdrObj()->getParentSdrObjectFromSdrObject() )
{
StartAllAction();
@@ -2388,9 +2388,9 @@ bool SwFEShell::IsGroupAllowed() const
{
const SdrObject* pObj = rMrkList.GetMark( i )->GetMarkedSdrObj();
if ( i )
- bIsGroupAllowed = pObj->GetUpGroup() == pUpGroup;
+ bIsGroupAllowed = pObj->getParentSdrObjectFromSdrObject() == pUpGroup;
else
- pUpGroup = pObj->GetUpGroup();
+ pUpGroup = pObj->getParentSdrObjectFromSdrObject();
if ( bIsGroupAllowed )
bIsGroupAllowed = HasSuitableGroupingAnchor(pObj);
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 7102805291fe..a9f376f62d67 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -1781,7 +1781,7 @@ uno::Sequence< beans::PropertyState > SwXShape::getPropertyStates(
SdrObject* pObject = pSvxShape ? pSvxShape->GetSdrObject() : nullptr;
if(pObject)
{
- bGroupMember = pObject->GetUpGroup() != nullptr;
+ bGroupMember = pObject->getParentSdrObjectFromSdrObject() != nullptr;
bFormControl = pObject->GetObjInventor() == SdrInventor::FmForm;
}
const OUString* pNames = aPropertyNames.getConstArray();
@@ -2123,7 +2123,7 @@ void SwXShape::dispose()
// correct assertion and refine it for safety reason.
OSL_ENSURE( !pObj ||
dynamic_cast<const SwDrawVirtObj*>( pObj) != nullptr ||
- pObj->GetUpGroup() ||
+ pObj->getParentSdrObjectFromSdrObject() ||
pObj == pFormat->FindSdrObject(),
"<SwXShape::dispose(..) - different 'master' drawing objects!!" );
// perform delete of draw frame format *not*
@@ -2132,7 +2132,7 @@ void SwXShape::dispose()
// of a group
if ( pObj &&
dynamic_cast<const SwDrawVirtObj*>( pObj) == nullptr &&
- !pObj->GetUpGroup() &&
+ !pObj->getParentSdrObjectFromSdrObject() &&
pObj->IsInserted() )
{
if (pFormat->GetAnchor().GetAnchorId() == RndStdIds::FLY_AS_CHAR)
@@ -2376,12 +2376,12 @@ SdrObject* SwXShape::GetTopGroupObj( SvxShape* _pSvxShape )
if ( pSvxShape )
{
SdrObject* pSdrObj = pSvxShape->GetSdrObject();
- if ( pSdrObj && pSdrObj->GetUpGroup() )
+ if ( pSdrObj && pSdrObj->getParentSdrObjectFromSdrObject() )
{
- pTopGroupObj = pSdrObj->GetUpGroup();
- while ( pTopGroupObj->GetUpGroup() )
+ pTopGroupObj = pSdrObj->getParentSdrObjectFromSdrObject();
+ while ( pTopGroupObj->getParentSdrObjectFromSdrObject() )
{
- pTopGroupObj = pTopGroupObj->GetUpGroup();
+ pTopGroupObj = pTopGroupObj->getParentSdrObjectFromSdrObject();
}
}
}
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index 31beefff762e..50a59c00c442 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -1102,7 +1102,7 @@ void SwWW8ImplReader::InsertTxbxText(SdrTextObj* pTextObj,
if( m_bObj )
{
if( bMakeSdrGrafObj && pTextObj &&
- pTextObj->GetUpGroup() )
+ pTextObj->getParentSdrObjectFromSdrObject() )
{
// use SdrOleObj/SdrGrafObj instead of
// SdrTextObj in this Group
@@ -1121,7 +1121,7 @@ void SwWW8ImplReader::InsertTxbxText(SdrTextObj* pTextObj,
pNew->SetLogicRect( pTextObj->GetCurrentBoundRect() );
pNew->SetLayer( pTextObj->GetLayer() );
- pTextObj->GetUpGroup()->GetSubList()->
+ pTextObj->getParentSdrObjectFromSdrObject()->GetSubList()->
ReplaceObject(pNew, pTextObj->GetOrdNum());
}
else
@@ -2831,7 +2831,7 @@ SwFrameFormat* SwWW8ImplReader::MungeTextIntoDrawBox(SvxMSDffImportRec *pRecord,
pSdrTextObj->GetSnapRect().GetHeight());
// Object is part of a group?
- SdrObject* pGroupObject = pSdrTextObj->GetUpGroup();
+ SdrObject* pGroupObject = pSdrTextObj->getParentSdrObjectFromSdrObject();
const size_t nOrdNum = pSdrTextObj->GetOrdNum();
bool bEraseThisObject;
diff --git a/sw/source/filter/ww8/ww8graf2.cxx b/sw/source/filter/ww8/ww8graf2.cxx
index 338b27aebe6a..b35ec366cd5b 100644
--- a/sw/source/filter/ww8/ww8graf2.cxx
+++ b/sw/source/filter/ww8/ww8graf2.cxx
@@ -336,7 +336,7 @@ void SwWW8ImplReader::ReplaceObj(const SdrObject &rReplaceObj,
SdrObject &rSubObj)
{
// Insert SdrGrafObj instead of SdrTextObj into this group
- if (SdrObject* pGroupObject = rReplaceObj.GetUpGroup())
+ if (SdrObject* pGroupObject = rReplaceObj.getParentSdrObjectFromSdrObject())
{
SdrObjList* pObjectList = pGroupObject->GetSubList();
@@ -657,7 +657,7 @@ SwFrameFormat* SwWW8ImplReader::ImportGraf(SdrTextObj const * pTextObj,
}
bool bTextObjWasGrouped = false;
- if (pOldFlyFormat && pTextObj && pTextObj->GetUpGroup())
+ if (pOldFlyFormat && pTextObj && pTextObj->getParentSdrObjectFromSdrObject())
bTextObjWasGrouped = true;
if (bTextObjWasGrouped)
diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx
index cdeee03a3a96..928df235531b 100644
--- a/sw/source/filter/xml/swxml.cxx
+++ b/sw/source/filter/xml/swxml.cxx
@@ -447,7 +447,7 @@ static void lcl_ConvertSdrOle2ObjsToSdrGrafObjs(SwDoc& _rDoc)
if( pOle2Obj )
{
// found an ole2 shape
- SdrObjList* pObjList = pOle2Obj->getParentOfSdrObject();
+ SdrObjList* pObjList = pOle2Obj->getParentSdrObjListFromSdrObject();
// get its graphic
Graphic aGraphic;