summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-22 10:37:31 +0200
committerJan Holesovsky <kendy@collabora.com>2015-05-29 20:16:53 +0200
commit35e13c7ec530a46cc0c92cf986231acece3afd2a (patch)
tree4128389b8f8f5ddb29d78642fc978bbad94b3f37 /svtools
parenta5e58e66d82a63d99ced4ed8a42c38ed6179aa6c (diff)
convert WINDOW_POSSIZE constants to scoped enum
Change-Id: Id85137ffc7309a66b04132d588d289db136117b9 Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/calendar.cxx2
-rw-r--r--svtools/source/control/valueset.cxx2
-rw-r--r--svtools/source/dialogs/wizdlg.cxx10
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,