summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-07 15:25:20 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-05-11 12:17:42 +0000
commit82d68f9cbce4073a727c43b4a8e81d39871b71eb (patch)
tree64b3a9e1092586afee46899adfd00070821613b8 /starmath
parent19ea033f380aa196c9c868a3cdb43e967eb42abe (diff)
convert COMMAND_ constants to scoped enum
Change-Id: I88e67f89dbbab0646e8f106dfeb32c6ee1bb0b95 Reviewed-on: https://gerrit.libreoffice.org/15671 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/edit.cxx4
-rw-r--r--starmath/source/view.cxx6
2 files changed, 6 insertions, 4 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index ce8471f69591..3213a3477fd4 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -341,7 +341,7 @@ void SmEditWindow::MouseButtonDown(const MouseEvent &rEvt)
void SmEditWindow::Command(const CommandEvent& rCEvt)
{
bool bForwardEvt = true;
- if (rCEvt.GetCommand() == COMMAND_CONTEXTMENU)
+ if (rCEvt.GetCommand() == CommandEventId::ContextMenu)
{
GetParent()->ToTop();
@@ -368,7 +368,7 @@ void SmEditWindow::Command(const CommandEvent& rCEvt)
xPopupMenu->Execute( this, aPoint );
bForwardEvt = false;
}
- else if (rCEvt.GetCommand() == COMMAND_WHEEL)
+ else if (rCEvt.GetCommand() == CommandEventId::Wheel)
bForwardEvt = !HandleWheelCommands( rCEvt );
if (bForwardEvt)
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 57e3ad92a0ac..f8937e340c32 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -564,7 +564,7 @@ void SmGraphicWindow::Command(const CommandEvent& rCEvt)
{
switch ( rCEvt.GetCommand() )
{
- case COMMAND_CONTEXTMENU:
+ case CommandEventId::ContextMenu:
{
GetParent()->ToTop();
SmResId aResId( RID_VIEWMENU );
@@ -583,7 +583,7 @@ void SmGraphicWindow::Command(const CommandEvent& rCEvt)
}
break;
- case COMMAND_WHEEL:
+ case CommandEventId::Wheel:
{
const CommandWheelData* pWData = rCEvt.GetWheelData();
if ( pWData && CommandWheelMode::ZOOM == pWData->GetMode() )
@@ -598,6 +598,8 @@ void SmGraphicWindow::Command(const CommandEvent& rCEvt)
}
}
break;
+
+ default: break;
}
}
if ( bCallBase )