summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-13 08:44:58 +0200
committerNoel Grandin <noel@peralex.com>2015-05-13 09:25:51 +0200
commit666f42854e04141541227d88130ff3338aff07b6 (patch)
treee14a945622bcb0c87d3015ea2e514f1b593624bf /svx
parentfacc91ab4a3f25b3290408c7083ed4c09dd8d759 (diff)
convert FLOATWIN_POPUPMODEEND constants to scoped enum
Change-Id: I36fea4608c744c941bdff401b649fa46302b4dbd
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/layctrl.cxx22
-rw-r--r--svx/source/tbxctrls/lboxctrl.cxx2
2 files changed, 12 insertions, 12 deletions
diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx
index cf474801f3a5..40e195179b64 100644
--- a/svx/source/tbxctrls/layctrl.cxx
+++ b/svx/source/tbxctrls/layctrl.cxx
@@ -203,7 +203,7 @@ void TableWindow::KeyInput( const KeyEvent& rKEvt )
if ( nNewLine > 1 )
nNewLine--;
else
- EndPopupMode( FLOATWIN_POPUPMODEEND_CANCEL );
+ EndPopupMode( FloatWinPopupEndFlags::Cancel );
break;
case KEY_DOWN:
if ( nNewLine < TABLE_CELLS_VERT )
@@ -215,7 +215,7 @@ void TableWindow::KeyInput( const KeyEvent& rKEvt )
if ( nNewCol > 1 )
nNewCol--;
else
- EndPopupMode( FLOATWIN_POPUPMODEEND_CANCEL );
+ EndPopupMode( FloatWinPopupEndFlags::Cancel );
break;
case KEY_RIGHT:
if ( nNewCol < TABLE_CELLS_HORIZ )
@@ -224,10 +224,10 @@ void TableWindow::KeyInput( const KeyEvent& rKEvt )
CloseAndShowTableDialog();
break;
case KEY_ESCAPE:
- EndPopupMode( FLOATWIN_POPUPMODEEND_CANCEL );
+ EndPopupMode( FloatWinPopupEndFlags::Cancel );
break;
case KEY_RETURN:
- EndPopupMode( FLOATWIN_POPUPMODEEND_CLOSEALL );
+ EndPopupMode( FloatWinPopupEndFlags::CloseAll );
break;
case KEY_TAB:
CloseAndShowTableDialog();
@@ -252,7 +252,7 @@ void TableWindow::KeyInput( const KeyEvent& rKEvt )
else if(KEY_MOD1 == nModifier && KEY_RETURN == nKey)
{
m_bMod1 = true;
- EndPopupMode( FLOATWIN_POPUPMODEEND_CLOSEALL );
+ EndPopupMode( FloatWinPopupEndFlags::CloseAll );
}
if(!bHandled)
@@ -264,7 +264,7 @@ void TableWindow::KeyInput( const KeyEvent& rKEvt )
void TableWindow::MouseButtonUp( const MouseEvent& rMEvt )
{
SfxPopupWindow::MouseButtonUp( rMEvt );
- EndPopupMode( FLOATWIN_POPUPMODEEND_CLOSEALL );
+ EndPopupMode( FloatWinPopupEndFlags::CloseAll );
}
@@ -401,7 +401,7 @@ void TableWindow::TableDialog( const Sequence< PropertyValue >& rArgs )
void TableWindow::CloseAndShowTableDialog()
{
// close the toolbar tool
- EndPopupMode( FLOATWIN_POPUPMODEEND_CANCEL );
+ EndPopupMode( FloatWinPopupEndFlags::Cancel );
// and open the table dialog instead
TableDialog( Sequence< PropertyValue >() );
@@ -595,11 +595,11 @@ void ColumnsWindow::KeyInput( const KeyEvent& rKEvt )
case KEY_RETURN :
if(IsMouseCaptured())
ReleaseMouse();
- EndPopupMode(FLOATWIN_POPUPMODEEND_CLOSEALL );
+ EndPopupMode(FloatWinPopupEndFlags::CloseAll );
break;
case KEY_ESCAPE :
case KEY_UP :
- EndPopupMode( FLOATWIN_POPUPMODEEND_CANCEL);
+ EndPopupMode( FloatWinPopupEndFlags::Cancel);
break;
}
//make sure that a table can initially be created
@@ -617,7 +617,7 @@ void ColumnsWindow::KeyInput( const KeyEvent& rKEvt )
m_bMod1 = true;
if(IsMouseCaptured())
ReleaseMouse();
- EndPopupMode(FLOATWIN_POPUPMODEEND_CLOSEALL );
+ EndPopupMode(FloatWinPopupEndFlags::CloseAll );
}
if(!bHandled)
SfxPopupWindow::KeyInput(rKEvt);
@@ -631,7 +631,7 @@ void ColumnsWindow::MouseButtonUp( const MouseEvent& rMEvt )
ReleaseMouse();
if ( IsInPopupMode() )
- EndPopupMode( FLOATWIN_POPUPMODEEND_CLOSEALL );
+ EndPopupMode( FloatWinPopupEndFlags::CloseAll );
}
diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx
index d83a587d90cd..b4f09219c24f 100644
--- a/svx/source/tbxctrls/lboxctrl.cxx
+++ b/svx/source/tbxctrls/lboxctrl.cxx
@@ -225,7 +225,7 @@ IMPL_LINK_NOARG(SvxListBoxControl, SelectHdl)
else
{
pPopupWin->SetUserSelected( true );
- pPopupWin->EndPopupMode( 0 );
+ pPopupWin->EndPopupMode();
}
}
return 0;