summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-07 16:08:25 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-11 15:14:32 +0000
commitcb7ede2d9970a4d162dc71922f578922c0d6235a (patch)
tree141884aa4a9d7c2c3cfb6fdf850ddf71cad0e7a4 /sc
parent0bc6ea3637e279fa2807d8ee649fb33f1ae6da47 (diff)
convert vcl StateChangedType to enum class
Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f Reviewed-on: https://gerrit.libreoffice.org/11843 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-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
5 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 9b9457f33bed..6393ed3e65b6 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -774,7 +774,7 @@ void ScInputWindow::StateChanged( StateChangedType nType )
{
ToolBox::StateChanged( nType );
- if ( nType == STATE_CHANGE_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 e602a5608641..9c03ed77920a 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -581,7 +581,7 @@ void ScFunctionDockWin::SetDescription()
aBuf.append(*pDesc->pFuncDesc);
aFiFuncDesc.SetText(aBuf.makeStringAndClear());
- aFiFuncDesc.StateChanged(STATE_CHANGE_TEXT);
+ aFiFuncDesc.StateChanged(StateChangedType::TEXT);
aFiFuncDesc.Invalidate();
aFiFuncDesc.Update();
@@ -1105,7 +1105,7 @@ void ScFunctionDockWin::StateChanged( StateChangedType nStateChange )
{
SfxDockingWindow::StateChanged( nStateChange );
- if (nStateChange == STATE_CHANGE_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 d111b7970f34..683d3d6285f0 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 == STATE_CHANGE_ZOOM) ||
- (nType == STATE_CHANGE_CONTROLFONT) )
+ if ( (nType == StateChangedType::ZOOM) ||
+ (nType == StateChangedType::CONTROLFONT) )
{
ImplInitSettings( true, false, false );
Invalidate();
}
- if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
+ if ( nType == StateChangedType::CONTROLFOREGROUND )
{
ImplInitSettings( false, true, false );
Invalidate();
}
- else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
+ else if ( nType == StateChangedType::CONTROLBACKGROUND )
{
ImplInitSettings( false, false, true );
Invalidate();
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index 0d06e7507067..348dddb6341c 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -949,7 +949,7 @@ void ScRefHandler::stateChanged(const StateChangedType nStateChange, const bool
{
if( !bBindRef && !m_bInRefMode ) return;
- if(nStateChange == STATE_CHANGE_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 a024b72cb7fd..1f37f67291e4 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 == STATE_CHANGE_INITSHOW)
+ if (nStateChange == StateChangedType::INITSHOW)
{
if (GetEntryCount())
{