diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-15 17:15:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-18 07:15:21 +0100 |
commit | 39c618caf5aa19da95285bec6cab7108bee3984c (patch) | |
tree | ea579195273f6796b0b386c98867232f1771d0d0 /editeng | |
parent | 12bb4bc980863d4338725cf5a5dcaf3acbfddc09 (diff) |
convert EEHorizontalTextDirection to scoped enum
Change-Id: Icb7298742ae80fa17d5e6f6a3a09a6bb30892b6d
Reviewed-on: https://gerrit.libreoffice.org/46590
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 1597764a4927..5d2b0d27e8a3 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -137,7 +137,7 @@ ImpEditEngine::ImpEditEngine( EditEngine* pEE, SfxItemPool* pItemPool ) : nAsianCompressionMode = CharCompressType::NONE; - eDefaultHorizontalTextDirection = EE_HTEXTDIR_DEFAULT; + eDefaultHorizontalTextDirection = EEHorizontalTextDirection::Default; aStatus.GetControlWord() = EEControlBits::USECHARATTRIBS | EEControlBits::DOIDLEFORMAT | @@ -1971,12 +1971,12 @@ bool ImpEditEngine::IsRightToLeft( sal_Int32 nPara ) const if ( !IsVertical() ) { - bR2L = GetDefaultHorizontalTextDirection() == EE_HTEXTDIR_R2L; + bR2L = GetDefaultHorizontalTextDirection() == EEHorizontalTextDirection::R2L; pFrameDirItem = &GetParaAttrib( nPara, EE_PARA_WRITINGDIR ); if ( pFrameDirItem->GetValue() == SvxFrameDirection::Environment ) { // #103045# if DefaultHorizontalTextDirection is set, use that value, otherwise pool default. - if ( GetDefaultHorizontalTextDirection() != EE_HTEXTDIR_DEFAULT ) + if ( GetDefaultHorizontalTextDirection() != EEHorizontalTextDirection::Default ) { pFrameDirItem = nullptr; // bR2L already set to default horizontal text direction } |