summaryrefslogtreecommitdiff
path: root/editeng/source/editeng/impedit3.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-24 16:05:55 +0200
committerNoel Grandin <noel@peralex.com>2015-03-25 08:56:14 +0200
commitabf60c4a0fd111985891e2faa30a1e32799fdf9c (patch)
treeb83b66c7457b8e221a01dfe3808adc918c41e6b9 /editeng/source/editeng/impedit3.cxx
parent6cb56b551bc1e30a887d8a333d70567cad23aa9e (diff)
convert EE_CNTRL constants to enum class
there were a couple of lines in SC and SW where the code was using a EV_CNTRL constant. I switched it to used the same-valued constant from EE_CNTRL Change-Id: I027183cc3b6e700bf365d48833e37eddc9b50f04
Diffstat (limited to 'editeng/source/editeng/impedit3.cxx')
-rw-r--r--editeng/source/editeng/impedit3.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index bf4f5afa7fc2..c273180e802b 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -2526,7 +2526,7 @@ void ImpEditEngine::SetVertical( bool bVertical )
if ( IsVertical() != bVertical )
{
GetEditDoc().SetVertical( bVertical );
- bool bUseCharAttribs = ( aStatus.GetControlWord() & EE_CNTRL_USECHARATTRIBS ) ? sal_True : sal_False;
+ bool bUseCharAttribs = ( aStatus.GetControlWord() & EEControlBits::USECHARATTRIBS ) ? sal_True : sal_False;
GetEditDoc().CreateDefFont( bUseCharAttribs );
if ( IsFormatted() )
{
@@ -4178,9 +4178,9 @@ void ImpEditEngine::SetFlatMode( bool bFlat )
return;
if ( !bFlat )
- aStatus.TurnOnFlags( EE_CNTRL_USECHARATTRIBS );
+ aStatus.TurnOnFlags( EEControlBits::USECHARATTRIBS );
else
- aStatus.TurnOffFlags( EE_CNTRL_USECHARATTRIBS );
+ aStatus.TurnOffFlags( EEControlBits::USECHARATTRIBS );
aEditDoc.CreateDefFont( !bFlat );