diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-10 10:06:09 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-10 09:54:00 +0000 |
commit | effde80f670c60986a92ca0f1c5c9922eb17908d (patch) | |
tree | d9757c8e035d53710728e404bf4fb741594c1bb8 /framework/source/uielement/statusbaritem.cxx | |
parent | 034e481613742e7fc6f9d14c34dd1896bc1ba671 (diff) |
Convert StatusBarItemBits to scoped enum
Change-Id: Ic979d1470052039c4b966edd1d896af31ef55668
Reviewed-on: https://gerrit.libreoffice.org/24826
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'framework/source/uielement/statusbaritem.cxx')
-rw-r--r-- | framework/source/uielement/statusbaritem.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/framework/source/uielement/statusbaritem.cxx b/framework/source/uielement/statusbaritem.cxx index a79e0dd387b3..3c11376ca6b8 100644 --- a/framework/source/uielement/statusbaritem.cxx +++ b/framework/source/uielement/statusbaritem.cxx @@ -33,28 +33,28 @@ namespace framework namespace { -sal_uInt16 impl_convertItemBitsToItemStyle( sal_Int16 nItemBits ) +sal_uInt16 impl_convertItemBitsToItemStyle( StatusBarItemBits nItemBits ) { sal_uInt16 nStyle( 0 ); - if ( ( nItemBits & SIB_RIGHT ) == SIB_RIGHT ) + if ( nItemBits & StatusBarItemBits::Right ) nStyle |= ItemStyle::ALIGN_RIGHT; - else if ( ( nItemBits & SIB_LEFT ) == SIB_LEFT ) + else if ( nItemBits & StatusBarItemBits::Left ) nStyle |= ItemStyle::ALIGN_LEFT; else nStyle |= ItemStyle::ALIGN_CENTER; - if ( ( nItemBits & SIB_FLAT ) == SIB_FLAT ) + if ( nItemBits & StatusBarItemBits::Flat ) nStyle |= ItemStyle::DRAW_FLAT; - else if ( ( nItemBits & SIB_OUT ) == SIB_OUT ) + else if ( nItemBits & StatusBarItemBits::Out ) nStyle |= ItemStyle::DRAW_OUT3D; else nStyle |= ItemStyle::DRAW_IN3D; - if ( ( nItemBits & SIB_AUTOSIZE ) == SIB_AUTOSIZE ) + if ( nItemBits & StatusBarItemBits::AutoSize ) nStyle |= ItemStyle::AUTO_SIZE; - if ( ( nItemBits & SIB_USERDRAW ) == SIB_USERDRAW ) + if ( nItemBits & StatusBarItemBits::UserDraw ) nStyle |= ItemStyle::OWNER_DRAW; return nStyle; |