summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-12 15:30:22 +0200
committerNoel Grandin <noel@peralex.com>2015-05-13 09:25:50 +0200
commitfacc91ab4a3f25b3290408c7083ed4c09dd8d759 (patch)
tree65062b866ac520a9f4078886ac04a20e0e492733 /svtools
parent96096e27457454219c6621b060e89319ceaca23c (diff)
convert FLOATWIN_POPUPMODE constants to scoped enum
Change-Id: I744d430ef6a506977eb10b892582c8969ec27524
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/calendar.cxx2
-rw-r--r--svtools/source/uno/popupwindowcontroller.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index e88fc0ebd5e9..74fb59f6b809 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -2361,7 +2361,7 @@ bool CalendarField::ShowDropDown( bool bShow )
mpCalendar->StartSelection();
mpCalendar->GrabFocus();
mpCalendar->Show();
- mpFloatWin->StartPopupMode( aRect, FLOATWIN_POPUPMODE_NOFOCUSCLOSE|FLOATWIN_POPUPMODE_DOWN );
+ mpFloatWin->StartPopupMode( aRect, FloatWinPopupFlags::NoFocusClose|FloatWinPopupFlags::Down );
}
else
{
diff --git a/svtools/source/uno/popupwindowcontroller.cxx b/svtools/source/uno/popupwindowcontroller.cxx
index 87e64d475e62..39ceb320d424 100644
--- a/svtools/source/uno/popupwindowcontroller.cxx
+++ b/svtools/source/uno/popupwindowcontroller.cxx
@@ -215,10 +215,10 @@ Reference< awt::XWindow > SAL_CALL PopupWindowController::createPopupWindow() th
pWin->EnableDocking(true);
mxImpl->SetPopupWindow(pWin,pToolBox);
vcl::Window::GetDockingManager()->StartPopupMode( pToolBox, pWin,
- FLOATWIN_POPUPMODE_GRABFOCUS |
- FLOATWIN_POPUPMODE_NOFOCUSCLOSE |
- FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE |
- FLOATWIN_POPUPMODE_NOMOUSEUPCLOSE );
+ FloatWinPopupFlags::GrabFocus |
+ FloatWinPopupFlags::NoFocusClose |
+ FloatWinPopupFlags::AllMouseButtonClose |
+ FloatWinPopupFlags::NoMouseUpClose );
}
}
return Reference< awt::XWindow >();