diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-24 12:22:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-25 08:29:03 +0200 |
commit | 834770170248695a4994f879fe627f6d044b2db8 (patch) | |
tree | ad31f95a08088768e29b428eec29370267152078 /sw/source/core/unocore | |
parent | dd06a8a2caf93707fbf29c7264cf41f8ec9d4c6d (diff) |
convert CursorMoveState to scoped enum
Change-Id: Ie5071ca1e663213da7c0db392be20957587517ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92870
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore')
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index 8bf844d4ba9f..b094b87653cf 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -686,7 +686,7 @@ void SwXDrawPage::add(const uno::Reference< drawing::XShape > & xShape) } else if ((aAnchor.GetAnchorId() != RndStdIds::FLY_AT_PAGE) && pDoc->getIDocumentLayoutAccess().GetCurrentLayout()) { - SwCursorMoveState aState( MV_SETONLYTEXT ); + SwCursorMoveState aState( CursorMoveState::SetOnlyText ); Point aTmp(convertMm100ToTwip(aMM100Pos.X), convertMm100ToTwip(aMM100Pos.Y)); pDoc->getIDocumentLayoutAccess().GetCurrentLayout()->GetModelPositionForViewPoint( pPam->GetPoint(), aTmp, &aState ); aAnchor.SetAnchor( pPam->GetPoint() ); @@ -1265,7 +1265,7 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a SwPaM aPam(pDoc->GetNodes().GetEndOfContent()); if( pDoc->getIDocumentLayoutAccess().GetCurrentLayout() ) { - SwCursorMoveState aState( MV_SETONLYTEXT ); + SwCursorMoveState aState( CursorMoveState::SetOnlyText ); Point aTmp( pObj->GetSnapRect().TopLeft() ); pDoc->getIDocumentLayoutAccess().GetCurrentLayout()->GetModelPositionForViewPoint( aPam.GetPoint(), aTmp, &aState ); } @@ -1286,7 +1286,7 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a SwPaM aPam(pDoc->GetNodes().GetEndOfContent()); if( pDoc->getIDocumentLayoutAccess().GetCurrentLayout() ) { - SwCursorMoveState aState( MV_SETONLYTEXT ); + SwCursorMoveState aState( CursorMoveState::SetOnlyText ); Point aTmp( pObj->GetSnapRect().TopLeft() ); pDoc->getIDocumentLayoutAccess().GetCurrentLayout()->GetModelPositionForViewPoint( aPam.GetPoint(), aTmp, &aState ); } |