summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/button.cxx88
-rw-r--r--vcl/source/control/combobox.cxx20
-rw-r--r--vcl/source/control/ctrl.cxx16
-rw-r--r--vcl/source/control/edit.cxx22
-rw-r--r--vcl/source/control/fixed.cxx56
-rw-r--r--vcl/source/control/group.cxx16
-rw-r--r--vcl/source/control/ilstbox.cxx40
-rw-r--r--vcl/source/control/lstbox.cxx20
-rw-r--r--vcl/source/control/prgsbar.cxx8
-rw-r--r--vcl/source/control/scrbar.cxx18
-rw-r--r--vcl/source/control/slider.cxx16
-rw-r--r--vcl/source/control/spinbtn.cxx15
-rw-r--r--vcl/source/control/spinfld.cxx16
-rw-r--r--vcl/source/control/tabctrl.cxx12
-rw-r--r--vcl/source/edit/vclmedit.cxx16
-rw-r--r--vcl/source/uipreviewer/previewer.cxx2
-rw-r--r--vcl/source/window/brdwin.cxx6
-rw-r--r--vcl/source/window/btndlg.cxx2
-rw-r--r--vcl/source/window/dialog.cxx4
-rw-r--r--vcl/source/window/dockingarea.cxx2
-rw-r--r--vcl/source/window/dockwin.cxx4
-rw-r--r--vcl/source/window/event.cxx2
-rw-r--r--vcl/source/window/floatwin.cxx4
-rw-r--r--vcl/source/window/globalization.cxx2
-rw-r--r--vcl/source/window/layout.cxx2
-rw-r--r--vcl/source/window/menubarwindow.cxx4
-rw-r--r--vcl/source/window/menufloatingwindow.cxx2
-rw-r--r--vcl/source/window/msgbox.cxx2
-rw-r--r--vcl/source/window/splitwin.cxx7
-rw-r--r--vcl/source/window/status.cxx12
-rw-r--r--vcl/source/window/tabdlg.cxx2
-rw-r--r--vcl/source/window/tabpage.cxx4
-rw-r--r--vcl/source/window/toolbox.cxx14
-rw-r--r--vcl/source/window/window.cxx34
-rw-r--r--vcl/source/window/window2.cxx20
35 files changed, 256 insertions, 254 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 5db9d6d1fa5e..52ef7b3afd84 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -163,7 +163,7 @@ bool Button::SetModeImage( const Image& rImage )
if ( rImage != mpButtonData->maImage )
{
mpButtonData->maImage = rImage;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
queue_resize();
}
return true;
@@ -184,7 +184,7 @@ void Button::SetImageAlign( ImageAlign eAlign )
if ( mpButtonData->meImageAlign != eAlign )
{
mpButtonData->meImageAlign = eAlign;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -549,7 +549,7 @@ void Button::ImplSetSymbolAlign( SymbolAlign eAlign )
if ( mpButtonData->meSymbolAlign != eAlign )
{
mpButtonData->meSymbolAlign = eAlign;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -1434,17 +1434,17 @@ void PushButton::StateChanged( StateChangedType nType )
{
Button::StateChanged( nType );
- if ( (nType == STATE_CHANGE_ENABLE) ||
- (nType == STATE_CHANGE_TEXT) ||
- (nType == STATE_CHANGE_IMAGE) ||
- (nType == STATE_CHANGE_DATA) ||
- (nType == STATE_CHANGE_STATE) ||
- (nType == STATE_CHANGE_UPDATEMODE) )
+ if ( (nType == StateChangedType::ENABLE) ||
+ (nType == StateChangedType::TEXT) ||
+ (nType == StateChangedType::IMAGE) ||
+ (nType == StateChangedType::DATA) ||
+ (nType == StateChangedType::STATE) ||
+ (nType == StateChangedType::UPDATEMODE) )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetWindow( WINDOW_PREV ), GetStyle() ) );
@@ -1460,18 +1460,18 @@ void PushButton::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ else if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -1567,7 +1567,7 @@ void PushButton::SetSymbol( SymbolType eSymbol )
if ( meSymbol != eSymbol )
{
meSymbol = eSymbol;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -1581,7 +1581,7 @@ void PushButton::SetDropDown( sal_uInt16 nStyle )
if ( mnDDStyle != nStyle )
{
mnDDStyle = nStyle;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -1603,7 +1603,7 @@ void PushButton::SetState( TriState eState )
ImplGetButtonState() |= BUTTON_DRAW_DONTKNOW;
}
- StateChanged( STATE_CHANGE_STATE );
+ StateChanged( StateChangedType::STATE );
Toggle();
}
}
@@ -1613,7 +1613,7 @@ void PushButton::SetPressed( bool bPressed )
if ( mbPressed != bPressed )
{
mbPressed = bPressed;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -2562,21 +2562,21 @@ void RadioButton::StateChanged( StateChangedType nType )
{
Button::StateChanged( nType );
- if ( nType == STATE_CHANGE_STATE )
+ if ( nType == StateChangedType::STATE )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate( maStateRect );
}
- else if ( (nType == STATE_CHANGE_ENABLE) ||
- (nType == STATE_CHANGE_TEXT) ||
- (nType == STATE_CHANGE_IMAGE) ||
- (nType == STATE_CHANGE_DATA) ||
- (nType == STATE_CHANGE_UPDATEMODE) )
+ else if ( (nType == StateChangedType::ENABLE) ||
+ (nType == StateChangedType::TEXT) ||
+ (nType == StateChangedType::IMAGE) ||
+ (nType == StateChangedType::DATA) ||
+ (nType == StateChangedType::UPDATEMODE) )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetWindow( WINDOW_PREV ), GetStyle() ) );
@@ -2587,18 +2587,18 @@ void RadioButton::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ else if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -2655,7 +2655,7 @@ bool RadioButton::SetModeRadioImage( const Image& rImage )
if ( rImage != maImage )
{
maImage = rImage;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
queue_resize();
}
return true;
@@ -2673,7 +2673,7 @@ void RadioButton::SetState( bool bCheck )
if ( mbChecked != bCheck )
{
mbChecked = bCheck;
- StateChanged( STATE_CHANGE_STATE );
+ StateChanged( StateChangedType::STATE );
Toggle();
}
}
@@ -2730,7 +2730,7 @@ void RadioButton::Check( bool bCheck )
mbChecked = bCheck;
ImplDelData aDelData;
ImplAddDel( &aDelData );
- StateChanged( STATE_CHANGE_STATE );
+ StateChanged( StateChangedType::STATE );
if ( aDelData.IsDead() )
return;
if ( bCheck && mbRadioCheck )
@@ -3496,21 +3496,21 @@ void CheckBox::StateChanged( StateChangedType nType )
{
Button::StateChanged( nType );
- if ( nType == STATE_CHANGE_STATE )
+ if ( nType == StateChangedType::STATE )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate( maStateRect );
}
- else if ( (nType == STATE_CHANGE_ENABLE) ||
- (nType == STATE_CHANGE_TEXT) ||
- (nType == STATE_CHANGE_IMAGE) ||
- (nType == STATE_CHANGE_DATA) ||
- (nType == STATE_CHANGE_UPDATEMODE) )
+ else if ( (nType == StateChangedType::ENABLE) ||
+ (nType == StateChangedType::TEXT) ||
+ (nType == StateChangedType::IMAGE) ||
+ (nType == StateChangedType::DATA) ||
+ (nType == StateChangedType::UPDATEMODE) )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetWindow( WINDOW_PREV ), GetStyle() ) );
@@ -3521,18 +3521,18 @@ void CheckBox::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ else if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -3592,7 +3592,7 @@ void CheckBox::SetState( TriState eState )
if ( meState != eState )
{
meState = eState;
- StateChanged( STATE_CHANGE_STATE );
+ StateChanged( StateChangedType::STATE );
Toggle();
}
}
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 2880c9011c95..857e38926651 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -599,13 +599,13 @@ void ComboBox::StateChanged( StateChangedType nType )
{
Edit::StateChanged( nType );
- if ( nType == STATE_CHANGE_READONLY )
+ if ( nType == StateChangedType::READONLY )
{
mpImplLB->SetReadOnly( IsReadOnly() );
if ( mpBtn )
mpBtn->Enable( IsEnabled() && !IsReadOnly() );
}
- else if ( nType == STATE_CHANGE_ENABLE )
+ else if ( nType == StateChangedType::ENABLE )
{
mpSubEdit->Enable( IsEnabled() );
mpImplLB->Enable( IsEnabled() && !IsReadOnly() );
@@ -613,47 +613,47 @@ void ComboBox::StateChanged( StateChangedType nType )
mpBtn->Enable( IsEnabled() && !IsReadOnly() );
Invalidate();
}
- else if( nType == STATE_CHANGE_UPDATEMODE )
+ else if( nType == StateChangedType::UPDATEMODE )
{
mpImplLB->SetUpdateMode( IsUpdateMode() );
}
- else if ( nType == STATE_CHANGE_ZOOM )
+ else if ( nType == StateChangedType::ZOOM )
{
mpImplLB->SetZoom( GetZoom() );
mpSubEdit->SetZoom( GetZoom() );
ImplCalcEditHeight();
Resize();
}
- else if ( nType == STATE_CHANGE_CONTROLFONT )
+ else if ( nType == StateChangedType::CONTROLFONT )
{
mpImplLB->SetControlFont( GetControlFont() );
mpSubEdit->SetControlFont( GetControlFont() );
ImplCalcEditHeight();
Resize();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
mpImplLB->SetControlForeground( GetControlForeground() );
mpSubEdit->SetControlForeground( GetControlForeground() );
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
mpImplLB->SetControlBackground( GetControlBackground() );
mpSubEdit->SetControlBackground( GetControlBackground() );
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetStyle() ) );
mpImplLB->GetMainWindow().EnableSort( ( GetStyle() & WB_SORT ) ? true : false );
}
- else if( nType == STATE_CHANGE_MIRRORING )
+ else if( nType == StateChangedType::MIRRORING )
{
if( mpBtn )
{
mpBtn->EnableRTL( IsRTLEnabled() );
ImplInitDropDownButton( mpBtn );
}
- mpSubEdit->StateChanged( STATE_CHANGE_MIRRORING );
+ mpSubEdit->StateChanged( StateChangedType::MIRRORING );
mpImplLB->EnableRTL( IsRTLEnabled() );
Resize();
}
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index 4282453df27d..3654cbd51b48 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -75,7 +75,7 @@ void Control::EnableRTL( bool bEnable )
// convenience: for controls also switch layout mode
SetLayoutMode( bEnable ? TEXT_LAYOUT_BIDI_RTL | TEXT_LAYOUT_TEXTORIGIN_LEFT :
TEXT_LAYOUT_TEXTORIGIN_LEFT );
- StateChanged( STATE_CHANGE_MIRRORING );
+ StateChanged( StateChangedType::MIRRORING );
OutputDevice::EnableRTL(bEnable);
}
@@ -248,7 +248,7 @@ bool Control::Notify( NotifyEvent& rNEvt )
if ( !mbHasControlFocus )
{
mbHasControlFocus = true;
- StateChanged( STATE_CHANGE_CONTROL_FOCUS );
+ StateChanged( StateChangedType::CONTROL_FOCUS );
if ( ImplCallEventListenersAndHandler( VCLEVENT_CONTROL_GETFOCUS, maGetFocusHdl, this ) )
// been destroyed within the handler
return true;
@@ -262,7 +262,7 @@ bool Control::Notify( NotifyEvent& rNEvt )
if ( !pFocusWin || !ImplIsWindowOrChild( pFocusWin ) )
{
mbHasControlFocus = false;
- StateChanged( STATE_CHANGE_CONTROL_FOCUS );
+ StateChanged( StateChangedType::CONTROL_FOCUS );
if ( ImplCallEventListenersAndHandler( VCLEVENT_CONTROL_LOSEFOCUS, maLoseFocusHdl, this ) )
// been destroyed within the handler
return true;
@@ -275,11 +275,11 @@ bool Control::Notify( NotifyEvent& rNEvt )
void Control::StateChanged( StateChangedType nStateChange )
{
- if( nStateChange == STATE_CHANGE_INITSHOW ||
- nStateChange == STATE_CHANGE_VISIBLE ||
- nStateChange == STATE_CHANGE_ZOOM ||
- nStateChange == STATE_CHANGE_BORDER ||
- nStateChange == STATE_CHANGE_CONTROLFONT
+ if( nStateChange == StateChangedType::INITSHOW ||
+ nStateChange == StateChangedType::VISIBLE ||
+ nStateChange == StateChangedType::ZOOM ||
+ nStateChange == StateChangedType::BORDER ||
+ nStateChange == StateChangedType::CONTROLFONT
)
{
ImplClearLayoutData();
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 5d0bb1db13b4..2c57deecd063 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2193,7 +2193,7 @@ void Edit::Command( const CommandEvent& rCEvt )
void Edit::StateChanged( StateChangedType nType )
{
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
{
if ( !mpSubEdit )
{
@@ -2205,7 +2205,7 @@ void Edit::StateChanged( StateChangedType nType )
// update background (eventual SetPaintTransparent)
ImplInitSettings( false, false, true );
}
- else if ( nType == STATE_CHANGE_ENABLE )
+ else if ( nType == StateChangedType::ENABLE )
{
if ( !mpSubEdit )
{
@@ -2213,10 +2213,10 @@ void Edit::StateChanged( StateChangedType nType )
ImplInvalidateOrRepaint();
}
}
- else if ( nType == STATE_CHANGE_STYLE || nType == STATE_CHANGE_MIRRORING )
+ else if ( nType == StateChangedType::STYLE || nType == StateChangedType::MIRRORING )
{
WinBits nStyle = GetStyle();
- if( nType == STATE_CHANGE_STYLE )
+ if( nType == StateChangedType::STYLE )
{
nStyle = ImplInitStyle( GetStyle() );
SetStyle( nStyle );
@@ -2232,12 +2232,12 @@ void Edit::StateChanged( StateChangedType nType )
{
if( GetParent()->GetStyle() & WB_LEFT )
mnAlign = EDIT_ALIGN_RIGHT;
- if ( nType == STATE_CHANGE_MIRRORING )
+ if ( nType == StateChangedType::MIRRORING )
SetLayoutMode( TEXT_LAYOUT_BIDI_RTL | TEXT_LAYOUT_TEXTORIGIN_LEFT );
}
else if( mbIsSubEdit && !GetParent()->IsRTLEnabled() )
{
- if ( nType == STATE_CHANGE_MIRRORING )
+ if ( nType == StateChangedType::MIRRORING )
SetLayoutMode( TEXT_LAYOUT_TEXTORIGIN_LEFT );
}
@@ -2252,7 +2252,7 @@ void Edit::StateChanged( StateChangedType nType )
}
}
- else if ( nType == STATE_CHANGE_ZOOM )
+ else if ( nType == StateChangedType::ZOOM )
{
if ( !mpSubEdit )
{
@@ -2261,7 +2261,7 @@ void Edit::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == STATE_CHANGE_CONTROLFONT )
+ else if ( nType == StateChangedType::CONTROLFONT )
{
if ( !mpSubEdit )
{
@@ -2270,7 +2270,7 @@ void Edit::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
if ( !mpSubEdit )
{
@@ -2278,7 +2278,7 @@ void Edit::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
if ( !mpSubEdit )
{
@@ -2442,7 +2442,7 @@ void Edit::SetReadOnly( bool bReadOnly )
if ( mpSubEdit )
mpSubEdit->SetReadOnly( bReadOnly );
- StateChanged( STATE_CHANGE_READONLY );
+ StateChanged( StateChangedType::READONLY );
}
}
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index beaa5b835aa7..06a3cde5cee0 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -287,14 +287,14 @@ void FixedText::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( (nType == STATE_CHANGE_ENABLE) ||
- (nType == STATE_CHANGE_TEXT) ||
- (nType == STATE_CHANGE_UPDATEMODE) )
+ if ( (nType == StateChangedType::ENABLE) ||
+ (nType == StateChangedType::TEXT) ||
+ (nType == StateChangedType::UPDATEMODE) )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetStyle() ) );
if ( (GetPrevStyle() & FIXEDTEXT_VIEW_STYLE) !=
@@ -304,18 +304,18 @@ void FixedText::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ else if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -653,33 +653,33 @@ void FixedLine::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( (nType == STATE_CHANGE_ENABLE) ||
- (nType == STATE_CHANGE_TEXT) ||
- (nType == STATE_CHANGE_UPDATEMODE) )
+ if ( (nType == StateChangedType::ENABLE) ||
+ (nType == StateChangedType::TEXT) ||
+ (nType == StateChangedType::UPDATEMODE) )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetStyle() ) );
if ( (GetPrevStyle() & FIXEDLINE_VIEW_STYLE) !=
(GetStyle() & FIXEDLINE_VIEW_STYLE) )
Invalidate();
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_STYLE) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ else if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::STYLE) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -807,20 +807,20 @@ void FixedBitmap::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( (nType == STATE_CHANGE_DATA) ||
- (nType == STATE_CHANGE_UPDATEMODE) )
+ if ( (nType == StateChangedType::DATA) ||
+ (nType == StateChangedType::UPDATEMODE) )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetStyle() ) );
if ( (GetPrevStyle() & FIXEDBITMAP_VIEW_STYLE) !=
(GetStyle() & FIXEDBITMAP_VIEW_STYLE) )
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings();
Invalidate();
@@ -842,7 +842,7 @@ void FixedBitmap::DataChanged( const DataChangedEvent& rDCEvt )
void FixedBitmap::SetBitmap( const Bitmap& rBitmap )
{
maBitmap = rBitmap;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
queue_resize();
}
@@ -994,21 +994,21 @@ void FixedImage::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( (nType == STATE_CHANGE_ENABLE) ||
- (nType == STATE_CHANGE_DATA) ||
- (nType == STATE_CHANGE_UPDATEMODE) )
+ if ( (nType == StateChangedType::ENABLE) ||
+ (nType == StateChangedType::DATA) ||
+ (nType == StateChangedType::UPDATEMODE) )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetStyle() ) );
if ( (GetPrevStyle() & FIXEDIMAGE_VIEW_STYLE) !=
(GetStyle() & FIXEDIMAGE_VIEW_STYLE) )
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings();
Invalidate();
@@ -1032,7 +1032,7 @@ void FixedImage::SetImage( const Image& rImage )
if ( rImage != maImage )
{
maImage = rImage;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
queue_resize();
}
}
diff --git a/vcl/source/control/group.cxx b/vcl/source/control/group.cxx
index 795bb3b43797..5fa38b242244 100644
--- a/vcl/source/control/group.cxx
+++ b/vcl/source/control/group.cxx
@@ -223,32 +223,32 @@ void GroupBox::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( (nType == STATE_CHANGE_ENABLE) ||
- (nType == STATE_CHANGE_TEXT) ||
- (nType == STATE_CHANGE_UPDATEMODE) )
+ if ( (nType == StateChangedType::ENABLE) ||
+ (nType == StateChangedType::TEXT) ||
+ (nType == StateChangedType::UPDATEMODE) )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetStyle() ) );
if ( (GetPrevStyle() & GROUP_VIEW_STYLE) !=
(GetStyle() & GROUP_VIEW_STYLE) )
Invalidate();
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ else if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index d936d3b2f6dc..693070fe6261 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -2061,34 +2061,34 @@ void ImplListBoxWindow::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == STATE_CHANGE_ZOOM )
+ if ( nType == StateChangedType::ZOOM )
{
ImplInitSettings( true, false, false );
ImplCalcMetrics();
Invalidate();
}
- else if ( nType == STATE_CHANGE_UPDATEMODE )
+ else if ( nType == StateChangedType::UPDATEMODE )
{
if ( IsUpdateMode() && IsReallyVisible() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFONT )
+ else if ( nType == StateChangedType::CONTROLFONT )
{
ImplInitSettings( true, false, false );
ImplCalcMetrics();
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
}
- else if( nType == STATE_CHANGE_ENABLE )
+ else if( nType == StateChangedType::ENABLE )
{
Invalidate();
}
@@ -2173,7 +2173,7 @@ void ImplListBox::Clear()
}
mpVScrollBar->SetThumbPos( 0 );
mpHScrollBar->SetThumbPos( 0 );
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
sal_Int32 ImplListBox::InsertEntry( sal_Int32 nPos, const OUString& rStr )
@@ -2185,7 +2185,7 @@ sal_Int32 ImplListBox::InsertEntry( sal_Int32 nPos, const OUString& rStr )
delete pNewEntry;
return nNewPos;
}
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
return nNewPos;
}
@@ -2198,14 +2198,14 @@ sal_Int32 ImplListBox::InsertEntry( sal_Int32 nPos, const OUString& rStr, const
delete pNewEntry;
return nNewPos;
}
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
return nNewPos;
}
void ImplListBox::RemoveEntry( sal_Int32 nPos )
{
maLBWindow.RemoveEntry( nPos );
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
void ImplListBox::SetEntryFlags( sal_Int32 nPos, long nFlags )
@@ -2242,7 +2242,7 @@ void ImplListBox::Resize()
IMPL_LINK_NOARG(ImplListBox, MRUChanged)
{
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
return 1;
}
@@ -2438,18 +2438,18 @@ void ImplListBox::ImplResizeControls()
void ImplListBox::StateChanged( StateChangedType nType )
{
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
{
ImplCheckScrollBars();
}
- else if ( ( nType == STATE_CHANGE_UPDATEMODE ) || ( nType == STATE_CHANGE_DATA ) )
+ else if ( ( nType == StateChangedType::UPDATEMODE ) || ( nType == StateChangedType::DATA ) )
{
bool bUpdate = IsUpdateMode();
maLBWindow.SetUpdateMode( bUpdate );
if ( bUpdate && IsReallyVisible() )
ImplCheckScrollBars();
}
- else if( nType == STATE_CHANGE_ENABLE )
+ else if( nType == StateChangedType::ENABLE )
{
mpHScrollBar->Enable( IsEnabled() );
mpVScrollBar->Enable( IsEnabled() );
@@ -2458,24 +2458,24 @@ void ImplListBox::StateChanged( StateChangedType nType )
Invalidate();
}
- else if ( nType == STATE_CHANGE_ZOOM )
+ else if ( nType == StateChangedType::ZOOM )
{
maLBWindow.SetZoom( GetZoom() );
Resize();
}
- else if ( nType == STATE_CHANGE_CONTROLFONT )
+ else if ( nType == StateChangedType::CONTROLFONT )
{
maLBWindow.SetControlFont( GetControlFont() );
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
maLBWindow.SetControlForeground( GetControlForeground() );
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
maLBWindow.SetControlBackground( GetControlBackground() );
}
- else if( nType == STATE_CHANGE_MIRRORING )
+ else if( nType == StateChangedType::MIRRORING )
{
maLBWindow.EnableRTL( IsRTLEnabled() );
mpHScrollBar->EnableRTL( IsRTLEnabled() );
@@ -2558,7 +2558,7 @@ void ImplListBox::SetMRUEntries( const OUString& rEntries, sal_Unicode cSep )
{
maLBWindow.GetEntryList()->SetMRUCount( nMRUCount );
SetSeparatorPos( nMRUCount ? nMRUCount-1 : 0 );
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index c0451281ce5f..9942aeb56cf4 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -769,14 +769,14 @@ long ListBox::GetIndexForPoint( const Point& rPoint, sal_Int32& rPos ) const
void ListBox::StateChanged( StateChangedType nType )
{
- if( nType == STATE_CHANGE_READONLY )
+ if( nType == StateChangedType::READONLY )
{
if( mpImplWin )
mpImplWin->Enable( !IsReadOnly() );
if( mpBtn )
mpBtn->Enable( !IsReadOnly() );
}
- else if( nType == STATE_CHANGE_ENABLE )
+ else if( nType == StateChangedType::ENABLE )
{
mpImplLB->Enable( IsEnabled() );
if( mpImplWin )
@@ -793,11 +793,11 @@ void ListBox::StateChanged( StateChangedType nType )
if( mpBtn )
mpBtn->Enable( IsEnabled() );
}
- else if( nType == STATE_CHANGE_UPDATEMODE )
+ else if( nType == StateChangedType::UPDATEMODE )
{
mpImplLB->SetUpdateMode( IsUpdateMode() );
}
- else if ( nType == STATE_CHANGE_ZOOM )
+ else if ( nType == StateChangedType::ZOOM )
{
mpImplLB->SetZoom( GetZoom() );
if ( mpImplWin )
@@ -808,7 +808,7 @@ void ListBox::StateChanged( StateChangedType nType )
}
Resize();
}
- else if ( nType == STATE_CHANGE_CONTROLFONT )
+ else if ( nType == StateChangedType::CONTROLFONT )
{
mpImplLB->SetControlFont( GetControlFont() );
if ( mpImplWin )
@@ -819,7 +819,7 @@ void ListBox::StateChanged( StateChangedType nType )
}
Resize();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
mpImplLB->SetControlForeground( GetControlForeground() );
if ( mpImplWin )
@@ -830,7 +830,7 @@ void ListBox::StateChanged( StateChangedType nType )
mpImplWin->Invalidate();
}
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
mpImplLB->SetControlBackground( GetControlBackground() );
if ( mpImplWin )
@@ -850,14 +850,14 @@ void ListBox::StateChanged( StateChangedType nType )
mpImplWin->Invalidate();
}
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
SetStyle( ImplInitStyle( GetStyle() ) );
mpImplLB->GetMainWindow().EnableSort( ( GetStyle() & WB_SORT ) ? true : false );
bool bSimpleMode = ( GetStyle() & WB_SIMPLEMODE ) ? true : false;
mpImplLB->SetMultiSelectionSimpleMode( bSimpleMode );
}
- else if( nType == STATE_CHANGE_MIRRORING )
+ else if( nType == StateChangedType::MIRRORING )
{
if( mpBtn )
{
@@ -1396,7 +1396,7 @@ void ListBox::SetReadOnly( bool bReadOnly )
if ( mpImplLB->IsReadOnly() != bReadOnly )
{
mpImplLB->SetReadOnly( bReadOnly );
- StateChanged( STATE_CHANGE_READONLY );
+ StateChanged( StateChangedType::READONLY );
}
}
diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx
index d1b7bf9d6d69..1536f9336b09 100644
--- a/vcl/source/control/prgsbar.cxx
+++ b/vcl/source/control/prgsbar.cxx
@@ -185,20 +185,20 @@ void ProgressBar::SetValue( sal_uInt16 nNewPercent )
void ProgressBar::StateChanged( StateChangedType nType )
{
/* FIXME: !!! We do not support text output at the moment
- if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
else
*/
- if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index d9ee7576306b..df763dd5ad4f 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -1166,14 +1166,14 @@ void ScrollBar::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
ImplCalc( false );
- else if ( nType == STATE_CHANGE_DATA )
+ else if ( nType == StateChangedType::DATA )
{
if ( IsReallyVisible() && IsUpdateMode() )
ImplCalc( true );
}
- else if ( nType == STATE_CHANGE_UPDATEMODE )
+ else if ( nType == StateChangedType::UPDATEMODE )
{
if ( IsReallyVisible() && IsUpdateMode() )
{
@@ -1181,12 +1181,12 @@ void ScrollBar::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == STATE_CHANGE_ENABLE )
+ else if ( nType == StateChangedType::ENABLE )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
ImplInitStyle( GetStyle() );
if ( IsReallyVisible() && IsUpdateMode() )
@@ -1363,7 +1363,7 @@ void ScrollBar::SetRange( const Range& rRange )
if ( mnThumbPos < mnMinRange )
mnThumbPos = mnMinRange;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -1377,7 +1377,7 @@ void ScrollBar::SetThumbPos( long nNewThumbPos )
if ( mnThumbPos != nNewThumbPos )
{
mnThumbPos = nNewThumbPos;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -1392,7 +1392,7 @@ void ScrollBar::SetVisibleSize( long nNewSize )
mnThumbPos = mnMaxRange-mnVisibleSize;
if ( mnThumbPos < mnMinRange )
mnThumbPos = mnMinRange;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -1463,7 +1463,7 @@ void ScrollBarBox::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings();
Invalidate();
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 0ebdc37dc66e..106ca0d7f31f 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -831,14 +831,14 @@ void Slider::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
ImplCalc( false );
- else if ( nType == STATE_CHANGE_DATA )
+ else if ( nType == StateChangedType::DATA )
{
if ( IsReallyVisible() && IsUpdateMode() )
ImplCalc( true );
}
- else if ( nType == STATE_CHANGE_UPDATEMODE )
+ else if ( nType == StateChangedType::UPDATEMODE )
{
if ( IsReallyVisible() && IsUpdateMode() )
{
@@ -846,12 +846,12 @@ void Slider::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == STATE_CHANGE_ENABLE )
+ else if ( nType == StateChangedType::ENABLE )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
if ( IsReallyVisible() && IsUpdateMode() )
{
@@ -864,7 +864,7 @@ void Slider::StateChanged( StateChangedType nType )
}
}
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings();
Invalidate();
@@ -914,7 +914,7 @@ void Slider::SetRange( const Range& rRange )
if ( mnThumbPos < mnMinRange )
mnThumbPos = mnMinRange;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -928,7 +928,7 @@ void Slider::SetThumbPos( long nNewThumbPos )
if ( mnThumbPos != nNewThumbPos )
{
mnThumbPos = nNewThumbPos;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx
index b7d9de824902..122aed10c89d 100644
--- a/vcl/source/control/spinbtn.cxx
+++ b/vcl/source/control/spinbtn.cxx
@@ -82,7 +82,7 @@ void SpinButton::Up()
if ( ImplIsUpperEnabled() )
{
mnValue += mnValueStep;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
ImplMoveFocus( true );
}
@@ -95,7 +95,7 @@ void SpinButton::Down()
if ( ImplIsLowerEnabled() )
{
mnValue -= mnValueStep;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
ImplMoveFocus( false );
}
@@ -315,12 +315,12 @@ void SpinButton::StateChanged( StateChangedType nType )
{
switch ( nType )
{
- case STATE_CHANGE_DATA:
- case STATE_CHANGE_ENABLE:
+ case StateChangedType::DATA:
+ case StateChangedType::ENABLE:
Invalidate();
break;
- case STATE_CHANGE_STYLE:
+ case StateChangedType::STYLE:
{
bool bNewRepeat = 0 != ( GetStyle() & WB_REPEAT );
if ( bNewRepeat != mbRepeat )
@@ -341,6 +341,7 @@ void SpinButton::StateChanged( StateChangedType nType )
}
}
break;
+ default:;
}
Control::StateChanged( nType );
@@ -377,7 +378,7 @@ void SpinButton::SetRange( const Range& rRange )
if ( mnValue < mnMinRange )
mnValue = mnMinRange;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
@@ -392,7 +393,7 @@ void SpinButton::SetValue( long nValue )
if ( mnValue != nValue )
{
mnValue = nValue;
- StateChanged( STATE_CHANGE_DATA );
+ StateChanged( StateChangedType::DATA );
}
}
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index a6c558317eea..c1a81b2e73d6 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -772,7 +772,7 @@ void SpinField::StateChanged( StateChangedType nType )
{
Edit::StateChanged( nType );
- if ( nType == STATE_CHANGE_ENABLE )
+ if ( nType == StateChangedType::ENABLE )
{
if ( mbSpin || ( GetStyle() & WB_DROPDOWN ) )
{
@@ -787,45 +787,45 @@ void SpinField::StateChanged( StateChangedType nType )
Invalidate( maDropDownRect );
}
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
if ( GetStyle() & WB_REPEAT )
mbRepeat = true;
else
mbRepeat = false;
}
- else if ( nType == STATE_CHANGE_ZOOM )
+ else if ( nType == StateChangedType::ZOOM )
{
Resize();
if ( mpEdit )
mpEdit->SetZoom( GetZoom() );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFONT )
+ else if ( nType == StateChangedType::CONTROLFONT )
{
if ( mpEdit )
mpEdit->SetControlFont( GetControlFont() );
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
if ( mpEdit )
mpEdit->SetControlForeground( GetControlForeground() );
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
if ( mpEdit )
mpEdit->SetControlBackground( GetControlBackground() );
ImplInitSettings( false, false, true );
Invalidate();
}
- else if( nType == STATE_CHANGE_MIRRORING )
+ else if( nType == StateChangedType::MIRRORING )
{
if( mpEdit )
- mpEdit->StateChanged( STATE_CHANGE_MIRRORING );
+ mpEdit->StateChanged( StateChangedType::MIRRORING );
Resize();
}
}
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 446f0727ceb0..b28b4ca030b3 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -1468,29 +1468,29 @@ void TabControl::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
{
ImplPosCurTabPage();
if( mpTabCtrlData->mpListBox )
Resize();
}
- else if ( nType == STATE_CHANGE_UPDATEMODE )
+ else if ( nType == StateChangedType::UPDATEMODE )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ else if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index ff7cd6c8ae25..7314fa1386c9 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -1234,43 +1234,43 @@ void VclMultiLineEdit::GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16&
void VclMultiLineEdit::StateChanged( StateChangedType nType )
{
- if( nType == STATE_CHANGE_ENABLE )
+ if( nType == StateChangedType::ENABLE )
{
pImpVclMEdit->Enable( IsEnabled() );
ImplInitSettings( true, false, false );
}
- else if( nType == STATE_CHANGE_READONLY )
+ else if( nType == StateChangedType::READONLY )
{
pImpVclMEdit->SetReadOnly( IsReadOnly() );
}
- else if ( nType == STATE_CHANGE_ZOOM )
+ else if ( nType == StateChangedType::ZOOM )
{
pImpVclMEdit->GetTextWindow()->SetZoom( GetZoom() );
ImplInitSettings( true, false, false );
Resize();
}
- else if ( nType == STATE_CHANGE_CONTROLFONT )
+ else if ( nType == StateChangedType::CONTROLFONT )
{
ImplInitSettings( true, false, false );
Resize();
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
}
- else if ( nType == STATE_CHANGE_STYLE )
+ else if ( nType == StateChangedType::STYLE )
{
pImpVclMEdit->InitFromStyle( GetStyle() );
SetStyle( ImplInitStyle( GetStyle() ) );
}
- else if ( nType == STATE_CHANGE_INITSHOW )
+ else if ( nType == StateChangedType::INITSHOW )
{
if( IsPaintTransparent() )
{
diff --git a/vcl/source/uipreviewer/previewer.cxx b/vcl/source/uipreviewer/previewer.cxx
index 24f4dbed31c1..e889e78f8644 100644
--- a/vcl/source/uipreviewer/previewer.cxx
+++ b/vcl/source/uipreviewer/previewer.cxx
@@ -81,7 +81,7 @@ int UIPreviewApp::Main()
pRealDialog->SetText(OUString("LibreOffice ui-previewer"));
pRealDialog->SetStyle(pDialog->GetStyle()|WB_CLOSEABLE);
/*
- Force a new STATE_CHANGE_INITSHOW for the edge case where pRoot
+ Force a new StateChangedType::INITSHOW for the edge case where pRoot
is not a dialog or contents of a dialog, but instead a visible floating window
which may have had initshow already done before it was given children
*/
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index a9640614c887..d008582da02d 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -1967,9 +1967,9 @@ void ImplBorderWindow::Resize()
void ImplBorderWindow::StateChanged( StateChangedType nType )
{
- if ( (nType == STATE_CHANGE_TEXT) ||
- (nType == STATE_CHANGE_IMAGE) ||
- (nType == STATE_CHANGE_DATA) )
+ if ( (nType == StateChangedType::TEXT) ||
+ (nType == StateChangedType::IMAGE) ||
+ (nType == StateChangedType::DATA) )
{
if ( IsReallyVisible() && mbFrameBorder )
{
diff --git a/vcl/source/window/btndlg.cxx b/vcl/source/window/btndlg.cxx
index b5871954b713..3c9880134a86 100644
--- a/vcl/source/window/btndlg.cxx
+++ b/vcl/source/window/btndlg.cxx
@@ -227,7 +227,7 @@ void ButtonDialog::Resize()
void ButtonDialog::StateChanged( StateChangedType nType )
{
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
{
ImplPosControls();
for (btn_iterator it = maItemList.begin(); it != maItemList.end(); ++it)
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index c654423092cf..afb219726e30 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -616,7 +616,7 @@ Size bestmaxFrameSizeForScreenSize(const Size &rScreenSize)
void Dialog::StateChanged( StateChangedType nType )
{
- if (nType == STATE_CHANGE_INITSHOW)
+ if (nType == StateChangedType::INITSHOW)
{
DoInitialLayout();
@@ -636,7 +636,7 @@ void Dialog::StateChanged( StateChangedType nType )
SystemWindow::StateChanged( nType );
- if (nType == STATE_CHANGE_CONTROLBACKGROUND)
+ if (nType == StateChangedType::CONTROLBACKGROUND)
{
ImplInitSettings();
Invalidate();
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx
index 6d6416d6ce04..8266c642d9cd 100644
--- a/vcl/source/window/dockingarea.cxx
+++ b/vcl/source/window/dockingarea.cxx
@@ -129,7 +129,7 @@ void DockingAreaWindow::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == STATE_CHANGE_VISIBLE )
+ if ( nType == StateChangedType::VISIBLE )
ImplInvalidateMenubar( this );
}
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index bf04f1afc719..c487bfe7b390 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -691,12 +691,12 @@ void DockingWindow::StateChanged( StateChangedType nType )
{
switch(nType)
{
- case STATE_CHANGE_CONTROLBACKGROUND:
+ case StateChangedType::CONTROLBACKGROUND:
ImplInitSettings();
Invalidate();
break;
- case STATE_CHANGE_STYLE:
+ case StateChangedType::STYLE:
mbDockable = (GetStyle() & WB_DOCKABLE) != 0;
break;
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index 2f900ff97266..95bb1586274e 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -423,7 +423,7 @@ void Window::ImplCallInitShow()
{
mpWindowImpl->mbReallyShown = true;
mpWindowImpl->mbInInitShow = true;
- StateChanged( STATE_CHANGE_INITSHOW );
+ StateChanged( StateChangedType::INITSHOW );
mpWindowImpl->mbInInitShow = false;
vcl::Window* pWindow = mpWindowImpl->mpFirstOverlap;
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index bc1642d43194..ec8c6a5566f7 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -537,14 +537,14 @@ bool FloatingWindow::Notify( NotifyEvent& rNEvt )
void FloatingWindow::StateChanged( StateChangedType nType )
{
- if (nType == STATE_CHANGE_INITSHOW)
+ if (nType == StateChangedType::INITSHOW)
{
DoInitialLayout();
}
SystemWindow::StateChanged( nType );
- if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings();
Invalidate();
diff --git a/vcl/source/window/globalization.cxx b/vcl/source/window/globalization.cxx
index 59081a2a48d3..ed9f17e746a7 100644
--- a/vcl/source/window/globalization.cxx
+++ b/vcl/source/window/globalization.cxx
@@ -24,7 +24,7 @@ namespace vcl {
void Window::EnableRTL ( bool bEnable )
{
- StateChanged( STATE_CHANGE_MIRRORING );
+ StateChanged( StateChangedType::MIRRORING );
OutputDevice::EnableRTL(bEnable);
}
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index f448b0242500..1709f34bb695 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1573,7 +1573,7 @@ void VclExpander::StateChanged(StateChangedType nType)
{
VclBin::StateChanged( nType );
- if (nType == STATE_CHANGE_INITSHOW)
+ if (nType == StateChangedType::INITSHOW)
{
vcl::Window *pChild = get_child();
if (pChild)
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index 840c5e19e83c..7a96ac850c87 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -980,8 +980,8 @@ void MenuBarWindow::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( ( nType == STATE_CHANGE_CONTROLFOREGROUND ) ||
- ( nType == STATE_CHANGE_CONTROLBACKGROUND ) )
+ if ( ( nType == StateChangedType::CONTROLFOREGROUND ) ||
+ ( nType == StateChangedType::CONTROLBACKGROUND ) )
{
ImplInitMenuWindow( this, false, true );
Invalidate();
diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx
index 2e34bde30433..9b2b4392ba5a 100644
--- a/vcl/source/window/menufloatingwindow.cxx
+++ b/vcl/source/window/menufloatingwindow.cxx
@@ -1159,7 +1159,7 @@ void MenuFloatingWindow::StateChanged( StateChangedType nType )
{
FloatingWindow::StateChanged( nType );
- if ( ( nType == STATE_CHANGE_CONTROLFOREGROUND ) || ( nType == STATE_CHANGE_CONTROLBACKGROUND ) )
+ if ( ( nType == StateChangedType::CONTROLFOREGROUND ) || ( nType == StateChangedType::CONTROLBACKGROUND ) )
{
ImplInitMenuWindow( this, false, false );
Invalidate();
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx
index f6c6399e8db1..035d97f7e968 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -353,7 +353,7 @@ void MessBox::ImplPosControls()
void MessBox::StateChanged( StateChangedType nType )
{
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
{
ImplPosControls();
}
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 3d99653d5975..4c07b25392a2 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -2602,18 +2602,19 @@ void SplitWindow::StateChanged( StateChangedType nType )
{
switch ( nType )
{
- case STATE_CHANGE_INITSHOW:
+ case StateChangedType::INITSHOW:
if ( IsUpdateMode() )
ImplCalcLayout();
break;
- case STATE_CHANGE_UPDATEMODE:
+ case StateChangedType::UPDATEMODE:
if ( IsUpdateMode() && IsReallyShown() )
ImplCalcLayout();
break;
- case STATE_CHANGE_CONTROLBACKGROUND:
+ case StateChangedType::CONTROLBACKGROUND:
ImplInitSettings();
Invalidate();
break;
+ default:;
}
DockingWindow::StateChanged( nType );
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 545b0a6e0bb3..82d99d01141c 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -814,23 +814,23 @@ void StatusBar::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
ImplFormat();
- else if ( nType == STATE_CHANGE_UPDATEMODE )
+ else if ( nType == StateChangedType::UPDATEMODE )
Invalidate();
- else if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ else if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
mbFormat = true;
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
diff --git a/vcl/source/window/tabdlg.cxx b/vcl/source/window/tabdlg.cxx
index b67b978d9166..c3258b4f0390 100644
--- a/vcl/source/window/tabdlg.cxx
+++ b/vcl/source/window/tabdlg.cxx
@@ -226,7 +226,7 @@ TabDialog::~TabDialog()
void TabDialog::StateChanged( StateChangedType nType )
{
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
{
// Calculate the Layout only for the initialized state
if ( mbPosControls )
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index f96cbebd0cb7..c7648f05692c 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -89,14 +89,14 @@ void TabPage::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
{
if ( GetSettings().GetStyleSettings().GetAutoMnemonic() )
ImplWindowAutoMnemonic( this );
// FIXME: no layouting, workaround some clipping issues
ImplAdjustNWFSizes();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings();
Invalidate();
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index d6245bf763f1..adcf55128543 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -4416,29 +4416,29 @@ void ToolBox::StateChanged( StateChangedType nType )
{
DockingWindow::StateChanged( nType );
- if ( nType == STATE_CHANGE_INITSHOW )
+ if ( nType == StateChangedType::INITSHOW )
ImplFormat();
- else if ( nType == STATE_CHANGE_ENABLE )
+ else if ( nType == StateChangedType::ENABLE )
ImplUpdateItem();
- else if ( nType == STATE_CHANGE_UPDATEMODE )
+ else if ( nType == StateChangedType::UPDATEMODE )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ else if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
mbCalc = true;
mbFormat = true;
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true ); // font, foreground, background
Invalidate();
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index be0e35cd1613..8d8eb6cea652 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1981,16 +1981,16 @@ void Window::StateChanged(StateChangedType eType)
switch (eType)
{
//stuff that doesn't invalidate the layout
- case STATE_CHANGE_CONTROLFOREGROUND:
- case STATE_CHANGE_CONTROLBACKGROUND:
- case STATE_CHANGE_TRANSPARENT:
- case STATE_CHANGE_UPDATEMODE:
- case STATE_CHANGE_READONLY:
- case STATE_CHANGE_ENABLE:
- case STATE_CHANGE_STATE:
- case STATE_CHANGE_DATA:
- case STATE_CHANGE_INITSHOW:
- case STATE_CHANGE_CONTROL_FOCUS:
+ case StateChangedType::CONTROLFOREGROUND:
+ case StateChangedType::CONTROLBACKGROUND:
+ case StateChangedType::TRANSPARENT:
+ case StateChangedType::UPDATEMODE:
+ case StateChangedType::READONLY:
+ case StateChangedType::ENABLE:
+ case StateChangedType::STATE:
+ case StateChangedType::DATA:
+ case StateChangedType::INITSHOW:
+ case StateChangedType::CONTROL_FOCUS:
break;
//stuff that does invalidate the layout
default:
@@ -2025,7 +2025,7 @@ void Window::SetStyle( WinBits nStyle )
{
mpWindowImpl->mnPrevStyle = mpWindowImpl->mnStyle;
mpWindowImpl->mnStyle = nStyle;
- StateChanged( STATE_CHANGE_STYLE );
+ StateChanged( StateChangedType::STYLE );
}
}
@@ -2049,7 +2049,7 @@ void Window::SetExtendedStyle( WinBits nExtendedStyle )
}
mpWindowImpl->mnPrevExtendedStyle = mpWindowImpl->mnExtendedStyle;
mpWindowImpl->mnExtendedStyle = nExtendedStyle;
- StateChanged( STATE_CHANGE_EXTENDEDSTYLE );
+ StateChanged( StateChangedType::EXTENDEDSTYLE );
}
}
@@ -2262,7 +2262,7 @@ void Window::Show( bool bVisible, sal_uInt16 nFlags )
mpWindowImpl->mpFrame->Show( false, false );
}
- StateChanged( STATE_CHANGE_VISIBLE );
+ StateChanged( StateChangedType::VISIBLE );
if ( mpWindowImpl->mbReallyVisible )
{
@@ -2350,7 +2350,7 @@ void Window::Show( bool bVisible, sal_uInt16 nFlags )
ImplCallResize();
}
- StateChanged( STATE_CHANGE_VISIBLE );
+ StateChanged( StateChangedType::VISIBLE );
vcl::Window* pTestParent;
if ( ImplIsOverlapWindow() )
@@ -2535,7 +2535,7 @@ void Window::Enable( bool bEnable, bool bChild )
mpWindowImpl->mbDisabled = !bEnable;
if ( mpWindowImpl->mpSysObj )
mpWindowImpl->mpSysObj->Enable( bEnable && !mpWindowImpl->mbInputDisabled );
- StateChanged( STATE_CHANGE_ENABLE );
+ StateChanged( StateChangedType::ENABLE );
ImplCallEventListeners( bEnable ? VCLEVENT_WINDOW_ENABLED : VCLEVENT_WINDOW_DISABLED );
}
@@ -3089,7 +3089,7 @@ void Window::SetUpdateMode( bool bUpdate )
{
mpWindowImpl->mbNoUpdate = !bUpdate;
- StateChanged( STATE_CHANGE_UPDATEMODE );
+ StateChanged( StateChangedType::UPDATEMODE );
}
void Window::GrabFocus()
@@ -3161,7 +3161,7 @@ void Window::SetText( const OUString& rStr )
pWindow->ImplCallEventListeners( VCLEVENT_WINDOW_FRAMETITLECHANGED, &oldTitle );
}
- StateChanged( STATE_CHANGE_TEXT );
+ StateChanged( StateChangedType::TEXT );
}
OUString Window::GetText() const
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index f3588f59e548..bf09d53b4e94 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -512,7 +512,7 @@ void Window::SetZoom( const boost::rational<long>& rZoom )
if ( mpWindowImpl->maZoom != rZoom )
{
mpWindowImpl->maZoom = rZoom;
- StateChanged( STATE_CHANGE_ZOOM );
+ StateChanged( StateChangedType::ZOOM );
}
}
@@ -579,7 +579,7 @@ void Window::SetControlFont()
{
delete mpWindowImpl->mpControlFont;
mpWindowImpl->mpControlFont = NULL;
- StateChanged( STATE_CHANGE_CONTROLFONT );
+ StateChanged( StateChangedType::CONTROLFONT );
}
}
@@ -600,7 +600,7 @@ void Window::SetControlFont( const vcl::Font& rFont )
else
mpWindowImpl->mpControlFont = new vcl::Font( rFont );
- StateChanged( STATE_CHANGE_CONTROLFONT );
+ StateChanged( StateChangedType::CONTROLFONT );
}
vcl::Font Window::GetControlFont() const
@@ -620,7 +620,7 @@ void Window::SetControlForeground()
{
mpWindowImpl->maControlForeground = Color( COL_TRANSPARENT );
mpWindowImpl->mbControlForeground = false;
- StateChanged( STATE_CHANGE_CONTROLFOREGROUND );
+ StateChanged( StateChangedType::CONTROLFOREGROUND );
}
}
@@ -632,7 +632,7 @@ void Window::SetControlForeground( const Color& rColor )
{
mpWindowImpl->maControlForeground = Color( COL_TRANSPARENT );
mpWindowImpl->mbControlForeground = false;
- StateChanged( STATE_CHANGE_CONTROLFOREGROUND );
+ StateChanged( StateChangedType::CONTROLFOREGROUND );
}
}
else
@@ -641,7 +641,7 @@ void Window::SetControlForeground( const Color& rColor )
{
mpWindowImpl->maControlForeground = rColor;
mpWindowImpl->mbControlForeground = true;
- StateChanged( STATE_CHANGE_CONTROLFOREGROUND );
+ StateChanged( StateChangedType::CONTROLFOREGROUND );
}
}
}
@@ -652,7 +652,7 @@ void Window::SetControlBackground()
{
mpWindowImpl->maControlBackground = Color( COL_TRANSPARENT );
mpWindowImpl->mbControlBackground = false;
- StateChanged( STATE_CHANGE_CONTROLBACKGROUND );
+ StateChanged( StateChangedType::CONTROLBACKGROUND );
}
}
@@ -664,7 +664,7 @@ void Window::SetControlBackground( const Color& rColor )
{
mpWindowImpl->maControlBackground = Color( COL_TRANSPARENT );
mpWindowImpl->mbControlBackground = false;
- StateChanged( STATE_CHANGE_CONTROLBACKGROUND );
+ StateChanged( StateChangedType::CONTROLBACKGROUND );
}
}
else
@@ -673,7 +673,7 @@ void Window::SetControlBackground( const Color& rColor )
{
mpWindowImpl->maControlBackground = rColor;
mpWindowImpl->mbControlBackground = true;
- StateChanged( STATE_CHANGE_CONTROLBACKGROUND );
+ StateChanged( StateChangedType::CONTROLBACKGROUND );
}
}
}
@@ -1430,7 +1430,7 @@ void Window::queue_resize(StateChangedType eReason)
bool bSomeoneCares = queue_ungrouped_resize(this);
WindowImpl *pWindowImpl = mpWindowImpl->mpBorderWindow ? mpWindowImpl->mpBorderWindow->mpWindowImpl : mpWindowImpl;
- if (eReason != STATE_CHANGE_VISIBLE)
+ if (eReason != StateChangedType::VISIBLE)
{
pWindowImpl->mnOptimalWidthCache = -1;
pWindowImpl->mnOptimalHeightCache = -1;