summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-26 09:12:58 +0200
committerNoel Grandin <noel@peralex.com>2015-05-27 11:14:24 +0200
commitc6dfe0545cca8dc5e40864fd90e0ffe0b6182578 (patch)
treee916f37aefa563c4dbca6d84b0626710c2691520 /include
parentc0cc9a8622a2cd0e3ba07e15a79dd65ca910b233 (diff)
convert DLGWINDOW constants to scoped enum
Change-Id: Ieda6c5d638c608dd9e7b5d760dfbbfbcc37cc35a
Diffstat (limited to 'include')
-rw-r--r--include/vcl/window.hxx10
1 files changed, 6 insertions, 4 deletions
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 );