diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-07 17:06:34 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-05-12 06:13:30 +0000 |
commit | 3fd5f8919ec2256c70ff26c14cb9f8065c5cb2f1 (patch) | |
tree | b1d9a0dbb11d23899ccf53b790ddd445b8585a38 /editeng | |
parent | 0c129aa3df35a056ec739579002b2fc958fb3a48 (diff) |
convert CURSOR_DIRECTION constants to scoped enum
Change-Id: I444c61d0073b12740b55e316b2bb6e34f59dfe21
Reviewed-on: https://gerrit.libreoffice.org/15675
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 3d126ba0fd14..3f314529ab30 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -942,16 +942,16 @@ void ImpEditView::ShowCursor( bool bGotoCursor, bool bForceVisCursor, sal_uInt16 libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR, sRect.getStr()); } - unsigned char nCursorDir = CURSOR_DIRECTION_NONE; + CursorDirection nCursorDir = CursorDirection::NONE; if ( IsInsertMode() && !aEditSelection.HasRange() && ( pEditEngine->pImpEditEngine->HasDifferentRTLLevels( aPaM.GetNode() ) ) ) { sal_uInt16 nTextPortion = pParaPortion->GetTextPortions().FindPortion( aPaM.GetIndex(), nTextPortionStart, (nShowCursorFlags & GETCRSR_PREFERPORTIONSTART) != 0 ); const TextPortion* pTextPortion = pParaPortion->GetTextPortions()[nTextPortion]; sal_uInt16 nRTLLevel = pTextPortion->GetRightToLeft(); if ( nRTLLevel%2 ) - nCursorDir = CURSOR_DIRECTION_RTL; + nCursorDir = CursorDirection::RTL; else - nCursorDir = CURSOR_DIRECTION_LTR; + nCursorDir = CursorDirection::LTR; } GetCursor()->SetDirection( nCursorDir ); |