diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-22 10:37:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-22 10:37:59 +0200 |
commit | ac3802da9ac7793c60a323bb8066c10fb40cf576 (patch) | |
tree | 659a60dafb818c327d3276b2a73a83498603d144 /svtools/source/dialogs/wizdlg.cxx | |
parent | 566922a98d548529feacb7c21bfc8897ff5b61af (diff) |
convert WINDOW_POSSIZE constants to scoped enum
Change-Id: Id85137ffc7309a66b04132d588d289db136117b9
Diffstat (limited to 'svtools/source/dialogs/wizdlg.cxx')
-rw-r--r-- | svtools/source/dialogs/wizdlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/dialogs/wizdlg.cxx b/svtools/source/dialogs/wizdlg.cxx index 2855ada2dbe7..39d63906d5c5 100644 --- a/svtools/source/dialogs/wizdlg.cxx +++ b/svtools/source/dialogs/wizdlg.cxx @@ -195,13 +195,13 @@ void WizardDialog::ImplPosCtrls() long nViewWidth = 0; long nViewHeight = 0; long nDlgHeight = nOffY; - sal_uInt16 nViewPosFlags = WINDOW_POSSIZE_POS; + PosSizeFlags nViewPosFlags = PosSizeFlags::Pos; if ( meViewAlign == WINDOWALIGN_TOP ) { nViewOffX = WIZARDDIALOG_VIEW_DLGOFFSET_X; nViewOffY = WIZARDDIALOG_VIEW_DLGOFFSET_Y; nViewWidth = aDlgSize.Width()-(WIZARDDIALOG_VIEW_DLGOFFSET_X*2); - nViewPosFlags |= WINDOW_POSSIZE_WIDTH; + nViewPosFlags |= PosSizeFlags::Width; } else if ( meViewAlign == WINDOWALIGN_LEFT ) { @@ -217,21 +217,21 @@ void WizardDialog::ImplPosCtrls() nViewOffY = WIZARDDIALOG_VIEW_DLGOFFSET_Y; nViewHeight = nDlgHeight-(WIZARDDIALOG_VIEW_DLGOFFSET_Y*2); } - nViewPosFlags |= WINDOW_POSSIZE_HEIGHT; + nViewPosFlags |= PosSizeFlags::Height; } else if ( meViewAlign == WINDOWALIGN_BOTTOM ) { nViewOffX = WIZARDDIALOG_VIEW_DLGOFFSET_X; nViewOffY = nDlgHeight-mpViewWindow->GetSizePixel().Height()-WIZARDDIALOG_VIEW_DLGOFFSET_Y; nViewWidth = aDlgSize.Width()-(WIZARDDIALOG_VIEW_DLGOFFSET_X*2); - nViewPosFlags |= WINDOW_POSSIZE_WIDTH; + nViewPosFlags |= PosSizeFlags::Width; } else if ( meViewAlign == WINDOWALIGN_RIGHT ) { nViewOffX = aDlgSize.Width()-mpViewWindow->GetSizePixel().Width()-WIZARDDIALOG_VIEW_DLGOFFSET_X; nViewOffY = WIZARDDIALOG_VIEW_DLGOFFSET_Y; nViewHeight = nDlgHeight-(WIZARDDIALOG_VIEW_DLGOFFSET_Y*2); - nViewPosFlags |= WINDOW_POSSIZE_HEIGHT; + nViewPosFlags |= PosSizeFlags::Height; } mpViewWindow->setPosSizePixel( nViewOffX, nViewOffY, nViewWidth, nViewHeight, |