From c6dfe0545cca8dc5e40864fd90e0ffe0b6182578 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 26 May 2015 09:12:58 +0200 Subject: convert DLGWINDOW constants to scoped enum Change-Id: Ieda6c5d638c608dd9e7b5d760dfbbfbcc37cc35a --- include/vcl/window.hxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 34f0baca282e..32f3ea80e2c1 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -375,9 +375,11 @@ enum class StateChangedType : sal_uInt16 #define IMPL_MSGBOX_OFFSET_EXTRA_Y 2 #define IMPL_SEP_MSGBOX_IMAGE 8 -#define DLGWINDOW_PREV 0 -#define DLGWINDOW_NEXT 1 -#define DLGWINDOW_FIRST 2 +// ImplGetDlgWindow() +enum class GetDlgWindowType +{ + Prev, Next, First +}; // - Window - @@ -520,7 +522,7 @@ public: SAL_DLLPRIVATE vcl::Window* ImplGetWindow(); SAL_DLLPRIVATE ImplWinData* ImplGetWinData() const; SAL_DLLPRIVATE vcl::Window* ImplGetClientWindow() const; - SAL_DLLPRIVATE vcl::Window* ImplGetDlgWindow( sal_uInt16 n, sal_uInt16 nType, sal_uInt16 nStart = 0, sal_uInt16 nEnd = 0xFFFF, sal_uInt16* pIndex = NULL ); + SAL_DLLPRIVATE vcl::Window* ImplGetDlgWindow( sal_uInt16 n, GetDlgWindowType nType, sal_uInt16 nStart = 0, sal_uInt16 nEnd = 0xFFFF, sal_uInt16* pIndex = NULL ); SAL_DLLPRIVATE vcl::Window* ImplGetParent() const; SAL_DLLPRIVATE vcl::Window* ImplFindWindow( const Point& rFramePos ); -- cgit v1.2.3