Kaydet (Commit) 402ae4c0 authored tarafından Noel Grandin's avatar Noel Grandin

convert ProminentEntry to enum class

Change-Id: I51578e83a6a44beece174792c9e3e59f7f8c5fef
üst 28c61871
...@@ -312,7 +312,7 @@ typedef sal_uInt16 StandardButtonType; ...@@ -312,7 +312,7 @@ typedef sal_uInt16 StandardButtonType;
// prominent place for ListBox window types // prominent place for ListBox window types
enum ProminentEntry { PROMINENT_TOP, PROMINENT_MIDDLE }; enum class ProminentEntry { TOP, MIDDLE };
#endif #endif
......
...@@ -1530,7 +1530,7 @@ void FontSizeBox::ImplInit() ...@@ -1530,7 +1530,7 @@ void FontSizeBox::ImplInit()
SetDecimalDigits( 1 ); SetDecimalDigits( 1 );
SetMin( 20 ); SetMin( 20 );
SetMax( 9999 ); SetMax( 9999 );
SetProminentEntryType( PROMINENT_MIDDLE ); SetProminentEntryType( ProminentEntry::MIDDLE );
} }
void FontSizeBox::Reformat() void FontSizeBox::Reformat()
......
...@@ -524,7 +524,7 @@ ImplListBoxWindow::ImplListBoxWindow( vcl::Window* pParent, WinBits nWinStyle ) ...@@ -524,7 +524,7 @@ ImplListBoxWindow::ImplListBoxWindow( vcl::Window* pParent, WinBits nWinStyle )
mnCurrentPos = LISTBOX_ENTRY_NOTFOUND; mnCurrentPos = LISTBOX_ENTRY_NOTFOUND;
mnTrackingSaveSelection = LISTBOX_ENTRY_NOTFOUND; mnTrackingSaveSelection = LISTBOX_ENTRY_NOTFOUND;
mnSeparatorPos = LISTBOX_ENTRY_NOTFOUND; mnSeparatorPos = LISTBOX_ENTRY_NOTFOUND;
meProminentType = PROMINENT_TOP; meProminentType = ProminentEntry::TOP;
SetLineColor(); SetLineColor();
SetTextFillColor(); SetTextFillColor();
...@@ -1992,7 +1992,7 @@ void ImplListBoxWindow::SetTopEntry( sal_Int32 nTop ) ...@@ -1992,7 +1992,7 @@ void ImplListBoxWindow::SetTopEntry( sal_Int32 nTop )
void ImplListBoxWindow::ShowProminentEntry( sal_Int32 nEntryPos ) void ImplListBoxWindow::ShowProminentEntry( sal_Int32 nEntryPos )
{ {
if( meProminentType == PROMINENT_MIDDLE ) if( meProminentType == ProminentEntry::MIDDLE )
{ {
sal_Int32 nPos = nEntryPos; sal_Int32 nPos = nEntryPos;
long nWHeight = PixelToLogic( GetSizePixel() ).Height(); long nWHeight = PixelToLogic( GetSizePixel() ).Height();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment