summaryrefslogtreecommitdiff
path: root/sd
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 /sd
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 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx2
-rw-r--r--sd/source/ui/dlg/PaneDockingWindow.cxx10
2 files changed, 8 insertions, 4 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 0c29199b3302..96465a4ff93a 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -253,7 +253,7 @@ void CustomAnimationPane::StateChanged( StateChangedType nStateChange )
{
Control::StateChanged( nStateChange );
- if( nStateChange == STATE_CHANGE_VISIBLE )
+ if( nStateChange == StateChangedType::VISIBLE )
updateMotionPathTags();
}
diff --git a/sd/source/ui/dlg/PaneDockingWindow.cxx b/sd/source/ui/dlg/PaneDockingWindow.cxx
index cc2dd553bcc4..286f3e1a28c6 100644
--- a/sd/source/ui/dlg/PaneDockingWindow.cxx
+++ b/sd/source/ui/dlg/PaneDockingWindow.cxx
@@ -53,12 +53,13 @@ void PaneDockingWindow::StateChanged( StateChangedType nType )
{
switch (nType)
{
- case STATE_CHANGE_INITSHOW:
+ case StateChangedType::INITSHOW:
Resize();
GetContentWindow().SetStyle(GetContentWindow().GetStyle() | WB_DIALOGCONTROL);
break;
- case STATE_CHANGE_VISIBLE:
+ case StateChangedType::VISIBLE:
+ {
// The visibility of the docking window has changed. Tell the
// ConfigurationController so that it can activate or deactivate
// a/the view for the pane.
@@ -70,7 +71,10 @@ void PaneDockingWindow::StateChanged( StateChangedType nType )
{
framework::FrameworkHelper::Instance(*pBase)->UpdateConfiguration();
}
- break;
+ }
+ break;
+
+ default:;
}
SfxDockingWindow::StateChanged (nType);
}