summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-05-05 13:46:44 +0200
committerMichael Stahl <mstahl@redhat.com>2015-05-05 15:51:11 +0200
commit8fca0c44e8f21fa2ee1000665856292d5a1c44e9 (patch)
treee750236facc3fd44b051a70aaa0e81be0fc2c002
parentf24590521c5ffea13c0aecdb2f30fdd39bbfbc45 (diff)
vcl: rename other members of StateChangedType for consistency
Change-Id: Ifd3339813e5d3dfb54566fd226aaf2d2a199d59a
-rw-r--r--avmedia/source/viewer/mediawindow_impl.cxx4
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx2
-rw-r--r--cui/source/dialogs/iconcdlg.cxx2
-rw-r--r--cui/source/options/connpooloptions.cxx2
-rw-r--r--cui/source/tabpages/autocdlg.cxx2
-rw-r--r--cui/source/tabpages/numfmt.cxx4
-rw-r--r--dbaccess/source/ui/browser/dataview.cxx4
-rw-r--r--dbaccess/source/ui/control/dbtreelistbox.cxx2
-rw-r--r--dbaccess/source/ui/dlg/indexdialog.cxx4
-rw-r--r--dbaccess/source/ui/dlg/tablespage.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/JoinTableView.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/TableWindow.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/TableWindowTitle.cxx2
-rw-r--r--extensions/source/propctrlr/browserpage.cxx2
-rw-r--r--forms/source/richtext/richtextimplcontrol.hxx2
-rw-r--r--forms/source/richtext/richtextvclcontrol.cxx6
-rw-r--r--forms/source/solar/control/navtoolbar.cxx8
-rw-r--r--framework/source/uielement/addonstoolbarmanager.cxx2
-rw-r--r--framework/source/uielement/toolbarmanager.cxx6
-rw-r--r--include/svtools/wizdlg.hxx2
-rw-r--r--include/svx/sidebar/PanelLayout.hxx2
-rw-r--r--include/vcl/dialog.hxx2
-rw-r--r--include/vcl/dockwin.hxx2
-rw-r--r--include/vcl/layout.hxx2
-rw-r--r--include/vcl/syswin.hxx2
-rw-r--r--include/vcl/tabctrl.hxx2
-rw-r--r--include/vcl/window.hxx42
-rw-r--r--sc/source/ui/app/inputwin.cxx2
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx4
-rw-r--r--sc/source/ui/formdlg/privsplt.cxx8
-rw-r--r--sc/source/ui/miscdlgs/anyrefdg.cxx2
-rw-r--r--sc/source/ui/namedlg/namemgrtable.cxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx2
-rw-r--r--sd/source/ui/dlg/PaneDockingWindow.cxx4
-rw-r--r--sfx2/source/control/thumbnailview.cxx16
-rw-r--r--sfx2/source/dialog/basedlgs.cxx4
-rw-r--r--sfx2/source/dialog/dockwin.cxx4
-rw-r--r--sfx2/source/dialog/recfloat.cxx2
-rw-r--r--sfx2/source/dialog/srchdlg.cxx2
-rw-r--r--sfx2/source/dialog/templdlg.cxx2
-rw-r--r--sfx2/source/dialog/titledockwin.cxx2
-rw-r--r--sfx2/source/view/frame2.cxx2
-rw-r--r--sfx2/source/view/viewfrm2.cxx2
-rw-r--r--starmath/source/toolbox.cxx2
-rw-r--r--starmath/source/view.cxx4
-rw-r--r--svtools/source/brwbox/brwbox1.cxx2
-rw-r--r--svtools/source/brwbox/brwbox2.cxx14
-rw-r--r--svtools/source/brwbox/ebbcontrols.cxx2
-rw-r--r--svtools/source/brwbox/editbrowsebox.cxx12
-rw-r--r--svtools/source/contnr/fileview.cxx2
-rw-r--r--svtools/source/contnr/treelistbox.cxx4
-rw-r--r--svtools/source/control/calendar.cxx4
-rw-r--r--svtools/source/control/filectrl.cxx12
-rw-r--r--svtools/source/control/headbar.cxx10
-rw-r--r--svtools/source/control/ruler.cxx12
-rw-r--r--svtools/source/control/tabbar.cxx12
-rw-r--r--svtools/source/control/toolbarmenu.cxx2
-rw-r--r--svtools/source/control/valueset.cxx16
-rw-r--r--svtools/source/dialogs/wizdlg.cxx2
-rw-r--r--svtools/source/table/tablecontrol.cxx8
-rw-r--r--svx/source/dialog/charmap.cxx4
-rw-r--r--svx/source/dialog/dialcontrol.cxx6
-rw-r--r--svx/source/dialog/dlgctrl.cxx8
-rw-r--r--svx/source/dialog/fntctrl.cxx4
-rw-r--r--svx/source/fmcomp/gridctrl.cxx14
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx4
-rw-r--r--sw/source/ui/dbui/mmoutputtypepage.cxx2
-rw-r--r--sw/source/ui/fldui/inpdlg.cxx2
-rw-r--r--sw/source/uibase/dbui/mailmergehelper.cxx2
-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.cxx14
-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.cxx6
-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.cxx6
-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.cxx32
-rw-r--r--vcl/source/window/window2.cxx20
104 files changed, 425 insertions, 425 deletions
diff --git a/avmedia/source/viewer/mediawindow_impl.cxx b/avmedia/source/viewer/mediawindow_impl.cxx
index c0430a0d3fce..a2510d79da51 100644
--- a/avmedia/source/viewer/mediawindow_impl.cxx
+++ b/avmedia/source/viewer/mediawindow_impl.cxx
@@ -639,14 +639,14 @@ void MediaWindowImpl::StateChanged( StateChangedType eType )
// stop playing when going disabled or hidden
switch( eType )
{
- case StateChangedType::VISIBLE:
+ case StateChangedType::Visible:
{
stopPlayingInternal( !IsVisible() );
mxPlayerWindow->setVisible( IsVisible() );
}
break;
- case StateChangedType::ENABLE:
+ case StateChangedType::Enable:
{
stopPlayingInternal( !IsEnabled() );
mxPlayerWindow->setEnable( IsEnabled() );
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index 8fbb2439ec28..eb8b195c6e22 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -416,7 +416,7 @@ namespace svx
void SuggestionDisplay::StateChanged( StateChangedType nStateChange )
{
- if( StateChangedType::VISIBLE == nStateChange )
+ if( StateChangedType::Visible == nStateChange )
implUpdateDisplay();
}
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx
index d1c8c3523e9d..6174603b8107 100644
--- a/cui/source/dialogs/iconcdlg.cxx
+++ b/cui/source/dialogs/iconcdlg.cxx
@@ -120,7 +120,7 @@ void IconChoicePage::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::CONTROLBACKGROUND )
+ if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings();
Invalidate();
diff --git a/cui/source/options/connpooloptions.cxx b/cui/source/options/connpooloptions.cxx
index d6e32b4e0441..1e67b366e2e8 100644
--- a/cui/source/options/connpooloptions.cxx
+++ b/cui/source/options/connpooloptions.cxx
@@ -221,7 +221,7 @@ namespace offapp
void DriverListControl::StateChanged( StateChangedType nStateChange )
{
- if (StateChangedType::ENABLE == nStateChange)
+ if (StateChangedType::Enable == nStateChange)
Window::Invalidate(INVALIDATE_UPDATE);
EditBrowseBox::StateChanged( nStateChange );
}
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 32191b143978..20fcbcfd33b8 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -920,7 +920,7 @@ void OfaAutocorrReplacePage::StateChanged(StateChangedType nStateChange)
{
SfxTabPage::StateChanged(nStateChange);
- if (nStateChange == StateChangedType::INITSHOW)
+ if (nStateChange == StateChangedType::InitShow)
{
setTabs();
}
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index 2663c39e2f9d..352077ea2721 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -205,9 +205,9 @@ void SvxNumberPreview::InitSettings( bool bForeground, bool bBackground )
void SvxNumberPreview::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::CONTROLFOREGROUND )
+ if ( nType == StateChangedType::ControlForeground )
InitSettings( true, false );
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
InitSettings( false, true );
Window::StateChanged( nType );
diff --git a/dbaccess/source/ui/browser/dataview.cxx b/dbaccess/source/ui/browser/dataview.cxx
index d959262953d8..ee1e5e128e8e 100644
--- a/dbaccess/source/ui/browser/dataview.cxx
+++ b/dbaccess/source/ui/browser/dataview.cxx
@@ -151,13 +151,13 @@ namespace dbaui
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::CONTROLBACKGROUND )
+ if ( nType == StateChangedType::ControlBackground )
{
// Check if we need to get new images for normal/high contrast mode
m_xController->notifyHiContrastChanged();
}
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
// now that there's a view which is finally visible, remove the "Hidden" value from the
// model's arguments.
diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx
index 6ecacbc76a19..2780a9c024c4 100644
--- a/dbaccess/source/ui/control/dbtreelistbox.cxx
+++ b/dbaccess/source/ui/control/dbtreelistbox.cxx
@@ -668,7 +668,7 @@ IMPL_LINK_NOARG_TYPED(DBTreeListBox, OnTimeOut, Timer*, void)
void DBTreeListBox::StateChanged( StateChangedType nStateChange )
{
- if ( nStateChange == StateChangedType::VISIBLE )
+ if ( nStateChange == StateChangedType::Visible )
implStopSelectionTimer();
}
diff --git a/dbaccess/source/ui/dlg/indexdialog.cxx b/dbaccess/source/ui/dlg/indexdialog.cxx
index a033fab3b3bf..bfb41ce1da4c 100644
--- a/dbaccess/source/ui/dlg/indexdialog.cxx
+++ b/dbaccess/source/ui/dlg/indexdialog.cxx
@@ -817,12 +817,12 @@ namespace dbaui
{
ModalDialog::StateChanged( nType );
- if ( nType == StateChangedType::CONTROLBACKGROUND )
+ if ( nType == StateChangedType::ControlBackground )
{
// Check if we need to get new images for normal/high contrast mode
checkImageList();
}
- else if ( nType == StateChangedType::TEXT )
+ else if ( nType == StateChangedType::Text )
{
// The physical toolbar changed its outlook and shows another logical toolbar!
// We have to set the correct high contrast mode on the new tbx manager.
diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx
index ba53a2ac3881..b8e31e998163 100644
--- a/dbaccess/source/ui/dlg/tablespage.cxx
+++ b/dbaccess/source/ui/dlg/tablespage.cxx
@@ -120,7 +120,7 @@ namespace dbaui
{
OGenericAdministrationPage::StateChanged( nType );
- if ( nType == StateChangedType::CONTROLBACKGROUND )
+ if ( nType == StateChangedType::ControlBackground )
{
// Check if we need to get new images for normal/high contrast mode
m_pTablesList->notifyHiContrastChanged();
diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx
index 470238267dad..bcd5d47458d2 100644
--- a/dbaccess/source/ui/querydesign/JoinTableView.cxx
+++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx
@@ -1462,7 +1462,7 @@ void OJoinTableView::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::ZOOM )
+ if ( nType == StateChangedType::Zoom )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
diff --git a/dbaccess/source/ui/querydesign/TableWindow.cxx b/dbaccess/source/ui/querydesign/TableWindow.cxx
index de29020efbce..31697a39ae00 100644
--- a/dbaccess/source/ui/querydesign/TableWindow.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindow.cxx
@@ -556,7 +556,7 @@ void OTableWindow::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::ZOOM )
+ if ( nType == StateChangedType::Zoom )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
diff --git a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
index f1f3149862f0..0c5ca6a9064e 100644
--- a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
@@ -178,7 +178,7 @@ void OTableWindowTitle::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::ZOOM )
+ if ( nType == StateChangedType::Zoom )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
diff --git a/extensions/source/propctrlr/browserpage.cxx b/extensions/source/propctrlr/browserpage.cxx
index dfb0236317fd..432ba8c9655d 100644
--- a/extensions/source/propctrlr/browserpage.cxx
+++ b/extensions/source/propctrlr/browserpage.cxx
@@ -70,7 +70,7 @@ namespace pcr
void OBrowserPage::StateChanged(StateChangedType nType)
{
Window::StateChanged( nType);
- if (StateChangedType::VISIBLE == nType)
+ if (StateChangedType::Visible == nType)
m_aListBox->ActivateListBox(IsVisible());
}
diff --git a/forms/source/richtext/richtextimplcontrol.hxx b/forms/source/richtext/richtextimplcontrol.hxx
index 2f0acb1da700..ce4f22179d53 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 StateChangedType::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 d7286204921c..80481370836e 100644
--- a/forms/source/richtext/richtextvclcontrol.cxx
+++ b/forms/source/richtext/richtextvclcontrol.cxx
@@ -174,16 +174,16 @@ namespace frm
void RichTextControl::StateChanged( StateChangedType _nStateChange )
{
- if ( _nStateChange == StateChangedType::STYLE )
+ if ( _nStateChange == StateChangedType::Style )
{
SetStyle( implInitStyle( GetStyle() ) );
m_pImpl->notifyStyleChanged();
}
- else if ( _nStateChange == StateChangedType::ZOOM )
+ else if ( _nStateChange == StateChangedType::Zoom )
{
m_pImpl->notifyZoomChanged();
}
- else if ( _nStateChange == StateChangedType::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 9d4a1d87aa45..d10d4484e2e0 100644
--- a/forms/source/solar/control/navtoolbar.cxx
+++ b/forms/source/solar/control/navtoolbar.cxx
@@ -478,23 +478,23 @@ namespace frm
switch ( nType )
{
- case StateChangedType::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 StateChangedType::CONTROLFONT:
+ case StateChangedType::ControlFont:
forEachItemWindow( &NavigationToolBar::setItemControlFont, NULL );
forEachItemWindow( &NavigationToolBar::adjustItemWindowWidth, NULL );
break;
- case StateChangedType::CONTROLFOREGROUND:
+ case StateChangedType::ControlForeground:
forEachItemWindow( &NavigationToolBar::setItemControlForeground, NULL );
break;
- case StateChangedType::MIRRORING:
+ case StateChangedType::Mirroring:
{
sal_Bool bIsRTLEnabled( IsRTLEnabled() );
m_pToolbar->EnableRTL( bIsRTLEnabled );
diff --git a/framework/source/uielement/addonstoolbarmanager.cxx b/framework/source/uielement/addonstoolbarmanager.cxx
index a5f76ecc5696..3c2c716a8c59 100644
--- a/framework/source/uielement/addonstoolbarmanager.cxx
+++ b/framework/source/uielement/addonstoolbarmanager.cxx
@@ -458,7 +458,7 @@ IMPL_LINK_NOARG(AddonsToolBarManager, Deactivate)
IMPL_LINK( AddonsToolBarManager, StateChanged, StateChangedType*, pStateChangedType )
{
- if ( *pStateChangedType == StateChangedType::CONTROLBACKGROUND )
+ if ( *pStateChangedType == StateChangedType::ControlBackground )
{
CheckAndUpdateImages();
}
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index 5a57484d259f..7913c8d68845 100644
--- a/framework/source/uielement/toolbarmanager.cxx
+++ b/framework/source/uielement/toolbarmanager.cxx
@@ -2044,18 +2044,18 @@ IMPL_LINK( ToolBarManager, StateChanged, StateChangedType*, pStateChangedType )
if ( m_bDisposed )
return 1;
- if ( *pStateChangedType == StateChangedType::CONTROLBACKGROUND )
+ if ( *pStateChangedType == StateChangedType::ControlBackground )
{
CheckAndUpdateImages();
}
- else if ( *pStateChangedType == StateChangedType::VISIBLE )
+ else if ( *pStateChangedType == StateChangedType::Visible )
{
if ( m_pToolBar->IsReallyVisible() )
{
m_aAsyncUpdateControllersTimer.Start();
}
}
- else if ( *pStateChangedType == StateChangedType::INITSHOW )
+ else if ( *pStateChangedType == StateChangedType::InitShow )
{
m_aAsyncUpdateControllersTimer.Start();
}
diff --git a/include/svtools/wizdlg.hxx b/include/svtools/wizdlg.hxx
index 5fb9f5c57346..70d7cb196628 100644
--- a/include/svtools/wizdlg.hxx
+++ b/include/svtools/wizdlg.hxx
@@ -251,7 +251,7 @@ public:
virtual void ActivatePage();
virtual bool DeactivatePage();
- virtual void queue_resize(StateChangedType eReason = StateChangedType::LAYOUT) SAL_OVERRIDE;
+ virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) SAL_OVERRIDE;
bool ShowPrevPage();
bool ShowNextPage();
diff --git a/include/svx/sidebar/PanelLayout.hxx b/include/svx/sidebar/PanelLayout.hxx
index d479668067cd..9c58248f9deb 100644
--- a/include/svx/sidebar/PanelLayout.hxx
+++ b/include/svx/sidebar/PanelLayout.hxx
@@ -39,7 +39,7 @@ public:
virtual Size GetOptimalSize() const SAL_OVERRIDE;
virtual void setPosSizePixel(long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags = WINDOW_POSSIZE_ALL) SAL_OVERRIDE;
- virtual void queue_resize(StateChangedType eReason = StateChangedType::LAYOUT) SAL_OVERRIDE;
+ virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) SAL_OVERRIDE;
};
diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx
index 0587aefb7b3e..cf71d70d3443 100644
--- a/include/vcl/dialog.hxx
+++ b/include/vcl/dialog.hxx
@@ -88,7 +88,7 @@ public:
virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
- virtual void queue_resize(StateChangedType eReason = StateChangedType::LAYOUT) SAL_OVERRIDE;
+ virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) SAL_OVERRIDE;
virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE;
VclButtonBox* get_action_area() { return mpActionArea; }
VclBox* get_content_area() { return mpContentArea; }
diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx
index 0456c8599b5a..a1617d111ae2 100644
--- a/include/vcl/dockwin.hxx
+++ b/include/vcl/dockwin.hxx
@@ -359,7 +359,7 @@ public:
virtual void SetText( const OUString& rStr ) SAL_OVERRIDE;
virtual OUString GetText() const SAL_OVERRIDE;
virtual Size GetOptimalSize() const SAL_OVERRIDE;
- virtual void queue_resize(StateChangedType eReason = StateChangedType::LAYOUT) SAL_OVERRIDE;
+ virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) SAL_OVERRIDE;
};
inline void DockingWindow::SetPin( bool bPin )
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index 85c613919020..e73399c1abf1 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -41,7 +41,7 @@ public:
m_bLayoutDirty = true;
}
- virtual void queue_resize(StateChangedType eReason = StateChangedType::LAYOUT) SAL_OVERRIDE;
+ virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) SAL_OVERRIDE;
protected:
//these are the two that need to be implemented by
//containers, figure out how much space you want...
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx
index db30b5a2bac0..7aef2eaa8927 100644
--- a/include/vcl/syswin.hxx
+++ b/include/vcl/syswin.hxx
@@ -185,7 +185,7 @@ public:
virtual void Resizing( Size& rSize );
virtual void Resize() SAL_OVERRIDE;
virtual Size GetOptimalSize() const SAL_OVERRIDE;
- virtual void queue_resize(StateChangedType eReason = StateChangedType::LAYOUT) SAL_OVERRIDE;
+ virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) SAL_OVERRIDE;
bool isLayoutEnabled() const;
void setOptimalLayoutSize();
bool isCalculatingInitialLayoutSize() const { return mbIsCalculatingInitialLayoutSize; }
diff --git a/include/vcl/tabctrl.hxx b/include/vcl/tabctrl.hxx
index 82c3e96a3e22..3d38996b6496 100644
--- a/include/vcl/tabctrl.hxx
+++ b/include/vcl/tabctrl.hxx
@@ -189,7 +189,7 @@ public:
mbLayoutDirty = true;
}
- virtual void queue_resize(StateChangedType eReason = StateChangedType::LAYOUT) SAL_OVERRIDE;
+ virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) SAL_OVERRIDE;
};
#endif // INCLUDED_VCL_TABCTRL_HXX
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 68a16093ab79..3209906ff085 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -234,27 +234,27 @@ template<class T> class VclPtr;
// Flags for StateChanged()
enum class StateChangedType : sal_uInt16
{
- INITSHOW = 1,
- VISIBLE = 2,
- UPDATEMODE = 3,
- ENABLE = 4,
- TEXT = 5,
- IMAGE = 6,
- DATA = 7,
- STATE = 8,
- STYLE = 9,
- ZOOM = 10,
- BORDER = 11,
+ InitShow = 1,
+ Visible = 2,
+ UpdateMode = 3,
+ Enable = 4,
+ Text = 5,
+ Image = 6,
+ Data = 7,
+ State = 8,
+ Style = 9,
+ Zoom = 10,
+ Border = 11,
Transparent = 12,
- CONTROLFONT = 13,
- CONTROLFOREGROUND = 14,
- CONTROLBACKGROUND = 15,
- READONLY = 16,
- EXTENDEDSTYLE = 17,
- MIRRORING = 18,
- LAYOUT = 19,
- CONTROL_FOCUS = 20,
- USER = 10000
+ ControlFont = 13,
+ ControlForeground = 14,
+ ControlBackground = 15,
+ ReadOnly = 16,
+ ExtendedStyle = 17,
+ Mirroring = 18,
+ Layout = 19,
+ ControlFocus = 20,
+ User = 10000
};
// GetFocusFlags
@@ -1246,7 +1246,7 @@ public:
*
* akin to gtk_widget_queue_resize
*/
- virtual void queue_resize(StateChangedType eReason = StateChangedType::LAYOUT);
+ virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout);
/*
* Sets the "width-request" property
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 83452ead290b..7f57d9879d25 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -784,7 +784,7 @@ void ScInputWindow::StateChanged( StateChangedType nType )
{
ToolBox::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW ) Resize();
+ if ( nType == StateChangedType::InitShow ) Resize();
}
void ScInputWindow::DataChanged( const DataChangedEvent& rDCEvt )
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 783891459687..d1a331f270aa 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -594,7 +594,7 @@ void ScFunctionDockWin::SetDescription()
aBuf.append(*pDesc->pFuncDesc);
aFiFuncDesc->SetText(aBuf.makeStringAndClear());
- aFiFuncDesc->StateChanged(StateChangedType::TEXT);
+ aFiFuncDesc->StateChanged(StateChangedType::Text);
aFiFuncDesc->Invalidate();
aFiFuncDesc->Update();
@@ -1089,7 +1089,7 @@ void ScFunctionDockWin::StateChanged( StateChangedType nStateChange )
{
SfxDockingWindow::StateChanged( nStateChange );
- if (nStateChange == StateChangedType::INITSHOW)
+ if (nStateChange == StateChangedType::InitShow)
{
UseSplitterInitPos(); // set initial splitter position if necessary
}
diff --git a/sc/source/ui/formdlg/privsplt.cxx b/sc/source/ui/formdlg/privsplt.cxx
index f8d5f82707a0..779b6cda5143 100644
--- a/sc/source/ui/formdlg/privsplt.cxx
+++ b/sc/source/ui/formdlg/privsplt.cxx
@@ -369,18 +369,18 @@ void ScPrivatSplit::ImplInitSettings( bool bFont, bool bForeground, bool bBackgr
void ScPrivatSplit::StateChanged( StateChangedType nType )
{
- if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- if ( nType == StateChangedType::CONTROLFOREGROUND )
+ if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index a1a6407b3602..116e0e3498c2 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -947,7 +947,7 @@ void ScRefHandler::stateChanged(const StateChangedType nStateChange, const bool
{
if( !bBindRef && !m_bInRefMode ) return;
- if(nStateChange == StateChangedType::VISIBLE)
+ if(nStateChange == StateChangedType::Visible)
{
if(m_rWindow->IsVisible())
{
diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx
index 2df4743de41e..9fea7dfe18ed 100644
--- a/sc/source/ui/namedlg/namemgrtable.cxx
+++ b/sc/source/ui/namedlg/namemgrtable.cxx
@@ -75,7 +75,7 @@ void ScRangeManagerTable::StateChanged( StateChangedType nStateChange )
{
SvSimpleTable::StateChanged(nStateChange);
- if (nStateChange == StateChangedType::INITSHOW)
+ if (nStateChange == StateChangedType::InitShow)
{
if (GetEntryCount())
{
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 779cf72c7da2..d7a97cb15f36 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -275,7 +275,7 @@ void CustomAnimationPane::StateChanged( StateChangedType nStateChange )
{
Control::StateChanged( nStateChange );
- if( nStateChange == StateChangedType::VISIBLE )
+ if( nStateChange == StateChangedType::Visible )
updateMotionPathTags();
}
diff --git a/sd/source/ui/dlg/PaneDockingWindow.cxx b/sd/source/ui/dlg/PaneDockingWindow.cxx
index 4947dd78f088..4f15c625bf44 100644
--- a/sd/source/ui/dlg/PaneDockingWindow.cxx
+++ b/sd/source/ui/dlg/PaneDockingWindow.cxx
@@ -54,12 +54,12 @@ void PaneDockingWindow::StateChanged( StateChangedType nType )
{
switch (nType)
{
- case StateChangedType::INITSHOW:
+ case StateChangedType::InitShow:
Resize();
GetContentWindow().SetStyle(GetContentWindow().GetStyle() | WB_DIALOGCONTROL);
break;
- case StateChangedType::VISIBLE:
+ case StateChangedType::Visible:
{
// The visibility of the docking window has changed. Tell the
// ConfigurationController so that it can activate or deactivate
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index 53e017aae9ed..25f63c48c79a 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -929,36 +929,36 @@ void ThumbnailView::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::UPDATEMODE )
+ else if ( nType == StateChangedType::UpdateMode )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::TEXT )
+ else if ( nType == StateChangedType::Text )
{
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
}
- else if ( (nType == StateChangedType::STYLE) || (nType == StateChangedType::ENABLE) )
+ else if ( (nType == StateChangedType::Style) || (nType == StateChangedType::Enable) )
{
ImplInitSettings( false, false, true );
Invalidate();
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index 2fd86a789a01..d33f89512308 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -202,7 +202,7 @@ void SfxModalDialog::CreateOutputItemSet( const SfxItemSet& rSet )
void SfxModelessDialog::StateChanged( StateChangedType nStateChange )
{
- if ( nStateChange == StateChangedType::INITSHOW )
+ if ( nStateChange == StateChangedType::InitShow )
{
if ( !pImp->aWinState.isEmpty() )
{
@@ -573,7 +573,7 @@ IMPL_LINK_NOARG_TYPED(SfxFloatingWindow, TimerHdl, Idle *, void)
void SfxFloatingWindow::StateChanged( StateChangedType nStateChange )
{
- if ( nStateChange == StateChangedType::INITSHOW )
+ if ( nStateChange == StateChangedType::InitShow )
{
// FloatingWindows are not centered by default
if ( !pImp->aWinState.isEmpty() )
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index 4fec7bdaede8..0c6af19548c8 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -280,7 +280,7 @@ bool SfxTitleDockingWindow::Notify( NotifyEvent& rNEvt )
void SfxTitleDockingWindow::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
vcl::Window* pWindow = GetWrappedWindow();
if ( pWindow )
@@ -1915,7 +1915,7 @@ void SfxDockingWindow::AutoShow_Impl( bool bShow )
void SfxDockingWindow::StateChanged( StateChangedType nStateChange )
{
- if ( nStateChange == StateChangedType::INITSHOW )
+ if ( nStateChange == StateChangedType::InitShow )
Initialize_Impl();
DockingWindow::StateChanged( nStateChange );
diff --git a/sfx2/source/dialog/recfloat.cxx b/sfx2/source/dialog/recfloat.cxx
index 742aa883900a..60ac3df51cb2 100644
--- a/sfx2/source/dialog/recfloat.cxx
+++ b/sfx2/source/dialog/recfloat.cxx
@@ -234,7 +234,7 @@ void SfxRecordingFloat_Impl::FillInfo( SfxChildWinInfo& rInfo ) const
void SfxRecordingFloat_Impl::StateChanged( StateChangedType nStateChange )
{
- if ( nStateChange == StateChangedType::INITSHOW )
+ if ( nStateChange == StateChangedType::InitShow )
{
SfxViewFrame *pFrame = GetBindings().GetDispatcher_Impl()->GetFrame();
vcl::Window* pEditWin = pFrame->GetViewShell()->GetWindow();
diff --git a/sfx2/source/dialog/srchdlg.cxx b/sfx2/source/dialog/srchdlg.cxx
index 0da322cbbcfb..57e72cb78015 100644
--- a/sfx2/source/dialog/srchdlg.cxx
+++ b/sfx2/source/dialog/srchdlg.cxx
@@ -160,7 +160,7 @@ bool SearchDialog::Close()
void SearchDialog::StateChanged( StateChangedType nStateChange )
{
- if ( nStateChange == StateChangedType::INITSHOW )
+ if ( nStateChange == StateChangedType::InitShow )
{
if (!m_sWinState.isEmpty())
SetWindowState( m_sWinState );
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index e3ef5e4afa7f..802f8bad263a 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -390,7 +390,7 @@ void SfxTemplatePanelControl::FreeResource()
void SfxTemplatePanelControl::StateChanged( StateChangedType nStateChange )
{
- if (nStateChange == StateChangedType::INITSHOW)
+ if (nStateChange == StateChangedType::InitShow)
{
SfxViewFrame* pFrame = mpBindings->GetDispatcher_Impl()->GetFrame();
vcl::Window* pEditWin = pFrame->GetViewShell()->GetWindow();
diff --git a/sfx2/source/dialog/titledockwin.cxx b/sfx2/source/dialog/titledockwin.cxx
index 5da01bfa3aab..402f006589fb 100644
--- a/sfx2/source/dialog/titledockwin.cxx
+++ b/sfx2/source/dialog/titledockwin.cxx
@@ -270,7 +270,7 @@ namespace sfx2
{
switch ( i_nType )
{
- case StateChangedType::INITSHOW:
+ case StateChangedType::InitShow:
impl_scheduleLayout();
break;
default:;
diff --git a/sfx2/source/view/frame2.cxx b/sfx2/source/view/frame2.cxx
index 390a9c52d241..92cb344cf2cd 100644
--- a/sfx2/source/view/frame2.cxx
+++ b/sfx2/source/view/frame2.cxx
@@ -182,7 +182,7 @@ void SfxFrameWindow_Impl::Resize()
void SfxFrameWindow_Impl::StateChanged( StateChangedType nStateChange )
{
- if ( nStateChange == StateChangedType::INITSHOW )
+ if ( nStateChange == StateChangedType::InitShow )
{
pFrame->pImp->bHidden = false;
if ( pFrame->IsInPlace() )
diff --git a/sfx2/source/view/viewfrm2.cxx b/sfx2/source/view/viewfrm2.cxx
index d42f4832a884..726e83a92f90 100644
--- a/sfx2/source/view/viewfrm2.cxx
+++ b/sfx2/source/view/viewfrm2.cxx
@@ -58,7 +58,7 @@ using ::com::sun::star::lang::XComponent;
void SfxFrameViewWindow_Impl::StateChanged( StateChangedType nStateChange )
{
- if ( nStateChange == StateChangedType::INITSHOW )
+ if ( nStateChange == StateChangedType::InitShow )
{
SfxObjectShell* pDoc = pFrame->GetObjectShell();
if ( pDoc && !pFrame->IsVisible() )
diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx
index 26a1fbe7db23..7416beb8559b 100644
--- a/starmath/source/toolbox.cxx
+++ b/starmath/source/toolbox.cxx
@@ -211,7 +211,7 @@ void SmToolBoxWindow::DataChanged( const DataChangedEvent &rEvt )
void SmToolBoxWindow::StateChanged( StateChangedType nStateChange )
{
static bool bSetPosition = true;
- if (StateChangedType::INITSHOW == nStateChange)
+ if (StateChangedType::InitShow == nStateChange)
{
SetCategory( nActiveCategoryRID == USHRT_MAX ? RID_UNBINOPS_CAT : nActiveCategoryRID );
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index cb391ebe2103..57e3ad92a0ac 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -134,7 +134,7 @@ void SmGraphicWindow::dispose()
void SmGraphicWindow::StateChanged( StateChangedType eType )
{
- if ( eType == StateChangedType::INITSHOW )
+ if ( eType == StateChangedType::InitShow )
Show();
ScrollableWindow::StateChanged( eType );
}
@@ -803,7 +803,7 @@ SfxChildAlignment SmCmdBoxWindow::CheckAlignment(SfxChildAlignment eActual,
void SmCmdBoxWindow::StateChanged( StateChangedType nStateChange )
{
- if (StateChangedType::INITSHOW == nStateChange)
+ if (StateChangedType::InitShow == nStateChange)
{
Resize(); // avoid SmEditWindow not being painted correctly
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index 04664e5e4b4a..2da27e8ca2b6 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -2333,7 +2333,7 @@ void BrowseBox::SetMode( BrowserMode nMode )
if ( bBootstrapped )
{
- StateChanged( StateChangedType::INITSHOW );
+ StateChanged( StateChangedType::InitShow );
if ( bMultiSelection && !pOldRowSel &&
nOldRowSel != BROWSER_ENDOFSELECTION )
uRow.pSel->Select( nOldRowSel );
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx
index 30f71ddff50a..c5c2a504202e 100644
--- a/svtools/source/brwbox/brwbox2.cxx
+++ b/svtools/source/brwbox/brwbox2.cxx
@@ -132,7 +132,7 @@ void BrowseBox::StateChanged( StateChangedType nStateChange )
{
Control::StateChanged( nStateChange );
- if ( StateChangedType::MIRRORING == nStateChange )
+ if ( StateChangedType::Mirroring == nStateChange )
{
getDataWindow()->EnableRTL( IsRTLEnabled() );
@@ -144,7 +144,7 @@ void BrowseBox::StateChanged( StateChangedType nStateChange )
pVScroll->EnableRTL( IsRTLEnabled() );
Resize();
}
- else if ( StateChangedType::INITSHOW == nStateChange )
+ else if ( StateChangedType::InitShow == nStateChange )
{
bBootstrapped = true; // must be set first!
@@ -166,7 +166,7 @@ void BrowseBox::StateChanged( StateChangedType nStateChange )
AutoSizeLastColumn();
CursorMoved();
}
- else if (StateChangedType::ZOOM == nStateChange)
+ else if (StateChangedType::Zoom == nStateChange)
{
pDataWin->SetZoom(GetZoom());
HeaderBar* pHeaderBar = getDataWindow()->pHeaderBar;
@@ -184,7 +184,7 @@ void BrowseBox::StateChanged( StateChangedType nStateChange )
// all our controls have to be repositioned
Resize();
}
- else if (StateChangedType::ENABLE == nStateChange)
+ else if (StateChangedType::Enable == nStateChange)
{
// do we have a handle column?
bool bHandleCol = !pCols->empty() && (0 == (*pCols)[ 0 ]->GetId());
@@ -537,7 +537,7 @@ void BrowseBox::ExpandRowSelection( const BrowserMouseEvent& rEvt )
void BrowseBox::Resize()
{
if ( !bBootstrapped && IsReallyVisible() )
- BrowseBox::StateChanged( StateChangedType::INITSHOW );
+ BrowseBox::StateChanged( StateChangedType::InitShow );
if ( pCols->empty() )
{
getDataWindow()->bResizeOnPaint = true;
@@ -617,7 +617,7 @@ void BrowseBox::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle&
// initializations
if ( !bBootstrapped && IsReallyVisible() )
- BrowseBox::StateChanged( StateChangedType::INITSHOW );
+ BrowseBox::StateChanged( StateChangedType::InitShow );
if ( pCols->empty() )
return;
@@ -1098,7 +1098,7 @@ void BrowseBox::ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, bool
void BrowseBox::PaintData( vcl::Window& rWin, const Rectangle& rRect )
{
if ( !bBootstrapped && IsReallyVisible() )
- BrowseBox::StateChanged( StateChangedType::INITSHOW );
+ BrowseBox::StateChanged( StateChangedType::InitShow );
// initializations
if ( !pCols || pCols->empty() || !rWin.IsUpdateMode() )
diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx
index 02a32e96251e..a23e325f1bcb 100644
--- a/svtools/source/brwbox/ebbcontrols.cxx
+++ b/svtools/source/brwbox/ebbcontrols.cxx
@@ -283,7 +283,7 @@ namespace svt
void CheckBoxControl::StateChanged( StateChangedType nStateChange )
{
Control::StateChanged(nStateChange);
- if ( nStateChange == StateChangedType::ZOOM )
+ if ( nStateChange == StateChangedType::Zoom )
pBox->SetZoom(GetZoom());
}
diff --git a/svtools/source/brwbox/editbrowsebox.cxx b/svtools/source/brwbox/editbrowsebox.cxx
index b70d96a173ec..d206ca7dfbed 100644
--- a/svtools/source/brwbox/editbrowsebox.cxx
+++ b/svtools/source/brwbox/editbrowsebox.cxx
@@ -762,31 +762,31 @@ namespace svt
BrowseBox::StateChanged( nType );
bool bNeedCellReActivation = false;
- if ( nType == StateChangedType::MIRRORING )
+ if ( nType == StateChangedType::Mirroring )
{
bNeedCellReActivation = true;
}
- else if ( nType == StateChangedType::ZOOM )
+ else if ( nType == StateChangedType::Zoom )
{
ImplInitSettings( true, false, false );
bNeedCellReActivation = true;
}
- else if ( nType == StateChangedType::CONTROLFONT )
+ else if ( nType == StateChangedType::ControlFont )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
}
- else if (nType == StateChangedType::STYLE)
+ else if (nType == StateChangedType::Style)
{
WinBits nStyle = GetStyle();
if (!(nStyle & WB_NOTABSTOP) )
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index 4d1ba9f0ad05..0c13c548e5e0 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -1512,7 +1512,7 @@ void SvtFileView::SetConfigString( const OUString& rCfgStr )
void SvtFileView::StateChanged( StateChangedType nStateChange )
{
- if ( nStateChange == StateChangedType::ENABLE )
+ if ( nStateChange == StateChangedType::Enable )
Invalidate();
Control::StateChanged( nStateChange );
}
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 47559982645c..c543c67165bc 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -3760,12 +3760,12 @@ void SvTreeListBox::DataChanged( const DataChangedEvent& rDCEvt )
void SvTreeListBox::StateChanged( StateChangedType eType )
{
- if( eType == StateChangedType::ENABLE )
+ if( eType == StateChangedType::Enable )
Invalidate( INVALIDATE_CHILDREN );
Control::StateChanged( eType );
- if ( eType == StateChangedType::STYLE )
+ if ( eType == StateChangedType::Style )
ImplInitStyle();
}
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index 051c71db7320..6e08841f32e3 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -1761,7 +1761,7 @@ void Calendar::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
ImplFormat();
}
@@ -2543,7 +2543,7 @@ void CalendarField::StateChanged( StateChangedType nStateChange )
{
DateField::StateChanged( nStateChange );
- if ( ( nStateChange == StateChangedType::STYLE ) && GetSubEdit() )
+ if ( ( nStateChange == StateChangedType::Style ) && GetSubEdit() )
{
WinBits nAllAlignmentBits = ( WB_LEFT | WB_CENTER | WB_RIGHT | WB_TOP | WB_VCENTER | WB_BOTTOM );
WinBits nMyAlignment = GetStyle() & nAllAlignmentBits;
diff --git a/svtools/source/control/filectrl.cxx b/svtools/source/control/filectrl.cxx
index 33b5423eb952..974edbf2f0b7 100644
--- a/svtools/source/control/filectrl.cxx
+++ b/svtools/source/control/filectrl.cxx
@@ -114,21 +114,21 @@ OUString FileControl::GetText() const
void FileControl::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::ENABLE )
+ if ( nType == StateChangedType::Enable )
{
maEdit->Enable( IsEnabled() );
maButton->Enable( IsEnabled() );
}
- else if ( nType == StateChangedType::ZOOM )
+ else if ( nType == StateChangedType::Zoom )
{
GetEdit().SetZoom( GetZoom() );
GetButton().SetZoom( GetZoom() );
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetStyle() ) );
}
- else if ( nType == StateChangedType::CONTROLFONT )
+ else if ( nType == StateChangedType::ControlFont )
{
GetEdit().SetControlFont( GetControlFont() );
// Only use height of the button, as in HTML
@@ -137,12 +137,12 @@ void FileControl::StateChanged( StateChangedType nType )
aFont.SetSize( GetControlFont().GetSize() );
GetButton().SetControlFont( aFont );
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
GetEdit().SetControlForeground( GetControlForeground() );
GetButton().SetControlForeground( GetControlForeground() );
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
GetEdit().SetControlBackground( GetControlBackground() );
GetButton().SetControlBackground( GetControlBackground() );
diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx
index bb5341661885..01e9445b8adf 100644
--- a/svtools/source/control/headbar.cxx
+++ b/svtools/source/control/headbar.cxx
@@ -1160,20 +1160,20 @@ void HeaderBar::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::ENABLE )
+ if ( nType == StateChangedType::Enable )
Invalidate();
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 4b802def8318..ef07e628f2ac 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2257,25 +2257,25 @@ void Ruler::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
ImplFormat();
- else if ( nType == StateChangedType::UPDATEMODE )
+ else if ( nType == StateChangedType::UpdateMode )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index f8fd9a35d604..ea11afcb91ef 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1534,25 +1534,25 @@ void TabBar::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
if ( (mbSizeFormat || mbFormat) && !mpImpl->mpItemList.empty() )
ImplFormat();
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
Invalidate();
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, true );
Invalidate();
}
- else if ( nType == StateChangedType::MIRRORING )
+ else if ( nType == StateChangedType::Mirroring )
{
// reacts on calls of EnableRTL, have to mirror all child controls
if (mpImpl->mpFirstButton)
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx
index 217244881db3..4e20373fc9df 100644
--- a/svtools/source/control/toolbarmenu.cxx
+++ b/svtools/source/control/toolbarmenu.cxx
@@ -1508,7 +1508,7 @@ void ToolbarMenu::StateChanged( StateChangedType nType )
{
DockingWindow::StateChanged( nType );
- if ( ( nType == StateChangedType::CONTROLFOREGROUND ) || ( nType == StateChangedType::CONTROLBACKGROUND ) )
+ if ( ( nType == StateChangedType::ControlForeground ) || ( nType == StateChangedType::ControlBackground ) )
{
initWindow();
Invalidate();
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index bf0b654639df..6b97b9c5169f 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -1491,17 +1491,17 @@ void ValueSet::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
if ( mbFormat )
Format();
}
- else if ( nType == StateChangedType::UPDATEMODE )
+ else if ( nType == StateChangedType::UpdateMode )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::TEXT )
+ else if ( nType == StateChangedType::Text )
{
if ( mpNoneItem.get() && !mbFormat && IsReallyVisible() && IsUpdateMode() )
{
@@ -1509,23 +1509,23 @@ void ValueSet::StateChanged( StateChangedType nType )
Invalidate( maNoneItemRect );
}
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
}
- else if ( (nType == StateChangedType::STYLE) || (nType == StateChangedType::ENABLE) )
+ else if ( (nType == StateChangedType::Style) || (nType == StateChangedType::Enable) )
{
mbFormat = true;
ImplInitSettings( false, false, true );
diff --git a/svtools/source/dialogs/wizdlg.cxx b/svtools/source/dialogs/wizdlg.cxx
index 3e68e1719805..2855ada2dbe7 100644
--- a/svtools/source/dialogs/wizdlg.cxx
+++ b/svtools/source/dialogs/wizdlg.cxx
@@ -401,7 +401,7 @@ void WizardDialog::Resize()
void WizardDialog::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
if ( IsDefaultSize() )
{
diff --git a/svtools/source/table/tablecontrol.cxx b/svtools/source/table/tablecontrol.cxx
index 0c1bdb3b6d8b..1b5ffdef5a32 100644
--- a/svtools/source/table/tablecontrol.cxx
+++ b/svtools/source/table/tablecontrol.cxx
@@ -128,25 +128,25 @@ namespace svt { namespace table
// forward certain settings to the data window
switch ( i_nStateChange )
{
- case StateChangedType::CONTROL_FOCUS:
+ case StateChangedType::ControlFocus:
m_pImpl->invalidateSelectedRows();
break;
- case StateChangedType::CONTROLBACKGROUND:
+ case StateChangedType::ControlBackground:
if ( IsControlBackground() )
getDataWindow().SetControlBackground( GetControlBackground() );
else
getDataWindow().SetControlBackground();
break;
- case StateChangedType::CONTROLFOREGROUND:
+ case StateChangedType::ControlForeground:
if ( IsControlForeground() )
getDataWindow().SetControlForeground( GetControlForeground() );
else
getDataWindow().SetControlForeground();
break;
- case StateChangedType::CONTROLFONT:
+ case StateChangedType::ControlFont:
if ( IsControlFont() )
getDataWindow().SetControlFont( GetControlFont() );
else
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 02117daf658c..2eee3ec7b93c 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -107,9 +107,9 @@ void SvxShowCharSet::LoseFocus()
void SvxShowCharSet::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::CONTROLFOREGROUND )
+ if ( nType == StateChangedType::ControlForeground )
InitSettings( true, false );
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
InitSettings( false, true );
Control::StateChanged( nType );
diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx
index d25f61f46b8b..bf6c0c018b93 100644
--- a/svx/source/dialog/dialcontrol.cxx
+++ b/svx/source/dialog/dialcontrol.cxx
@@ -286,7 +286,7 @@ void DialControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle
void DialControl::StateChanged( StateChangedType nStateChange )
{
- if( nStateChange == StateChangedType::ENABLE )
+ if( nStateChange == StateChangedType::Enable )
InvalidateControl();
// update the linked edit field
@@ -295,8 +295,8 @@ void DialControl::StateChanged( StateChangedType nStateChange )
NumericField& rField = *mpImpl->mpLinkField;
switch( nStateChange )
{
- case StateChangedType::VISIBLE: rField.Show( IsVisible() ); break;
- case StateChangedType::ENABLE: rField.Enable( IsEnabled() ); break;
+ case StateChangedType::Visible: rField.Show( IsVisible() ); break;
+ case StateChangedType::Enable: rField.Enable( IsEnabled() ); break;
default:;
}
}
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 230ea82e8b25..4a0cf8dffb5c 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -368,9 +368,9 @@ void SvxRectCtl::KeyInput( const KeyEvent& rKeyEvt )
void SvxRectCtl::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::CONTROLFOREGROUND )
+ if ( nType == StateChangedType::ControlForeground )
InitSettings( true, false );
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
InitSettings( false, true );
Window::StateChanged( nType );
@@ -1902,11 +1902,11 @@ void SvxPreviewBase::StateChanged(StateChangedType nType)
{
Control::StateChanged(nType);
- if(StateChangedType::CONTROLFOREGROUND == nType)
+ if(StateChangedType::ControlForeground == nType)
{
InitSettings(true, false);
}
- else if(StateChangedType::CONTROLBACKGROUND == nType)
+ else if(StateChangedType::ControlBackground == nType)
{
InitSettings(false, true);
}
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index 3bb540aa8ad2..72eed9fe4440 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -528,9 +528,9 @@ SvxFont& SvxFontPrevWindow::GetCJKFont()
void SvxFontPrevWindow::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::CONTROLFOREGROUND )
+ if ( nType == StateChangedType::ControlForeground )
InitSettings( true, false );
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
InitSettings( false, true );
Window::StateChanged( nType );
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index f72455723b59..cee42391ebb1 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -746,7 +746,7 @@ void DbGridControl::NavigationBar::StateChanged( StateChangedType nType )
switch ( nType )
{
- case StateChangedType::MIRRORING:
+ case StateChangedType::Mirroring:
{
bool bIsRTLEnabled = IsRTLEnabled();
for ( size_t i=0; i < (sizeof (pWindows) / sizeof(pWindows[0])); ++i )
@@ -754,7 +754,7 @@ void DbGridControl::NavigationBar::StateChanged( StateChangedType nType )
}
break;
- case StateChangedType::ZOOM:
+ case StateChangedType::Zoom:
{
Fraction aZoom = GetZoom();
@@ -999,12 +999,12 @@ void DbGridControl::StateChanged( StateChangedType nType )
switch (nType)
{
- case StateChangedType::MIRRORING:
+ case StateChangedType::Mirroring:
ImplInitWindow( InitWritingMode );
Invalidate();
break;
- case StateChangedType::ZOOM:
+ case StateChangedType::Zoom:
{
ImplInitWindow( InitFontFacet );
@@ -1015,15 +1015,15 @@ void DbGridControl::StateChanged( StateChangedType nType )
ReserveControlArea((sal_uInt16)nX);
}
break;
- case StateChangedType::CONTROLFONT:
+ case StateChangedType::ControlFont:
ImplInitWindow( InitFontFacet );
Invalidate();
break;
- case StateChangedType::CONTROLFOREGROUND:
+ case StateChangedType::ControlForeground:
ImplInitWindow( InitForeground );
Invalidate();
break;
- case StateChangedType::CONTROLBACKGROUND:
+ case StateChangedType::ControlBackground:
ImplInitWindow( InitBackground );
Invalidate();
break;
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index c058ef95b542..ab09ae83df4e 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -552,13 +552,13 @@ void SvxStyleBox_Impl::StateChanged( StateChangedType nStateChange )
{
ComboBox::StateChanged( nStateChange );
- if ( nStateChange == StateChangedType::VISIBLE )
+ if ( nStateChange == StateChangedType::Visible )
{
bVisible = IsReallyVisible();
if ( aVisibilityListener.IsSet() )
aVisibilityListener.Call( this );
}
- else if ( nStateChange == StateChangedType::INITSHOW )
+ else if ( nStateChange == StateChangedType::InitShow )
{
bVisible = true;
if ( aVisibilityListener.IsSet() )
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx
index 72c84ccd66df..105613c45650 100644
--- a/sw/source/ui/dbui/mmoutputtypepage.cxx
+++ b/sw/source/ui/dbui/mmoutputtypepage.cxx
@@ -547,7 +547,7 @@ void SwSendMailDialog::ShowDialog()
void SwSendMailDialog::StateChanged( StateChangedType nStateChange )
{
ModelessDialog::StateChanged( nStateChange );
- if(StateChangedType::VISIBLE == nStateChange && !IsVisible())
+ if(StateChangedType::Visible == nStateChange && !IsVisible())
{
m_pImpl->aRemoveIdle.SetIdleHdl( LINK( this, SwSendMailDialog,
RemoveThis ) );
diff --git a/sw/source/ui/fldui/inpdlg.cxx b/sw/source/ui/fldui/inpdlg.cxx
index 1da4ca51f107..6a7c663d6437 100644
--- a/sw/source/ui/fldui/inpdlg.cxx
+++ b/sw/source/ui/fldui/inpdlg.cxx
@@ -122,7 +122,7 @@ void SwFldInputDlg::dispose()
void SwFldInputDlg::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
m_pEditED->GrabFocus();
SvxStandardDialog::StateChanged( nType );
}
diff --git a/sw/source/uibase/dbui/mailmergehelper.cxx b/sw/source/uibase/dbui/mailmergehelper.cxx
index 4a85ad20b394..c342034c5269 100644
--- a/sw/source/uibase/dbui/mailmergehelper.cxx
+++ b/sw/source/uibase/dbui/mailmergehelper.cxx
@@ -433,7 +433,7 @@ void SwAddressPreview::KeyInput( const KeyEvent& rKEvt )
void SwAddressPreview::StateChanged( StateChangedType nStateChange )
{
- if(nStateChange == StateChangedType::ENABLE)
+ if(nStateChange == StateChangedType::Enable)
Invalidate();
Window::StateChanged(nStateChange);
}
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index ef0c8c310685..39fd3c62ee90 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -162,7 +162,7 @@ bool Button::SetModeImage( const Image& rImage )
if ( rImage != mpButtonData->maImage )
{
mpButtonData->maImage = rImage;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
queue_resize();
}
return true;
@@ -183,7 +183,7 @@ void Button::SetImageAlign( ImageAlign eAlign )
if ( mpButtonData->meImageAlign != eAlign )
{
mpButtonData->meImageAlign = eAlign;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -548,7 +548,7 @@ void Button::ImplSetSymbolAlign( SymbolAlign eAlign )
if ( mpButtonData->meSymbolAlign != eAlign )
{
mpButtonData->meSymbolAlign = eAlign;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -1398,17 +1398,17 @@ void PushButton::StateChanged( StateChangedType nType )
{
Button::StateChanged( nType );
- if ( (nType == StateChangedType::ENABLE) ||
- (nType == StateChangedType::TEXT) ||
- (nType == StateChangedType::IMAGE) ||
- (nType == StateChangedType::DATA) ||
- (nType == StateChangedType::STATE) ||
- (nType == StateChangedType::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 == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetWindow( WINDOW_PREV ), GetStyle() ) );
@@ -1424,18 +1424,18 @@ void PushButton::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -1531,7 +1531,7 @@ void PushButton::SetSymbol( SymbolType eSymbol )
if ( meSymbol != eSymbol )
{
meSymbol = eSymbol;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -1545,7 +1545,7 @@ void PushButton::SetDropDown( sal_uInt16 nStyle )
if ( mnDDStyle != nStyle )
{
mnDDStyle = nStyle;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -1567,7 +1567,7 @@ void PushButton::SetState( TriState eState )
ImplGetButtonState() |= BUTTON_DRAW_DONTKNOW;
}
- StateChanged( StateChangedType::STATE );
+ StateChanged( StateChangedType::State );
Toggle();
}
}
@@ -1577,7 +1577,7 @@ void PushButton::SetPressed( bool bPressed )
if ( mbPressed != bPressed )
{
mbPressed = bPressed;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -2520,21 +2520,21 @@ void RadioButton::StateChanged( StateChangedType nType )
{
Button::StateChanged( nType );
- if ( nType == StateChangedType::STATE )
+ if ( nType == StateChangedType::State )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate( maStateRect );
}
- else if ( (nType == StateChangedType::ENABLE) ||
- (nType == StateChangedType::TEXT) ||
- (nType == StateChangedType::IMAGE) ||
- (nType == StateChangedType::DATA) ||
- (nType == StateChangedType::UPDATEMODE) )
+ else if ( (nType == StateChangedType::Enable) ||
+ (nType == StateChangedType::Text) ||
+ (nType == StateChangedType::Image) ||
+ (nType == StateChangedType::Data) ||
+ (nType == StateChangedType::UpdateMode) )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetWindow( WINDOW_PREV ), GetStyle() ) );
@@ -2545,18 +2545,18 @@ void RadioButton::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -2613,7 +2613,7 @@ bool RadioButton::SetModeRadioImage( const Image& rImage )
if ( rImage != maImage )
{
maImage = rImage;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
queue_resize();
}
return true;
@@ -2631,7 +2631,7 @@ void RadioButton::SetState( bool bCheck )
if ( mbChecked != bCheck )
{
mbChecked = bCheck;
- StateChanged( StateChangedType::STATE );
+ StateChanged( StateChangedType::State );
Toggle();
}
}
@@ -2688,7 +2688,7 @@ void RadioButton::Check( bool bCheck )
mbChecked = bCheck;
ImplDelData aDelData;
ImplAddDel( &aDelData );
- StateChanged( StateChangedType::STATE );
+ StateChanged( StateChangedType::State );
if ( aDelData.IsDead() )
return;
if ( bCheck && mbRadioCheck )
@@ -3454,21 +3454,21 @@ void CheckBox::StateChanged( StateChangedType nType )
{
Button::StateChanged( nType );
- if ( nType == StateChangedType::STATE )
+ if ( nType == StateChangedType::State )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate( maStateRect );
}
- else if ( (nType == StateChangedType::ENABLE) ||
- (nType == StateChangedType::TEXT) ||
- (nType == StateChangedType::IMAGE) ||
- (nType == StateChangedType::DATA) ||
- (nType == StateChangedType::UPDATEMODE) )
+ else if ( (nType == StateChangedType::Enable) ||
+ (nType == StateChangedType::Text) ||
+ (nType == StateChangedType::Image) ||
+ (nType == StateChangedType::Data) ||
+ (nType == StateChangedType::UpdateMode) )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetWindow( WINDOW_PREV ), GetStyle() ) );
@@ -3479,18 +3479,18 @@ void CheckBox::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -3550,7 +3550,7 @@ void CheckBox::SetState( TriState eState )
if ( meState != eState )
{
meState = eState;
- StateChanged( StateChangedType::STATE );
+ StateChanged( StateChangedType::State );
Toggle();
}
}
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index e9e24ee3cabc..05b1e7d6f2bd 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -607,13 +607,13 @@ void ComboBox::StateChanged( StateChangedType nType )
{
Edit::StateChanged( nType );
- if ( nType == StateChangedType::READONLY )
+ if ( nType == StateChangedType::ReadOnly )
{
mpImplLB->SetReadOnly( IsReadOnly() );
if ( mpBtn )
mpBtn->Enable( IsEnabled() && !IsReadOnly() );
}
- else if ( nType == StateChangedType::ENABLE )
+ else if ( nType == StateChangedType::Enable )
{
mpSubEdit->Enable( IsEnabled() );
mpImplLB->Enable( IsEnabled() && !IsReadOnly() );
@@ -621,47 +621,47 @@ void ComboBox::StateChanged( StateChangedType nType )
mpBtn->Enable( IsEnabled() && !IsReadOnly() );
Invalidate();
}
- else if( nType == StateChangedType::UPDATEMODE )
+ else if( nType == StateChangedType::UpdateMode )
{
mpImplLB->SetUpdateMode( IsUpdateMode() );
}
- else if ( nType == StateChangedType::ZOOM )
+ else if ( nType == StateChangedType::Zoom )
{
mpImplLB->SetZoom( GetZoom() );
mpSubEdit->SetZoom( GetZoom() );
ImplCalcEditHeight();
Resize();
}
- else if ( nType == StateChangedType::CONTROLFONT )
+ else if ( nType == StateChangedType::ControlFont )
{
mpImplLB->SetControlFont( GetControlFont() );
mpSubEdit->SetControlFont( GetControlFont() );
ImplCalcEditHeight();
Resize();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
mpImplLB->SetControlForeground( GetControlForeground() );
mpSubEdit->SetControlForeground( GetControlForeground() );
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
mpImplLB->SetControlBackground( GetControlBackground() );
mpSubEdit->SetControlBackground( GetControlBackground() );
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetStyle() ) );
mpImplLB->GetMainWindow()->EnableSort( ( GetStyle() & WB_SORT ) != 0 );
}
- else if( nType == StateChangedType::MIRRORING )
+ else if( nType == StateChangedType::Mirroring )
{
if( mpBtn )
{
mpBtn->EnableRTL( IsRTLEnabled() );
ImplInitDropDownButton( mpBtn );
}
- mpSubEdit->StateChanged( StateChangedType::MIRRORING );
+ mpSubEdit->StateChanged( StateChangedType::Mirroring );
mpImplLB->EnableRTL( IsRTLEnabled() );
Resize();
}
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index 9dcdfc0cea38..af9b3d4f8ce4 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -81,7 +81,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( StateChangedType::MIRRORING );
+ StateChanged( StateChangedType::Mirroring );
OutputDevice::EnableRTL(bEnable);
}
@@ -261,7 +261,7 @@ bool Control::Notify( NotifyEvent& rNEvt )
if ( !mbHasControlFocus )
{
mbHasControlFocus = true;
- StateChanged( StateChangedType::CONTROL_FOCUS );
+ StateChanged( StateChangedType::ControlFocus );
if ( ImplCallEventListenersAndHandler( VCLEVENT_CONTROL_GETFOCUS, maGetFocusHdl, this ) )
// been destroyed within the handler
return true;
@@ -275,7 +275,7 @@ bool Control::Notify( NotifyEvent& rNEvt )
if ( !pFocusWin || !ImplIsWindowOrChild( pFocusWin ) )
{
mbHasControlFocus = false;
- StateChanged( StateChangedType::CONTROL_FOCUS );
+ StateChanged( StateChangedType::ControlFocus );
if ( ImplCallEventListenersAndHandler( VCLEVENT_CONTROL_LOSEFOCUS, maLoseFocusHdl, this ) )
// been destroyed within the handler
return true;
@@ -288,11 +288,11 @@ bool Control::Notify( NotifyEvent& rNEvt )
void Control::StateChanged( StateChangedType nStateChange )
{
- if( nStateChange == StateChangedType::INITSHOW ||
- nStateChange == StateChangedType::VISIBLE ||
- nStateChange == StateChangedType::ZOOM ||
- nStateChange == StateChangedType::BORDER ||
- nStateChange == StateChangedType::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 0e2dba38ead4..ce232fdabe0f 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2207,7 +2207,7 @@ void Edit::Command( const CommandEvent& rCEvt )
void Edit::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
if ( !mpSubEdit )
{
@@ -2219,7 +2219,7 @@ void Edit::StateChanged( StateChangedType nType )
// update background (eventual SetPaintTransparent)
ImplInitSettings( false, false, true );
}
- else if ( nType == StateChangedType::ENABLE )
+ else if ( nType == StateChangedType::Enable )
{
if ( !mpSubEdit )
{
@@ -2227,10 +2227,10 @@ void Edit::StateChanged( StateChangedType nType )
ImplInvalidateOrRepaint();
}
}
- else if ( nType == StateChangedType::STYLE || nType == StateChangedType::MIRRORING )
+ else if ( nType == StateChangedType::Style || nType == StateChangedType::Mirroring )
{
WinBits nStyle = GetStyle();
- if( nType == StateChangedType::STYLE )
+ if( nType == StateChangedType::Style )
{
nStyle = ImplInitStyle( GetStyle() );
SetStyle( nStyle );
@@ -2246,12 +2246,12 @@ void Edit::StateChanged( StateChangedType nType )
{
if( GetParent()->GetStyle() & WB_LEFT )
mnAlign = EDIT_ALIGN_RIGHT;
- if ( nType == StateChangedType::MIRRORING )
+ if ( nType == StateChangedType::Mirroring )
SetLayoutMode( TEXT_LAYOUT_BIDI_RTL | TEXT_LAYOUT_TEXTORIGIN_LEFT );
}
else if( mbIsSubEdit && !GetParent()->IsRTLEnabled() )
{
- if ( nType == StateChangedType::MIRRORING )
+ if ( nType == StateChangedType::Mirroring )
SetLayoutMode( TEXT_LAYOUT_TEXTORIGIN_LEFT );
}
@@ -2266,7 +2266,7 @@ void Edit::StateChanged( StateChangedType nType )
}
}
- else if ( nType == StateChangedType::ZOOM )
+ else if ( nType == StateChangedType::Zoom )
{
if ( !mpSubEdit )
{
@@ -2275,7 +2275,7 @@ void Edit::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == StateChangedType::CONTROLFONT )
+ else if ( nType == StateChangedType::ControlFont )
{
if ( !mpSubEdit )
{
@@ -2284,7 +2284,7 @@ void Edit::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
if ( !mpSubEdit )
{
@@ -2292,7 +2292,7 @@ void Edit::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
if ( !mpSubEdit )
{
@@ -2455,7 +2455,7 @@ void Edit::SetReadOnly( bool bReadOnly )
if ( mpSubEdit )
mpSubEdit->SetReadOnly( bReadOnly );
- StateChanged( StateChangedType::READONLY );
+ StateChanged( StateChangedType::ReadOnly );
}
}
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index c8acbd1aaa1d..7b42fee92ffb 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 == StateChangedType::ENABLE) ||
- (nType == StateChangedType::TEXT) ||
- (nType == StateChangedType::UPDATEMODE) )
+ if ( (nType == StateChangedType::Enable) ||
+ (nType == StateChangedType::Text) ||
+ (nType == StateChangedType::UpdateMode) )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::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 == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -660,33 +660,33 @@ void FixedLine::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( (nType == StateChangedType::ENABLE) ||
- (nType == StateChangedType::TEXT) ||
- (nType == StateChangedType::UPDATEMODE) )
+ if ( (nType == StateChangedType::Enable) ||
+ (nType == StateChangedType::Text) ||
+ (nType == StateChangedType::UpdateMode) )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetStyle() ) );
if ( (GetPrevStyle() & FIXEDLINE_VIEW_STYLE) !=
(GetStyle() & FIXEDLINE_VIEW_STYLE) )
Invalidate();
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::STYLE) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::Style) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
@@ -810,20 +810,20 @@ void FixedBitmap::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( (nType == StateChangedType::DATA) ||
- (nType == StateChangedType::UPDATEMODE) )
+ if ( (nType == StateChangedType::Data) ||
+ (nType == StateChangedType::UpdateMode) )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetStyle() ) );
if ( (GetPrevStyle() & FIXEDBITMAP_VIEW_STYLE) !=
(GetStyle() & FIXEDBITMAP_VIEW_STYLE) )
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings();
Invalidate();
@@ -845,7 +845,7 @@ void FixedBitmap::DataChanged( const DataChangedEvent& rDCEvt )
void FixedBitmap::SetBitmap( const Bitmap& rBitmap )
{
maBitmap = rBitmap;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
queue_resize();
}
@@ -984,21 +984,21 @@ void FixedImage::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( (nType == StateChangedType::ENABLE) ||
- (nType == StateChangedType::DATA) ||
- (nType == StateChangedType::UPDATEMODE) )
+ if ( (nType == StateChangedType::Enable) ||
+ (nType == StateChangedType::Data) ||
+ (nType == StateChangedType::UpdateMode) )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetStyle() ) );
if ( (GetPrevStyle() & FIXEDIMAGE_VIEW_STYLE) !=
(GetStyle() & FIXEDIMAGE_VIEW_STYLE) )
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings();
Invalidate();
@@ -1022,7 +1022,7 @@ void FixedImage::SetImage( const Image& rImage )
if ( rImage != maImage )
{
maImage = rImage;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
queue_resize();
}
}
diff --git a/vcl/source/control/group.cxx b/vcl/source/control/group.cxx
index e6b0b9a83bdc..9d6de9fe488a 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 == StateChangedType::ENABLE) ||
- (nType == StateChangedType::TEXT) ||
- (nType == StateChangedType::UPDATEMODE) )
+ if ( (nType == StateChangedType::Enable) ||
+ (nType == StateChangedType::Text) ||
+ (nType == StateChangedType::UpdateMode) )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetStyle() ) );
if ( (GetPrevStyle() & GROUP_VIEW_STYLE) !=
(GetStyle() & GROUP_VIEW_STYLE) )
Invalidate();
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::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 fbbcad1e6160..4c934146323e 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -2071,34 +2071,34 @@ void ImplListBoxWindow::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == StateChangedType::ZOOM )
+ if ( nType == StateChangedType::Zoom )
{
ImplInitSettings( true, false, false );
ImplCalcMetrics();
Invalidate();
}
- else if ( nType == StateChangedType::UPDATEMODE )
+ else if ( nType == StateChangedType::UpdateMode )
{
if ( IsUpdateMode() && IsReallyVisible() )
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFONT )
+ else if ( nType == StateChangedType::ControlFont )
{
ImplInitSettings( true, false, false );
ImplCalcMetrics();
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
}
- else if( nType == StateChangedType::ENABLE )
+ else if( nType == StateChangedType::Enable )
{
Invalidate();
}
@@ -2190,7 +2190,7 @@ void ImplListBox::Clear()
}
mpVScrollBar->SetThumbPos( 0 );
mpHScrollBar->SetThumbPos( 0 );
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
sal_Int32 ImplListBox::InsertEntry( sal_Int32 nPos, const OUString& rStr )
@@ -2202,7 +2202,7 @@ sal_Int32 ImplListBox::InsertEntry( sal_Int32 nPos, const OUString& rStr )
delete pNewEntry;
return nNewPos;
}
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
return nNewPos;
}
@@ -2215,14 +2215,14 @@ sal_Int32 ImplListBox::InsertEntry( sal_Int32 nPos, const OUString& rStr, const
delete pNewEntry;
return nNewPos;
}
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
return nNewPos;
}
void ImplListBox::RemoveEntry( sal_Int32 nPos )
{
maLBWindow->RemoveEntry( nPos );
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
void ImplListBox::SetEntryFlags( sal_Int32 nPos, long nFlags )
@@ -2259,7 +2259,7 @@ void ImplListBox::Resize()
IMPL_LINK_NOARG(ImplListBox, MRUChanged)
{
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
return 1;
}
@@ -2455,18 +2455,18 @@ void ImplListBox::ImplResizeControls()
void ImplListBox::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
ImplCheckScrollBars();
}
- else if ( ( nType == StateChangedType::UPDATEMODE ) || ( nType == StateChangedType::DATA ) )
+ else if ( ( nType == StateChangedType::UpdateMode ) || ( nType == StateChangedType::Data ) )
{
bool bUpdate = IsUpdateMode();
maLBWindow->SetUpdateMode( bUpdate );
if ( bUpdate && IsReallyVisible() )
ImplCheckScrollBars();
}
- else if( nType == StateChangedType::ENABLE )
+ else if( nType == StateChangedType::Enable )
{
mpHScrollBar->Enable( IsEnabled() );
mpVScrollBar->Enable( IsEnabled() );
@@ -2475,24 +2475,24 @@ void ImplListBox::StateChanged( StateChangedType nType )
Invalidate();
}
- else if ( nType == StateChangedType::ZOOM )
+ else if ( nType == StateChangedType::Zoom )
{
maLBWindow->SetZoom( GetZoom() );
Resize();
}
- else if ( nType == StateChangedType::CONTROLFONT )
+ else if ( nType == StateChangedType::ControlFont )
{
maLBWindow->SetControlFont( GetControlFont() );
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
maLBWindow->SetControlForeground( GetControlForeground() );
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
maLBWindow->SetControlBackground( GetControlBackground() );
}
- else if( nType == StateChangedType::MIRRORING )
+ else if( nType == StateChangedType::Mirroring )
{
maLBWindow->EnableRTL( IsRTLEnabled() );
mpHScrollBar->EnableRTL( IsRTLEnabled() );
@@ -2575,7 +2575,7 @@ void ImplListBox::SetMRUEntries( const OUString& rEntries, sal_Unicode cSep )
{
maLBWindow->GetEntryList()->SetMRUCount( nMRUCount );
SetSeparatorPos( nMRUCount ? nMRUCount-1 : 0 );
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index 06da9a114911..9090184c9578 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -777,14 +777,14 @@ long ListBox::GetIndexForPoint( const Point& rPoint, sal_Int32& rPos ) const
void ListBox::StateChanged( StateChangedType nType )
{
- if( nType == StateChangedType::READONLY )
+ if( nType == StateChangedType::ReadOnly )
{
if( mpImplWin )
mpImplWin->Enable( !IsReadOnly() );
if( mpBtn )
mpBtn->Enable( !IsReadOnly() );
}
- else if( nType == StateChangedType::ENABLE )
+ else if( nType == StateChangedType::Enable )
{
mpImplLB->Enable( IsEnabled() );
if( mpImplWin )
@@ -801,11 +801,11 @@ void ListBox::StateChanged( StateChangedType nType )
if( mpBtn )
mpBtn->Enable( IsEnabled() );
}
- else if( nType == StateChangedType::UPDATEMODE )
+ else if( nType == StateChangedType::UpdateMode )
{
mpImplLB->SetUpdateMode( IsUpdateMode() );
}
- else if ( nType == StateChangedType::ZOOM )
+ else if ( nType == StateChangedType::Zoom )
{
mpImplLB->SetZoom( GetZoom() );
if ( mpImplWin )
@@ -816,7 +816,7 @@ void ListBox::StateChanged( StateChangedType nType )
}
Resize();
}
- else if ( nType == StateChangedType::CONTROLFONT )
+ else if ( nType == StateChangedType::ControlFont )
{
mpImplLB->SetControlFont( GetControlFont() );
if ( mpImplWin )
@@ -827,7 +827,7 @@ void ListBox::StateChanged( StateChangedType nType )
}
Resize();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
mpImplLB->SetControlForeground( GetControlForeground() );
if ( mpImplWin )
@@ -838,7 +838,7 @@ void ListBox::StateChanged( StateChangedType nType )
mpImplWin->Invalidate();
}
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
mpImplLB->SetControlBackground( GetControlBackground() );
if ( mpImplWin )
@@ -858,14 +858,14 @@ void ListBox::StateChanged( StateChangedType nType )
mpImplWin->Invalidate();
}
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
SetStyle( ImplInitStyle( GetStyle() ) );
mpImplLB->GetMainWindow()->EnableSort( ( GetStyle() & WB_SORT ) != 0 );
bool bSimpleMode = ( GetStyle() & WB_SIMPLEMODE ) != 0;
mpImplLB->SetMultiSelectionSimpleMode( bSimpleMode );
}
- else if( nType == StateChangedType::MIRRORING )
+ else if( nType == StateChangedType::Mirroring )
{
if( mpBtn )
{
@@ -1404,7 +1404,7 @@ void ListBox::SetReadOnly( bool bReadOnly )
if ( mpImplLB->IsReadOnly() != bReadOnly )
{
mpImplLB->SetReadOnly( bReadOnly );
- StateChanged( StateChangedType::READONLY );
+ StateChanged( StateChangedType::ReadOnly );
}
}
diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx
index 609911cbbced..b4807544250d 100644
--- a/vcl/source/control/prgsbar.cxx
+++ b/vcl/source/control/prgsbar.cxx
@@ -184,20 +184,20 @@ void ProgressBar::SetValue( sal_uInt16 nNewPercent )
void ProgressBar::StateChanged( StateChangedType nType )
{
/* FIXME: !!! We do not support text output at the moment
- if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
else
*/
- if ( nType == StateChangedType::CONTROLFOREGROUND )
+ if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::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 0f4e8316f56e..65960d72bc6c 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -1185,14 +1185,14 @@ void ScrollBar::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
ImplCalc( false );
- else if ( nType == StateChangedType::DATA )
+ else if ( nType == StateChangedType::Data )
{
if ( IsReallyVisible() && IsUpdateMode() )
ImplCalc( true );
}
- else if ( nType == StateChangedType::UPDATEMODE )
+ else if ( nType == StateChangedType::UpdateMode )
{
if ( IsReallyVisible() && IsUpdateMode() )
{
@@ -1200,12 +1200,12 @@ void ScrollBar::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == StateChangedType::ENABLE )
+ else if ( nType == StateChangedType::Enable )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
ImplInitStyle( GetStyle() );
if ( IsReallyVisible() && IsUpdateMode() )
@@ -1382,7 +1382,7 @@ void ScrollBar::SetRange( const Range& rRange )
if ( mnThumbPos < mnMinRange )
mnThumbPos = mnMinRange;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -1396,7 +1396,7 @@ void ScrollBar::SetThumbPos( long nNewThumbPos )
if ( mnThumbPos != nNewThumbPos )
{
mnThumbPos = nNewThumbPos;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -1411,7 +1411,7 @@ void ScrollBar::SetVisibleSize( long nNewSize )
mnThumbPos = mnMaxRange-mnVisibleSize;
if ( mnThumbPos < mnMinRange )
mnThumbPos = mnMinRange;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -1482,7 +1482,7 @@ void ScrollBarBox::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::CONTROLBACKGROUND )
+ if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings();
Invalidate();
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index e85ce8099702..ba41c6fc9d3c 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 == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
ImplCalc( false );
- else if ( nType == StateChangedType::DATA )
+ else if ( nType == StateChangedType::Data )
{
if ( IsReallyVisible() && IsUpdateMode() )
ImplCalc( true );
}
- else if ( nType == StateChangedType::UPDATEMODE )
+ else if ( nType == StateChangedType::UpdateMode )
{
if ( IsReallyVisible() && IsUpdateMode() )
{
@@ -846,12 +846,12 @@ void Slider::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == StateChangedType::ENABLE )
+ else if ( nType == StateChangedType::Enable )
{
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
if ( IsReallyVisible() && IsUpdateMode() )
{
@@ -864,7 +864,7 @@ void Slider::StateChanged( StateChangedType nType )
}
}
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings();
Invalidate();
@@ -924,7 +924,7 @@ void Slider::SetRange( const Range& rRange )
if ( mnThumbPos < mnMinRange )
mnThumbPos = mnMinRange;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -938,7 +938,7 @@ void Slider::SetThumbPos( long nNewThumbPos )
if ( mnThumbPos != nNewThumbPos )
{
mnThumbPos = nNewThumbPos;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx
index 509b520c66f3..dd68d91e5bef 100644
--- a/vcl/source/control/spinbtn.cxx
+++ b/vcl/source/control/spinbtn.cxx
@@ -76,7 +76,7 @@ void SpinButton::Up()
if ( ImplIsUpperEnabled() )
{
mnValue += mnValueStep;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
ImplMoveFocus( true );
}
@@ -89,7 +89,7 @@ void SpinButton::Down()
if ( ImplIsLowerEnabled() )
{
mnValue -= mnValueStep;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
ImplMoveFocus( false );
}
@@ -309,12 +309,12 @@ void SpinButton::StateChanged( StateChangedType nType )
{
switch ( nType )
{
- case StateChangedType::DATA:
- case StateChangedType::ENABLE:
+ case StateChangedType::Data:
+ case StateChangedType::Enable:
Invalidate();
break;
- case StateChangedType::STYLE:
+ case StateChangedType::Style:
{
bool bNewRepeat = 0 != ( GetStyle() & WB_REPEAT );
if ( bNewRepeat != mbRepeat )
@@ -372,7 +372,7 @@ void SpinButton::SetRange( const Range& rRange )
if ( mnValue < mnMinRange )
mnValue = mnMinRange;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
@@ -387,7 +387,7 @@ void SpinButton::SetValue( long nValue )
if ( mnValue != nValue )
{
mnValue = nValue;
- StateChanged( StateChangedType::DATA );
+ StateChanged( StateChangedType::Data );
}
}
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index d73eb50786c1..68a9a519946c 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -779,7 +779,7 @@ void SpinField::StateChanged( StateChangedType nType )
{
Edit::StateChanged( nType );
- if ( nType == StateChangedType::ENABLE )
+ if ( nType == StateChangedType::Enable )
{
if ( mbSpin || ( GetStyle() & WB_DROPDOWN ) )
{
@@ -794,45 +794,45 @@ void SpinField::StateChanged( StateChangedType nType )
Invalidate( maDropDownRect );
}
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
if ( GetStyle() & WB_REPEAT )
mbRepeat = true;
else
mbRepeat = false;
}
- else if ( nType == StateChangedType::ZOOM )
+ else if ( nType == StateChangedType::Zoom )
{
Resize();
if ( mpEdit )
mpEdit->SetZoom( GetZoom() );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFONT )
+ else if ( nType == StateChangedType::ControlFont )
{
if ( mpEdit )
mpEdit->SetControlFont( GetControlFont() );
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
if ( mpEdit )
mpEdit->SetControlForeground( GetControlForeground() );
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
if ( mpEdit )
mpEdit->SetControlBackground( GetControlBackground() );
ImplInitSettings( false, false, true );
Invalidate();
}
- else if( nType == StateChangedType::MIRRORING )
+ else if( nType == StateChangedType::Mirroring )
{
if( mpEdit )
- mpEdit->StateChanged( StateChangedType::MIRRORING );
+ mpEdit->StateChanged( StateChangedType::Mirroring );
Resize();
}
}
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 8e1ca335fc13..c68fb1bea99a 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -1502,29 +1502,29 @@ void TabControl::StateChanged( StateChangedType nType )
{
Control::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
ImplPosCurTabPage();
if( mpTabCtrlData->mpListBox )
Resize();
}
- else if ( nType == StateChangedType::UPDATEMODE )
+ else if ( nType == StateChangedType::UpdateMode )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::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 1ac2ee5ce0ea..c04606f3f00d 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -1248,43 +1248,43 @@ void VclMultiLineEdit::GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16&
void VclMultiLineEdit::StateChanged( StateChangedType nType )
{
- if( nType == StateChangedType::ENABLE )
+ if( nType == StateChangedType::Enable )
{
pImpVclMEdit->Enable( IsEnabled() );
ImplInitSettings( true, false, false );
}
- else if( nType == StateChangedType::READONLY )
+ else if( nType == StateChangedType::ReadOnly )
{
pImpVclMEdit->SetReadOnly( IsReadOnly() );
}
- else if ( nType == StateChangedType::ZOOM )
+ else if ( nType == StateChangedType::Zoom )
{
pImpVclMEdit->GetTextWindow()->SetZoom( GetZoom() );
ImplInitSettings( true, false, false );
Resize();
}
- else if ( nType == StateChangedType::CONTROLFONT )
+ else if ( nType == StateChangedType::ControlFont )
{
ImplInitSettings( true, false, false );
Resize();
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
}
- else if ( nType == StateChangedType::STYLE )
+ else if ( nType == StateChangedType::Style )
{
pImpVclMEdit->InitFromStyle( GetStyle() );
SetStyle( ImplInitStyle( GetStyle() ) );
}
- else if ( nType == StateChangedType::INITSHOW )
+ else if ( nType == StateChangedType::InitShow )
{
if( IsPaintTransparent() )
{
diff --git a/vcl/source/uipreviewer/previewer.cxx b/vcl/source/uipreviewer/previewer.cxx
index bb93b1207dd8..47a5c28e7d3a 100644
--- a/vcl/source/uipreviewer/previewer.cxx
+++ b/vcl/source/uipreviewer/previewer.cxx
@@ -80,7 +80,7 @@ int UIPreviewApp::Main()
pRealDialog->SetText(OUString("LibreOffice ui-previewer"));
pRealDialog->SetStyle(pDialog->GetStyle()|WB_CLOSEABLE);
/*
- Force a new StateChangedType::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 82aa0bea8d2d..b54914f9082e 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -1980,9 +1980,9 @@ void ImplBorderWindow::Resize()
void ImplBorderWindow::StateChanged( StateChangedType nType )
{
- if ( (nType == StateChangedType::TEXT) ||
- (nType == StateChangedType::IMAGE) ||
- (nType == StateChangedType::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 2e8532cecba7..7846e41828e8 100644
--- a/vcl/source/window/btndlg.cxx
+++ b/vcl/source/window/btndlg.cxx
@@ -234,7 +234,7 @@ void ButtonDialog::Resize()
void ButtonDialog::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::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 3381ef6f5991..e72bf4f383c8 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -635,7 +635,7 @@ Size bestmaxFrameSizeForScreenSize(const Size &rScreenSize)
void Dialog::StateChanged( StateChangedType nType )
{
- if (nType == StateChangedType::INITSHOW)
+ if (nType == StateChangedType::InitShow)
{
DoInitialLayout();
@@ -655,7 +655,7 @@ void Dialog::StateChanged( StateChangedType nType )
SystemWindow::StateChanged( nType );
- if (nType == StateChangedType::CONTROLBACKGROUND)
+ if (nType == StateChangedType::ControlBackground)
{
ImplInitSettings();
Invalidate();
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx
index e94d6073931a..24fc270a5198 100644
--- a/vcl/source/window/dockingarea.cxx
+++ b/vcl/source/window/dockingarea.cxx
@@ -135,7 +135,7 @@ void DockingAreaWindow::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::VISIBLE )
+ if ( nType == StateChangedType::Visible )
ImplInvalidateMenubar( this );
}
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index 3ea561f2598a..d5545623f0b6 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -742,16 +742,16 @@ void DockingWindow::StateChanged( StateChangedType nType )
{
switch(nType)
{
- case StateChangedType::INITSHOW:
+ case StateChangedType::InitShow:
DoInitialLayout();
break;
- case StateChangedType::CONTROLBACKGROUND:
+ case StateChangedType::ControlBackground:
ImplInitSettings();
Invalidate();
break;
- case StateChangedType::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 bd2b36d39c39..162f3572d8cc 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -418,7 +418,7 @@ void Window::ImplCallInitShow()
{
mpWindowImpl->mbReallyShown = true;
mpWindowImpl->mbInInitShow = true;
- StateChanged( StateChangedType::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 65a5ef452458..39030b7ab122 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -551,14 +551,14 @@ bool FloatingWindow::Notify( NotifyEvent& rNEvt )
void FloatingWindow::StateChanged( StateChangedType nType )
{
- if (nType == StateChangedType::INITSHOW)
+ if (nType == StateChangedType::InitShow)
{
DoInitialLayout();
}
SystemWindow::StateChanged( nType );
- if ( nType == StateChangedType::CONTROLBACKGROUND )
+ if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings();
Invalidate();
diff --git a/vcl/source/window/globalization.cxx b/vcl/source/window/globalization.cxx
index ed9f17e746a7..980a5867094e 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( StateChangedType::MIRRORING );
+ StateChanged( StateChangedType::Mirroring );
OutputDevice::EnableRTL(bEnable);
}
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 3bfa40a049d9..ee0a0248de1b 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1601,7 +1601,7 @@ void VclExpander::StateChanged(StateChangedType nType)
{
VclBin::StateChanged( nType );
- if (nType == StateChangedType::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 83754722d925..8c21f8423349 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -989,8 +989,8 @@ void MenuBarWindow::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( ( nType == StateChangedType::CONTROLFOREGROUND ) ||
- ( nType == StateChangedType::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 e28cfff00c7a..247821ce6639 100644
--- a/vcl/source/window/menufloatingwindow.cxx
+++ b/vcl/source/window/menufloatingwindow.cxx
@@ -1160,7 +1160,7 @@ void MenuFloatingWindow::StateChanged( StateChangedType nType )
{
FloatingWindow::StateChanged( nType );
- if ( ( nType == StateChangedType::CONTROLFOREGROUND ) || ( nType == StateChangedType::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 9f2fd75973c7..8ddba996b1a3 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -354,7 +354,7 @@ void MessBox::ImplPosControls()
void MessBox::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
ImplPosControls();
}
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 6be4c7ea10fd..be52f6cd315d 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -2607,15 +2607,15 @@ void SplitWindow::StateChanged( StateChangedType nType )
{
switch ( nType )
{
- case StateChangedType::INITSHOW:
+ case StateChangedType::InitShow:
if ( IsUpdateMode() )
ImplCalcLayout();
break;
- case StateChangedType::UPDATEMODE:
+ case StateChangedType::UpdateMode:
if ( IsUpdateMode() && IsReallyShown() )
ImplCalcLayout();
break;
- case StateChangedType::CONTROLBACKGROUND:
+ case StateChangedType::ControlBackground:
ImplInitSettings();
Invalidate();
break;
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 37397f912471..8896cea4c09f 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -824,23 +824,23 @@ void StatusBar::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
ImplFormat();
- else if ( nType == StateChangedType::UPDATEMODE )
+ else if ( nType == StateChangedType::UpdateMode )
Invalidate();
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
mbFormat = true;
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::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 e5c9061389e3..a99daecc3390 100644
--- a/vcl/source/window/tabdlg.cxx
+++ b/vcl/source/window/tabdlg.cxx
@@ -233,7 +233,7 @@ void TabDialog::dispose()
void TabDialog::StateChanged( StateChangedType nType )
{
- if ( nType == StateChangedType::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 308ca926afe7..787411221f6e 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -100,14 +100,14 @@ void TabPage::StateChanged( StateChangedType nType )
{
Window::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
{
if ( GetSettings().GetStyleSettings().GetAutoMnemonic() )
ImplWindowAutoMnemonic( this );
// FIXME: no layouting, workaround some clipping issues
ImplAdjustNWFSizes();
}
- else if ( nType == StateChangedType::CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings();
Invalidate();
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 26590b7ab5c0..de02402ce2d3 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -4422,29 +4422,29 @@ void ToolBox::StateChanged( StateChangedType nType )
{
DockingWindow::StateChanged( nType );
- if ( nType == StateChangedType::INITSHOW )
+ if ( nType == StateChangedType::InitShow )
ImplFormat();
- else if ( nType == StateChangedType::ENABLE )
+ else if ( nType == StateChangedType::Enable )
ImplUpdateItem();
- else if ( nType == StateChangedType::UPDATEMODE )
+ else if ( nType == StateChangedType::UpdateMode )
{
if ( IsUpdateMode() )
Invalidate();
}
- else if ( (nType == StateChangedType::ZOOM) ||
- (nType == StateChangedType::CONTROLFONT) )
+ else if ( (nType == StateChangedType::Zoom) ||
+ (nType == StateChangedType::ControlFont) )
{
mbCalc = true;
mbFormat = true;
ImplInitSettings( true, false, false );
Invalidate();
}
- else if ( nType == StateChangedType::CONTROLFOREGROUND )
+ else if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == StateChangedType::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 5c30ba0a1434..677de2ce717a 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2023,16 +2023,16 @@ void Window::StateChanged(StateChangedType eType)
switch (eType)
{
//stuff that doesn't invalidate the layout
- case StateChangedType::CONTROLFOREGROUND:
- case StateChangedType::CONTROLBACKGROUND:
+ 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:
+ case StateChangedType::UpdateMode:
+ case StateChangedType::ReadOnly:
+ case StateChangedType::Enable:
+ case StateChangedType::State:
+ case StateChangedType::Data:
+ case StateChangedType::InitShow:
+ case StateChangedType::ControlFocus:
break;
//stuff that does invalidate the layout
default:
@@ -2067,7 +2067,7 @@ void Window::SetStyle( WinBits nStyle )
{
mpWindowImpl->mnPrevStyle = mpWindowImpl->mnStyle;
mpWindowImpl->mnStyle = nStyle;
- StateChanged( StateChangedType::STYLE );
+ StateChanged( StateChangedType::Style );
}
}
@@ -2091,7 +2091,7 @@ void Window::SetExtendedStyle( WinBits nExtendedStyle )
}
mpWindowImpl->mnPrevExtendedStyle = mpWindowImpl->mnExtendedStyle;
mpWindowImpl->mnExtendedStyle = nExtendedStyle;
- StateChanged( StateChangedType::EXTENDEDSTYLE );
+ StateChanged( StateChangedType::ExtendedStyle );
}
}
@@ -2303,7 +2303,7 @@ void Window::Show( bool bVisible, sal_uInt16 nFlags )
mpWindowImpl->mpFrame->Show( false, false );
}
- StateChanged( StateChangedType::VISIBLE );
+ StateChanged( StateChangedType::Visible );
if ( mpWindowImpl->mbReallyVisible )
{
@@ -2391,7 +2391,7 @@ void Window::Show( bool bVisible, sal_uInt16 nFlags )
ImplCallResize();
}
- StateChanged( StateChangedType::VISIBLE );
+ StateChanged( StateChangedType::Visible );
vcl::Window* pTestParent;
if ( ImplIsOverlapWindow() )
@@ -2578,7 +2578,7 @@ void Window::Enable( bool bEnable, bool bChild )
mpWindowImpl->mbDisabled = !bEnable;
if ( mpWindowImpl->mpSysObj )
mpWindowImpl->mpSysObj->Enable( bEnable && !mpWindowImpl->mbInputDisabled );
- StateChanged( StateChangedType::ENABLE );
+ StateChanged( StateChangedType::Enable );
CallEventListeners( bEnable ? VCLEVENT_WINDOW_ENABLED : VCLEVENT_WINDOW_DISABLED );
}
@@ -3132,7 +3132,7 @@ void Window::SetUpdateMode( bool bUpdate )
{
mpWindowImpl->mbNoUpdate = !bUpdate;
- StateChanged( StateChangedType::UPDATEMODE );
+ StateChanged( StateChangedType::UpdateMode );
}
void Window::GrabFocus()
@@ -3203,7 +3203,7 @@ void Window::SetText( const OUString& rStr )
pWindow->CallEventListeners( VCLEVENT_WINDOW_FRAMETITLECHANGED, &oldTitle );
}
- StateChanged( StateChangedType::TEXT );
+ StateChanged( StateChangedType::Text );
}
OUString Window::GetText() const
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 3e14d44ad657..fa7cee61135e 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -512,7 +512,7 @@ void Window::SetZoom( const Fraction& rZoom )
if ( mpWindowImpl->maZoom != rZoom )
{
mpWindowImpl->maZoom = rZoom;
- StateChanged( StateChangedType::ZOOM );
+ StateChanged( StateChangedType::Zoom );
}
}
@@ -579,7 +579,7 @@ void Window::SetControlFont()
{
delete mpWindowImpl->mpControlFont;
mpWindowImpl->mpControlFont = NULL;
- StateChanged( StateChangedType::CONTROLFONT );
+ StateChanged( StateChangedType::ControlFont );
}
}
@@ -600,7 +600,7 @@ void Window::SetControlFont( const vcl::Font& rFont )
else
mpWindowImpl->mpControlFont = new vcl::Font( rFont );
- StateChanged( StateChangedType::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( StateChangedType::CONTROLFOREGROUND );
+ StateChanged( StateChangedType::ControlForeground );
}
}
@@ -632,7 +632,7 @@ void Window::SetControlForeground( const Color& rColor )
{
mpWindowImpl->maControlForeground = Color( COL_TRANSPARENT );
mpWindowImpl->mbControlForeground = false;
- StateChanged( StateChangedType::CONTROLFOREGROUND );
+ StateChanged( StateChangedType::ControlForeground );
}
}
else
@@ -641,7 +641,7 @@ void Window::SetControlForeground( const Color& rColor )
{
mpWindowImpl->maControlForeground = rColor;
mpWindowImpl->mbControlForeground = true;
- StateChanged( StateChangedType::CONTROLFOREGROUND );
+ StateChanged( StateChangedType::ControlForeground );
}
}
}
@@ -652,7 +652,7 @@ void Window::SetControlBackground()
{
mpWindowImpl->maControlBackground = Color( COL_TRANSPARENT );
mpWindowImpl->mbControlBackground = false;
- StateChanged( StateChangedType::CONTROLBACKGROUND );
+ StateChanged( StateChangedType::ControlBackground );
}
}
@@ -664,7 +664,7 @@ void Window::SetControlBackground( const Color& rColor )
{
mpWindowImpl->maControlBackground = Color( COL_TRANSPARENT );
mpWindowImpl->mbControlBackground = false;
- StateChanged( StateChangedType::CONTROLBACKGROUND );
+ StateChanged( StateChangedType::ControlBackground );
}
}
else
@@ -673,7 +673,7 @@ void Window::SetControlBackground( const Color& rColor )
{
mpWindowImpl->maControlBackground = rColor;
mpWindowImpl->mbControlBackground = true;
- StateChanged( StateChangedType::CONTROLBACKGROUND );
+ StateChanged( StateChangedType::ControlBackground );
}
}
}
@@ -1448,7 +1448,7 @@ void Window::queue_resize(StateChangedType eReason)
bool bSomeoneCares = queue_ungrouped_resize(this);
- if (eReason != StateChangedType::VISIBLE)
+ if (eReason != StateChangedType::Visible)
{
InvalidateSizeCache();
}