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 | |
parent | 566922a98d548529feacb7c21bfc8897ff5b61af (diff) |
convert WINDOW_POSSIZE constants to scoped enum
Change-Id: Id85137ffc7309a66b04132d588d289db136117b9
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/calendar.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/valueset.cxx | 2 | ||||
-rw-r--r-- | svtools/source/dialogs/wizdlg.cxx | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx index ffd68d62ff7f..e560bcd67dcc 100644 --- a/svtools/source/control/calendar.cxx +++ b/svtools/source/control/calendar.cxx @@ -2222,7 +2222,7 @@ void ImplCFieldFloatWin::ArrangeButtons() } long nLineWidth = aOutSize.Width()-(CALFIELD_BORDERLINE_X*2); mpFixedLine->setPosSizePixel( (aOutSize.Width()-nLineWidth)/2, aOutSize.Height()+((CALFIELD_BORDER_YTOP-2)/2), - nLineWidth, 2, WINDOW_POSSIZE_POSSIZE ); + nLineWidth, 2, PosSizeFlags::PosSize ); aOutSize.Height() += nBtnHeight + (CALFIELD_BORDER_Y*2) + CALFIELD_BORDER_YTOP; SetOutputSizePixel( aOutSize ); } diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 49e784aa7a0c..218034695a13 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -219,7 +219,7 @@ void ValueSet::ImplInitScrollBar() { // adapt the width because of the changed settings long nScrBarWidth = Application::GetSettings().GetStyleSettings().GetScrollBarSize(); - mxScrollBar->setPosSizePixel(0, 0, nScrBarWidth, 0, WINDOW_POSSIZE_WIDTH); + mxScrollBar->setPosSizePixel(0, 0, nScrBarWidth, 0, PosSizeFlags::Width); } } } 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, |