diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-23 13:18:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-24 08:47:57 +0200 |
commit | 02329af0cbd25f5901be2ec938984968080d17f5 (patch) | |
tree | 172d785ac623a44ecf3ac03a74fb2b877da2a3a6 /cui/source/tabpages/textanim.cxx | |
parent | 92743c1da67485338aadfc9e9444146f9bacd6d1 (diff) |
convert SdrTextAniDirection to scoped enum
Change-Id: I67d1ffb1169e9faf4df90dd70a5496aa485979cf
Diffstat (limited to 'cui/source/tabpages/textanim.cxx')
-rw-r--r-- | cui/source/tabpages/textanim.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cui/source/tabpages/textanim.cxx b/cui/source/tabpages/textanim.cxx index 5c9ba06dedb7..b2ffc914913a 100644 --- a/cui/source/tabpages/textanim.cxx +++ b/cui/source/tabpages/textanim.cxx @@ -618,26 +618,26 @@ IMPL_LINK_TYPED( SvxTextAnimationPage, ClickDirectionHdl_Impl, Button *, pBtn, v void SvxTextAnimationPage::SelectDirection( SdrTextAniDirection nValue ) { - m_pBtnUp->Check( nValue == SDRTEXTANI_UP ); - m_pBtnLeft->Check( nValue == SDRTEXTANI_LEFT ); - m_pBtnRight->Check( nValue == SDRTEXTANI_RIGHT ); - m_pBtnDown->Check( nValue == SDRTEXTANI_DOWN ); + m_pBtnUp->Check( nValue == SdrTextAniDirection::Up ); + m_pBtnLeft->Check( nValue == SdrTextAniDirection::Left ); + m_pBtnRight->Check( nValue == SdrTextAniDirection::Right ); + m_pBtnDown->Check( nValue == SdrTextAniDirection::Down ); } sal_uInt16 SvxTextAnimationPage::GetSelectedDirection() { - sal_uInt16 nValue = 0; + SdrTextAniDirection nValue = SdrTextAniDirection::Left; if( m_pBtnUp->IsChecked() ) - nValue = SDRTEXTANI_UP; + nValue = SdrTextAniDirection::Up; else if( m_pBtnLeft->IsChecked() ) - nValue = SDRTEXTANI_LEFT; + nValue = SdrTextAniDirection::Left; else if( m_pBtnRight->IsChecked() ) - nValue = SDRTEXTANI_RIGHT; + nValue = SdrTextAniDirection::Right; else if( m_pBtnDown->IsChecked() ) - nValue = SDRTEXTANI_DOWN; + nValue = SdrTextAniDirection::Down; - return nValue; + return (sal_uInt16)nValue; } |