diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-23 10:01:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-24 08:47:57 +0200 |
commit | f72baec784e9956702c429b8464c6d1b624e5481 (patch) | |
tree | b4a3954c0f165e65644b1fd2c687d72ca489ca80 /svx | |
parent | dd64e9ea7a36e6169a4419ff3e737e2759df2625 (diff) |
convert ControlType to scoped enum
Change-Id: I0b307045c477ea50bd596c491b501b7e8ae91cd4
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/tools/ValueSetWithTextControl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx index e3377e07e130..258466fcdec9 100644 --- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx +++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx @@ -31,7 +31,7 @@ namespace svx { namespace sidebar { ValueSetWithTextControl::ValueSetWithTextControl( - const tControlType eControlType, + const ControlType eControlType, vcl::Window* pParent, const ResId& rResId) : ValueSet( pParent, rResId ) @@ -47,7 +47,7 @@ void ValueSetWithTextControl::AddItem( const OUString& rItemText, const OUString* pItemHelpText ) { - if ( meControlType != IMAGE_TEXT ) + if ( meControlType != ControlType::ImageText ) { return; } @@ -87,7 +87,7 @@ void ValueSetWithTextControl::AddItem( const OUString& rItemText2, const OUString* pItemHelpText ) { - if ( meControlType != TEXT_TEXT ) + if ( meControlType != ControlType::TextText ) { return; } @@ -156,7 +156,7 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt ) switch ( meControlType ) { - case IMAGE_TEXT: + case ControlType::ImageText: { Point aImgStart( aBLPos.X() + 4, @@ -168,7 +168,7 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt ) pDev->DrawText(aStrRect, maItems[nItemId-1].maItemText, DrawTextFlags::EndEllipsis); } break; - case TEXT_TEXT: + case ControlType::TextText: { const long nRectWidth = aRect.GetWidth(); aStrRect.Left() += 8; |