summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
Diffstat (limited to 'forms')
-rw-r--r--forms/source/richtext/richtextimplcontrol.hxx2
-rw-r--r--forms/source/richtext/richtextvclcontrol.cxx6
-rw-r--r--forms/source/solar/control/navtoolbar.cxx9
3 files changed, 9 insertions, 8 deletions
diff --git a/forms/source/richtext/richtextimplcontrol.hxx b/forms/source/richtext/richtextimplcontrol.hxx
index 8153fd201042..5c6c448879b3 100644
--- a/forms/source/richtext/richtextimplcontrol.hxx
+++ b/forms/source/richtext/richtextimplcontrol.hxx
@@ -127,7 +127,7 @@ namespace frm
*/
void notifyZoomChanged();
- /** to be called when the STATE_CHANGE_INITSHOW event arrives
+ /** to be called when the StateChangedType::INITSHOW event arrives
*/
void notifyInitShow();
diff --git a/forms/source/richtext/richtextvclcontrol.cxx b/forms/source/richtext/richtextvclcontrol.cxx
index 5b293b34fcd2..21c8a51ba81c 100644
--- a/forms/source/richtext/richtextvclcontrol.cxx
+++ b/forms/source/richtext/richtextvclcontrol.cxx
@@ -168,16 +168,16 @@ namespace frm
void RichTextControl::StateChanged( StateChangedType _nStateChange )
{
- if ( _nStateChange == STATE_CHANGE_STYLE )
+ if ( _nStateChange == StateChangedType::STYLE )
{
SetStyle( implInitStyle( GetStyle() ) );
m_pImpl->notifyStyleChanged();
}
- else if ( _nStateChange == STATE_CHANGE_ZOOM )
+ else if ( _nStateChange == StateChangedType::ZOOM )
{
m_pImpl->notifyZoomChanged();
}
- else if ( _nStateChange == STATE_CHANGE_INITSHOW )
+ else if ( _nStateChange == StateChangedType::INITSHOW )
{
m_pImpl->notifyInitShow();
}
diff --git a/forms/source/solar/control/navtoolbar.cxx b/forms/source/solar/control/navtoolbar.cxx
index 7b332a24e79a..779300574404 100644
--- a/forms/source/solar/control/navtoolbar.cxx
+++ b/forms/source/solar/control/navtoolbar.cxx
@@ -476,23 +476,23 @@ namespace frm
switch ( nType )
{
- case STATE_CHANGE_ZOOM:
+ case StateChangedType::ZOOM:
// m_pToolbar->SetZoom( GetZoom() );
// forEachItemWindow( setItemWindowZoom, NULL );
// the ToolBox class is not zoomable at the moment, so
// we better have no zoom at all instead of only half a zoom ...
break;
- case STATE_CHANGE_CONTROLFONT:
+ case StateChangedType::CONTROLFONT:
forEachItemWindow( &NavigationToolBar::setItemControlFont, NULL );
forEachItemWindow( &NavigationToolBar::adjustItemWindowWidth, NULL );
break;
- case STATE_CHANGE_CONTROLFOREGROUND:
+ case StateChangedType::CONTROLFOREGROUND:
forEachItemWindow( &NavigationToolBar::setItemControlForeground, NULL );
break;
- case STATE_CHANGE_MIRRORING:
+ case StateChangedType::MIRRORING:
{
sal_Bool bIsRTLEnabled( IsRTLEnabled() );
m_pToolbar->EnableRTL( bIsRTLEnabled );
@@ -500,6 +500,7 @@ namespace frm
Resize();
}
break;
+ default:;
}
}